Repository navigation
feat(agents): CLAUDE.md size budget on agent-driven edits (v0.470.0) - #902
Merged
Merged
Conversation
agent_update and agent_propose_update refuse an edit that grows a prompt past 40,000 chars; shrinking is always allowed, humans in the console are uncapped. globex had agents at 400k/98k from append-only self-edits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self-improvement only appends. On globex
onboarding-assistantreached 400k chars (34 self-edits) andqa98k (61), against a fleet median of ~11k, past Claude Code's 150k instruction budget.assessClaudeMdSize(src/state/agent-edit.ts) +CLAUDE_MD_BUDGET = 40_000./api/agents/update): an edit that GROWS the prompt past the budget is refused.confirmRewritedoesn't override it. Dry run reports it.proposeAgentUpdate): checked before any lane, so neither auto-apply nor an approval card waves it through.agent_getand successful edits note ≥80% or over budget. Auditedagent.claudemd.over_budget.Tests:
scripts/agent-edit-guard-test.cjs61/61;test:governance101 suites green.🤖 Generated with Claude Code