
“It’s an LLM, a loop, and enough tokens.”—Nicolay Gerold, Amp CodeSo why does a coding agent forget your instructions, keep reading tiny pieces of a file, or struggle with an edit another model handles easily?Nicolay Gerold (Amp) joins Hugo to take that loop apart and explain the harness around it: the software that executes tools, manages context, and lets you steer the agent’s work. Nico builds this machinery for Amp, a coding agent that works across software projects.“Every component in a harness is basically an assumption the model can’t do it on its own. This expires over time.”— Nicolay GeroldAmp’s experimental plan mode addressed models that were too eager to edit. Once they could reliably follow an instruction to plan without editing, the team removed the separate mode. Nico describes a similar change with file reading: stronger models could search, filter, and read files through Bash, reducing the need for a dedicated read tool.That gives builders two questions to ask when a model improves: which workarounds can you remove, and what more can you ask it to do? Nico describes pushing stronger models to delegate work and challenge what their sub-agents return. Better judgment makes that delegation more useful, while making some older controls unnecessary.We start with a small agent in Go, then explore Pi, an extensible coding agent, and the decisions behind longer-running work. Building your own makes failures easier to investigate: you can see which instructions survive a summary and whether the agent can inspect the logs and tests it needs. Nico also recommends experimenting with cheaper models, whose mistakes can expose knowledge you’ve left in your head instead of giving to the agent. That understanding stays useful even if you ultimately use someone else’s harness.You can also find the full episode on Spotify, Apple Podcasts, and YouTube.👉 Want to build an agent yourself? Join Build AI Agents from First Principles on September 24, 6–10pm EDT (September 25, 8am–noon Sydney). We’ll start with a single model call and build a working customer-service agent, adding tools and context as we go. You’ll leave with code you can adapt to your own work. Friends of Vanishing Gradients get 10% off with the code NICO10 here.👈“Usually you want to build features that the model is barely able to do right now, but through the increases in intelligence will be able to do easily in the future.”— Nico GeroldIn This Episode* Trace the core loop from a user message to a model’s tool request, the code that executes it, and the result fed into the next call.* Saved sessions, streaming, steering, and cancellation: what Pi adds around the loop, including what should happen to running tools when you hit stop.* Three sources of context, and how repository instructions, development-server logs, and filtered tool results help an agent do its job.* Compaction that loses your instructions, handoff that carries work into a fresh conversation, and why better summaries changed which features Amp needed.* Long plans nobody reads, growing token bills, and the difference between generating a plan and giving a human something useful to review.* Bash versus a dedicated read tool: combining searches and file reads in one call, and the tradeoffs around binary files, restrictions, and line numbers.* String replacement versus patches, and why a tool interface that feels familiar to a model can still lead it into the wrong call.* Recursive language models: using code to inspect tool outputs, where Nico found delegation benefits, and where the context savings disappointed him.* How Nico used agents to build extensions, learned from users’ failures, and turned those failures into evaluation cases… evals for agents!Resources* Nico’s workshop repository: the Go agent, topic explainers, and Pi and Amp extensions used throughout the workshop.* <a target="_blank" href="https://github.com/nicolaygerold/howtobuildacodingagent/blob/main/docs/01-
Podzilla Summary coming soon
Sign up to get notified when the full AI-powered summary is ready.
Free forever for up to 3 podcasts. No credit card required.

The Rise of the AI Scientist

If Developers Build on Chinese Open-Weight Models, Who Leads AI?

Four Months Inside a Production AI Agent: What Real Users Changed

Building an Enterprise AI Agent for Healthcare
Free AI-powered recaps of Vanishing Gradients and your other favorite podcasts, delivered to your inbox.
Free forever for up to 3 podcasts. No credit card required.