Maybe try forcing it to properly plan ahead, break it down into small steps, and ask you to approve the plan.
Of course add a CLAUDE.md, put clear development guidelines into it, let it verify the git changes he did against this guidelines and of course things like a lint.
It will go off rails, especially after compaction, but you can make it correct mistakes on it's own.
Comments
Maybe try forcing it to properly plan ahead, break it down into small steps, and ask you to approve the plan.
Of course add a CLAUDE.md, put clear development guidelines into it, let it verify the git changes he did against this guidelines and of course things like a lint.
It will go off rails, especially after compaction, but you can make it correct mistakes on it's own.