Building a Tiny Coding Agent in Go

I built a small CLI coding agent in Go, following Thorsten Ball’s How to Build an Agent. It runs against the free tier of Gemini (gemini-2.5-flash-lite), so the whole thing costs nothing to play with. The code lives in test-agent. The Agent abstraction has a method to get user input, an api key to call the LLM and a list of tools. The Agentic loop gets textual user input, sends it to the LLM, and displays the output back to the user. ...

June 28, 2026 · 2 min · Bharath