aider icon indicating copy to clipboard operation
aider copied to clipboard

Suggestion: Multi Agent (Supervisor/Reviewer agent)

Open overallduka opened this issue 8 months ago • 5 comments

Hello,

Sorry if this is the wrong place to suggest, but I have been using Aider in production for some time now, it's great but it can be even greather if it allows us to add multiple agents or more than 1 layer of answer. Let me explain:

  1. I ask Aider to change an existing class for me
  2. Aider modifies the code
  3. I have to review the code to check if he does not mess up with the current functionality of the code

Well, we will always do the 3rd, but Aider would be even greater if we can add an extra layer of response. Basically, a code reviewer that you can enable or not, how it would work:

  1. Same
  2. Same
  3. Modified code go through the "reviewer agent", the instructions of the reviewer can be custom, I would use something like: "You received a request to do X, please check if your resulting code does as asked, also, please make sure your changes were just the needed to perform the task and nothing outside this scope was modified." - He can emit an opinion like "Reviewer says: The code is OK". (I'm talking about an extra request to GTP or whatever AI)
  4. I review the code but more confident now ;)

The "reviewer" is basically just an extra layer of response, it can be anything, and even can have multi layers that allows the result to be more scrutinized and improved. Ex: I can have an extra layer asking it to improve the performance of the generated code.

I've searched for similar tools with multiple agents, but the only tool that I found that modifies well an existing code base is Aider, AI is going to the path of multi-agents, one that verifies what the previous one did, this suggestion follows this same trend and would be really useful.

Thanks for building Aider s2

overallduka avatar Jun 11 '24 23:06 overallduka