feat(claude): max-context configuration + Heady-optimal hooks/permissions#203
Open
HeadyMe wants to merge 1 commit into
Open
feat(claude): max-context configuration + Heady-optimal hooks/permissions#203HeadyMe wants to merge 1 commit into
HeadyMe wants to merge 1 commit into
Conversation
Extend the Claude Code config for the full 1M-token context window and optimal operation in the Heady ecosystem. The seven Heady agentDefinitions are preserved unchanged. - autoCompactWindow=1000000 + ANTHROPIC_BETAS=context-1m-2025-08-07 - raised output/thinking/MCP token budgets (env) - effortLevel=xhigh, always-thinking, file checkpointing, 90d retention - enableAllProjectMcpServers for the 7-server Heady MCP fleet - permissions: allow Heady dev toolchain; deny-read secrets; block/gate destructive commands - SessionStart + PreToolUse(Bash) guard hooks (shared with heady-context) - CONTEXT_OPTIMIZATION.md documenting every knob
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.
Summary
Extends the Claude Code configuration (
.claude/settings.json) for the full 1M-token context window and Heady-optimal operation. The seven HeadyagentDefinitions(orchestrator, builder, auditor, researcher, observer, deployer, liquid-brain) are preserved unchanged; this PR adds context/permission/hook layers on top.Maximum context
autoCompactWindow: 1000000+env.ANTHROPIC_BETAS=context-1m-2025-08-07— whole 1M window used before summarization (pair with a 1M-capable model, e.g.claude-opus-4-8[1m]).autoCompactEnabled: true— long orchestration sessions summarize at the boundary instead of failing.env:CLAUDE_CODE_MAX_OUTPUT_TOKENS=64000,MAX_THINKING_TOKENS=32000,MAX_MCP_OUTPUT_TOKENS=50000(the 7-server Heady MCP fleet returns large payloads).effortLevel=xhigh, always-thinking + summaries, file checkpointing, 90-day retention.Heady-optimal operation
enableAllProjectMcpServers: true— auto-approves the seven.mcp.jsonHeady servers..env,.heady/**, keys); block/gate destructive commands.SessionStarthook (hooks/session-context.sh) — injects live repo context each session.PreToolUse(Bash)hook (hooks/guard-bash.sh) — hard-denies catastrophic commands; asks before destructive-but-legitimate ones.hooks/pre-commit-check.shis untouched.Verification
Both hooks pipe-tested with realistic payloads (SessionStart JSON valid; guard denies
rm -rf // force-push, asks onDROP TABLE, passes benign commands silently).settings.jsonvalidated withjq; 7agentDefinitionsconfirmed preserved..claude/CONTEXT_OPTIMIZATION.mddocuments every knob (the pre-existing.claude/README.mdis untouched).Notes
The 1M window requires a 1M-capable model; it is intentionally not pinned in committed settings — select per session or in personal
.claude/settings.local.json.https://claude.ai/code/session_016WqBXQGJkjhG9RdAFiL2MZ
Generated by Claude Code