Two important part that has been left out from the article is 1) service code size, our services are small enough to fit in a context + leave room for implementation of the change. If this is not the case you need to scope it down from 'read the whole service'.
The other part is that our services interact with http apis specified as openapi yaml specs, and the refactoring hopefully doesn't alter their behaviour and specifications. If it was internal apis or libraries where the spec are part of the code that would potentially be touched by the reafctoring I would be less at ease with this kind of approach
The service also have close to 100% test coverage, and this is still essential as the models still do mistakes that wouldn't be caught without them
> …our services interact with http apis…
> …
> …If it was internal apis or libraries…
That reminds me that I wanted to ask you: How good is your agent with complying with your system's architectural patterns?Given my admittedly limited experience with coding agents, I'd expect a fully autonomous agent to have a tendency to do naïve juniory dev stuff.
Like, for example, write code that makes direct calls to your data access layer (i.e., the repository) from your controllers.
Or bypass the façade layer in favor of direct calls from your business services to external services.
FWIW: Those are Java/Spring Boot idioms. I'd have to research whether or not there are parallels in microservices implemented in Go.
In my experience the latest model (Opus 4.6 in this case) are perfectly able to do senior stuff. It's just that they don't do it from the get go, as they will give you the naive junior dev solution as a first draft. But then you can iterate on refactoring later on
> …You don't need to fully explain the
> concept as it probably nows them well…
Unsurprisingly, many would disagree [1]…> 1 Establish a Clear Vision
…
You have experienced the world, and you want to work together with a system that has no experience in this world you live in. Every decision in your project that you don’t take and document will be taken for you by the AI…
> …If you don't measure it, you don't see
> it until something breaks in production…
> …
> …the slow, silent divergence between
> what you intended and what actually exists…
What's your take on the absence of any mention of tests in the OP's loop steps?So, thanks :)