Back to directory

Build Your Own Coding Agent via a Step-by-Step Workshop

A hands-on workshop that teaches developers to build a coding agent in Go, one step at a time, starting from a basic chatbot and adding file reading, command execution and code search.

Build Your Own Coding Agent via a Step-by-Step Workshop

This is a workshop that walks through building six versions of a coding assistant, each adding one capability: a basic chat with Claude, a file reader, a file explorer, a shell command runner, a file editor, and code search across a codebase.

Each version follows the same loop: it waits for input, sends it to Claude, and Claude either answers directly or asks to use a tool; the agent runs the requested tool, such as reading a file, and sends the result back to Claude for a final answer. The material calls this the agent's 'event loop'.

It is written in Go, requires Go 1.24.2 or newer (or a devenv shell) and an Anthropic API key, with no license stated in the material's facts.

More in Tutorials

See all 478
  • BootLife

    github.com

    Conway's Game of Life implemented to run directly from a 512-byte x86 boot sector in assembly, using VGA memory itself as the simulation grid.

  • A technical blog post deriving the Y combinator as a composition of combinator birds in an array language, and examining how eager evaluation changes fixed-point recursion compared with the usual lazy telling.

  • System Design Atlas

    atlas-sysdes.vercel.app

    A free reference of worked system design problems with interactive architecture diagrams, covering ranked designs such as a feed, a chat app, a URL shortener, and a rate limiter, plus pages on the technologies behind them.