Start here

Four reading paths through the site, each an ordered list of guides, for learning how agents work, for shipping one at work, for leading a team that builds them, and for the Go an agent depends on.

This site is for Go developers who want to build AI agents and understand what happens inside them. It assumes you can write and run Go code; nothing about models or machine learning is assumed, and none of the examples needs an API key. New to Go? Finish the Tour of Go first; Getting set up lists what to brush up on.

Pick the path that matches why you’re here; every guide on it links to the next step.

Learning how agents work

For a Go developer who has never built an agent: set up, make a first model call, build an agent from scratch, then learn what it costs, how to design its tools, and how to test it. If a guide’s Go is unfamiliar, the Go underneath path covers the parts it uses.

Shipping an agent at work

For an engineer who knows the loop and has a deadline: decide between a workflow and an agent, then work down the launch checklist, one guide per item.

Leading a team

For whoever decides whether a team spends its time here: what the work costs, what the team ends up able to build, the risks and how they’re handled, and what’s left out, mostly without code.

The Go underneath

For a Go developer who knows the language from the Tour and wants the parts an agent depends on: interfaces and generics, cancellation, errors, JSON, HTTP, streams, concurrency, and files, each shown in tested agent code.

Phase 1

How the parts fit

Small interfaces, wrappers around them, and tools typed by their arguments: the shapes the rest of the code is built from.

  1. Interfaces and genericsThe shapes the rest of the code is built from: one-method interfaces, wrappers, and tools typed by their arguments.

Phase 5

Touching the machine

Running commands and reading files without letting a model escape its workspace.

  1. Commands and filesRun go test so it stops when told, keeps your keys, and reports what failed; keep file tools inside one directory.

Going further

On a terrace at the top of the stairs, the kneeling Ghost, a stone android, holds the Gopher on its open palm, the Gopher's clipboard fully ticked, beside a lantern, with lit towers and stairs far below.

The paths are the shortest routes through the site. When you finish one, these guides go further, grouped by subject:

All guides lists every page, filtered by the stage of the loop you’re working on.

Browsing instead

To look something up instead of following a path, start at All guides: every guide on the site, grouped by section, with its skill level, and a filter that shows the guides for one stage of the loop first. Each section in the header collects the guides on one subject, search finds a page by its title or headings, and the glossary defines the vocabulary. Every runnable program is listed in Examples, with the command that runs it offline.