token-optimization
Installation
SKILL.md
Token optimization
Two env vars
export CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70
export MAX_THINKING_TOKENS=16000
Patterns
- Read with offset/limit, not whole files
- Grep before Read
- Compact at phase transitions
- Don't leave prompts cold > 5min (cache TTL)
- Separate sessions: routine vs. complex