BuilderIO / micro-agent

An AI agent that writes (actually useful) code for you
https://www.builder.io/blog/micro-agent
MIT License
2.61k stars 206 forks source link

Add logs when stuck #33

Closed steve8708 closed 2 months ago

steve8708 commented 2 months ago

Currently, we detect when the agent gets stuck and abort

It would be great instead to

  1. check with the LLM if it is stuck because of a bad test command, or just the same test failure on repeat
  2. if ti is test failure on repeat - instruct the LLM to add logs to the code and set an internal flag that this was set

the idea is, with some logs, perhaps this will help the AI see more info and get unstuck just like a human

then, if the flag is on, at the end tell the AI to remove the logs from the code before fully finishing