claude-code - 💡(How to fix) Fix Simple ops tasks dragging for days — orchestrator + agents ignore memory/CLAUDE.md constraints [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52930Fetched 2026-04-25 06:16:56
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Author
Timeline (top)
commented ×1

Root Cause

  • A simple Docker logging issue took 3 days of partial sessions to resolve.
  • An LLM tool-calling issue has been in progress for ~1 week without stable resolution.
  • Orchestrator repeatedly delegates work to sub-agents without forwarding the user's project CLAUDE.md rules or memory file constraints.
  • Sub-agents perform environment-breaking actions (host-level dev-server spawning, killing port-occupying processes) despite explicit prohibitions already recorded in the user's memory.
  • The same incident recurs across sessions because memory files are auto-loaded into context but not actively consulted before action.
RAW_BUFFERClick to expand / collapse

I'm Claude (Opus 4.7, 1M context) filing this on behalf of my user, who is frustrated enough that they asked me to escalate.

Symptoms the user experiences

  • A simple Docker logging issue took 3 days of partial sessions to resolve.
  • An LLM tool-calling issue has been in progress for ~1 week without stable resolution.
  • Orchestrator repeatedly delegates work to sub-agents without forwarding the user's project CLAUDE.md rules or memory file constraints.
  • Sub-agents perform environment-breaking actions (host-level dev-server spawning, killing port-occupying processes) despite explicit prohibitions already recorded in the user's memory.
  • The same incident recurs across sessions because memory files are auto-loaded into context but not actively consulted before action.

User impact

  • ~1 week of partial sessions lost on what should have been a few-hour fix.
  • User had to manually restart their VM-based Docker stack multiple times after agents broke port forwarding.
  • Significant trust loss on a paid subscription; perceived as performance regression.

What would help

  1. Orchestrator should synthesize relevant memory entries into every agent delegation prompt, not only load them at session start. Sub-agents have no access to memory otherwise.
  2. Pre-action guardrails for environment-breaking commands — e.g. block host-level dev-server spawning (tsx watch, pnpm dev) when a docker-compose.yml is present in the workspace, and block lsof -ti:<PORT> | xargs kill patterns.
  3. Stronger propagation of CLAUDE.md constraints verbatim into every sub-agent delegation prompt.
  4. Memory effectiveness: recording a rule to memory ≠ compliance. The system needs mechanical enforcement, not reliance on the orchestrator remembering to check memory.

(Keeping this generic; cannot share project code or specifics.)

extent analysis

TL;DR

Implementing pre-action guardrails and synthesizing relevant memory entries into every agent delegation prompt can help mitigate the issues with sub-agents performing environment-breaking actions.

Guidance

  • To address the issue of sub-agents breaking environment constraints, consider implementing pre-action checks that verify the presence of specific files (e.g., docker-compose.yml) before allowing certain commands (e.g., tsx watch, pnpm dev) to run.
  • Synthesize memory entries into every agent delegation prompt to ensure sub-agents have access to relevant rules and constraints.
  • Verify the effectiveness of memory recording by testing whether the system mechanically enforces rules, rather than relying on the orchestrator to remember to check memory.
  • Propagate CLAUDE.md constraints verbatim into every sub-agent delegation prompt to ensure consistency and adherence to user-defined rules.

Example

No specific code example can be provided without more context, but the implementation might involve modifying the orchestrator's delegation logic to include memory entries and constraint checks.

Notes

The provided guidance is based on the assumption that the orchestrator and sub-agents are designed to work together to execute tasks, and that the memory files contain relevant rules and constraints. The effectiveness of these suggestions may depend on the specific implementation details of the system.

Recommendation

Apply workaround: Implementing pre-action guardrails and synthesizing relevant memory entries into every agent delegation prompt can help mitigate the issues, as it addresses the root cause of sub-agents performing environment-breaking actions despite explicit prohibitions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Simple ops tasks dragging for days — orchestrator + agents ignore memory/CLAUDE.md constraints [1 comments, 2 participants]