An LLM Coding Agent in 6 incremental steps and about 140 lines of python

[Refer to LLM Agent in Five Steps for a shorter/simpler version of this tutorial that leverages the llm python module instead of LiteLLM] Updates : 2025-05-06: more detail around tool calling and parameter inspection 2025-06-20: simplify litellm dependency install. In this post I will show you how to create a working LLM coding agent in 6 incremental steps. We will use the python LiteLLM library…