ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
Reddit 게시물 · 작성자 drkokorev

Context Diet: 거대한 도구 출력이 컨텍스트를 넘치게 하는 것을 방지하는 Claude Code 모드

Context Diet는 Claude가 읽기 전에 큰 도구 출력(테스트 실행, 빌드, diff, 로그)을 잘라내어 실패, 요약 및 관련 구조만 유지하고, 전체 출력을 나중에 검색할 수 있도록 파일에 저장합니다.

번역 완료

이 mod 소개

한 번의 테스트 실행이나 빌드 로그가 Claude의 컨텍스트에 30~50k 문자를 쏟아낼 수 있으며, 거의 대부분은 노이즈입니다: 수천 개의 PASSED 줄, 지원 중단 경고, lockfile diff. 컨텍스트가 가득 차고, 압축이 더 빨리 오고, Claude는 시작할 때 당신이 말한 것을 잊어버립니다.

Context Diet는 Claude가 읽기 전에 모든 큰 출력을 잘라냅니다:

  • 테스트 및 빌드(pytest, jest, go test, cargo, tsc…) → 실패와 요약만
  • JSON → 그 구조
  • diff → lockfile 변동 없이
  • 로그 → 컨텍스트가 있는 오류

전체 출력은 항상 파일에 저장되므로 Claude는 더 필요할 때 읽을 수 있습니다. 보너스: 테스트 실행이 실패하면 Claude Code는 출력의 끝을 잘라내는데, 바로 그곳에 실패가 있습니다. Context Diet가 그것을 돌려줍니다.

18번의 에이전트 실행에서 테스트됨: 동일한 버그 수정, 8번 대신 6번의 도구 호출.

설치:

/plugin marketplace add drkokorev/context-diet /plugin install context-diet@context-diet

https://github.com/drkokorev/context-diet

설치

설치 방법은 원본 출처를 확인하세요.

원문 / README

A single test run or build log can dump 30–50k characters into Claude’s context, almost all of it noise: thousands of PASSED lines, deprecation warnings, lockfile diffs. The context fills up, compaction comes sooner, and Claude forgets what you said at the start. Context Diet trims every big output before Claude reads it: tests and builds (pytest, jest, go test, cargo, tsc…) → only the failures and the summary JSON → its structure, diffs → without lockfile churn, logs → errors with context the full output is always saved to a file, so Claude can read it when it needs more Bonus: when a test run fails, Claude Code cuts the end of the output, exactly where the failures are. Context Diet gives them back. Tested on 18 agent runs: same bugs fixed, 6 tool calls instead of 8. /plugin marketplace add drkokorev/context-diet /plugin install context-diet@context-diet https://github.com/drkokorev/context-diet submitted by /u/drkokorev to r/ClaudeCodeMods [link] [comments]

동명의 다른 작품

비슷한 프로젝트