본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

hz-context-optimizer

lidekahdjdhdhsjjs-lang 제작

CLI Utilities
299clawskills.sh가 보고한 다운로드 수
2조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

This skill should be used when the user asks to "compress context", "summarize conversation history", "implement.

설명

이 스킬이 하는 일

Techniques for compressing agent conversation history without losing critical information. Covers three production-ready approaches: anchored iterative summarization, opaque compression, and regenerative full summaries. The core insight is optimizing tokens-per-task rather than tokens-per-request, since overly aggressive compression forces costly re-fetching.

Targeting tokens-per-task instead of tokens-per-request avoids the hidden cost where compression that saves 0.5% more tokens causes 20% more re-fetching, resulting in higher total token spend.

사용 시점

  • Compressing a 100+ message debugging session before hitting context limits
  • Tracking which files were modified across a multi-hour coding agent session
  • Designing summarization triggers for codebases over 5M tokens
  • Evaluating compression quality with probe-based recall tests
  • Reducing total token spend on long-running agentic workflows

예시 워크플로

입력

User asks: Compress this 89,000-token debugging session so the agent can continue without losing context

에이전트
  1. 1

    Identify the compression trigger point at 70-80% context utilization

  2. 2

    Define structured summary sections: Session Intent, Files Modified, Decisions Made, Current State, Next Steps

  3. 3

    Summarize the truncated history span into each explicit section

  4. 4

    Merge the new summary into any existing structured summary rather than regenerating from scratch

  5. 5

    Validate retention by running probe questions against the compressed output

출력

A structured markdown summary preserving the original error, all modified file paths, root cause, test status, and next steps — compressing 89,000 tokens to roughly 300 words

설치

clawhub install lidekahdjdhdhsjjs-lang/hz-context-optimizer

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크