Ask your manager how they get humans to do those things, and copy that process.
So, get a bug tracker, track those bugs, tell Claude to pick tasks off it etc.
I'm not claiming this actually works, I've not tried it, I don't know how good it is for large brownfield projects, but that's the general sentiment I see.
I've tried it. It can work. My prompt was "Use the gh commandline tool to get the issues for the current repository, and work on them in order, with bugs taking priority."
Elsewhere there are steps for how to develop: 1. Create new branch for the feature you are working on; 2. implement the feature fully, thinking hard when you need to (toolcall think(low, med, high) switches the reasoning level);
That said, it also failed a lot.