Optimize token usage and context management. Use when sessions feel slow, context is degraded, or you're running out of budget.
76
Quality
70%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/context-optimizer/SKILL.mdManage your context window and token budget effectively.
/context to check current usage| Action | Saves | When |
|---|---|---|
/compact | 30-50% context | At task boundaries |
| Disable unused MCPs | ~5% per MCP | When switching domains |
| Use subagents for exploration | Keeps main context clean | Heavy search/read tasks |
Fresh session via /resume | 100% reset | When starting unrelated work |
Set proactive auto-compaction:
{
"env": {
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"
}
}Keep <10 MCPs enabled, <80 tools total. Each MCP adds overhead to every request.
/mcp # List active servers
# Disable what you're not usingHeavy operations that generate lots of output should go to subagents:
The main session stays clean while subagents handle the volume.
| Phase | Target Usage | Action If Over |
|---|---|---|
| Planning | < 20% | Keep plans concise |
| Implementation | < 60% | Compact between files |
| Testing | < 80% | Delegate to subagent |
| Review | < 90% | Start fresh session |
Signs:
Fix:
/compact/resume57b813b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.