mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-01 06:23:28 +08:00
fix: cap session-start context injection
This commit is contained in:
committed by
Affaan Mustafa
parent
95bef977c1
commit
b1456bd954
@@ -428,6 +428,12 @@ export ECC_HOOK_PROFILE=standard
|
||||
|
||||
# Comma-separated hook IDs to disable
|
||||
export ECC_DISABLED_HOOKS="pre:bash:tmux-reminder,post:edit:typecheck"
|
||||
|
||||
# Cap SessionStart additional context (default: 8000 chars)
|
||||
export ECC_SESSION_START_MAX_CHARS=4000
|
||||
|
||||
# Disable SessionStart additional context entirely for low-context/local-model setups
|
||||
export ECC_SESSION_START_CONTEXT=off
|
||||
```
|
||||
|
||||
---
|
||||
@@ -1043,7 +1049,7 @@ Official references:
|
||||
<details>
|
||||
<summary><b>My context window is shrinking / Claude is running out of context</b></summary>
|
||||
|
||||
Too many MCP servers eat your context. Each MCP tool description consumes tokens from your 200k window, potentially reducing it to ~70k.
|
||||
Too many MCP servers eat your context. Each MCP tool description consumes tokens from your 200k window, potentially reducing it to ~70k. SessionStart context is capped at 8000 characters by default; lower it with `ECC_SESSION_START_MAX_CHARS=4000` or disable it with `ECC_SESSION_START_CONTEXT=off` for local-model or low-context setups.
|
||||
|
||||
**Fix:** Disable unused MCPs from Claude Code with `/mcp`. Claude Code writes those runtime choices to `~/.claude.json`; `.claude/settings.json` and `.claude/settings.local.json` are not reliable toggles for already-loaded MCP servers.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user