TL;DR

  1. An agent is a loop, not a model: an LLM that reasons, takes actions in an environment, observes the result and decides again. Workflows have fixed code paths, agents decide their path at run time; start with the simplest thing that works.
  2. Reasoning: chain-of-thought prompting (emergent at ~100B parameters); ReAct interleaves Thought → Action → Observation, grounding the reasoning in real observations.
  3. Tool use: Toolformer learns tool calls self-supervised (keep calls that lower the loss); ToolLLM scales to 16,000+ APIs with backtracking search; CodeAct uses Python code as the action space. Tools must be designed for agents.
  4. Deep research (WebGPT → OpenAI deep research → multi-agent systems) and coding agents (SWE-bench: 1.96% at release; Codex: 72.1% on SWE-bench Verified) gain most from grounding: an environment that returns ground truth.
  5. Web and computer use: realistic benchmarks (WebArena, VisualWebArena, OSWorld) show large gaps to humans; agents moved from HTML to pixels.
  6. Connecting agents: MCP turns M×N integrations into M+N (tools, resources, prompts); Agent Skills package know-how as folders loaded by progressive disclosure. Capability and risk grow together; security follows in Lecture 9.

Exam relevance

3 questions from this lecture. Mock exam question: Explain progressive disclosure in Agent Skills, and why it lets a skill’s effective size be essentially unbounded relative to the context window (answer in Load Only What You Need, When You Need It). Likely topics: workflow vs. agent, why CoT is emergent, how ReAct improves on CoT and act-only, Toolformer’s filtering, DFSDT vs. ReAct, CodeAct’s advantages, SWE-bench grading and why “Verified”, functional-correctness grading in WebArena, MCP’s M+N argument and its three primitives.

Overview: 1. Framing, 2. Reasoning, 3. Tool use, 4. Deep research, 5. Coding agents, 6. Web and computer use, 7. Protocols and skills.

Framing

From a Chatbot to an Agent

Slide 2

A chat model maps a prompt to one text response. An agent is a model placed in a loop: it takes actions in an environment, observes the results and decides what to do next, all towards a goal.

flowchart LR
  L["LLM<br/>reason and decide the next step"] --> A["Action<br/>call a tool, browse, run code"] --> E["Environment<br/>returns an observation"] --> L

Three ingredients: reasoning (plan and decompose), tools / actions (reach beyond text) and a feedback loop with the world. The loop closes the gap between a static predictor and a system that can change its own next input by acting. See LLM Agent.

This lecture follows the capability arc reasoning → tool use → deep research → coding → web and computer use → protocols and skills. Safety and security of agents is Lecture 9.

Workflows vs. Agents

Slide 3

WorkflowAgent
Control flowpredefined code paths, fixed by the engineerthe LLM directs its own process and tool use
The modelfills in the blanksdecides the path at run time

Both build on the augmented LLM: a model with retrieval, tools and memory (Anthropic, “Building Effective Agents”, Dec 2024). The guiding advice: start with the simplest thing that works, and add agentic complexity only when simpler calls fall short.

The augmented LLM connected to retrieval, tools and memory
Slide 3: the augmented LLM, the basic building block. Source: Anthropic, 2024.

A Small Set of Composable Patterns

Slide 4

Most successful systems are compositions of a few patterns (Anthropic 2024):

TypePatternIdea
workflowPrompt chainingfixed sequence of calls, each processes the previous output, optional checks in between
workflowRoutingclassify the input, dispatch to a specialized prompt or model
workflowParallelizationrun calls at once: sectioning (split subtasks) or voting (aggregate diverse runs)
workflowOrchestrator-workersa lead LLM breaks the task down, delegates to workers, synthesizes the results
workflowEvaluator-optimizerone LLM generates, another critiques; loop until the criteria are met
agentAutonomous agentuses tools in a loop on environmental feedback; plans and acts independently, with human checkpoints

Part 1: Reasoning

Slide 5

Make the Model Show Its Work: Chain-of-Thought

Slide 6

Standard few-shot prompting shows only input → answer examples, and large models still fail multi-step arithmetic. Chain-of-thought (CoT) prompting adds a few examples that include the intermediate reasoning steps, so the model generates its own reasoning before answering (Wei et al., “Chain-of-Thought Prompting Elicits Reasoning in Large Language Models”, NeurIPS 2022).

  • No fine-tuning, no gradients: purely in-context.
  • A handful (e.g. 8) of worked examples is enough.
  • Decomposes a hard problem into steps the model can handle.
Standard prompting gives a wrong answer to a math word problem; chain-of-thought prompting shows the steps and gets it right
Slide 6: the model output (green) is the generated chain of thought leading to the answer. Source: Wei et al., 2022, Fig. 1.

It Only Works Once the Model Is Big Enough

Slide 7

On small models CoT gives little or no benefit and can even hurt. The gains appear only around ~100B parameters, so CoT is an emergent ability: flat for small models, then rising steeply.

ResultStandard → CoT
PaLM 540B on GSM8K (math word problems)17.9 → 56.9, beating a fine-tuned GPT-3 175B with a verifier, the prior state of the art
StrategyQA (commonsense)68.6 → 77.8 (+9.2), beating the prior fine-tuned state of the art
Accuracy versus model scale for standard and chain-of-thought prompting on arithmetic benchmarks for LaMDA, GPT and PaLM
Slide 7: standard vs. CoT vs. prior supervised best across LaMDA, GPT-3 and PaLM; CoT pulls ahead only at the largest scale. Source: Wei et al., 2022, Fig. 4.

The Same Trick Spans Different Kinds of Reasoning

Slide 8

  • Arithmetic: GSM8K, SVAMP, MAWPS math word problems.
  • Commonsense: CSQA, StrategyQA, date and sports questions, robot planning (SayCan).
  • Symbolic: last-letter concatenation, coin-flip state tracking.
Worked chain-of-thought examples for arithmetic, commonsense and symbolic reasoning tasks
Slide 8: in each task the model writes out the steps (highlighted) before committing to an answer. Source: Wei et al., 2022, Fig. 3.

Interleave Thinking with Acting: ReAct

Slide 9

Pure CoT can hallucinate (it only reasons from memory); pure acting lacks planning. ReAct interleaves both in one trace, prompted with only 1 or 2 examples (Yao et al., “ReAct: Synergizing Reasoning and Acting in Language Models”, ICLR 2023):

  • Thought: free-form reasoning, decompose and decide.
  • Action: call a tool, e.g. search[...].
  • Observation: the result, fed back into the context.
HotpotQA question solved by standard prompting, CoT, act-only and ReAct; only ReAct is correct
Slide 9: a knowledge task (HotpotQA): standard, CoT and act-only miss, ReAct gets it right. Source: Yao et al., 2023, Fig. 1.

The Same Loop, Now Acting in a World

Slide 10

In ALFWorld (a text-based simulated home), the agent must “put a pepper shaker on a drawer”. Act-only takes blind actions and gets stuck repeating useless ones. ReAct’s interleaved thoughts decide where to look and track the sub-goal, so it finds the object and finishes the task.

ALFWorld task: act-only agent wanders and fails, ReAct agent reasons about where the pepper shaker is and succeeds
Slide 10: act-only (left) wanders and fails; ReAct (right) reasons about where the object is, then acts. Source: Yao et al., 2023.

Reasoning + Acting Beats Either Alone

Slide 11

Slide 11: click Step to advance the Thought / Action / Observation loop.

ReAct’s reasoning is more grounded and interpretable than CoT’s. On the two decision tasks, 1 or 2 examples beat trained baselines:

TaskReActBaselines
ALFWorld71% success45% act-only, 37% BUTLER (imitation learning)
WebShop40.0% success30.1% act-only, also above IL and RL baselines

Combining internal and external knowledge

ReAct reasons over retrieved facts; CoT-SC reasons from the model’s own knowledge (majority vote over sampled chains). The best HotpotQA method, ReAct → CoT-SC, runs ReAct and falls back to CoT-SC only when it can’t answer within a step budget.

Part 2: Tool Use

Slide 12

Toolformer: Learn Tool Use from the Model’s Own Signal

Slides 13-14

LLMs fail at things tiny tools do trivially: exact arithmetic, factual lookup, today’s date, translation. Toolformer (Schick et al., NeurIPS 2023) teaches a model to decide which API to call, when and with which arguments, self-supervised, with only a few demonstrations per tool. Tools: calculator, question answering, Wikipedia search, translation, calendar; base model GPT-J (6.7B).

Text with inline API calls such as QA, calculator, machine translation and Wikipedia search, and their results inserted
Slide 13: API calls are inserted inline, their results inserted into the text. Source: Schick et al., Fig. 1.

Toolformer's filtering

Sample candidate API calls → execute them → keep a call only if its result reduces the model’s loss (perplexity) on the following tokens. Useful calls survive, the others are discarded; the model is then fine-tuned on the augmented text. No human labels for when or how to call a tool.

Toolformer pipeline: sample API calls, execute them, filter by whether the loss decreases
Slide 14: sample → execute → filter by the LM loss. Source: Schick et al., Fig. 2.

With tools, the 6.7B model beats GPT-3 (175B) on math and factual tasks: ASDiv 7.5 → 40.4 (GPT-3: 14.0), SVAMP 5.2 → 29.4 (GPT-3: 10.0). Language modeling is preserved: perplexity is unchanged when API calls are disabled.

ToolLLM: From a Handful of Tools to 16,000+ Real APIs

Slides 15-16

Open models lagged far behind ChatGPT at real tool use, partly for lack of data. ToolLLM (Qin et al., ICLR 2024) builds ToolBench automatically with ChatGPT, without human labels:

  1. Collect APIs: 16,464 real REST APIs in 49 categories from RapidAPI Hub, with their documentation.
  2. Generate instructions: ChatGPT writes diverse requests needing one or several APIs.
  3. Annotate solution paths: ChatGPT searches for a working sequence of API calls per instruction: the supervised target.
ToolLLM pipeline: API collection, instruction generation, solution path annotation, ToolLLaMA training with an API retriever
Slide 15: collect → instruct → solve yields ToolBench, used to fine-tune ToolLLaMA; at inference an API retriever supplies the relevant APIs. Source: Qin et al., Fig. 1.

Real API calls fail often (bad arguments, dead endpoints), so a single linear chain (ReAct) gets stuck. DFSDT (depth-first search-based decision tree) tries several action paths and backtracks from failed calls; it lifts ChatGPT’s average pass rate from 40.2% (ReAct) to 64.8%.

  • API retriever: a neural search model picks the few relevant APIs from the 16k pool.
  • ToolLLaMA: LLaMA-2-7B fine-tuned on ToolBench, similar to ChatGPT even on unseen APIs.
  • ToolEval: an automatic ChatGPT judge for pass rate (finished within budget) and win rate (quality vs. a reference), validated against humans.
DFSDT explores a tree of API call paths and abandons failed ones, while a single ReAct chain gives up
Slide 16: DFSDT explores a tree and abandons failed paths. Source: Qin et al., Fig. 4.

CodeAct: Stop Picking from a Menu, Write Code

Slides 17-19

Predefined JSON or text tool calls are rigid: they can’t easily compose tools or reuse libraries. CodeAct (Wang et al., “Executable Code Actions Elicit Better LLM Agents”, ICML 2024) makes Python code the action space. Same task (find the cheapest country to buy a phone): the text agent needs many turns, CodeAct one code action.

Many JSON tool calls on the left versus a single Python code action on the right for the same task
Slide 17: text/JSON actions (left) vs. one code action (right). Source: Wang et al., Fig. 1.
AdvantageWhy
Composabilitychain many operations in one action
Control flowloops, branches and functions for free
Ecosystemcall any existing Python library
Fewer actionsone code block replaces many tool calls

The loop: generate code → execute in an interpreter → observe the output or traceback → fix and continue. The agent debugs its own code from execution feedback. Results on M3ToolEval: up to +20% success and up to 30% fewer actions than JSON/text across 17 LLMs; GPT-4 with CodeAct reaches 74.4% (+20.7 points).

Where the skill comes from (CodeActInstruct): no new human labels.

  1. Repurpose tasks: 7K multi-turn trajectories from info-seeking (HotpotQA), math (MATH), code with self-debug (APPS), tables (WikiTableQuestion), embodied planning (ALFWorld), recast so the action is Python.
  2. Generate and filter: GPT-4, GPT-3.5 and Claude solve them in the run-observe loop; keep only successful runs, favoring ones where the model makes an error and fixes it (411 from GPT-4, 6,728 from GPT-3.5 / Claude).
  3. Fine-tune Llama-2-7B and Mistral-7B, mixed with general chat data (~10.6M agent tokens + ~55M chat tokens): CodeActAgent.

The recurring recipe for agents

Take an environment with ground truth (here the interpreter), let a strong model generate trajectories in it, filter for the behavior you want (successful, self-correcting) and distill it into a smaller policy.

What Makes a Good Tool for an Agent?

Slides 20-21

Agents are non-deterministic and have limited context, so tools must be designed for agent ergonomics, not just wrap an API endpoint (Anthropic, “Writing Tools for Agents”, 2025):

PrincipleExample
Build fewer toolsone schedule_event instead of separate list / find / create calls
Return meaningful contextsemantic names instead of opaque UUIDs; concise vs. detailed format; paginate, filter, truncate (Claude Code truncates tool responses at 25,000 tokens by default)
Namespacingprefixes like asana_search, jira_search so the agent picks the right tool among hundreds
Prompt-engineer the descriptionswrite specs as for a new hire, with unambiguous names; small refinements alone gave SOTA on SWE-bench Verified

Evaluation-driven: generate realistic tasks, run them in agentic loops, collect accuracy and runtime, number of tool calls, tokens and tool errors. Then let Claude read the transcripts and refactor the tool definitions. On both the Slack and Asana servers, Claude-optimized tools beat the human-written ones on held-out accuracy.

Held-out accuracy of human-written versus Claude-optimized tools on the Asana server
Slide 21: human-written vs. Claude-optimized tools (Asana server). Source: Anthropic, 2025.

Part 3: Deep Research

Slide 22

WebGPT: Answering Questions by Browsing

Slides 23-24

Long-form QA needs evidence, but models hallucinate and give no provenance. WebGPT (Nakano et al., OpenAI 2021) fine-tunes GPT-3 to answer in a text-based browser: it reads a text summary of the current state (question, page text at the cursor, link indices, actions left) and replies with one command (Search, Click link, Find in page, Quote, Scroll, Back, End: Answer), then writes an answer with citations.

WebGPT demonstration interface with a search result page and the list of browsing commands
Slide 23: the graphical interface shown to the human demonstrators; the model gets a text version of the same state. Source: Nakano et al., Fig. 1.
flowchart LR
  B["Behavior cloning<br/>imitate human browsing"] --> R["Reward model<br/>from answer comparisons"] --> P["RL + rejection sampling<br/>optimize the policy"]

The same RLHF machinery as in Lecture 7, applied to a browsing policy. On ELI5, WebGPT (175B) answers are preferred 56% of the time over its human demonstrators and 69% over the highest-voted Reddit answer. Citations let humans verify the claims.

OpenAI Deep Research: An Autonomous Research Analyst

Slide 25

Deep research (OpenAI, “Introducing deep research”, Feb 2025) searches, reads and pivots across hundreds of sources and writes a fully cited report in 5 to 30 minutes.

  • Powered by a version of o3 optimized for browsing and data analysis.
  • End-to-end RL on hard browsing and reasoning tasks: it learns to plan, backtrack and react to live information.
  • State of the art on Humanity’s Last Exam and the GAIA web-research benchmark.
Humanity’s Last Exam (pass@1)Accuracy
GPT-4o3.3%
Claude 3.5 Sonnet4.3%
OpenAI o19.1%
DeepSeek-R19.4%
o3-mini (high)13.0%
Deep research (o3)26.6%

From WebGPT to here: browsing went from a scripted tool loop to a trained, autonomous skill.

Multi-Agent Research: One Lead Agent, Many Subagents

Slides 26-27

Research is open-ended; you can’t hardcode the path. Claude’s Research feature uses the orchestrator-workers pattern: a lead agent plans and spawns subagents that explore in parallel, each with its own context window, then compress and return their findings (Anthropic, “How we built our multi-agent research system”, Jun 2025).

Multi-agent research architecture: lead agent with memory spawning search subagents and a citation subagent
Slide 26: the lead agent orchestrates search and citation subagents. Source: Anthropic, 2025.
  • Parallel, breadth-first exploration; each subagent owns a sub-problem; more total context than one agent could hold.
  • +90.2% for the multi-agent system (Opus 4 lead + Sonnet 4 subagents) over single-agent Opus 4 on their research eval.
  • ~80% of the performance variance is explained by token usage, number of tool calls and model choice.

The downside: performance tracks tokens

Token usage relative to one chat: chat 1×, single agent 4×, multi-agent 15×. It pays off only on high-value tasks; coordination, delegation prompts and debugging stateful agents are hard.

Part 4: Coding Agents

Slide 28

SWE-bench: Can a Model Resolve a Real GitHub Issue?

Slides 29-30

Toy coding benchmarks were saturated. SWE-bench (Jimenez et al., ICLR 2024) uses 2,294 real issue + pull-request pairs from 12 popular Python repositories (django, sympy, scikit-learn, …). Given the full codebase and the issue, the model must produce a patch.

  • Graded by the repo’s real unit tests: FAIL_TO_PASS (the bug is fixed) and PASS_TO_PASS (no regressions).
  • Hard: huge context, cross-file edits, real-world reasoning.
SWE-bench: an issue and a codebase go to a language model, which generates a patch that is checked by unit tests
Slide 29: issue + codebase → generated patch → verified by the test suite. Source: Jimenez et al., Fig. 1.

At release the best model (Claude 2 with BM25 retrieval) resolved only 1.96%.

Why a "Verified" subset?

Some unit tests were overly specific, many samples underspecified, some environments hard to set up, so valid solutions could be graded as wrong: the full benchmark underestimates ability. SWE-bench Verified (OpenAI, Aug 2024) is 500 tasks that 93 professional developers confirmed as solvable and fairly graded; it is now the standard set (frontier agents exceed 70%). The point is fair grading, not bad code.

Codex: An Agent That Lives in a Sandboxed Repo

Slides 31-32

Codex (OpenAI, May 2025) runs each task in its own isolated, sandboxed cloud environment preloaded with the repository. It reads and edits files and runs commands (tests, linters, type checkers), then proposes a pull request for human review. It is powered by codex-1, a version of o3 trained with RL on real coding tasks.

Slide 31: assign a task → spin up a sandbox (network off) → edit and run → iterate to green → propose a PR. Click Step to walk through one task.
ResultScore
SWE-bench Verified, single attempt (codex-1)72.1%
SWE-bench Verified, multiple parallel attempts (pass@8)~84%

Mind the test sets

The ~2% at release was on the full SWE-bench, the 72.1% on Verified. That is a trajectory, not a like-for-like jump.

The pattern that won

A model trained for the task, an environment it can act in and get ground truth from (run the tests), iterative self-correction, and a human reviewing the diff.

Part 5: Web and Computer-Use Agents

Slide 33

WebArena: a Realistic, Reproducible Web

Slides 34-35

WebArena (Zhou et al., ICLR 2024) is a self-hosted, fully functional web with sites in 4 domains (e-commerce, social forum, GitLab, a CMS) plus tools and knowledge resources, and 812 long-horizon tasks as natural-language intents. The best GPT-4 agent succeeded on 14.41% vs. 78.24% for humans.

WebArena: self-hosted websites, tools and knowledge resources, tasks verified by functional correctness
Slide 34: self-hosted sites + tools; tasks verified by functional correctness. Source: Zhou et al., Fig. 1.

The agent acts with click / type / goto over the page’s accessibility tree and is graded by functional correctness: on the resulting state, not the words.

Task typeExample intentCheck
Information seeking”Tell me the name of the customer who has the most cancellations in the history”exact_match(answer, "Samantha Jones")
Site navigation”Checkout merge requests assigned to me”exact_match(current_url(state), ".../merge_requests?assignee_username=byteblaze")
Content and config”Post to ask ‘whether I need a car in NYC‘“must_include(post_url, "/f/nyc"), must_include(post_body, "a car in NYC")

A fluent description of the intended action earns no credit; the checker inspects the actual end state (database, URL or DOM).

VisualWebArena and OSWorld: from Text to Pixels, Beyond the Browser

Slide 36

BenchmarkSettingBest agentHumans
VisualWebArena (Koh et al., ACL 2024)910 visually grounded web tasks, many need image understanding16.4% (GPT-4V with set-of-marks)88.7%
OSWorld (Xie et al., NeurIPS 2024)real computers (Ubuntu, Windows, macOS), 369 tasks across real apps, execution-based grading12.2%72.4%
VisualWebArena example tasks that require understanding images on web pages
VisualWebArena.
OSWorld: an agent operating real desktop applications
OSWorld.

Both grade by the resulting state and both show a wide gap to humans.

WebVoyager: Seeing the Page, Not Parsing the HTML

Slide 37

Early web agents read raw HTML or accessibility trees. WebVoyager (He et al., ACL 2024) is an end-to-end agent on a large multimodal model: it sees the rendered page as a screenshot with the interactive elements marked, reasons, then clicks / types / scrolls on 15 real, live websites: 59.1% success.

WebVoyager: screenshot with marked elements, the model reasons and acts on a live website
Slide 37: observation = screenshot + marked elements. Source: He et al., Fig. 1.

Benchmark vs. agent

VisualWebArena is a reproducible sandbox graded by exact programmatic checks. WebVoyager is an agent on the live web; its 643-task test set has no ground-truth checker, success is scored by an automatic GPT-4V judge (with the judge biases of Lecture 7).

Part 6: Protocols and Skills

Slide 38

The M×N Integration Problem: Model Context Protocol

Slide 39

You have AI apps (Claude Desktop, Cursor, ChatGPT) and want to reach systems (Drive, Slack, GitHub, Postgres).

BeforeWith MCP
Integrations: a separate connector per app-tool pair (3 apps × 4 tools = 12): one client per app + one server per tool (3 + 4 = 7)
Reusea Slack connector written for Cursor does nothing for Claudeany client talks to any server
flowchart TB
  C["AI applications (clients)<br/>Claude Desktop, IDEs, agents"] <--> M["MCP<br/>one open protocol"] <--> S["Data and tools (servers)<br/>Drive, Slack, GitHub, Postgres"]

“Like a USB-C port for AI”: one standard plug, so any app connects to any source (Anthropic, “Introducing the Model Context Protocol”, Nov 2024). The old per-pair connectors were app-specific: ChatGPT plugins, LangChain tool wrappers, function-calling glue. See Model Context Protocol.

MCP: A Standard Interface, Three Primitives

Slide 40

A bidirectional client-server model: an MCP server exposes a system’s capabilities, an MCP client (the AI app) connects to it. Three kinds of primitives:

PrimitiveWhat it is
Toolsactions the model can invoke (functions with arguments)
Resourcesdata the model can read (files, records, context)
Promptsreusable prompt templates the server offers
  • Why standardize: one uniform interface, so the agent’s working context carries across tools (read from Postgres, then act in Slack). Add a system by adding a server, not by rebuilding the agent.
  • A real cross-vendor standard: launched by Anthropic (Nov 2024), adopted by OpenAI, Google DeepMind and Microsoft in 2025, plus many community servers. Anthropic open-sourced the spec, SDKs and servers for Google Drive, Slack, GitHub, Git, Postgres, Puppeteer.

The security side (every server is untrusted input) is Lecture 9.

Agent Skills: Package Expertise as a Folder

Slide 41

A model is a generalist: it doesn’t know your team’s procedures, formats and conventions. An Agent Skill packages that know-how as a plain folder: a SKILL.md file plus any scripts it needs (Anthropic, “Equipping agents for the real world with Agent Skills”, 2025).

  • Each SKILL.md starts with a short YAML header with a name and a description (both required), followed by instructions.
  • It can bundle runnable scripts, so exact steps (parse a PDF, sort data) run as code instead of being regenerated.
  • Skills are portable and pair with MCP: the skill captures the workflow, which can call MCP tools.
Anatomy of a SKILL.md file with YAML frontmatter name and description and instructions below
Slide 41: a SKILL.md with YAML frontmatter (name, description) and instructions. Source: Anthropic, 2025.

Load Only What You Need, When You Need It

Slide 42

A finite context window can’t hold every skill in full. Progressive disclosure loads a skill in levels, like a well-organized manual:

flowchart LR
  A["1 · Metadata<br/>name + description,<br/>always preloaded"] -->|"skill looks relevant"| B["2 · SKILL.md body<br/>full instructions,<br/>loaded on demand"] -->|"task needs it"| C["3 · Bundled files<br/>references and scripts,<br/>read or run as needed"]

Mock exam: progressive disclosure

Only the skill’s name and description are preloaded; the full SKILL.md body is loaded only when the agent judges the skill relevant; bundled files and scripts are read or run only when needed. Because the agent pays context only for what it actually opens, the total material a skill carries can far exceed the context window: its effective size is essentially unbounded. The same way a human uses a manual: skim the index, open only the needed chapter.

See Agent Skills.

The Agent Capability Stack

Slide 43

CapabilityKey ideaLandmark work
Reasoningelicit step-by-step thinking; interleave it with actionsCoT, ReAct
Tool usecall APIs; train for it; write code instead of menusToolformer, ToolLLM, CodeAct
Tool designfewer, ergonomic, eval-driven toolsWriting tools for agents
Deep researchautonomous multi-step browsing with citations; multi-agentWebGPT, deep research, multi-agent research
Codingreal issues + executable tests; sandboxed iterative agentsSWE-bench, Codex
Web / computer userealistic environments; HTML → pixelsWebArena, OSWorld, WebVoyager
Connectionstandard protocol for tools and data; portable skill foldersMCP, Agent Skills

Modern agents compose all of these: a reasoning model, in a loop, with well-designed tools, in a realistic environment, connected by open standards.

Three Things to Remember

Slides 44-45

  1. An agent is a loop, not a model. Reasoning, tools and environment feedback turn a predictor into a system that acts. Start simple; add agency only when needed.
  2. Capability comes from acting in the world. The biggest gains came from grounding: browsing, running tests, seeing the screen. The environment supplies the ground truth.
  3. The trajectory is towards autonomy. Scripted tool loops became trained, autonomous, multi-agent systems connected by shared standards. Capability and risk grow together: the same loop that makes agents useful makes them exploitable (Lecture 9).

Self-Test

Multiple Choice

References