✳ClaudeModsClaude Code mod 디렉터리
☰
● 0 명 접속 중 · 조회 0 회
+ 프로젝트 제출
← 프로젝트 목록으로
Reddit 게시물 · 사용량 및 비용 / 메모리 및 컨텍스트 / 도구 및 연동 / 워크플로 및 CI

handoff-compact: 자동 핸드오프 및 /clear를 수행하는 Claude Code 모드

autocompact가 트리거될 때 자동으로 핸드오프 문서를 생성하고 컨텍스트를 교체하는 모드로, 수동 handoff + /clear 워크플로를 제거합니다.

sspeciallight@speciallight
번역 완료

이 mod 소개

handoff-compact는 Claude Code autocompact가 트리거될 때 인계하는 모드로, 장시간 무인 세션에서 컨텍스트가 200k를 초과하여 발생하는 높은 비용과 품질 저하 문제를 해결합니다. 내장 요약기를 호출하는 대신 전체 세션 컨텍스트를 분기하여 목표, 상태 및 그 증거, 다음 단계, 결정 및 이유, 제외된 옵션, 미해결 질문, 관련 파일 및 커밋, 검증 명령, 최근 10개 프롬프트 원본을 포함하는 핸드오프 문서를 생성한 다음, 해당 문서로 원래 대화를 교체합니다. 효과는 handoff + /clear와 동일하지만, 동일한 세션 내에서, 턴 중간에, 무인으로 자동 수행됩니다. 저자는 이를 vibe-coded라고 부르며 사용자가 아이디어나 모드를 가져가 자신의 환경에 맞게 커스터마이즈하도록 장려합니다. Claude Code 2.1.287+ 및 mods 활성화가 필요합니다. /compact classic을 사용하면 일회성으로 내장 요약을 얻을 수 있습니다. 저장소는 MIT 라이선스입니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

/plugin marketplace add trytofly94/handoff-compact
/plugin install handoff-compact@handoff-compact
원문 / README

I run a lot of long unattended Claude Code sessions. When I measured them, half of my tokens came from turns where the context was already past 200k. That's expensive, since every step resends the whole context, and quality degrades because of context rot. By hand the fix is the usual routine: ask for a handoff, /clear, feed it back. Enabling autocompact at 200k keeps the context short but leaves little control over what is handed over. I already tried to have Claude Code write handoff documents pre autocompact window with hooks, but with modding the solution gets a LOT better. Handoff-compact answers the autocompact trigger instead of the built-in summarizer. A fork of the session (whole context) writes a handoff-document (goal, state and what proves it, next step, decisions and why, ruled-out approaches, open questions, files and commits, the verify command, the last 10 prompts verbatim), and the conversation is replaced by it. Handoff + /clear, but in the same session, mid-turn, with nobody at the keyboard. Obviously vibe-coded. Take the idea or the mod itself and customize it with your own setup. Modding is awesome. Install: /plugin marketplace add trytofly94/handoff-compact /plugin install handoff-compact@handoff-compact Repo: https://github.com/trytofly94/handoff-compact (MIT). Needs Claude Code 2.1.287+ with mods enabled. "/compact classic" gives you the built-in summary once. submitted by /u/speciallight [link] [comments]

원본 출처 보기 ↗

비슷한 프로젝트