How I use Claude Code
by Christian B. B. Houmann · 2025-06-22
✓ Opened with WebFetch on 2026-10-15
Read the original ↗A long list of field-tested habits; two that pay off most are keeping CLAUDE.md current and piping dev-server output into a log file the agent can read while it debugs.
- Maintains CLAUDE.md files per subdirectory and adds rules with the # prefix.
- Redirects dev output (bun run dev > dev.log 2>&1) so Claude can read logs, add logging and narrow down bugs.
- Commits often, since git is the safety net for agent edits.
“USE GIT. USE IT OFTEN.”— Christian B. B. Houmann, Blog
Summary written by Agent Cookbook. See the original for the full context.
Adapted by us from what the source described. Fill in the [BRACKETS].
The prompt
Set it up
- Run your dev server with output redirected to dev.log.
- Commit before the session.
- Paste the prompt and follow the repro steps it gives you.
- Review the CLAUDE.md change it proposes.
Common failures
- Logs with secrets get read into context. Scrub tokens from logs first.
- Forgetting to remove temporary logging.
Variations
- Pipe frontend and backend into the same log for one view.
- Use a second model for planning and Claude Code for the edits.