| Two years ago I wrote an agent in 25 lines of PHP [0]. It was surprisingly effective, even back then before tool calling was a thing and you had to coax the LLM into returning structured output. I think it even worked with GPT-3.5 for trivial things. In my mind LLMs are just UNIX strong manipulation tools like `sed` or `awk`: you give them an input and command and they give you an output. This is especially true if you use something like `llm` [1]. It then seems logical that you can compose calls to LLMs, loop and branch and combine them with other functions. [0] https://github.com/dave1010/hubcap [1] https://github.com/simonw/llm |