[Bug] Bypass permissions not inherited by subagents; autonomous execution stalls on prompts and memory over-persists

Aperta
#112,797 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
ai-infra-agents, typescript

Direzione di ricerca

The payload names no files, tests or entry points, so start by locating where subagents resolve their permission mode in the codebase and where automatic memory writes are made. The issue bundles three separate design questions (permission inheritance, unattended stalling including /goal, and memory scope), so a first contributor should first ask a maintainer which one to take. Done would be a single scoped behaviour change with a test that shows it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:agents area:permissions bug memory platform:linux

Bug Description

Claude Code: Unattended execution, permission propagation, and memory scope failures

Claude Code has several fundamental problems that make long-running autonomous workflows unnecessarily unreliable. These are not requests for additional features so much as requests for existing features to behave consistently.

1. Bypass permissions must propagate to subagents

Despite running Claude Code in bypass permissions mode, background subagents repeatedly request approval for ordinary file-editing commands, including edits inside their own worktrees.

During my latest session, this wasted over three hours. The parent agent could identify the blocked subagent but could neither approve the operation nor effectively resolve the situation.

Bypass should mean bypass throughout the entire agent hierarchy. Subagents should inherit the effective permissions of their parent unless explicitly configured otherwise.

Automatically denying these operations instead of prompting is not a satisfactory solution. I selected bypass precisely because I want these operations to execute without intervention, not because I want them rejected.

2. Autonomous execution must not depend on human availability

When running an agent unattended, neither the main agent nor any subagent should be able to indefinitely stall execution by asking a question.

The expected behavior is straightforward:

  • Make reasonable autonomous decisions within the existing authorization and task constraints.
  • If a question genuinely requires human input, defer the affected work and continue independent tasks.
  • Surface unresolved questions asynchronously, without blocking the entire execution.
  • If absolutely nothing remains executable, report the blocker and suspend cleanly.

This also applies to /goal. In my latest session, the goal evaluator repeatedly challenged the main agent's correct interpretation of an explicit instruction, eventually forcing it to ask me to confirm something I had already clearly stated.

An autonomous execution mode that repeatedly requires human intervention defeats its own purpose.

3. Automatic memory needs temporal scope and authority awareness

Automatic memory is a valuable feature. However, Claude repeatedly promotes temporary decisions, isolated observations, and its own conclusions into permanent instructions.

Two examples from the same session:

  • Claude invented a quota-allocation policy and saved it as persistent delegation guidance without my authorization.
  • After I explicitly corrected this behavior, Claude saved my instruction to use only Claude until the upcoming quota reset as another permanent memory.

A decision concerning the next few hours should not influence unrelated sessions weeks later. Similarly, an agent's retrospective assessment should not acquire the authority of a user instruction merely because it was written into memory.

The memory system needs to distinguish between:

  • Durable user preferences and instructions.
  • Persistent project decisions.
  • Temporary session-specific constraints.
  • Current operational state, including quotas and deadlines.
  • Agent-generated observations, hypotheses, and lessons.

These categories have different lifetimes and levels of authority. They should not be treated as interchangeable.

Disabling automatic memory entirely is not a solution. I want useful persistent memory without continuously having to audit and remove inappropriate entries.

Conclusion

I use Claude Code extensively for multi-agent, long-running engineering workflows. These issues directly undermine its value as an autonomous agent, regardless of the underlying model's capabilities.

Please treat authorization, human interaction requirements, and memory persistence as independent concerns with explicit, consistent semantics.

Users should not have to choose between useful memory and context corruption, between bypass permissions and rejected operations, or between autonomous execution and hours of silent inactivity.

Environment Info

  • Platform: linux
  • Terminal: herdr
  • Version: 2.1.327
  • Feedback ID: dd27ef6d-b9bd-4602-a3f2-468770b8e826
Lingua principale
TypeScript
Stelle
157k
Fork
25.1k
Merge medio
20h 25m
PR unite (30g)
4

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 anthropics/claude-code

Tutte le issue di anthropics/claude-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.