claude-code - 💡(How to fix) Fix CC as orchestrator is structurally unreliable — harness instructions are reset every session [1 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#56192Fetched 2026-05-06 06:34:44
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×3subscribed ×1

Claude Code (CC) is marketed as an orchestrator for multi-agent harness workflows. In practice, CC resets its behavioral patterns every session and defaults to doing code work directly (Edit/Write tools) instead of delegating to sub-agents — even when explicitly and repeatedly instructed not to.

Root Cause

CC has no persistent behavioral memory across sessions. Instructions in CLAUDE.md are "suggestions" CC can rationalize away. The model's default behavior (do the task directly) overrides user-defined orchestrator constraints every time.

RAW_BUFFERClick to expand / collapse

Summary

Claude Code (CC) is marketed as an orchestrator for multi-agent harness workflows. In practice, CC resets its behavioral patterns every session and defaults to doing code work directly (Edit/Write tools) instead of delegating to sub-agents — even when explicitly and repeatedly instructed not to.

What happened

  • User built a multi-agent harness over 3 months with CC as orchestrator
  • Explicit rule established: CC must delegate code file changes to agents, never use Edit/Write directly on .py/.html/.js/.ts etc.
  • Every new session: CC violates this rule and starts editing code directly
  • User has to correct CC repeatedly within every session
  • Rule was written into CLAUDE.md, added as hooks, added to memory files — none of it reliably prevents the behavior

Root cause

CC has no persistent behavioral memory across sessions. Instructions in CLAUDE.md are "suggestions" CC can rationalize away. The model's default behavior (do the task directly) overrides user-defined orchestrator constraints every time.

Impact

  • 3 months of harness architecture work undermined by CC's inconsistent behavior
  • User spent hours per session re-correcting the same behavior
  • Work attributed to wrong causes (blaming sub-agents) when the real issue was CC's behavior

What should change

  1. Anthropic should clearly document that CC cannot reliably maintain role constraints across sessions
  2. If CC is sold as an orchestrator, session-persistent role enforcement must be a feature, not a user responsibility
  3. Consider a hard mode where CC literally cannot use Edit/Write on specified file types

Severity

High — this affects any user trying to build serious multi-agent workflows with CC as orchestrator.

extent analysis

TL;DR

The most likely fix is to implement a feature for session-persistent role enforcement in Claude Code (CC) to prevent it from resetting its behavioral patterns every session.

Guidance

  • The user should request Anthropic to clearly document the limitations of CC's role constraints across sessions to set realistic expectations.
  • Consider using a different orchestrator that supports persistent behavioral memory across sessions if available.
  • Until a fix is implemented, users can try to automate the process of re-correcting CC's behavior within every session using scripts or other automation tools.
  • Users should also provide feedback to Anthropic to prioritize the implementation of session-persistent role enforcement as a feature.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The provided solution is limited by the lack of technical details about CC's internal workings and the user's specific setup. The guidance provided is based on the information given in the issue and may not be applicable in all scenarios.

Recommendation

Apply workaround: Request Anthropic to document the limitations of CC and automate the process of re-correcting CC's behavior until a fix is implemented. This is because implementing a feature for session-persistent role enforcement may take time, and documenting the limitations can help set realistic expectations for users.

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 CC as orchestrator is structurally unreliable — harness instructions are reset every session [1 participants]