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