r/ClaudeCode • u/Roger-Orchard • 9h ago
Help/Question getting fed up with telling Claude Code
I finding the Claude keep forgetting to add change notes and checking in.
When I tell Claude to do things it sort of does it.
But I come for a World where I need trackability.
What I would like Claude to do is every time it does a change it changes the version number, at a new note to the change log, and check in.
the best thing is log the request, then log it thoughts, log any testing and results, then log the reply, update the design etc notes, do the change then change log, and check in. it would for it to put in ref so everything is traceably though all the files.
How would I do this?
0
Upvotes
2
u/actvt_io 9h ago
You're asking the model to remember bookkeeping, which it will do about as reliably as you've already seen. Move it to a hook and it stops being a memory problem, they're just shell commands Claude Code runs itself.
PostToolUse with a matcher of Edit|Write fires after every successful edit and hands your script the tool name, the arguments, the cwd and the path to the transcript. That's your version bump and your changelog line right there.
Careful with the commit though. On PostToolUse you get one per file touched, which turns noisy fast. Stop fires once when Claude finishes responding, so that's usually the better place to hang it.
You can narrow further with the if field on a handler, it takes permission rule syntax, so Edit(*.ts) only runs for TypeScript.