How to Build a Coding Agent with Nico (Amp Code) artwork

How to Build a Coding Agent with Nico (Amp Code)

Vanishing Gradients

September 15, 2026

“It’s an LLM, a loop, and enough tokens.” —Nicolay Gerold, Amp Code So why does a coding agent forget your instructions, keep reading tiny pieces of a file, or struggle with an edit another model handles easily?

0:00

Nicolay Gerold

It's an LLM, a loop and enough tokens. I think Thorsten put out this now godlike article at the beginning when this whole arc started, which is how to build an agent, the emperor has no clothes, that it's basically, it's very simple, how it works below the hood. And it's basically just a loop, an array, and tool execution, and that's it.

0:23

Hugo Bowne-Anderson

That was Nicolay Gerold, who builds the harness behind Amp Code. So if the core of a coding agent is that simple, what on earth goes into making it work well?

0:35

Nicolay Gerold

For me, harness engineering is basically context engineering, but for both the user and the agent. So you want to give the user and the agent the tools to actually pull in good context and avoid bad context, and that's everything. And if you look at the core loop, everything that ends up in conversations is basically one of three types of context.

0:55

Hugo Bowne-Anderson

So Nico is back on Vanishing Gradients, and this time we're taking a coding agent apart so you can understand how to build one yourself. We start with a model, a conversation and a few tools, then work through the engineering that lets an agent keep working as that conversation grows. And even if you never ship your own coding agent, understanding these mechanics will help you use one better. When an agent forgets your instructions, keeps reading tiny pieces of a file, or struggles to edit your code, you'll have a better idea of what to investigate and what to change. Nico walks us through how agents preserve context, why the same editing tool can work well for one model and trip up another, and why Amp removed, a dedicated file-reading tool for its stronger models.

Could you give an agent a shell and let it figure out the rest? Also stick around for Nico's advice on learning with cheaper models. A weaker model can expose instructions you've left out and assumptions you've never actually explained to your agent. We recorded this workshop a couple of months ago, and some of the ideas have already moved further. Codex is experimenting with letting agents keep notes and search back through their earlier work, and Amp has added ways for agents on different machines to share work with each other. Wow!

Nico also gives you the foundations for understanding how all of this works. We're sharing the screen throughout, as it was a workshop, but we explain everything as we go. If you'd like to see what we're sharing, check out the YouTube video and Nico's companion repository with the code, diagrams, and examples. Both are linked in the show notes, and you can point your own coding agent at the repository to explore it with you. We also live stream many of these conversations and run free workshops. We would love you to join. Check out the Vanishing Gradients Luma calendar, subscribe to the Substack newsletter and YouTube channel, and you'll find all the links in the show notes. If you enjoy the show, the best way to support it is to share this episode with a friend or colleague who you think would get something out of it.

If you want to build an agent yourself, I'm teaching Build AI Agents from First Principles on September 24 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 the code and a better understanding of how to design your own. There's a registration link and a special 10 percent discount for friends of Vanishing Gradients in the show notes. I'm Hugo Bowne Anderson, and welcome back to Vanishing Gradients.

3:11

Nicolay Gerold

All right.

3:11

Hugo Bowne-Anderson

Okay, everybody, it's Hugo Bowne Anderson here. I'm very excited to be joined today by Nicolay Gerold from Amp Code. This is the repository which is shared in Discord as well, that Nico set up, How to Build a Coding Agent. Okay. So the real idea, of course, is that an LLM will predict the next token from its training, pre-training, post-training, of course, and context. And you don't worry about the weights, right? So the entire output is a function of the input. The prompt plus every tool result, the agent pulls into its window, and context engineering is deciding what goes into that window.

3:46

Nicolay Gerold

Yeah, I think if you think about coding agents, I think by now they're all about the context. And this is something I have to remind myself constantly.

All that the LLMs are basically seeing is just a blob of text, nothing else. And the entire behavior is based on that. And all the tool calls, all the assistant and user messages is just basically semantics that we have taught the model through fine-tuning, through supervised fine-tuning or through RLHF. And through that, it learned the behavior of like, just through basically a very simple method, which is basically next token prediction. And this also means like the entire behavior is determined by the input. So by the context that you have in the context window right now. And by that or through that, you basically want to have a very high-quality context at all times that actually gives you the relevant input so the model can constantly make good decisions.

Read the other 95 minutes of this episode here.

$15 gets you this episode and 99 more. Credits never expire. After checkout, one link brings you back here to read it.

Not what you expected? Full refund within 14 days.

Thousands of transcripts fetched by people building searchable podcast archives

Fetch transcripts with code

The same credits work from a script or an AI agent. The demo key returns a sample episode in full, no card needed:

request
curl -H "x-api-key: pt_demo" \
  https://spoken.md/transcripts/1000651996090

Markdown with the speakers named, for your notes, your knowledge base, or anything that makes HTTP calls.

From $0.10 per transcript. No subscription. Credits never expire. Prices exclude VAT, added at checkout for EU customers. Not what you expected? Email us within 14 days with 20 or fewer credits used and we refund the pack in full.

Using your own key:

request
curl -H "x-api-key: YOUR_KEY" \
  https://spoken.md/transcripts/1000789735426