ClaudeHack

#context

12 hacks

  1. 1.

    Keep the root CLAUDE.md short and drop domain-specific CLAUDE.md files under paths like src/db/ so Claude loads them only when it works in that area.

    0 points·13 hours ago·Claude Code / CLAUDE.md·easy·discuss
  2. 2.

    Spin up a subagent for codebase search or verification so only the conclusion returns to your main context.

    0 points·13 hours ago·MCP / Agents·medium·discuss
  3. 3.

    Proactively run `/compact` with focus instructions so summaries keep the work that matters instead of stale debugging.

    0 points·13 hours ago·Context Management·easy·discuss
  4. 4.

    Double-Esc /rewind back to after useful file reads, then re-prompt with what you learned—without the failed approach still in context.

    0 points·13 hours ago·Context Management·easy·discuss
  5. 5.

    Instruct Claude (and yourself) to search with rg/Glob first so giant file reads do not blow the context window.

  6. 6.

    Put domain-specific instructions in path-scoped `.claude/rules/` so they load only when Claude touches matching files.

    0 points·13 hours ago·Claude Code / CLAUDE.md·medium·discuss
  7. 7.

    Trim project memory to under ~200 lines so Claude follows critical rules instead of drowning them in noise.

    0 points·13 hours ago·Claude Code / CLAUDE.md·easy·discuss
  8. 8.

    Run /context to break down token consumers—CLAUDE.md, MCP tools, conversation—and prune the expensive ones.

    0 points·13 hours ago·Context Management·easy·discuss
  9. 9.

    Turn off MCP servers unrelated to the current project—their tool schemas still consume context at session start.

    0 points·13 hours ago·MCP / Agents·easy·discuss
  10. 10.

    Declare a Compact Instructions section in CLAUDE.md so both manual /compact and autocompact preserve the project’s critical decisions by default.

    0 points·13 hours ago·Context Management·easy·discuss
  11. 11.

    Use /clear between unrelated tasks so leftover debugging does not bias the next feature.

    0 points·13 hours ago·Context Management·easy·discuss
  12. 12.

    Use /btw for single-turn clarifications that share full context but never enter conversation history or burn future tokens.

    0 points·13 hours ago·Context Management·easy·discuss