A beginner's introduction to agentic AIInternal talk · July 2026

Agentic
AI.

How Claude Code, Codex & co. actually work

model harness agent
2
The hook

You type one line. It does the rest.

you › "the invoice test is failing — fix it" …then, with no further input, the AI on its own: ✓ ran the tests saw it expected 121, got 100 ✓ opened invoice.py spotted VAT was never applied ✓ edited the code added the 21% VAT line ✓ ran the tests again PASS ✓

That autonomy — deciding and acting, step after step — is what makes it an agent. The rest of this talk is simply how it works.

3
Core · chatbot vs agent

A chatbot answers. An agent acts.

Chatbot — the one you know

You ask → it tells you what to do → you open the files, run the commands, paste the errors back… and repeat.

Agent

You ask → it does the work itself — reads the files, runs the commands, checks the result → you review at the end.

CHATBOT — the loop runs through YOU YOU CHATBOT ask "do this…" YOU run it & paste results back — again and again AGENT — the loop runs inside the agent YOU AGENT reads · runs · checks ask finished work — you review ↺ on its own, until done

Often it's the same model underneath. The difference is everything wrapped around it — and that's exactly what's next.

● LIVE

Meanwhile — a real agent is working

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.

4
Agenda

What we'll cover

The core idea

Model, harness, agent — the loop that ties them together, and how it "thinks".

The landscape

Today's models & tools, prices and plans.

Context

The model's short-term memory — and how to keep it sharp.

Safety

Permissions: ask, auto, and bypass ("YOLO") mode.

Memory

CLAUDE.md, memory, skills & plugins.

Reaching out

APIs, CLIs and MCP — touching other systems.

5
Core · the basics

Three building blocks

YOU HARNESSthe program · e.g. Claude Code MODELthe brain · in the cloud you type: "fix the bug" the chat so far sends the WHOLE chat "run the tests" runs it locally bigger sends the WHOLE chat — again "edit invoice.py" runs it locally bigger still sends the WHOLE chat — again "done — fixed ✓"

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.

6
Core · cheat sheet

Words you'll keep hearing

TokenA chunk of text ≈ ¾ of a word (un·believ·able = 3). What models read & bill in.
PromptThe text you send the model.
ContextEverything the model sees in one call.
Context windowThe max size of that context (1M tokens on today's top models).
Tool callAn action the model asks the harness to run.
HarnessThe program running the model + its tools.
AgentModel + harness, doing things in a loop.
SOTA"State of the art" — today's best.
MCPModel Context Protocol — a standard plug for tools/data.

Don't worry about memorising these — every one gets a slide of its own. This is just your map.

7
Model · the brain

The model has no memory

  • A model is autocomplete on steroids — it only ever predicts the next word (token). Text in, text out. No database, no "you".
  • Think of the guy in Memento — the film hero who can't form new memories, living off notes & tattoos: each interaction, the model has no idea what we said before.
  • So the harness must re-send everything it should know, every single call.
8
Model · example

"No memory" in practice

There's no "conversation" on the model's side. Each call hands it the whole history as one flat list:

# What the model is handed on turn 3 — the WHOLE chat, again: you said: "My name is David." it replied: "Nice to meet you, David." you now ask: "What's my name?" ← answerable only because line 1 was re-sent

Delete the first line and the model can't answer. The "memory" lives in the request — not the model.

9
Harness · what runs where

Model in the cloud, harness on your machine

YOU you talk → chat AGENT = harness + model, in a loop YOUR MACHINE (local) CLAUDE CODE the harness your files ▸ terminal runs actions CLOUD MODEL Claude Opus 5 stateless — no memory sends context → ← next action

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.

10
Harness · example

What one turn really sends

EXAMPLE — a single Claude Code prompt
# You type one line. The harness builds all of this for the model: 1. system prompt # who it is, what tools exist 2. CLAUDE.md # project rules & conventions 3. conversation so far # every previous message 4. tool results # files read, command output 5. your new message "fix the failing test"

One line in → thousands of tokens of context out. And it does this again on every turn.

11
Agent · the loop

An agent is a loop

  • the model proposes an action → the harness runs it the result comes back. Repeat until ④ done.
  • Like a cook: read the recipe → do a step → taste → adjust → repeat.
  • This loop is the whole "magic" of agentic AI — no magic, just disciplined repetition.

● LIVE Glance at our running agent — those scrolling tool calls are this loop, for real.

12
Agent · worked example

Our hook, as the loop

# each line = one lap: ① propose an action ② run it ③ see the result ▸ ①②③ run_tests() → FAIL: expected 121, got 100 ▸ ①②③ read_file(invoice.py) → sees VAT is never applied ▸ ①②③ edit_file(invoice.py) → adds total *= 1.21 ▸ ①②③ run_tests() → PASS ✓ ▸ ④ done — 4 laps of the loop, no human in between

Each line is one ①→②→③ lap of the loop. The model never "ran" anything itself — the harness did, and reported back each time.

13
Thinking · how it works

The model thinks before it answers

PROMPT THINKING — hidden scratchpad • recall the VAT rule (21%) • 100 × 1.21 = 121 • so the test expects the tax added (these reasoning tokens cost money too) ANSWER
  • Reasoning (or "thinking") models work the problem out step by step first — a private scratchpad — then give the answer.
  • It's still next-token prediction, just allowed to "think out loud." Empirically far better at maths, coding & planning.
  • More thinking → better on hard problems — but past a point it overthinks and gets worse.
  • Usually a dial: low / medium / high effort. Newer Claude models decide adaptively how hard to think.

● LIVE Watch for a thinking block in our running agent before it takes its next action.

14
Thinking · in agents & the catch

Thinking inside the loop

  • In the loop, the model thinks before each action: which tool, why, did the last result work? → better plans, fewer wrong turns.
  • It isn't free: thinking tokens are billed as output and fill the context window — so don't crank the effort for simple jobs.
  • Rule of thumb: hard, multi-step task → think more; quick edit → think less.
Don't fully trust it

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.

15
Core · so what?

What it's actually good for

Write & fix code

Features, refactors, bug fixes, writing tests.

Understand a codebase

"Where is X handled?" — answers grounded in your repo.

Automate chores

Triage issues, bump dependencies, wire up CI.

Work over your data

Query docs, tickets, databases (via MCP).

Draft & research

Summaries, emails, first drafts, comparisons.

…with a human in the loop

You review & approve. It's a power tool, not a replacement.

The landscape

A quick detour through today's models, tools and prices — then we're straight back to how it all works.

16
Landscape · models

Today's best models

MakerFlagship lineup (July 2026)Known for
AnthropicClaude Fable 5 · Opus 5 · Sonnet 5 · Haiku 4.5coding, agents, long context
OpenAIGPT‑5.6 — Sol · Terra · Lunageneral reasoning, Codex
GoogleGemini 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? —

96%

SWE-bench Verified — Opus 5 fixing real bugs in real code projects

3× the field

ARC-AGI-3 — Opus 5 scores 30%, three times the next-best model, on puzzles built to resist memorising

~6 months

how long "what AI can't do" assumptions stay true

17
Landscape · picking a tier

Which tier when?

Large · Opus

Hard reasoning, tricky multi-file refactors, architecture. Pricier per word — but on hard work it gets there in fewer steps.

Medium · Sonnet

The daily driver. Most coding & agent work. Often beats last gen's flagship at a fraction of the cost.

Small · Haiku

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.

18
Landscape · harnesses

Today's best harnesses

Claude Code

Anthropic. CLI + IDE + web. Agentic coding over your whole repo.

Codex

OpenAI's coding agent on GPT‑5.6 — in your terminal, with a cloud option.

Cursor

An IDE built around an AI agent.

GitHub Copilot

Agent + autocomplete inside your editor.

Windsurf

Another agentic IDE.

Aider

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.

19
Landscape · the apps

Same agent, different front door

▸ Terminal (CLI)

Lives in your shell, scriptable. Claude Code · Codex · Gemini CLI · Aider.

Desktop app

A standalone window, less terminal-y. Claude Code app · Codex in the ChatGPT app.

⌨ In your IDE

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.

20
Landscape · beyond code

Lovable: describe an app, get an app

Lovable's homepage: 'Build something Lovable — create apps and websites by chatting with AI', with a single prompt box
  • You describe the app in plain language — Lovable builds a working web app: pages, database, login, hosting.
  • Then you iterate by chat: "make the header sticky", "add a monthly chart" — it edits the live app.
  • Underneath: the same agent loop we just saw, wrapped in a website. Same category: v0, Bolt, Replit.

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

21
Landscape · beyond code

Higgsfield: video from a prompt

  • Text or image in → finished video out: cinematic camera moves, characters that stay consistent across shots.
  • An AI director splits your idea into shots, generates each, stitches them — our loop again, different domain.
  • Built for marketing & social — even "product URL in → ready-made ad out". Same category: Sora, Veo, Runway.
Higgsfield's explore page with tiles for Cinema Studio, Seedance 2.0, and other video generation tools

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

22
Landscape · beyond code

HyperFrames: agents that make video

HyperFrames homepage: 'HyperFrames lets AI agents compose videos by writing HTML, CSS and JS' — an HTML file on the left rendering to a video on the right
  • Open-source (HeyGen): a web page with timing attributes in → a pixel-perfect MP4 out.
  • Built for agents: Claude Code installs it as a skill, then edits video by chat — the way it edits code.
  • Same file in → same video out, every time — ideal for explainers, product demos, captions.

Example: "Turn this slide's diagram into a 20-second animated explainer." → the agent writes the HTML, renders it, hands you the MP4.

23
Landscape · plans

Subscriptions (consumer)

TierClaude (Anthropic)ChatGPT (OpenAI)
Freelimited usagelimited usage
EntryPro — ~$20/moGo ~$8 · Plus ~$20/mo
PowerMax 5× ~$100 · Max 20× ~$200/moPro 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.

24
Landscape · plan vs API

Subscription vs API

Subscription

A flat monthly fee for a person using the app or CLI. Simple, capped by usage limits. Best for everyday work.

API

Pay per token (input + output). No cap, scales to production. Best for building integrations.

SUBSCRIPTION — a person, one flat fee YOU THE APP / CLI e.g. Claude Code use it all month flat $ / month capped by usage limits API — software, pay per token YOUR SOFTWARE an integration MODEL API in the cloud tokens in → $ tokens out → $ no cap — every call metered

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.

25
Landscape · what it really costs

Cheaper per word, pricier per job

  • The instinct: the big model is the expensive one. Per word, that's true — Opus costs 5× Haiku.
  • But a weaker model flails: it reads more files, tries more things, gets it wrong, retries. And every retry re-sends the whole conversation — the model has no memory, remember.
  • A stronger model gets there in fewer steps — and steps are what you actually pay for. On hard work, the smarter model is often the cheaper one.
SAME TASK · SAME SCORE smaller model, working flat out 100% bigger model, cruising 24% 76% fewer words to reach the same result
−76% words

Opus 4.5 matched Sonnet 4.5's best coding score — writing 76% less

~1⁄7 thinking

Opus 5 hit its best score with a seventh of its predecessor's thinking

~⅓ the cost

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.

26
Context · what it is

Context = the model's short-term memory

  • Everything the model sees in one call: system prompt, CLAUDE.md, chat history, files, tool output.
  • Measured in tokens. The context window is the max — 1M (≈ 2,500 pages) on today's top models, 200K on the small ones.
  • If it isn't in the context, it doesn't exist for the model.
CONTEXT WINDOW · 1M tokens system prompt CLAUDE.md · rules conversation history files you opened tool output free space
27
Context · the "stupidity threshold"

Fuller context = dumber model

  • "Context rot" (Chroma): 18 frontier models all got worse as input grew — even when the answer was right there.
  • "Lost in the middle" (Stanford): models recall the start & end, but miss facts buried in the middle.
  • The "40% threshold of stupidity" is folklore, not a law — but the lesson holds: keep the window well under full. Curation beats capacity.
28
Context · keeping it lean

Watch it, keep it lean

EXAMPLE — a harness status line
claude-opus-5 context: 38% (380k / 1M) $0.42
  • Most harnesses show live % used — glance at it.
  • Climbing past ~40–50%? Quality starts to slip — time to trim or restart.
  • Habit: finish a task, then start a fresh chat rather than dragging a bloated one onward.
CONTEXT USED — one glance now: 38% — still fine 0% 50% 100% sharp past ~40–50%: quality slips — trim or restart

● LIVE Check the context % on our running agent right now — see how far it's climbed.

29
Context · under the hood

How harnesses cope

Caching

Stable parts (system prompt, CLAUDE.md, files) are remembered between calls, so reusing them is much cheaper and faster than re-reading every time.

Compaction

When the window fills, the harness summarises older turns into a short recap and drops the raw text — freeing space to keep going.

CACHING — the stable prefix is remembered system prompt CLAUDE.md files read new turn reused between calls — cheaper & faster only this is new COMPACTION — when the window fills older turns · the raw back-and-forth recent summarised recap recent free space — keep going anything the recap leaves out is forgotten

Both are automatic. The catch with compaction: anything not kept in the summary is forgotten — so the summary has to keep what matters.

30
Context · sub-agents

Sub-agents keep the main context clean

  • A sub-agent is a separate agent with its own fresh context for one sub-task.
  • It does the messy work and returns only the conclusion.
  • Example: "search these 200 files" burns 80k tokens inside the sub-agent — the main chat gets a 200-token answer. They can also run in parallel.
31
Safety · permissions

Safety through permissions

  • Default · ask — the agent asks first before any risky action (write a file, run a command). Safest.
  • Auto · accept edits — pre-approve a class of actions (e.g. file edits) so it won't interrupt on routine steps.
  • Bypass · "YOLO" — asks for nothing. Fast, but it can run any command — only in a sandbox.
more freedom sandbox / VM only ASK approves each action ACCEPT EDITS routine pre-approved ● the live demo runs here BYPASS · "YOLO" asks for nothing the more it may do on its own → the more isolation around it

● 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.

32
Safety · bypass mode

When is "YOLO" OK?

  • Only where a mistake can't hurt: a throwaway container or VM, an isolated copy of the project, or an automated build server (CI).
  • Never on your main machine with real passwords and no backup.
  • Remember: an agent reads files and the web — a hidden malicious instruction in either can hijack a no-questions-asked agent.
More freedom →
thicker walls

The rule: the more autonomy you grant the agent, the more walls you put around it.

33
Memory · the problem

Back to the model with no memory

It forgets every time

Remember Memento (slide 7)? Every call re-reads the whole context — and keeps nothing afterwards.

  • So how do we give it knowledge that survives across sessions…
  • without stuffing the context window full (and rotting it)?
  • Four tools: CLAUDE.md, memory, skills and plugins.
34
Memory · CLAUDE.md

Memory that survives sessions

EXAMPLE — CLAUDE.md in your repo root
# CLAUDE.md — auto-injected into every prompt - Package manager: pnpm (never npm) - Run tests with: make test - API code lives in /services; never edit /generated - Style: small functions, no comments unless asked
  • CLAUDE.md — read at the start of every session; your standing rules & conventions. The agent's notes & tattoos.
  • Memory files — durable notes the agent saves and reloads later (some harnesses do this automatically).
35
Memory · skills & plugins

Skills & plugins

  • Skill = a folder with a SKILL.md (a name + description, plus instructions, scripts, resources).
  • Loaded only when needed: the agent reads a skill's full instructions only when a task matches — so you can keep dozens around for almost no context cost.
  • Plugins bundle & distribute skills, commands and MCP servers across a team.
ALWAYS IN CONTEXT — just the index (tiny) make-slides — turns notes into a deck pdf-tools — fills & splits PDFs …dozens more, ~a line each task matches: "build me a deck" full make-slides playbook loads instructions · scripts · resources only now does it cost context PLUGIN skills + commands + MCP servers your team
36
Reaching out · other systems

Touching other systems

  • API — services called programmatically over HTTP. The agent sends a request, gets structured data back.
  • CLIcommand-line tools the agent runs like a human in a terminal (git, gh, kubectl…).
  • MCPModel Context Protocol, an open standard to plug tools & data into any agent.
AGENT e.g. Claude Code API — a web service HTTP request → data back CLI — ▸ terminal runs git · gh · kubectl… MCP server one standard plug → tools & data

CLIs & APIs already exist everywhere — the agent just uses them. MCP is the newer, agent-native way to connect.

37
Reaching out · MCP

MCP = "USB-C for agents"

without MCP — N×M glue with MCP — connect once MCP
  • Anthropic's open standard (Nov 2024). Stop writing a custom connector for every tool × every app.
  • Run an MCP server once; any MCP-aware agent can use it. Thousands now exist.
  • Example: "find my next meeting with the audit team and draft a follow-up" — Calendar + Gmail, one agent, no glue code.
38
In practice · how to work with it

If you remember three things

1 · Just talk to it

Treat it like a colleague, in plain language. Give the goal & context, then iterate. Natural beats over-engineered prompts.

2 · Remember Memento

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.

3 · Feed & hand off

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.

39
Summary

What to take away

  • Model = a stateless brain · harness = the body & memory · agent = the loop that does things.
  • Mind the context — quality rots as it fills; caching, compaction & sub-agents are how we cope.
  • Permissions are your safety net; bypass mode only inside isolation.
  • CLAUDE.md, memory, skills, MCP = how we give a forgetful model durable knowledge & reach.

Thanks! Questions?

David Budáč