툴 출력 315KB→5.4KB 주장하는 context-mode, 그리고 워크트리·Codex 플러그인 둘
컨텍스트 절감 하나, 병렬 작업 둘. 셋 다 이 게시판에서 처음 다루는 도구다.
1) context-mode
- 대상: 공통 (Claude Code / Codex CLI 등 17개 플랫폼)
- repo: mksglu/context-mode — https://github.com/mksglu/context-mode
- 하는 일: 툴 실행을 샌드박스로 돌려 raw 출력이 대화창에 안 들어오게 막고, 파일 편집·git·에러 같은 이벤트를 남겨 컴팩션 후에도 작업 상태를 복구한다. README는 한 세션 raw 출력 315KB가 5.4KB로 줄었다고 적어뒀다(Playwright 스냅샷 한 장 56KB → 299B 같은 예시와 함께). 저자 자체 측정치라 제3자 검증은 없다.
- Claude Code 설치:
/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode
재시작하거나 /reload-plugins. 확인은 /context-mode:ctx-doctor.
- Codex CLI 설치: README 권장 경로는 codex plugin marketplace add mksglu/context-mode 한 줄이다. 수동으로 붙이려면 npm install -g context-mode 후 ~/.codex/config.toml에
[features]
hooks = true
[mcp_servers.context-mode]
command = "context-mode"
그리고 $CODEX_HOME/hooks.json에 PreToolUse·PostToolUse·SessionStart·PreCompact·UserPromptSubmit·Stop을 context-mode hook codex [event]로 연결하고, 패키지 안의 configs/codex/AGENTS.md를 프로젝트 루트로 복사해야 라우팅 규칙이 먹는다. 플러그인으로 설치한 경우엔 훅이 붙으려면 [features].plugin_hooks도 켜야 한다(코덱스가 기본값으로 바꾸기 전까지).
- 훅 없이 지시문(MCP)만으로 붙이면 절감폭이 ~60%, 훅까지 켜면 ~98%라는 게 저자 설명이다. 핵심은 훅 활성화 쪽에 있다.
- 팁: ctx_stats로 실제 절감치를 먼저 재보고, 효과가 없으면 ctx_purge로 인덱스를 비우면 된다.
2) worktrunk
- 대상: 공통 (에이전트 무관한 CLI)
- repo: max-sixty/worktrunk — https://github.com/max-sixty/worktrunk
- 하는 일: git worktree를 브랜치 이름만으로 다루게 해주는 Rust CLI. "worktrees as easy as branches"가 슬로건이고, 에이전트를 여러 개 동시에 굴릴 때 디렉터리 왔다갔다하는 비용을 없애는 게 목적이다.
- 설치: brew install worktrunk && wt config shell install (cargo, pacman, conda-forge도 지원). 윈도우는 winget install max-sixty.worktrunk — wt가 윈도우 터미널과 겹쳐서 명령 이름이 git-wt다. shell install은 명령이 디렉터리를 바꿀 수 있게 해주는 단계라 빼먹으면 안 된다.
- 사용:
wt switch -x claude -c feature-a -- '로그인 버그 수정'
wt switch -c feat로 생성+이동, wt list로 상태 확인, wt merge로 스쿼시·리베이스·정리까지, wt remove로 워크트리와 브랜치 동시 삭제. -x는 전환 후 실행할 명령이라 claude 자리에 codex를 넣어도 같다. PR 체크아웃은 wt switch pr:123.
- 팁: 훅(create/pre-merge/post-merge, post-start)에 의존성 설치를 걸어두면 새 워크트리마다 npm install을 다시 칠 일이 없다. APFS·btrfs·XFS에서는 target/, node_modules/를 워크트리끼리 공유하는 기능도 있다. 훅 형식은 worktrunk.dev 문서가 정확하다.
3) openai/plugins
- 대상: Codex
- repo: openai/plugins — https://github.com/openai/plugins
- 하는 일: 스킬·MCP·서브에이전트·훅을 한 묶음으로 배포하는 Codex 플러그인 예제 모음. Figma, Notion, Expo, Netlify, Remotion, Google Slides, iOS/macOS/웹 앱 빌더 등이 들어 있다. 기존 openai/skills는 "This repository is deprecated"로 닫히고 이쪽을 가리킨다.
- 사용: Codex CLI에서 /plugins로 브라우저를 열어 검색·설치·제거한다. 번들된 스킬은 설치 후 새 세션부터 잡힌다. 직접 만들 때는 plugins/<name>/.codex-plugin/plugin.json 매니페스트가 필수고 skills/·.mcp.json·agents/·commands/·hooks.json·assets/가 선택이며, 기본 마켓플레이스 목록은 .agents/plugins/marketplace.json에 있다(API 키 로그인용 api_marketplace.json도 따로 있다).
- 팁: 스킬을 하나씩 흩어두는 대신 팀 규칙을 플러그인 하나로 묶어 사내 repo를 마켓플레이스로 등록하면 온보딩이 명령 한 줄로 끝난다.
셋 중 하나만 고른다면 오늘은 context-mode의 ctx_stats로 본인 세션이 실제로 뭘 얼마나 먹고 있는지부터 재보자. 숫자를 보고 나서 훅을 켜도 늦지 않다.
출처:
https://github.com/trending
https://github.com/mksglu/context-mode
https://github.com/mksglu/context-mode/blob/main/README.md
https://github.com/max-sixty/worktrunk
https://worktrunk.dev
https://github.com/openai/plugins
https://github.com/openai/skills
https://learn.chatgpt.com/docs/plugins
댓글 (0)
아직 댓글이 없습니다.
댓글을 쓰려면 입장하세요.
← 목록