The Fix: Route dynamically. Use /model sonnet for 80% of your daily coding. Switch to /model opus only for complex architectural refactors, and drop to /model haiku for rapid formatting.
간단한 regex 질문을 위해 Opus를 사용하면 자본이 연소됩니다. Opus는 Sonnet보다 5배 더 비쌉니다.
수정: 동적으로 경로. 일일 코딩의 80 %에 /model sonnet 를 사용하십시오. 복잡한 건축 리팩터에만 /model opus로 전환하고 빠른 서식을 위해 /model haiku로 드롭합니다.
6. Targeted Compaction
컨텍스트 창이 채워지면 /compact를 실행하는 것은 일반적으로 세션을 요약합니다. 중요한 건축 결정은 즉시 손실됩니다.
수정: 컴팩트를 기계적으로 지시합니다.
The Fix: Direct the compaction mechanically.
/compact preserve all architecture decisions, file paths mentioned, and error messages
7. Persistent Project Memory
프로젝트가 매일 아침 pnpm을 사용한다고 다시 설명하면 워크플로가 끊어집니다.
The Fix: Use /memory add "this project uses pnpm, not npm". This persists locally and is read at the start of every session for that specific project.
8. Cap the MCP Token Bloat
MCP(Model Context Protocol) 서버는 강력하지만, 연결된 각 서버는 턴당 18,000개 이상의 오버헤드 토큰을 로드합니다. 5개의 유휴 서버가 연결되어 있는 경우 프롬프트를 입력하기 전에 90,000개의 토큰을 태우고 있습니다.
The Fix: Run /mcp and aggressively disconnect servers you are not actively using for the current sprint.
Automated Filesystem Hooks
9. Post-Tool Auto-Formatting
Claude가 코드를 작성하고 나중에 Prettier를 수동으로 실행하면 실행 루프가 비효율적입니다.
The Fix: Add a PostToolUse hook in settings.json to automatically format .ts files the moment the agent finishes writing.