fix(afk-loop): a subagent's rm or heredoc call stops the unattended loop on a confirmation prompt
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- documentation
Direzione di ricerca
Leggi worker-prompt.md, reviewer-prompt.md, SKILL.md e docs/agents/agent-tool-traps.md. Aggiorna i prompt con le due regole misurate per le chiamate alla shell e assicurati che i worker trasmettano entrambe le regole a ogni subagent. Dai un nome alla trappola di conferma che riguarda l’intero ciclo in SKILL.md e registra i tre casi misurati nel documento sulle trappole degli strumenti degli agenti. Il lavoro è completo quando ogni criterio di accettazione è riportato in questi file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
/afk-loop runs unattended, in a session started with --dangerously-skip-permissions. Claude Code still asks for confirmation on some Bash calls in that mode. While a subagent waits for that answer, its parent's turn waits too, so the whole loop stops until a person answers.
Measured in session afk-loop-498-20261028 on 2026-10-28:
| Subagent | Call | Wait |
|---|---|---|
| Diagram subagent of the #439 worker | rm of *.visual-check.* files |
00:21 to 07:57 UTC, about 7.5 hours. The maintainer was asleep |
Round 2 pr-test-analyzer of PR #665 |
A heredoc that writes a probe workflow file | About 53 minutes |
| Diagram subagent of the #483 worker | rm -f of the PNGs in its scratchpad |
62 seconds. The maintainer was at the keyboard. Its other Bash calls took 0 to 4 seconds |
The #439 worker also waited 18, 34 and 19 minutes for the first subagent, which the loop reported as "pushed without report".
Today nothing in worker-prompt.md or reviewer-prompt.md tells a subagent to avoid these calls. The diagram subagent is spawned by a worker, not by the loop, so it gets only what the worker passes on.
Acceptance criteria
-
worker-prompt.mdandreviewer-prompt.mdstate that the subagent deletes no file withrm, and leaves its scratch files in its scratchpad. - Both state that the subagent writes a file with the Write tool, not with a shell heredoc.
-
worker-prompt.mdstates that the worker passes both rules on, in its own words or verbatim, to the prompt of every subagent it spawns. -
SKILL.mdnames the trap: a confirmation prompt under--dangerously-skip-permissionsstops the whole loop, not only the subagent that asked. -
docs/agents/agent-tool-traps.mdrecords the three measured cases above.
Not decided
- Only
rmand a heredoc have been measured. Whetherfind -delete,git cleanor other calls also ask is unknown. The rules above cover the two measured ones and nothing more. - Whether a prompt in an unattended loop can be detected and reported, rather than waited on, is not part of this ticket.
- Lingua principale
- HTML
- Stelle
- 1
- Fork
- 0
- Merge medio
- 49m
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di unic/unic-agents-plugins
-
needs-triage repo tech-debt
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
unic/unic-agents-plugins#643 ·
I maintainer di solito rispondono entro 1 giorno
-
app:unic-learning-loop bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unic/unic-agents-plugins#623 ·
I maintainer di solito rispondono entro 1 giorno
-
app:unic-archon-dlc wayfinder:grilling
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
unic/unic-agents-plugins#545 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
unic-pr-review agents declare allowed-tools, which subagents ignore, so they inherit every toolApertaapp:unic-pr-review bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
unic/unic-agents-plugins#537 ·
I maintainer di solito rispondono entro 1 giorno
-
docs needs-triage repo
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
unic/unic-agents-plugins#522 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di unic/unic-agents-plugins
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted Project:Docs workshop
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
mfreed7/xslt_polyfill#65 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno