Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

fix(afk-loop): a subagent's rm or heredoc call stops the unattended loop on a confirmation prompt

Aperta Adatta ai principianti
#671 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

bug needs-triage p2 repo

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.md and reviewer-prompt.md state that the subagent deletes no file with rm, 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.md states that the worker passes both rules on, in its own words or verbatim, to the prompt of every subagent it spawns.
  • SKILL.md names the trap: a confirmation prompt under --dangerously-skip-permissions stops the whole loop, not only the subagent that asked.
  • docs/agents/agent-tool-traps.md records the three measured cases above.

Not decided

  • Only rm and a heredoc have been measured. Whether find -delete, git clean or 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di unic/unic-agents-plugins

Tutte le issue di unic/unic-agents-plugins

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.