Stop wasting context on raw tool output
언제 쓸까: You feel your agent "forget" after 30 minutes and burn $$ on re-reads.
사전 조건
- Claude Code v1.0.33+ —
brew upgrade claude-codeornpm update -g @anthropic-ai/claude-code
흐름
-
Install/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode✓ 복사됨→ Plugin registers hooks + 6 sandbox tools -
Verify/context-mode:ctx-doctor✓ 복사됨→ All checks [x]
-
Use normallyNow do a big task that would normally blow context — e.g. analyze all .log files under /var/log✓ 복사됨→ ctx_execute used instead of raw Read; output indexed not dumped
-
Check savings/context-mode:ctx-stats✓ 복사됨→ Per-tool reduction ratio reported
결과: Same task, 10x longer before compaction, and the agent remembers.
함정
- Other MCPs bypass the routing — Pass their tool calls through ctx_batch_execute for consistent accounting