mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-01 14:43:28 +08:00
docs: add Claude Code troubleshooting workarounds
This commit is contained in:
@@ -17,7 +17,6 @@ Add to your `~/.claude/settings.json`:
|
||||
"model": "sonnet",
|
||||
"env": {
|
||||
"MAX_THINKING_TOKENS": "10000",
|
||||
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50",
|
||||
"CLAUDE_CODE_SUBAGENT_MODEL": "haiku"
|
||||
}
|
||||
}
|
||||
@@ -29,9 +28,12 @@ Add to your `~/.claude/settings.json`:
|
||||
|---------|---------|-------------|--------|
|
||||
| `model` | opus | **sonnet** | Sonnet handles ~80% of coding tasks well. Switch to Opus with `/model opus` for complex reasoning. ~60% cost reduction. |
|
||||
| `MAX_THINKING_TOKENS` | 31,999 | **10,000** | Extended thinking reserves up to 31,999 output tokens per request for internal reasoning. Reducing this cuts hidden cost by ~70%. Set to `0` to disable for trivial tasks. |
|
||||
| `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` | 95 | **50** | Auto-compaction triggers when context reaches this % of capacity. Default 95% is too late — quality degrades before that. Compacting at 50% keeps sessions healthier. |
|
||||
| `CLAUDE_CODE_SUBAGENT_MODEL` | _(inherits main)_ | **haiku** | Subagents (Task tool) run on this model. Haiku is ~80% cheaper and sufficient for exploration, file reading, and test running. |
|
||||
|
||||
### Community note on auto-compaction overrides
|
||||
|
||||
Some recent Claude Code builds have community reports that `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` can only lower the compaction threshold, which means values below the default may compact earlier instead of later. If that happens in your setup, remove the override and rely on manual `/compact` plus ECC's `strategic-compact` guidance. See [Troubleshooting](./TROUBLESHOOTING.md).
|
||||
|
||||
### Toggling extended thinking
|
||||
|
||||
- **Alt+T** (Windows/Linux) or **Option+T** (macOS) — toggle on/off
|
||||
@@ -130,7 +132,6 @@ The `configure-ecc` install wizard could offer to set these environment variable
|
||||
|
||||
# Environment variables (add to ~/.claude/settings.json "env" block)
|
||||
MAX_THINKING_TOKENS=10000
|
||||
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50
|
||||
CLAUDE_CODE_SUBAGENT_MODEL=haiku
|
||||
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user