Hello,
I’m trying to refactor and improve some legacy code by using agents: my idea was to have a Crew identify how to improve the code and rewrite it to be more extensible.
I was pretty successful in getting to generate a good decomposition of responsabilities and create some skeleton code of all the classes and methods to be implemented but I’m now stuck trying to figure out the best strategy to generate not only the skeleton but runnable code: I tried to generate one full file in a single shot and, whereas it succeed for smaller files, it usually fails because of the LLM context being too small. Is there any strategy and/or suggestion about how I might be trying to solve this?