Agentic systems, tools & MCP
P11.applied-llm-systems.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: RAG & groundedness
Where next?
Later in Applied LLM Systems & Agents
This module unlocks
P11.applied-llm-systems.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: RAG & groundedness
Later in Applied LLM Systems & Agents
This module unlocks
An agent is a loop, not a bigger prompt: plan → act (call a tool) → observe
→ repeat, under a step budget. In 2024 the short formula was Agent = LLM + Tools;
by November 2026 it is Agent = LLM + Harness. The harness is all the
ordinary, deterministic software wrapped around the model: it builds each prompt,
type-checks and gates every tool call, keeps the working notes on disk, and decides
when the loop stops. The model proposes actions; tools do them; the
boundary (MCP) type-checks every call before any side effect. Most agent bugs
live in the harness, not in the model. Every run below executes live on a mock
clinic backend. The cost and design trade-offs behind agents like this — tokens as
the unit of cost, tools vs skills, the shared prompt prefix, and choosing a model
per task — are covered in P11.applied-llm-systems.05.
In plain words: a language model (LLM) only reads text and writes text. On its own it cannot open a file, query a database or send an email. Give it tools (small programs it may ask to run) and it can act. That was the 2024 picture: Agent = LLM + Tools, the ReAct loop (reason, then act, then read the result).
Long tasks broke that picture. Over 30 to 100 turns, raw tool output piled up in the chat, costs exploded, and a polite instruction (“please don't delete anything”) was the only safety net. Teams answered by building a harness: the surrounding program that shapes what the model sees, checks what it asks to do, and keeps the state of the work outside the chat. The formula became Agent = LLM + Harness.
2024 — ReAct, LLM + Tools | Mid-2025 — early workflow graphs | Nov 2026 — LLM + Harness | |
|---|---|---|---|
| Observe | raw tool output appended to the chat | some truncation; a reasoning cache inside one chat | context engineering: filtered output, spill to disk, notes in .agent/plan.md |
| Think | one big prompt, static instructions | fixed nodes in a graph, one prompt per node | stable cached prefix, skills loaded on demand, one role per call |
| Act | direct function calls; free-talking agent “swarms” | local stdio MCP servers on the developer's machine | remote MCP + A2A (agent-to-agent), sandboxes, policy gates, human approval |
| Control | the model decides when to stop or retry | a hand-drawn graph decides the order | a deterministic state machine, retry caps, durable checkpoints, the Ratchet Effect |
| Evaluation | “did the final answer look right?” | single-turn graders per node | trajectory evals: the whole path, its loops and its policy breaches |
stdio: a tool server started as a local program and talked to through its standard input and output, so it only works on the same machine.Who builds which part? The model and its provider supply raw ability; the team that ships the agent owns the harness — and with it most of the reliability, cost and safety.
| Capability | Model weights | Model provider API & engine | Harness developer team |
|---|---|---|---|
| Prompt caching | computes attention over the tokens | keeps the cached prefix in GPU memory for minutes; exposes cache breakpoints | orders the prompt so the stable part comes first and never changes mid-run |
| Files & scratchpads | trained to emit tool calls such as write_file | sometimes a hosted sandbox or file API | owns the worktree, the permissions and .agent/plan.md across turns |
| Context compaction | follows a “summarise this” instruction | some APIs offer server-side compaction | decides when and how to compact without breaking the cached prefix |
| Safety of actions | may refuse, may be talked round | usage policies, rate limits | schema checks, policy-as-code gates, sandboxes, human approval |
Each row of the 2026 column has its own page further on: context engineering in P11.applied-llm-systems.06, multi-agent topologies, remote MCP and A2A in .07, production harness SDKs and durable execution in .08, and trajectory evaluation in .09. This page builds the base they share: the loop and its typed boundary.
🎯 Agent = LLM + Harness: the model is a replaceable reasoning engine; the harness around it is the durable engineering.
LLM + Tools (ReAct).stdio MCP → Nov 2026 harness (context engineering, remote MCP + A2A, durable execution, trajectory evals).AGENTS.md rule / schema check..06 context engineering · .07 topologies, MCP & A2A · .08 harness SDKs & durable execution · .09 trajectory evaluation.Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
A scratch console for this page's ideas — ungraded, nothing you run here is recorded.
Scratch console
A scratch console with the scientific stack (pandas, numpy, scikit-learn). Runs on the server — no network, resource-limited and measured.
Output appears here.
Loading your notes...