Marshall · Agentic Engineering

Friday, 4 December 2026Agentic Engineering

How coding agents work, and how we want to work with them.
The material

Everything from today is on one site

Scan the code, or open the link. The first page links to every file.
  • The slides presentation.html
  • Breakout instructions 03-breakout.md · 06-breakout.md
  • Templates pr.md · adr.md · ai-policy.md
  • The 98-line coding agent from block 01 loop.ts
Scan for marshall.nettelbladt.dev
Why this day
“Attention Is All You Need”
In 2017, a few researchers at Google figured out that attention is all you need. A few years later, our profession is changing faster than any of us could have expected. Today we stop and talk about where we are, where we want to go, and how to get there.
Vaswani et al., “Attention Is All You Need”, NeurIPS 2017 · arxiv.org/abs/1706.03762
Calibration

Where is Marshall today?

  1. Who here uses a coding agent: Claude Code, Codex, Copilot?
  2. How much of your code is written by AI?
  3. What is going well?
  4. What are you struggling with?
We collect, we do not debate. The answers stay on the whiteboard all day.
Our approach

How it works, not how to use it

Stable
How it works
A model, a system prompt, tools, and a loop. Understand that, and you have what you need to take on the latest agentic tools.
Changes
How to use it
As models get more capable, the way we use agentic tools changes. You know your domain and your constraints, and how to evolve with them.
Goals for today

What we want from today

1 · Understand
How a coding agent works
The inner workings of coding agents: what makes them tick, and what makes them loop.
2 · Shape
Make the agent do what you need
The context, instructions, and tools that you control, and how they change what the agent does.
3 · Decide
How Marshall works with agents
Define together how you want to use coding agents as a team at Marshall.
Agenda · Friday, 4 December

The day

09:00–09:15
Welcome and introduction
13:00–13:45
Beyond individual productivity
09:15–10:15
The fundamentals
13:45–14:30
Engineering for quality at scale
10:15–10:30
Coffee break
14:30–14:45
Afternoon coffee break
10:30–11:30
Building blocks of agents
14:45–15:45
Breakout #2What do we owe each other when we use AI?
11:30–12:15
Breakout #1What does the agent need to know?
15:45–16:30
Joint reflections and next steps
12:15–13:00
Lunch
The agenda is dynamic. We go where you take it: let your questions drive the day.
01 · The fundamentals

while (true) { … }Inside a coding agent

Understand the building blocks of coding agents from first principles.
01 · The fundamentals

What you will learn

1
Trace what a coding agent does
Follow a task from the first request through the replies of the model, the tool calls, and the next steps in the agent loop.
2
Shape the context of the agent
Explain what the model sees on each request: the system prompt, the instructions, the tool definitions, and the conversation history. Name the parts that you control.
With that knowledge you can evaluate agentic tools and adapt your workflows as software engineering changes.
Claude CodeClaude Code
Codex (OpenAI)Codex
GitHub Copilot
OpenCode
PiPi
Hermes
What is a coding harness?
The harness is the program around the model.
It sends the conversation to the model, runs the tools that the model asks for, and sends the results back.
In practice: a system prompt, tools, and a loop
We will look inside a complete coding harness in 98 lines.
How we got here

Four years from autocomplete to agents

2021
Autocomplete
GitHub Copilot technical preview, built on OpenAI Codex. It predicts the next line from the open file and nothing else.
sees one file · suggests
2022–23
Copy-paste chat
ChatGPT, then GPT-4 and function calling. You paste code and errors in, and carry answers back by hand. SWE-bench 2023: the best model fixed 2% of real GitHub issues.
sees what you paste · you are the loop
2024
Context and reasoning
Cursor and IDE chat pull the repo in. Devin and SWE-agent show an agent with a shell. o1 learns to think before it answers.
sees the repo · still cannot act
Feb 2025
The loop closes
Claude Code research preview with Claude 3.7 Sonnet. Copilot agent mode the same month. A terminal agent that reads, edits, runs the tests, and commits.
read · edit · bash · repeat
Autumn 2025 →
It actually works
Sonnet 4.5, Opus 4.5, GPT-5-Codex. Today: Fable 5.2, GPT-6.2 Astra, Gemini 4 Neon, Kimi K3. Models trained inside the loop, not just prompted into it. Tasks that take hours, checked by running the code.
runs it · reads the error · fixes it
Composition

A harness is three parts around a model

+
The model
The part that you do not control. It is trained to work as a coding agent. The harness reaches it with one stateless HTTP call to a provider. The next slide shows that call.
1
The system prompt
Tells the model where it is, what it can do, and how to ask for it.
2
The tools
Capabilities that the harness offers. The model chooses a tool, and the harness runs it.
3
The loop
Send the conversation, run the tool that the model asks for, send the result back. Repeat until a reply has no tool call.
Agent = Model + Harness. The model supplies the intelligence. The harness supplies the environment.
The protocol · the provider, part 1

A conversation with a model is one stateless HTTP call

Request · POST /v1/chat/completions
{ "model": "deepseek/deepseek-v4-flash", "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Hello" } ] }
Response
{ "choices": [ { "message": { "role": "assistant", "content": "Hi! How can I help?" } } ] }
The API keeps no state. The harness sends the full conversation on each request.
The protocol · the provider, part 2

The whole provider is one function sendMessages()

async function sendMessages(conversation: Message[]) { const response = await fetch("https://openrouter.ai/api/v1/chat/completions", { method: "POST", headers: { "Authorization": `Bearer ${process.env["OPENROUTER_API_KEY"]!}`, "Content-Type": "application/json", }, body: JSON.stringify({ model: "deepseek/deepseek-v4-flash", max_tokens: 4000, messages: conversation, }), }); const data = await response.json() return data.choices[0].message.content; }
This is the request from the previous slide in a function: one fetch, one bearer token, one JSON body.
Building block 1 · The system prompt

Anatomy of a system prompt

This harness: the whole prompt, about 130 words
identity
You are a coding assistant operating inside a coding agent harness. Help users inspect files, run commands, and modify code.
tool docs
<tools> - read: Read a file's contents. Arguments: { "path": string }. - write: Create or overwrite a file. … - edit: Replace exact text in a file. … - bash: Run a shell command. …
format of a tool call
When you want to use a tool, reply with exactly one line in the format: tool: NAME({"arg": "value"})
guidelines
Use compact single-line JSON with double quotes. After you receive a tool_result(...) message, continue the task. If no tool is needed, just respond normally with your answer. </tools>
environment
<cwd> /home/you/tech-evo-ai-masterclass </cwd>
In production (Claude Code): the same skeleton, three layers
System prompt the system field
identity and safety · harness mechanics · task guidelines · tone · memory · environment
Tool definitions the tools field
About 10 tools, each with prose and a JSON Schema. More than half of the total size. MCP servers land here too.
First user message <system-reminder> blocks
project instructions (AGENTS.md, CLAUDE.md) · the names and descriptions of skills · the date. These are not in the system prompt at all.
Pi builds its prompt from tagged sections in the same way. The starter uses <tools> and <cwd>.
Building block 1 · The system prompt

System prompts in the wild words that the harness sends before you type

This harness
~130
OpenCode base prompt
~150
Pi
~280
Codex base prompt
~3,400
GitHub Copilot CLI v1.0.76 · system message
more than 6,000
Claude Code v2.1.112 · April 2026
4,059
5,630
530
system prompt tool definitions first user message 10,227 words in total
The same skeleton, from about 130 words to more than 10,000. Word counts from November 2026.
Building block 2 · The tools

The tools the least that a coding harness needs, with their implementations

const tools: Record<string, (input: any) => Promise<string>> = {
read
read the contents of a file
read: ({ path }) => readFile(path, "utf8"),
write
create or overwrite a file
write: async ({ path, content }) => { await mkdir(dirname(path), { recursive: true }); await writeFile(path, content, "utf8"); return `write: wrote ${content.length} bytes to ${path}`; },
edit
replace exact text in a file
edit: async ({ path, oldText, newText }) => { const content = await readFile(path, "utf8"); await writeFile(path, content.replace(oldText, newText), "utf8"); return `edit: updated ${path}`; },
bash
run a shell command
bash: ({ command }) => new Promise((resolve) => { exec(command, (_error, stdout, stderr) => { resolve(`${stdout}${stderr}`.trim() || "(no output)"); }); }),
A tool is a function from arguments to text. With bash, the agent can change every file that your user account can change.
Building block 2 · The tools

A tool call is one line of text

1The system prompt describes the format
When you want to use a tool, reply with exactly one line in the format: tool: NAME({"arg": "value"})
2The model writes that line
assistanttool: bash({"command": "find . -name '*.ts' | wc -l"})
4The result goes back as a user message
usertool_result("1425")
3The harness finds the line and runs the tool
function extractToolCall(text: string): (() => Promise<string>) | null { for (const line of text.split("\n")) { const match = line.trim().match(/^tool:\s*(\w+)\((.*)\)$/); if (!match) continue; const tool = tools[match[1]!]!; const input = JSON.parse(match[2]!); return async () => `tool_result(${JSON.stringify(await tool(input))})`; } return null; }
The model only writes text. The harness runs the tools. This format is our own. Most APIs support native tool calling.
Building block 3 · The loop

The loop

const conversation: Message[] = [{ role: "system", content: systemPrompt }]; async function runLoop(prompt: string): Promise<void> { conversation.push({ role: "user", content: prompt }); while (true) { const reply = await sendMessages(conversation); conversation.push({ role: "assistant", content: reply }); console.log(reply) const toolCall = extractToolCall(reply); if (toolCall === null) break; const output = await toolCall(); conversation.push({ role: "user", content: output }); } }
The loop stops when a reply has no tool call. The model decides when it is done.
Building block 3 · The loop

The loop, step by step a real session, verbatim

const conversation = [{ role: "system", … }]; async function runLoop(prompt: string): Promise<void> { conversation.push({ role: "user", content: prompt }); while (true) { const reply = await sendMessages(conversation); conversation.push({ role: "assistant", content: reply }); console.log(reply) const toolCall = extractToolCall(reply); if (toolCall === null) break; const output = await toolCall(); conversation.push({ role: "user", content: output }); }}
Seven messages, two tool calls, and one correction that the model made on its own. Nothing is edited. Only the system prompt is cut to fit.
The last reply has no tool: line. extractToolCall() returns null, and the loop stops. The model decided that it was done.
systemYou are an expert coding assistant operating inside a coding agent harness. …
userHow many .ts files are in this directory?
assistanttool: bash({"command": "find . -name '*.ts' | wc -l"})
usertool_result("1425")
assistantThere are **1425** `.ts` files, but that likely includes `node_modules`. Let me check excluding it: tool: bash({"command": "find . -name '*.ts' -not -path '*/node_modules/*' | wc -l"})
usertool_result("15")
assistantExcluding `node_modules`, there are **15** `.ts` files in this directory. (Including `node_modules`, the total is 1425.)
Captured in August 2026 with claude-opus-4-8 and an earlier version of this harness. The loop and the text format are the same.
Context

The context window all that the model sees on one request

user
system prompt + tool docs
request 1
user: tool_result
assistant: tool call
user
system prompt + tool docs
request 2
user: tool_result
assistant: tool call
user: tool_result
assistant: tool call
user
system prompt + tool docs
request 3
user (next prompt)
assistant: answer
user: tool_result
assistant: tool call
user: tool_result
assistant: tool call
user
system prompt + tool docs
request 4
Long sessions are slower and cost moreEach request sends everything before it again. Prompt caching makes the repeat cheaper, not free.
The agent forgets after compactionWhen the window is full, the harness replaces the history with a summary. Details that the summary drops are gone.
A new session helpsA new conversation holds only what this task needs. Less noise, fewer tokens, better answers.
The conversation is the memory of the agent. It grows with each request, until compaction replaces it with a summary.
The whole thing · coding-harness/src/loop.ts

loop.ts: 98 lines, the entire agent provider, tools, system prompt, loop, REPL

import { exec } from "node:child_process"; import { mkdir, readFile, writeFile } from "node:fs/promises"; import { dirname } from "node:path"; interface Message { role: "system" | "user" | "assistant"; content: string; } async function sendMessages(conversation: Message[]) { const response = await fetch("https://openrouter.ai/api/v1/chat/completions", { method: "POST", headers: { "Authorization": `Bearer ${process.env["OPENROUTER_API_KEY"]!}`, "Content-Type": "application/json", }, body: JSON.stringify({ model: "deepseek/deepseek-v4-flash", max_tokens: 4000, messages: conversation, }), }); const data = await response.json() return data.choices[0].message.content; } const tools: Record<string, (input: any) => Promise<string>> = { read: ({ path }) => readFile(path, "utf8"), write: async ({ path, content }) => { await mkdir(dirname(path), { recursive: true }); await writeFile(path, content, "utf8"); return `write: wrote ${content.length} bytes to ${path}`; }, edit: async ({ path, oldText, newText }) => { const content = await readFile(path, "utf8"); await writeFile(path, content.replace(oldText, newText), "utf8"); return `edit: updated ${path}`; }, bash: ({ command }) => new Promise((resolve) => { exec(command, (_error, stdout, stderr) => { resolve(`${stdout}${stderr}`.trim() || "(no output)"); }); }), }; function extractToolCall(text: string): (() => Promise<string>) | null { for (const line of text.split("\n")) { const match = line.trim().match(/^tool:\s*(\w+)\((.*)\)$/); if (!match) continue; const tool = tools[match[1]!]!; const input = JSON.parse(match[2]!); return async () => `tool_result(${JSON.stringify(await tool(input))})`; } return null; } const systemPrompt = `You are a coding assistant operating inside a coding agent harness. Help users inspect files, run commands, and modify code. <tools> - read: Read a file's contents. Arguments: { "path": string }. - write: Create or overwrite a file. Arguments: { "path": string, "content": string }. - edit: Replace exact text in a file. oldText must appear exactly once. Arguments: { "path": string, "oldText": string, "newText": string }. - bash: Run a shell command. Arguments: { "command": string, "timeout"?: number (ms) }. When you want to use a tool, reply with exactly one line in the format: tool: NAME({"arg": "value"}) Use compact single-line JSON with double quotes. After you receive a tool_result(...) message, continue the task. If no tool is needed, just respond normally with your answer. </tools> <cwd> ${process.cwd().replace(/\\/g, "/")} </cwd> `; const conversation: Message[] = [{ role: "system", content: systemPrompt }]; async function runLoop(prompt: string): Promise<void> { conversation.push({ role: "user", content: prompt }); while (true) { const reply = await sendMessages(conversation); conversation.push({ role: "assistant", content: reply }); console.log(reply) const toolCall = extractToolCall(reply); if (toolCall === null) break; const output = await toolCall(); conversation.push({ role: "user", content: output }); } } process.stdin.setEncoding("utf8"); process.stdout.write("> "); for await (const chunk of process.stdin as AsyncIterable<string>) { const prompt = chunk.trim(); if (prompt) await runLoop(prompt); process.stdout.write("> "); } console.error(JSON.stringify(conversation));
Production harnesses

Everything else is plumbing

A production harness adds many features to the same skeleton. Each feature upgrades one of the parts. You do not need any of them to build an agent.
system prompt
environment facts
output style
first user message
AGENTS.md
skills
memory
/commands
tools
native tool calling
web search and fetch
sandboxing
MCP servers
subagents
loop
session logs
errors as feedback
resume a session
guardrails
a better UI
compaction
plan mode
permission gates
hooks
parallel agents
provider
SDKs and provider abstractions
streaming
prompt caching
In Claude Code, AGENTS.md and skills are not in the system prompt. They arrive in the first user message, as on the anatomy slide.
01 · The fundamentals · discussion

Your turn

  1. What decides the output of an agent?
  2. The model decides what to read and what to do. So what can you actually influence?
  3. The API keeps no state. What does that mean for how you work with an agent?
  4. With bash, the agent can change every file that your user account can change. Where is that fine, and where is it not?
  5. The loop stops when the model thinks it is done. How would an agent know that it is done in your codebase?
10:15–10:30

Coffee break

Next: Building blocks of agents
02 · Building blocks of agents

What does the agent see?

What is in the context of the agent, which parts you control, and what each building block is for.
02 · What is in the context

Seven layers, one request what the model sees, and who writes it

LayerWho writes itCan you change it?
System promptThe harnessDepends on the harness
Tool definitions, including MCP toolsThe harness, MCP serversYes, by choosing which tools and servers are on
AGENTS.mdYouYes
SKILL.mdYou, skill authorsYes
Your promptYouYes
Files read, command outputThe agent, through toolsIndirectly, by what is easy to find
Conversation so farEveryoneYes, by starting fresh or compacting
AskWhich of these layers did you change last week? Which ones have you never looked at?
02 · What the model knows

The model knows what was public

In the training datait already knows
  • Programming languages
  • Public libraries and frameworks
  • Open source code
  • Public documentation and protocols
Never publicit cannot know
  • The history of your codebase
  • Your hardware
  • Your decisions
  • Your customers
AskWhat does the model already know about the work you do at Marshall, and where does its knowledge stop?
02 · Agent instructions · AGENTS.md

Write down what the code cannot say

Agents start each task by reading the code, and current models are good at it. Write down only what the agent cannot find in the repository, or would rediscover in every session.
The agent can already readwhat the code says
  • Module structure and the call graph
  • The naming and patterns already in use
  • How the tests are organized
  • What the types enforce
  • What the linter already catches
Worth writing downwhat the code can't say
  • Business and team-specific nuance
  • Why it is built this way: the trade-off
  • Guidelines that no tool enforces
  • Domain rules and external constraints
  • History behind code that looks wrong
AGENTS.md is loaded into every session. Every line takes some attention on every task. Keep it short. Do you have one today? Who wrote it? When did someone last delete a line?
02 · SKILL.md

Skills load in steps

A skill packages instructions, scripts, references, and assets for one type of task. The Agent Skills specification makes the format portable between coding agents.
1 · Session start
Name and description
Only the name and the description of each skill are in the context.
2 · A task matches
The agent reads SKILL.md
When a task matches the description, the agent reads the full instructions.
3 · When needed
References and scripts
SKILL.md can point to more files. The agent reads them only when it needs them.
A skill costs almost nothing until it is used. The description decides whether it is used at all. That is why skills scale, and AGENTS.md does not.
02 · SKILL.md

Read skills, but write your own

Third-party skills are someone else's context
Installing one puts someone else's instructions into the context of your agent, and it may include scripts that your agent runs. It was also written for someone else's codebase. Take the ideas, and write your own.
Many early skills have aged badly
Skills from when models were weaker tried to teach agents to write better code. With current models they can even hurt: they fill the context with things that the model already knows.
grilling · a short skill. We read it together.
skill-creator · a skill for writing skills
skills.sh · a directory of published skills, for reading
AskWhich task do you explain to an agent again and again?
02 · MCP · Model Context Protocol

MCP: tools that a server provides

A standard way for a coding agent to discover and use tools. The agent asks the server which tools exist, then calls one with the arguments that it needs.
Use it to reach a service
An issue tracker, a database, an internal API: a defined set of operations. Most useful when the server should hold the credentials and control what the agent may do.
Skip it when a tool already exists
You do not need an MCP server to search a local repository with rg, or to call a CLI that is already installed.
MCP tools land in the tool definitions, in the context of every request. Choose which servers are on.
02 · Spec-driven development

Write it down, start fresh

session 1
Research and plan
The context fills with dead ends.
→
in the repository
The spec
What you agreed, with one testable example.
→
session 2 · fresh
Build from the spec
A clean context and a written definition of done.
→
review
Check against the spec
The same document, used a second time.
Plan modes are not specs
The plan in Claude Code, Codex, or Copilot lives in the session and is gone afterwards. A spec in the repository can go to another session or another person.
Testable, not exhaustive
“With 23 matching orders and 10 visible on page one, the export contains all 23.” More text is more to review, for people and for the agent.
Practice it before you buy it
Spec Kit, Kiro, and OpenSpec exist. Do it by hand first, find what fits your work, and adapt as the tools change.
AskWhere does your plan live when the session ends? When do you start a fresh session, and what do you bring into it?
02 · Before the breakout
Think of the last time an agent got something wrong in your code.
What was missing from its context?
Breakout #1 · Instructions

Open the breakout #1 instructions

The six scenarios, the two questions to ask before you write anything down, and the places where it can go. Every group needs it open.
Scan for breakout #1
Breakout #1 · 11:30–12:15

What does the agent need to know?

A new colleague. Fast, and has read every file in the repository. Was in none of your meetings. Tomorrow morning, remembers nothing of today. That colleague is your agent.
0–15 min · Part 1
Six things that went wrong
Every group discusses scenario 1, then picks one more.
15–30 min · Part 2
Your own work
Find an example from your team, and decide where it belongs.
30–45 min · Part 3
Share with the room
One example for each group. Bring the disagreements too.
Find what your team knows that an agent cannot learn by reading the repository. For each item, decide where it belongs. 4 groups · material in 03-breakout.md
12:15–13:00

Lunch

Next: Beyond individual productivity. From how I use an agent to how we use agents.
04 · 13:00–13:45

Beyond individual productivity

From how I use an agent to how we use agents. The morning covered the building blocks. This block is about how they fit together in a team.
04 · Four levels

Each level needs different context

1
Individual
Your daily driver. Your tools, your workflows, and what the agent needs to know about how you work.
2
Project
A shared codebase. What any agent needs to work in this project.
3
Team
Workflows and patterns that the team agrees on: how you work with code, PRs, and documentation.
4 · not today
Organization
Guardrails, shared services, and policy. Still an open question for most organizations.
AskWhere do your instructions, skills, and templates live today: with one person, in a repository, or shared across the team?
04 · Shared context

Shared context behaves like code

AGENTS.md
It runs in every agent
Once it is in the repository, a change to it changes how the agent of every colleague behaves. Someone should own it, and changes should be reviewed.
Skills
Team procedures, written once
How to write a design spec, or prepare a release. A shared skill needs an owner who keeps it current.
Prompts and sessions
Worth sharing
A prompt or a session that worked is worth sharing. Agree on a way to do it, so good ideas spread without everyone pushing changes to the shared setup.
Owned, reviewed, versioned, and retired. What do you share today, and how?
04 · Structuring information for agents

Two ways in: loaded up front, or found on demand

Loaded up front
The system prompt, AGENTS.md, and the descriptions of skills. Make it a short map that points to detail, not the detail itself. “A map, not a 1,000-page instruction manual.” (OpenAI)
Found on demand
Everything else. The agent lists files, searches with rg, and reads what the search returns. The structure of your docs and code decides whether this works.
53% → 100%
Vercel: an 8 KB index of doc paths in AGENTS.md, for APIs that are not in the training data. The index pointed to the files. It did not contain them.
+20–23% cost
ETH Zurich: generated overviews of the repository did not help agents find the right files. They mostly repeated what the agent could already find.
Load up front only what the agent lacks: instructions to follow, and pointers to information it cannot find.
04 · Structuring information for agents

Agents search text. Make it findable.

Names are search terms
create matches 1,585 lines in 459 files. createStripeClient matches 43 lines in 19 files. Avoid utils.ts.
Pages start with the answer
The first lines say what it is and when to use it. An index has one line for each page. The agent may read only the top with head.
The reason goes where the agent meets the code
A comment on the 300 ms delay, or a test that fails without it. Not a rule in AGENTS.md, and not a closed ticket.
Checks the agent cannot skip
The agent may skip your docs, but a compiler error reaches it. Write error messages that say how to fix the problem.
Detail near the code
An AGENTS.md in a subfolder costs nothing until the agent works there.
Outside the repository, it does not exist
Google Docs, chat threads, and people's heads are out of reach for the agent.
04 · Documents

Agents produce a lot of documents

Research, plans, specs, PR descriptions. Without agreements, every developer ends up with their own formats and folders.
Templates
Agents love to follow patterns. Shared templates make AI-written documents faster to read, because everyone knows where to look. Like shared coding standards. pr · adr · ai-policy
Locations
Agree where each type of document lives.
Lifetime
What happens after the work is done? Is a spec deleted before merge, or kept as the current description of the feature? Who updates it?
Respect the reader
Don't throw AI-written documents at each other. Producing them is cheap. Reading them is not.
AskWhere do AI-written documents end up today, and who deletes them?
04 · How it fits together

Habits become context, context becomes agreements

individual
Habits
What works for you.
→
project
Context
What any agent needs in this codebase.
→
team
Agreements
How we work together.
→
organization
Guardrails
What holds everywhere.
AskIf a new teammate joined tomorrow, what would they get from the shared setup of the team, and what would they have to ask someone about?
05 · Engineering for quality at scale

The code arrives faster than we can understand it

Testing, test automation, code review, and more AI-written code and pull requests than ever. What do we do about it?
Lucky Luke types on a laptop and says “Done.” His shadow, still reading a long printout, says “I'm still on line 12.” Caption: The agent writes it. I decide if it ships.
05 · All code is not created equal

When do we let go of the code?

  1. What is code for us programmers? Just an artifact, or something more?
  2. What do we lose when AI writes the code for us?
  3. When do we let go of the code, and when do we not?
  4. Which code should a human be responsible for, and which code only has to pass its checks?
  5. How do you tell the two apart?
05 · How do we know it's right?

The agent can only correct mistakes it can see

The loop ends when the model thinks it is done, not when the work is correct. Give it checks it can run, the fast ones first.
seconds
Compile
→
seconds
Lint
→
seconds
Unit tests
→
minutes
Integration tests
→
longer
The real thing
→
a person
Review
Tool output is a claim, not proof. “All tests pass” means that the code does what the tests check, nothing more.
Back to this morningHow would an agent know that it is done in your codebase? What is hard to check automatically at Marshall?
05 · How do we know it's right?
Finding bugs got cheap. Fixing them did not.
Since spring 2026, the AI slop reports to curl are practically gone. Agents now find real bugs. Someone still has to understand them, and fix them.
Daniel Stenberg, “Ignore the slop”, October 2026 · daniel.haxx.se
05 · PRs and code review in the AI age

What is code review for?

correctness
knowledge sharing
ownership
mentoring
catching design drift
  1. Which of these still work when the author is an agent and the PR is 5,000 lines?
  2. What do we want to keep from how we used to do code reviews?
  3. When should you do code review?
Decide what you use code review for, before you decide how AI fits into it.
14:30–14:45

Coffee break

Next: Breakout #2. What do we owe each other when we use AI?
Breakout #2 · Instructions

Open the breakout #2 instructions

The scenarios and the questions for each group. Write your lines into the AI policy template, ai-policy.md, on the same site.
Scan for breakout #2
Breakout #2 · 14:45–15:45

What do we owe each other when we use AI?

An agent writes a reply, a review, a spec, or 2,000 lines of code in a minute. Reading them takes as long as it always did. What does a colleague get from you that they could not get from their own agent?
0–30 min · Part 1
Would you be happy to receive this?
Every group discusses scenarios 1 and 2, then 3 or 4.
30–45 min · Part 2
What would you add?
As a group, write your own scenario and a rule for it.
45–60 min · Part 3
Back in the room
Compare the rules and the disagreements.
Decide what Marshall engineers should expect from each other when they use AI. Write the answers as lines for a Marshall AI policy. 4 groups · material in 06-breakout.md
Breakout #2 · Before you start

A useful line says who does what, and before which action

a lineYou are responsible for everything sent under your name, whoever wrote it.
a lineAgent-written plans live in .agents/docs/plans/ and are deleted before merge.
not a lineBe transparent about AI.
For each scenario, finish the sentence: “We would allow ___, but we would draw the line at ___ because ___.” You do not need to agree. If you disagree, keep both sentences.
Some cases need no new line. If an existing practice already covers it, say so.
07 · Joint reflections and next steps

Back to where we started

Name what we learned, and leave with next steps for you, your project, and your team.
07 · The day in one thread

One idea ran through the whole day: context

The fundamentals
A coding agent is a loop around a stateless model call. The model decides what to do. We only influence what goes into the next request.
Building blocks
Context is the steering wheel. Instructions, skills, tools, your prompt, and what the agent reads all compete for the same attention.
Breakout #1
The agent is a fast new colleague who has read every file, was in none of your meetings, and remembers nothing tomorrow.
Beyond the individual
What works for one developer has to be shared to work for a team. Shared instructions, skills, and templates behave like code.
Quality at scale
The agent writes code faster than we can understand it. Decide which code a human must understand.
Breakout #2
When you send a colleague something made with AI, what do they get from you that they could not get from their own agent?
Producing got cheap. Understanding did not. Most of today's hard questions come from that gap.
07 · Back to this morning

Where is Marshall today?

We read this morning's answers from the whiteboard, one at a time. For each one:
  1. Did today change how you see this?
  2. Is it a model problem, a context problem, or a people problem?
  3. Which level owns it: you, the project, or the team?
07 · The good, the bad and the ugly

What do we gain, give up, and risk?

The good · we gain
Leverage
More ambitious work with the same time and effort.
The bad · we choose to give up
Control
We no longer make every implementation decision ourselves.
The ugly · we risk losing
Understanding
Skills, through lack of practice. And focus. Without noticing.
Only the first two are decisions. The third happens, unless we make it a decision too.
07 · The good, the bad and the ugly

Decide on purpose what you give up

  1. What did you give up this month without deciding to?
  2. What do you want to keep?
  3. If you don't write the code, how do you keep the understanding?
  4. What does a day with agents do to your focus?
07 · Next steps

Next steps by level

Youyour workflow
  • For one week, look at which tasks you give the agent, and which you keep.
  • Notice repeated tasks and repeated corrections. They are your first instruction, skill, or test.
  • Pick one area you want to keep understanding, and keep your hands in it.
Projectyour repository
  • Run the two-question test on your AGENTS.md. Delete what the agent can find by itself.
  • Try the changes from breakout #1 on the next real task. Did the agent pick the new component without a reminder?
Teamhow you work together
  • Pick one line from the AI policy draft, and try it for two weeks.
  • Decide what an author sends with a large agent-written PR, and what an approval means.
  • Review changes to AGENTS.md, skills, and MCP configuration like code.
  • Use the document templates where they help.
Marshall · Agentic Engineering
We don't need to outdraw the agent.
We need to decide what we must understand before we ship, and build the context, checks, and agreements that make that possible.
Keep talking about how you do things, and why. Keep it about concrete moments: the PR you could not review, the reply you would not want to receive, the line of code that nobody remembers the reason for.
← → navigate · F fullscreen