원시 도구 출력에서 컨텍스트 낭비를 중지하세요.
언제 쓸까: 30분 후에 에이전트가 "잊었다"고 느끼고 다시 읽으면 $$가 소모됩니다.
사전 조건
- 클로드 코드 v1.0.33+ —
brew 업그레이드 claude-code또는npm update -g @anthropic-ai/claude-code
흐름
-
설치하다/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode✓ 복사됨→ Plugin registers hooks + 6 sandbox tools -
확인하다/context-mode:ctx-doctor✓ 복사됨→ All checks [x]
-
정상적으로 사용Now 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
-
절감액 확인/context-mode:ctx-stats✓ 복사됨→ Per-tool reduction ratio reported
결과: 동일한 작업, 압축 전 시간이 10배 더 길어지고 에이전트가 기억합니다.
함정
- Other MCPs bypass the routing — Pass their tool calls through ctx_batch_execute for consistent accounting