What the source did
- 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 from the original post. See the original for the full context. How we source recipes
Our notes
- What it takes
- Dev server output redirected to a log file (his example: bun run dev > dev.log 2>&1; frontend and backend can share one file), CLAUDE.md files in subdirectories for tests, frontend and backend, and rules added with the # prefix. Commit often: he notes you can't just reverse Claude's last edits, so git is the safety net.
- Where it breaks
- Long sessions losing context: he warns compacting throws away important context, so compact at natural stopping points or start a new session. His background-task flags don't mix with log reading yet, because Claude Code can't get the logs of a job forced to the background. External context such as GitHub issues can carry prompt injection.
- Human checkpoint
- You test manually when Claude prompts you, or let it write test scripts. In production code, review what it wrote yourself, and commit often so you can roll back.
- Tools involved
- Claude Code, git
✓ Verified Source link checked and still live. Notes by Thomas, editor. How we verify
Copy the prompt
Ours Our version, based on what Christian B. B. Houmann described. Not their wording. Fill in the [BRACKETS].
Approval rule
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.
Get the 10 best agent setups. Free.
Plus new recipes every week. One email, no spam.
Unsubscribe anytime. Privacy