Coding Agent with Simon Willison's LLM

Simon Willison released tool calling in his llm CLI. A tool is just a python function. Inspired by Coding agent in 94 lines of Ruby , I wrote a coding agent in Python. Here&rsquo;s the code . aider helpfully explains the various editing formats people use for LLMs: whole returns an entirely new document. diff is a series of search and replace blocks. diff-fenced is like diffs but puts the filename…