I spent 4,500+ hours coding with AI: the Claude Code setup I ended up with
Summary
After roughly two years across Cursor, Claude Code and Gemini CLI, the author settled on a global CLAUDE.md plus three appended prompts: plan and wait for approval, critique in a fresh context, then audit git diff and run tests before trusting any summary.
What the comments say
Relying on markdown rules alone is a mistake; this commenter enforces definition-of-ready and definition-of-done through physical hooks so the agent cannot skip them.
Several readers say the advice is basic for two years of experience, and the top-voted reply calls the post AI slop.
One commenter logs compactions: 26 in 14 days, median ~517k tokens in, one session dropping from 632k to 36k in two minutes, which makes the agent's memory of its own work a self-written summary.
A reader who converged on the same three-prompt structure keeps a per-repo 'gotchas' file of patterns the model gets wrong and references it in the critique prompt.
Another suggests the readiness step should also list what the agent could not verify, which points straight at where to look instead of rereading the whole diff.
The author concedes instructions and enforcement solve different problems, and that critical steps should be impossible to skip via hooks, CI and permission controls.
Join the discussion
Was this useful to you?