a day ago
- Claude Code is a CLI tool that runs Claude in an agentic loop, using filesystem commands like cat, grep, sed, and find, offering transparency without magic.
- Improve rule-following by starting every session with 'read CLAUDE.md' and including its entire content in every response to enforce adherence.
- Enhance context gathering with a workflow: list source files, use ripgrep to find definitions, expand context iteratively until all relevant code is identified.
- Cache context in claude/ directory by generating comprehensive guides for topics, and update them after changes to fix inaccuracies or outdated info.
- Avoid context compaction by breaking large changes into smaller sessions; if context runs out, ask Claude to document what it learned and start fresh.
- Automate workflows via CLAUDE.md and custom slash commands, storing step-by-step instructions in claude/workflows/ and having Claude announce each step.
- Run multiple Claude instances in parallel using separate folders or git worktrees to work on independent tasks without interfering.
- For difficult problems, have Claude produce a context document and ask a smarter model (e.g., o1-pro, o3) for a detailed implementation guide to feed back to Claude.
- Use o3 to create tutorials for obscure libraries or frameworks, storing them in claude/tutorials/ for reuse.
- Future improvements include custom MCP tools, stackful workflows with branching and variables, sub-claude invocations, and whole-codebase scans with cheap models.