How Claude Code, Codex & co. actually work
That autonomy — deciding and acting, step after step — is what makes it an agent. The rest of this talk is simply how it works.
You ask → it tells you what to do → you open the files, run the commands, paste the errors back… and repeat.
You ask → it does the work itself — reads the files, runs the commands, checks the result → you review at the end.
Often it's the same model underneath. The difference is everything wrapped around it — and that's exactly what's next.
I just set Claude Code loose on a real task. It runs while we talk — we'll check back when we hit the loop, thinking, and context.
Model, harness, agent — the loop that ties them together, and how it "thinks".
Today's models & tools, prices and plans.
The model's short-term memory — and how to keep it sharp.
Permissions: ask, auto, and bypass ("YOLO") mode.
CLAUDE.md, memory, skills & plugins.
APIs, CLIs and MCP — touching other systems.
The one line to remember: "agent" means it does something. The model alone only predicts text — the harness gives it hands, and the agent is this whole back-and-forth, on a loop.
Don't worry about memorising these — every one gets a slide of its own. This is just your map.
There's no "conversation" on the model's side. Each call hands it the whole history as one flat list:
Delete the first line and the model can't answer. The "memory" lives in the request — not the model.
You talk to the agent. Claude Code is the harness — it runs locally with your files & terminal, and loops with the model in the cloud (which stays stateless). The agent isn't a separate thing — it's that loop.
One line in → thousands of tokens of context out. And it does this again on every turn.
● LIVE Glance at our running agent — those scrolling tool calls are this loop, for real.
Each line is one ①→②→③ lap of the loop. The model never "ran" anything itself — the harness did, and reported back each time.
● LIVE Watch for a thinking block in our running agent before it takes its next action.
Anthropic's own research (2025): when a hidden hint changed the model's answer, its reasoning mentioned that hint only ~25% of the time. The visible "thinking" is a helpful narration — not proof of what really happened.
Features, refactors, bug fixes, writing tests.
"Where is X handled?" — answers grounded in your repo.
Triage issues, bump dependencies, wire up CI.
Query docs, tickets, databases (via MCP).
Summaries, emails, first drafts, comparisons.
You review & approve. It's a power tool, not a replacement.
A quick detour through today's models, tools and prices — then we're straight back to how it all works.
| Maker | Flagship lineup (July 2026) | Known for |
|---|---|---|
| Anthropic | Claude Fable 5 · Opus 5 · Sonnet 5 · Haiku 4.5 | coding, agents, long context |
| OpenAI | GPT‑5.6 — Sol · Terra · Luna | general reasoning, Codex |
| Gemini 3.6 Flash · 3.5 Flash‑Lite (3.5 Pro still unreleased) | multimodal, large context |
The same three tiers repeat everywhere: large (smartest, priciest) · medium (the sweet spot) · small (fast & cheap) — and Anthropic adds a frontier tier on top (Claude Fable 5). It reshuffles every few months, so treat any list as a snapshot. How fast does it move? —
SWE-bench Verified — Opus 5 fixing real bugs in real code projects
ARC-AGI-3 — Opus 5 scores 30%, three times the next-best model, on puzzles built to resist memorising
how long "what AI can't do" assumptions stay true
Hard reasoning, tricky multi-file refactors, architecture. Pricier per word — but on hard work it gets there in fewer steps.
The daily driver. Most coding & agent work. Often beats last gen's flagship at a fraction of the cost.
High-volume, simple, fast: classification, quick edits, sub-agent grunt work.
Example: a cheap Haiku sub-agent skims 200 files and summarises; the pricey Opus only does the actual design call. Cheap legwork, expensive thinking only where needed. But "pricey" is per word, not per job — that turns out to matter, and we come back to it in a few slides.
Anthropic. CLI + IDE + web. Agentic coding over your whole repo.
OpenAI's coding agent on GPT‑5.6 — in your terminal, with a cloud option.
An IDE built around an AI agent.
Agent + autocomplete inside your editor.
Another agentic IDE.
Open-source terminal coding agent.
The harness decides what the model can actually do — tools, sandboxing, memory, parallelism. At least as important as the model.
Lives in your shell, scriptable. Claude Code · Codex · Gemini CLI · Aider.
A standalone window, less terminal-y. Claude Code app · Codex in the ChatGPT app.
Inline with your editor. Claude Code & Codex extensions · Cursor · Windsurf · Antigravity · Copilot.
It's the same loop underneath — just a different front door. Most of the big ones ship in several of these at once; pick whichever fits how you work.

Example: "Build an expense tracker: add expenses, a monthly chart, login." → minutes later, a running app on a shareable link — source code included.

Example: "A 15-second ad for our mobile bank: phone in hand, city at dusk, upbeat." → storyboard → shots → rendered clip, ready for social.

Example: "Turn this slide's diagram into a 20-second animated explainer." → the agent writes the HTML, renders it, hands you the MP4.
| Tier | Claude (Anthropic) | ChatGPT (OpenAI) |
|---|---|---|
| Free | limited usage | limited usage |
| Entry | Pro — ~$20/mo | Go ~$8 · Plus ~$20/mo |
| Power | Max 5× ~$100 · Max 20× ~$200/mo | Pro 5× ~$100 · Pro 20× ~$200/mo |
Higher tiers buy more usage and priority access to the newest models. Prices as of July 2026 — they change often, so verify before quoting.
A flat monthly fee for a person using the app or CLI. Simple, capped by usage limits. Best for everyday work.
Pay per token (input + output). No cap, scales to production. Best for building integrations.
Why tokens matter: a long agent session can read your files dozens of times — and on the API you pay for every re-read. That's exactly why caching (coming up) exists.
Opus 4.5 matched Sonnet 4.5's best coding score — writing 76% less
Opus 5 hit its best score with a seventh of its predecessor's thinking
Sonnet 5 matches the previous Opus on web research, on a third of the tokens
The catch: this only holds when the job is genuinely hard — sorting emails doesn't get cheaper on Opus. Rule of thumb: the cheapest model that actually does the job — and check, don't guess.
● LIVE Check the context % on our running agent right now — see how far it's climbed.
Stable parts (system prompt, CLAUDE.md, files) are remembered between calls, so reusing them is much cheaper and faster than re-reading every time.
When the window fills, the harness summarises older turns into a short recap and drops the raw text — freeing space to keep going.
Both are automatic. The catch with compaction: anything not kept in the summary is forgotten — so the summary has to keep what matters.
● LIVE Our running agent is in auto mode — that's why it hasn't stopped to ask. Both Claude Code and Codex ship these modes (Codex calls them read-only / auto / full access). More freedom demands more isolation.
The rule: the more autonomy you grant the agent, the more walls you put around it.
Remember Memento (slide 7)? Every call re-reads the whole context — and keeps nothing afterwards.
CLIs & APIs already exist everywhere — the agent just uses them. MCP is the newer, agent-native way to connect.
Treat it like a colleague, in plain language. Give the goal & context, then iterate. Natural beats over-engineered prompts.
No context = no idea what you mean. The agent only knows what's in front of it — and quality rots as that fills with junk.
It orients fast from what you give it. Keep a CLAUDE.md; when passing work on, ask it to write a summary for the next agent.
Most of "prompting skill" is really just managing what the agent can see.
Thanks! Questions?
David Budáč
All figures verified July 2026. Models & prices move fast — re-check the primary sources before quoting.