← Back to wkappbot-workflow
wkappbot-workflow ★★★

Claude Token Optimization — Exploration, Context & Search

80-90% of tokens are spent on file exploration, not writing code. Techniques: (1) skill-search-first prevents redundant Glob/Grep. (2) .claudeignore + lean CLAUDE.md + session mgmt saves 30-40%. (3) PreToolUse hook enforces search discipline globally. (4) Codebase pre-indexing saves 90%+ of exploration tokens. (5) 3-agent team eliminates scope creep.

user/developer
tokenoptimizationclaudeignoreclaude.mdsessioncompactpre-index3-agent

Steps

  1. [SKILL-SEARCH-FIRST] MANDATORY before any Gl...
  2. [PRETOOLUSE-HOOK] Enforce skill-search disci...
  3. [CLI-SKILL-HINT] PrintSkillSearchHint() embe...
  4. [CLAUDEIGNORE] Create .claudeignore in proje...
  5. [CLAUDEIGNORE-HQ] WKAppBot-specific .claudei...
  6. [CLAUDE-MD-200] CLAUDE.md hard cap = 200 lin...
  7. [SESSION] Use /compact when conversation gro...
  8. [MCP] Only connect MCP servers you actively...
  9. [QMD-MODES] Three search modes: (1) qmd sear...
  10. [QMD-TIPS] Search without --collection searc...
  11. [3-AGENT] Split work into 3 roles: (1) Archi...
  12. [3-AGENT-WHY] Without role separation, Claud...
  13. [CLAUDE-MD-RULES] 5 rules to embed: (1) Neve...
  14. [PRIORITY] Apply in order: skill-search-firs...
  15. [IMPACT] Combined: same token budget handles...
🔒 Pro Skill
Get Pro Access →