Home-rolled loop agent is surprisingly effective

Posted by DeltaSqueezer@reddit | LocalLLaMA | View on Reddit | 28 comments

Home-rolled loop agent is surprisingly effective

I created a small demo to illustrate how agents work compared to a standard chat bot.

Afterwards, I played with the simple loop and added 5 tools: grep, glob, read_file, write_file, edit_file and gave it a code editing task to see how it fared with no system prompt or other guidance.

Remarkably, this minimal harness not only managed to complete the task, it was able to do it quickly using small local models. The absence of massive prompts and safeguards also made it very fast.

I didn't expect something this crude to work so well, but it did. I encourage those interested to try rolling your own and you may be surprised by how effective it is.