Glossary: AI Agent Terms Explained From Zero

47 min read

Glossary: AI Agent Terms Explained From Zero

The problem

Articles about AI agents are full of words like context window, embedding, trajectory, pass@k and RL post-training. If you have never built software with a language model, each of those words is a small wall, and after three walls in one paragraph most readers give up. This page takes the walls down one at a time, in plain words.

You can read the series in order and come back here whenever a word is unclear. Every article links its terms straight to the matching entry below.

Start here

Read these in order. Each one builds on the one before, and together they get you from "what is an AI" to "what is an agent".

LLM

An LLM, or large language model, is a computer program trained on a huge amount of text so that it can predict what words should come next. Give it the start of a sentence and it continues it. Do that very well, over and over, and it can answer questions, write code and summarise documents. ChatGPT, Claude, Gemini and DeepSeek are all built on LLMs.

Why it matters: Every agent in this series has an LLM at its centre. The agent is the LLM plus everything wrapped around it.

Covered in: Part 2: What an AI agent is

Model

In this series "the model" means the LLM itself: the trained program that reads text and writes text back. Different companies sell different models, with names like gpt-4o-mini, Claude Sonnet 4.5 or DeepSeek-V3.

Why it matters: The articles keep separating the model from the system around it. A good model inside a badly built agent still fails.

Covered in: Part 2: What an AI agent is, Part 7: Testing an agent

Prompt

A prompt is the text you send to the model. It can be a short question or a long message with instructions, background facts and the conversation so far. The model only knows what is in the prompt, plus what it learned during training.

Why it matters: Agent memory, context compression and much of agent design are really about deciding what goes into the prompt.

Covered in: Part 5: Long-term memory, Part 6: Context compression

Chatbot

A chatbot is a program you talk to in turns: you type a message, it types an answer. Underneath, each answer is one prompt sent to the model and one reply back. It does not go off and do things on its own.

Why it matters: The series uses the chatbot as the starting point. An agent is what you get when you let a chatbot use tools and keep going in a loop.

Covered in: Part 2: What an AI agent is, Part 3: Chatbot vs workflow vs agent

API

An API, or application programming interface, is a doorway that lets one program ask another program to do something, using a fixed format. AI companies offer an API so your own code can send a prompt to their model and get the answer back, without opening a chat website.

Why it matters: Agents are built by code that talks to a model through an API, again and again.

Covered in: Part 3: Chatbot vs workflow vs agent, Part 6: Context compression

API call

An API call is one single request through an API: your code sends a prompt, the model sends back a reply. The articles also call this a model call. Companies usually charge per call, based on how much text goes in and out.

Why it matters: A chatbot answer is one call. An agent might make ten or more calls for one task, so it costs more.

Covered in: Part 3: Chatbot vs workflow vs agent

API key

An API key is a long secret code that proves to the AI company that a request comes from your account, so they know whom to bill. In the code samples it is kept in a setting called OPENAI_API_KEY instead of being typed into the code.

Why it matters: Some "Try this" examples need one. Treat it like a password: never share it or paste it into public code.

Covered in: Part 6: Context compression, Part 9: Multi-agent teams

Tool

A tool is any action a model can ask the program around it to perform: search the web, open a web page, read a file, run code, look up a record, or do a calculation. The model writes a request like "search for X", the program runs it, and the result is handed back to the model as text.

Why it matters: Tools are the "hands" of an agent. Without tools a model can only talk.

Covered in: Part 2: What an AI agent is, Part 4: The agent loop

Tool call

A tool call is one use of a tool: the model asks for an action, with specific inputs, and gets a result back. "Run the test" is one tool call. "Look up the refund policy" is another.

Why it matters: Counting and checking tool calls is a big part of judging whether an agent did its job well and cheaply.

Covered in: Part 4: The agent loop, Part 7: Testing an agent

Agent

An AI agent is a program that takes a goal, plans, uses tools to act, checks its own results and keeps going until the goal is done. If a chatbot is a librarian who answers one question, an agent is a research assistant who goes and does the whole job.

Why it matters: This is the subject of the whole series.

Covered in: Part 2: What an AI agent is

How agents work

Workflow

A workflow is a fixed list of steps written by a person in advance, run in the same order every time. It can use a model at some steps, but the model does not decide what happens next. Think of a meal kit with every step printed on a card.

Why it matters: Many jobs that look like they need an agent are cheaper and safer as a workflow.

Covered in: Part 3: Chatbot vs workflow vs agent

Agent loop

The agent loop is the repeating cycle at the heart of every agent: think about what to do next, act with one tool, observe the result, repeat. It is like cooking soup: taste, add salt, taste again.

Why it matters: The loop is what lets an agent react to things it could not know in advance.

Covered in: Part 4: The agent loop, Part 2: What an AI agent is

Think act observe

These are the three steps of each turn of the agent loop. Think: the model reads the latest result and decides the next action. Act: it calls a tool. Observe: it reads what the tool returned.

Why it matters: When an agent fails, you can usually point at which of the three steps went wrong.

Covered in: Part 4: The agent loop

ReAct

ReAct, short for "reason and act", is a 2022 research method in which a model alternates between writing out its reasoning and taking an action, then reads the result before reasoning again. It is the best known early description of the agent loop.

Why it matters: It is the source the series cites for the idea of the agent loop.

Covered in: Part 2: What an AI agent is, Part 4: The agent loop

Plan

A plan is the list of steps an agent intends to take toward its goal. In a good agent the plan changes as new results come in, rather than being followed blindly.

Why it matters: Plans that drift away from the goal are one of the main ways long tasks fail.

Covered in: Part 2: What an AI agent is, Part 9: Multi-agent teams

Observation

An observation is whatever comes back after an action: search results, an error message, the contents of a file, a test result.

Why it matters: Each observation shapes the next thought. Old observations also pile up in the prompt and get expensive.

Covered in: Part 4: The agent loop, Part 6: Context compression

Stop condition

A stop condition is the rule that tells an agent when to quit: for example, "stop when all tests pass, or after five loops, whichever comes first". The second part is often called a maximum number of loops.

Why it matters: Without one, an agent can loop forever and keep spending money.

Covered in: Part 4: The agent loop

Definition of done

The definition of done is a clear, checkable description of what a finished task looks like, such as "all tests pass".

Why it matters: An agent with no clear finish line does not know when to stop.

Covered in: Part 4: The agent loop

Long-horizon agent

A long-horizon agent is one that works on a task needing many steps over a long time, like an hour of work or fifty rounds of actions, instead of a quick answer. The "horizon" is how far ahead the task stretches.

Why it matters: Problems that are invisible on short tasks, like overflowing context or drifting plans, show up on long ones.

Covered in: Part 6: Context compression, Part 9: Multi-agent teams

Autonomous

Autonomous means the agent acts on its own, choosing its next steps without a person approving each one.

Why it matters: The more autonomous an agent is, the harder it is to notice when it is quietly doing the wrong thing.

Covered in: Part 8: Reward hacking

Scaffolding

Scaffolding is all the structure built around a model to keep it on track: written roles, shared notes, checkpoints, checks on each step, retry rules and stop conditions. Like scaffolding around a building, it holds things in place while the work happens.

Why it matters: The series argues that many agent failures are fixed by better scaffolding, not a bigger model.

Covered in: Part 9: Multi-agent teams

Guardrails

Guardrails are rules and checks placed around an agent to block unwanted behaviour, for example limits on which tools it can use or checks on its outputs.

Why it matters: Part 8 points to training and guardrails as the reason some models resist cheating.

Covered in: Part 8: Reward hacking

Hallucination

A hallucination is when a model states something false as if it were true, for example inventing a record or a fact that does not exist. The memory and eval articles call one version a "hallucinated record".

Why it matters: It is one of the failure categories worth tracking in an eval.

Covered in: Part 7: Testing an agent

Agent framework

An agent framework is a ready-made software library that handles the plumbing of building agents: calling the model, running tools, keeping the loop going. LangChain, Hugging Face smolagents and Microsoft AutoGen are examples.

Why it matters: You do not need one to understand agents, but most production agents use one.

Covered in: Part 2: What an AI agent is, Part 9: Multi-agent teams

LangChain

LangChain is a popular open-source framework for building applications and agents on top of language models.

Why it matters: The series cites its docs for the standard definitions of agents, chatbots and workflows.

Covered in: Part 2: What an AI agent is, Part 3: Chatbot vs workflow vs agent

smolagents

smolagents is a small open-source agent framework from Hugging Face, a company that hosts AI models and tools.

Why it matters: It is cited alongside LangChain as a source for the agent versus chatbot distinction.

Covered in: Part 2: What an AI agent is

AutoGen

AutoGen is Microsoft's open-source framework for building teams of agents that talk to each other. The Part 9 example installs two pieces of it, autogen-agentchat and autogen-ext.

Why it matters: It is the tool used in the two-agent "Try this" example.

Covered in: Part 9: Multi-agent teams

gpt-4o-mini

gpt-4o-mini is a small, cheap model sold by OpenAI. The code samples use it because it costs little per call.

Why it matters: It is the model the "Try this" examples talk to.

Covered in: Part 6: Context compression, Part 9: Multi-agent teams

Context and tokens

Token

A token is a chunk of text that a model reads and writes, often a word or part of a word. In English one token is roughly three quarters of a word. Models are priced and limited by tokens.

Why it matters: Tokens are how you measure an agent's prompt size and its bill.

Covered in: Part 5: Long-term memory, Part 6: Context compression

Tokenizer

A tokenizer is the tool that cuts text into tokens. Each model family has its own, so the same sentence can be a different number of tokens for different models.

Why it matters: Part 5 uses a rough word count instead of a real tokenizer and says so plainly.

Covered in: Part 5: Long-term memory

tiktoken

tiktoken is OpenAI's open-source tokenizer library for Python. It counts tokens the way OpenAI models do.

Why it matters: It is the real tokenizer that was not installed for the Part 5 measurement, which is why the counts there are approximate.

Covered in: Part 5: Long-term memory

Context window

The context window is all the text a model can see at once: the prompt plus its reply. Anything outside it does not exist for the model. It works like a desk: only the papers on the desk can be read.

Why it matters: It is the reason agents forget between sessions and the reason long tasks get crowded.

Covered in: Part 5: Long-term memory, Part 6: Context compression

Context

Context is the content currently inside the context window: instructions, conversation, tool results and remembered facts.

Why it matters: Managing context, what goes in and what gets left out, is a core agent skill.

Covered in: Part 6: Context compression

Working context

Working context is the small set of things the agent needs right now: the current conversation and the few facts relevant to this task. It lives in the prompt and is thrown away when the task ends.

Why it matters: It is Layer 1 of the four-layer memory design.

Covered in: Part 5: Long-term memory

Effective context

Effective context is how much text a model can actually use well, which is often less than the maximum its context window allows.

Why it matters: Smaller models have a shorter effective context, so they struggle sooner on long tasks.

Covered in: Part 6: Context compression

Attention

Attention is the part of a model that decides which earlier words matter for the word it is writing now. When the prompt is huge, that focus gets spread thin across text that no longer matters.

Why it matters: It is one reason long prompts hurt quality, not just cost.

Covered in: Part 6: Context compression

System instructions

System instructions, often called a system prompt, are standing rules given to the model at the start of every conversation, like "you are a helpful assistant, never do X".

Why it matters: In long agent runs they can be repeated many times, wasting tokens.

Covered in: Part 6: Context compression

Context compression

Context compression is shrinking what goes into the prompt so it fits and stays cheap: summarising old turns, dropping stale tool results and keeping a short state instead of the full log.

Why it matters: Part 6 shows it can cut peak token use by 26 to 54 percent on long tasks.

Covered in: Part 6: Context compression

ACON

ACON is a research system from Microsoft that learns which parts of a long agent's context to keep and which to compress, instead of using one fixed rule.

Why it matters: It is the system behind the numbers in Part 6.

Covered in: Part 6: Context compression

Peak token usage

Peak token usage is the largest prompt size an agent reaches at any point in a task.

Why it matters: The peak decides whether a task fits in the context window at all.

Covered in: Part 6: Context compression

Token budget

A token budget is the limit you set on how many tokens an agent may use per step or per task, based on what you can afford and how fast it must be.

Why it matters: Compression is how an agent stays inside its budget.

Covered in: Part 6: Context compression

Latency

Latency is the waiting time between asking and getting an answer. Bigger prompts usually mean more latency.

Why it matters: It is one of the two things, with cost, that set a token budget.

Covered in: Part 6: Context compression

Structured state

Structured state is a short, organised record of where the task stands, what is decided and what is still open, kept instead of the full history.

Why it matters: It keeps the important facts while throwing away the noise.

Covered in: Part 6: Context compression

Stale observation

A stale observation is an old tool result that no longer reflects the world or no longer affects the task.

Why it matters: These are among the first things to compress or drop.

Covered in: Part 6: Context compression

Session

A session is one continuous stretch of work or conversation with an agent. When it ends, the context window is cleared.

Why it matters: Memory is about carrying facts from one session to the next.

Covered in: Part 5: Long-term memory

Transcript

A transcript is the full word-for-word record of a session: every message and tool result.

Why it matters: Keeping the whole transcript in the prompt is the expensive habit that summaries and compression replace.

Covered in: Part 5: Long-term memory, Part 6: Context compression

KV cache

The KV cache, short for key-value cache, is memory a model uses while running to store work it already did on earlier tokens, so it does not redo it for every new word. It grows with the length of the context.

Why it matters: Part 5 points to it as the memory budget that makes short summaries worth the effort.

Covered in: Part 5: Long-term memory

Memory

Long-term memory

Long-term memory is a store of facts kept outside the model that survives between sessions, with only the relevant facts loaded back into the prompt when needed. It is like a notebook the agent opens to the right page.

Why it matters: Without it, an agent re-asks questions and repeats failed fixes.

Covered in: Part 5: Long-term memory

Short-term memory

Short-term memory is what the model has in its context window right now. It disappears when the session ends.

Why it matters: Part 5 calls the context window short-term memory to explain why agents forget.

Covered in: Part 5: Long-term memory

Session summary

A session summary is a short note, one page at most, written at the end of a session listing decisions, open items and facts worth keeping. The next session reads it first.

Why it matters: In the Part 5 measurement a summary was less than half the size of the full history it replaced.

Covered in: Part 5: Long-term memory

Long-term store

The long-term store is the durable record of individual facts, each with a source and a date, that the agent searches rather than loads in full. It is Layer 3 of the memory design.

Why it matters: It is where the actual remembering lives.

Covered in: Part 5: Long-term memory

Archive

The archive holds old sessions, full transcripts and raw logs. It is never loaded into a prompt by default, only checked when you need proof.

Why it matters: It is how you check a summary that says something odd.

Covered in: Part 5: Long-term memory

Retrieval

Retrieval is searching a memory store and pulling back only the few facts that match the current task.

Why it matters: Part 5 calls the retrieval arrow "the whole system": if it works, the agent remembers.

Covered in: Part 5: Long-term memory, Part 6: Context compression

Vector store

A vector store is a database that keeps text as embeddings (lists of numbers) and finds entries by how close their numbers are to a query.

Why it matters: It finds facts worded differently, but it can also return facts that sound similar and are wrong.

Covered in: Part 5: Long-term memory

Embedding

An embedding turns a piece of text into a list of numbers that captures its meaning, so that texts with similar meaning get similar numbers.

Why it matters: It is what makes a vector store work.

Covered in: Part 5: Long-term memory

Similarity search

Similarity search finds the stored items whose embeddings sit closest to the query's embedding, meaning the most similar in meaning.

Why it matters: It is how a vector store answers a question, and why it can pick a near miss.

Covered in: Part 5: Long-term memory

Knowledge graph

A knowledge graph stores facts as things linked together, like "this person works on that project", so you can follow the links.

Why it matters: Useful when relationships matter most, but it goes stale when nobody updates the links.

Covered in: Part 5: Long-term memory

Keyword search

Keyword search finds text that contains the same words as your query. The Part 5 memory code scores facts by how many words they share with the question.

Why it matters: It is cheap and easy to check, but it misses facts that use different words.

Covered in: Part 5: Long-term memory

Grep

grep is a command-line tool that searches files for matching text. Typing grep retry *.md lists every line containing "retry" in those files.

Why it matters: Part 5 recommends starting memory with plain text files you can grep.

Covered in: Part 5: Long-term memory

Summary drift

Summary drift is what happens when you summarise a summary, again and again: each round drops detail until the original fact is blurred or wrong. "3 attempts, 2 to 10 seconds" slowly becomes "handles errors".

Why it matters: It is the hidden cost of saving tokens with summaries.

Covered in: Part 5: Long-term memory

Source link

A source link is a pointer stored with each fact saying where it came from, so a person or the agent can check it.

Why it matters: It is the main defence against drift and wrong facts.

Covered in: Part 5: Long-term memory

Fine-tuning

Fine-tuning is training an existing model a little more on your own examples, which changes the model itself.

Why it matters: Part 5 explains that long-term memory is not fine-tuning: memory changes what the model reads, not the model.

Covered in: Part 5: Long-term memory

Model weights

Model weights are the billions of numbers inside a model that were set during training and that decide how it responds.

Why it matters: Fine-tuning and training change the weights. Memory and prompts do not.

Covered in: Part 5: Long-term memory

Testing agents

Eval

An eval, short for evaluation, is a repeatable test that measures how well a model or agent does on a set of tasks.

Why it matters: Without an eval you are guessing whether a change made your agent better or worse.

Covered in: Part 7: Testing an agent

Eval set

An eval set is the fixed collection of test cases an eval runs: each with an input, an expected outcome and a scoring rule. You freeze it with a name and a date so runs can be compared.

Why it matters: Part 7 suggests twenty cases built from real failures as a starting size.

Covered in: Part 7: Testing an agent

Test case

A test case is one single task in an eval set or test suite, with a known correct answer.

Why it matters: Reading results case by case shows patterns that one overall score hides.

Covered in: Part 7: Testing an agent

Benchmark

A benchmark is a public, shared eval that many teams run so their results can be compared, like a standard exam.

Why it matters: Parts 6, 8 and 9 are each built on findings from benchmarks.

Covered in: Part 8: Reward hacking, Part 9: Multi-agent teams

Held-out set

A held-out set is a group of test cases kept hidden from the model or agent during training and tuning, used only for testing.

Why it matters: If the agent has seen the test, a high score can mean memorising, not skill.

Covered in: Part 5: Long-term memory, Part 8: Reward hacking

Outcome

The outcome is the end result of a task: was the refund issued for the right amount, did the tests pass?

Why it matters: It is what users care about, but it says nothing about how the agent got there.

Covered in: Part 7: Testing an agent

Trajectory

The trajectory is the path the agent took: which tools it called, in what order, with what inputs.

Why it matters: It catches agents that get the right answer for the wrong reason.

Covered in: Part 7: Testing an agent

Pass rate

Pass rate is the share of test cases the agent passed. Passing 17 out of 20 is an 85 percent pass rate.

Why it matters: It is useful, but one lucky run can make it look better than it is.

Covered in: Part 7: Testing an agent

Consistency

Consistency is the share of test cases the agent passes every single time you run them, for example five out of five.

Why it matters: Users get one run at a time, so for a product this is the number that counts.

Covered in: Part 7: Testing an agent

Flaky

A flaky case or tool is one that sometimes passes and sometimes fails with no change to the input.

Why it matters: A flaky case is a sign of a hidden problem, and Part 7 calls it your next fix.

Covered in: Part 7: Testing an agent

Pass at k

Pass at k, written pass@k, asks whether the agent passes a task at least once in k tries. Pass@5 means "solved at least once in five attempts".

Why it matters: It measures what an agent can do sometimes, not what it does reliably.

Covered in: Part 7: Testing an agent

Pass hat k

Pass hat k, written pass^k, is the chance that all k tries succeed. It is the formal name for consistency across k runs.

Why it matters: It is the stricter partner of pass@k, and the better guide for a product.

Covered in: Part 7: Testing an agent

Unbiased estimator

An unbiased estimator is a formula from statistics that gives, on average, the true value of something you can only sample. Research papers use one to calculate pass@k fairly from many tries.

Why it matters: Part 7 makes clear its toy numbers use a simple share, not this formula.

Covered in: Part 7: Testing an agent

Scoring rule

A scoring rule is the fixed method that decides if a test case passed: exact match, a number within tolerance, or a list of required steps. The program that applies it is the scorer.

Why it matters: A mechanical rule has no error rate of its own.

Covered in: Part 7: Testing an agent

Exact match

Exact match is a scoring rule that passes only if the answer is identical to the expected one.

Why it matters: It is the simplest scorer to trust, and the one Part 7 uses.

Covered in: Part 7: Testing an agent

Tolerance

Tolerance is how far a number may be from the expected value and still count as correct, like "within one cent".

Why it matters: It lets a mechanical scorer handle numbers that are close enough.

Covered in: Part 7: Testing an agent

Model judge

A model judge, often called LLM-as-a-judge, is using a language model to grade another model's or agent's answers.

Why it matters: It is handy for answers that cannot be checked mechanically, but the judge makes its own mistakes.

Covered in: Part 7: Testing an agent

Seed

A seed is the starting number for a random number generator. The same seed gives the same "random" sequence every time.

Why it matters: Recording seeds lets you rerun an eval and get the same results.

Covered in: Part 7: Testing an agent

Rule-based program

A rule-based program follows fixed if-then rules written by a person, with no language model inside.

Why it matters: The Part 7 refund agent is rule-based, with no language model involved, which keeps the eval easy to follow.

Covered in: Part 7: Testing an agent

Stale cache

A cache is a saved copy of data kept to avoid fetching it again. It is stale when the original has changed but the copy has not, like an old printed timetable.

Why it matters: In Part 7 a stale policy caused every failure.

Covered in: Part 7: Testing an agent

Edge case

An edge case is an unusual input at the limits of what a program expects, such as an empty list.

Why it matters: Agents and code often break on edge cases first.

Covered in: Part 4: The agent loop

Boundary case

A boundary case is a test input right at or near a rule's limit, like a purchase exactly 30 days old when the limit is 30 days.

Why it matters: In Part 7, all three failures were boundary cases.

Covered in: Part 7: Testing an agent

Escalate

To escalate is to hand a case to a person or a higher level instead of deciding it automatically.

Why it matters: It is the refund agent's other possible decision in Part 7.

Covered in: Part 7: Testing an agent

Version check

A version check confirms that the data or rule you are using is the current version, not an old one.

Why it matters: It is the fix Part 7 suggests for the stale policy.

Covered in: Part 7: Testing an agent

Log

A log is a saved record of what happened on each run: inputs, outputs, tool calls, tokens, versions and dates.

Why it matters: Logs let you tell whether your agent got worse or something changed under it.

Covered in: Part 7: Testing an agent

Scorecard

A scorecard is a simple table with one row per eval run, recording date, model, pass rate, consistency, tokens and time.

Why it matters: It turns "it used to work better" into numbers you can compare.

Covered in: Part 7: Testing an agent

tau-bench

tau-bench is a research benchmark that tests agents talking with simulated users and using tools in realistic customer-service style tasks. It is where the pass^k definition comes from.

Why it matters: It is cited for the formal consistency metric.

Covered in: Part 7: Testing an agent

ReliabilityBench

ReliabilityBench is a source the Part 7 article used to check how the tau-bench pass^k definition is summarised.

Why it matters: It is cited in Part 7's sources for the metric definitions.

Covered in: Part 7: Testing an agent

Arize AI

Arize AI is a company that makes tools for monitoring and evaluating AI systems, and publishes explainers such as one on pass@k.

Why it matters: Part 7 checked its pass@k definition against Arize's explainer.

Covered in: Part 7: Testing an agent

AgentBench

AgentBench is an open-source benchmark from Tsinghua University researchers (the THUDM group) that tests language models acting as agents across many kinds of environments.

Why it matters: Part 8 points to it as a starting place for real agent evaluation.

Covered in: Part 8: Reward hacking

AppWorld

AppWorld is a benchmark where agents complete everyday tasks across a simulated world of apps by writing code that uses those apps.

Why it matters: It is one of the three test settings behind ACON's token savings.

Covered in: Part 6: Context compression

OfficeBench

OfficeBench is a benchmark of office-work tasks that need an agent to work across several office applications.

Why it matters: It is another of ACON's three test settings.

Covered in: Part 6: Context compression

Multi-objective question answering

Multi-objective question answering is a test where one task contains several questions to answer, so the agent must juggle more than one goal at once.

Why it matters: It is the third ACON test setting.

Covered in: Part 6: Context compression

Baseline

A baseline is the existing method you compare a new method against, to show whether the new one is actually better.

Why it matters: ACON's claim is that it beats existing compression baselines.

Covered in: Part 6: Context compression

Accuracy tax

"Accuracy tax" is the series' phrase for the small drop in correctness you sometimes pay in exchange for a cheaper or shorter method.

Why it matters: Compression is a trade, not a free lunch.

Covered in: Part 6: Context compression

Training and rewards

Training

Training is the long process that builds a model by showing it huge amounts of data and adjusting its weights to make better predictions.

Why it matters: How a model was trained shapes how it behaves as an agent.

Covered in: Part 8: Reward hacking

Base model

A base model is a model straight after its main training on text, before extra training to follow instructions or chase rewards.

Why it matters: Part 8 notes a base model has no pressure to exploit a reward.

Covered in: Part 8: Reward hacking

Post-training

Post-training is any extra training done after the main training, to make the model follow instructions, be helpful, reason better or score higher on a reward.

Why it matters: Part 8 links one kind of post-training to more cheating.

Covered in: Part 8: Reward hacking

RL

RL, or reinforcement learning, is training by trial and error: the model tries something, gets a score called a reward, and is nudged toward actions that earn higher rewards. It is like training a dog with treats.

Why it matters: Optimising hard for a reward is what can teach a model to exploit loopholes.

Covered in: Part 8: Reward hacking

Reward

A reward is the score that tells a learning system how well it did. Higher is better.

Why it matters: The reward is never quite the same thing as the real task, and that gap is the problem in Part 8.

Covered in: Part 8: Reward hacking

Reward function

A reward function is the rule or program that calculates the reward. The reward signal is the number it produces.

Why it matters: Loopholes in the reward function are what agents learn to exploit.

Covered in: Part 8: Reward hacking

Reward hacking

Reward hacking is when an agent gets a high score by exploiting a loophole in how it is scored, instead of actually doing the task. Like a student who learns the marker only checks the last line of the answer.

Why it matters: A hacked reward looks like success on the dashboard.

Covered in: Part 8: Reward hacking

Exploit rate

The exploit rate is the share of tasks on which an agent games the reward instead of solving the task.

Why it matters: It is the number Part 8's benchmark reports for each model.

Covered in: Part 8: Reward hacking

Optimisation pressure

Optimisation pressure is how hard and for how long training pushes a model to raise its score.

Why it matters: More pressure makes it more likely the model finds and uses a loophole.

Covered in: Part 8: Reward hacking

Outcome reward

An outcome reward scores only the final result of a task.

Why it matters: It is the easiest kind to game, because faking one final number is enough.

Covered in: Part 8: Reward hacking

Process reward

A process reward scores the steps taken, not just the final answer: did the agent really run the test, read the file, check the result?

Why it matters: Faking every step is much harder than faking one result.

Covered in: Part 8: Reward hacking

Rubric

A rubric is a written checklist of what good work looks like, used for grading.

Why it matters: Process rewards need one, and writing it is real work.

Covered in: Part 8: Reward hacking

Red-teaming

Red-teaming is deliberately attacking your own system to find its weak spots before someone or something else does.

Why it matters: Part 8 suggests red-teaming the reward function itself.

Covered in: Part 8: Reward hacking

Capped evaluation

Capped evaluation limits how much an agent can try or how often it can see the tests during evaluation.

Why it matters: Combined with randomised tests, it stops an agent memorising its way to a high score.

Covered in: Part 8: Reward hacking

Randomised tests

Randomised tests change their details each run so they cannot be memorised.

Why it matters: They make a high score mean real skill.

Covered in: Part 8: Reward hacking

Ablation

An ablation is an experiment that removes or changes exactly one thing to see what effect that one thing has.

Why it matters: Part 8's comparison is not an ablation, so it shows a link, not proof of cause.

Covered in: Part 8: Reward hacking

Observational comparison

An observational comparison looks at things that already differ, rather than changing one factor on purpose.

Why it matters: It can show that two things go together (an association) but not that one causes the other.

Covered in: Part 8: Reward hacking

Lineage

A model's lineage is the family it comes from, where one model is built from or alongside another.

Why it matters: DeepSeek-V3 and DeepSeek-R1-Zero share a lineage, which is why comparing them is interesting.

Covered in: Part 8: Reward hacking

Claude Sonnet 4.5

Claude Sonnet 4.5 is a language model made by the company Anthropic.

Why it matters: It scored 0 percent exploits in Part 8's benchmark.

Covered in: Part 8: Reward hacking

DeepSeek-V3

DeepSeek-V3 is a language model made by the Chinese company DeepSeek.

Why it matters: It scored 0.6 percent exploits in Part 8's benchmark.

Covered in: Part 8: Reward hacking

DeepSeek-R1-Zero

DeepSeek-R1-Zero is a DeepSeek reasoning model trained heavily with RL.

Why it matters: It scored 13.9 percent exploits, the highest of the three in Part 8.

Covered in: Part 8: Reward hacking

Jailbreak

A jailbreak is a prompt crafted to trick a model into ignoring its safety rules.

Why it matters: Part 8 stresses that reward hacking is a different problem from jailbreaks.

Covered in: Part 8: Reward hacking

Prompt injection

Prompt injection is hiding instructions inside content an AI reads, like a web page or email, so it follows the attacker instead of its user.

Why it matters: Also different from reward hacking, which needs no attacker at all.

Covered in: Part 8: Reward hacking

Dashboard

A dashboard is a screen of charts and numbers that shows how a system is doing.

Why it matters: A gamed metric can make the dashboard look great while the real task fails.

Covered in: Part 8: Reward hacking

Metric

A metric is any number you measure to judge performance, such as pass rate or exploit rate.

Why it matters: An agent will push whatever metric you give it, even a wrong one.

Covered in: Part 8: Reward hacking, Part 9: Multi-agent teams

GEPA

GEPA is a 2025 research method that improves the prompts given to a model by having the model reflect on its results and evolve better prompts, instead of retraining it.

Why it matters: Part 7 mentions an article on it as related reading in the same set.

Covered in: Part 7: Testing an agent

Teams of agents

Multi-agent system

A multi-agent system is a team of several agents, each with its own job, working on one shared task by talking to each other.

Why it matters: Part 9 shows such teams fall apart as tasks get longer.

Covered in: Part 9: Multi-agent teams

Roles

A role is the job given to one agent in a team, like planner or worker. Asymmetric roles means agents have different jobs and abilities.

Why it matters: Unclear roles lead to two agents doing the same job while a third job goes undone.

Covered in: Part 9: Multi-agent teams

Coordination

Coordination is how a team of agents keeps its work lined up: communicating, planning jointly and sharing resources.

Why it matters: When nobody owns the shared plan, agents work at cross purposes.

Covered in: Part 9: Multi-agent teams

Shared state

Shared state is a common record of the plan and progress that every agent on a team can read.

Why it matters: It is one of the structural fixes for team failure.

Covered in: Part 9: Multi-agent teams

Checkpoint

A checkpoint is a planned pause where the team checks progress before moving on.

Why it matters: It catches mistakes before they spread.

Covered in: Part 9: Multi-agent teams

Error compounding

Error compounding is when one agent's mistake becomes the next agent's input, and the error grows with every step, like a rumour passed down a line.

Why it matters: It is why each step should be verified before it is handed on.

Covered in: Part 9: Multi-agent teams

Context loss

Context loss is when the original goal gets buried as the conversation grows, and the plan drifts.

Why it matters: It is one of the four failure modes in Part 9.

Covered in: Part 9: Multi-agent teams

Role confusion

Role confusion is when agents are unsure who does what, so work is duplicated or skipped.

Why it matters: Writing roles down explicitly fixes much of it.

Covered in: Part 9: Multi-agent teams

Blackbox setting

A blackbox setting is one where each agent sees only what the others do and say, not their internal state, meaning their private reasoning and memory.

Why it matters: It is how real teams work: you cannot read a colleague's mind.

Covered in: Part 9: Multi-agent teams

Interaction round

An interaction round is one cycle in which the agents on a team each get a turn to act or speak.

Why it matters: AgentWorld tasks span more than 50 rounds, far beyond the short tests most benchmarks use.

Covered in: Part 9: Multi-agent teams

AgentWorld

AgentWorld is a benchmark for long-horizon teamwork among 3 to 20 agents, set inside a game world.

Why it matters: It is the main source for Part 9.

Covered in: Part 9: Multi-agent teams

MMORPG

An MMORPG, or massively multiplayer online role-playing game, is an online game world where many players with different characters and abilities play together.

Why it matters: AgentWorld uses an MMORPG-style world as its sandbox.

Covered in: Part 9: Multi-agent teams

Sandbox

A sandbox is a safe, closed environment where programs can act freely without affecting anything real.

Why it matters: It lets researchers test agent teams without real-world damage.

Covered in: Part 9: Multi-agent teams

Human-annotated

Human-annotated means people wrote or labelled the data by hand, rather than a program generating it.

Why it matters: AgentWorld has 100 human-annotated tasks.

Covered in: Part 9: Multi-agent teams

Augmented variants

Augmented variants are extra test tasks made by systematically changing existing ones.

Why it matters: AgentWorld adds 100 of them to its 100 hand-made tasks.

Covered in: Part 9: Multi-agent teams

CCE

CCE, or Causal Collaboration Effectiveness, is a metric from AgentWorld that traces which agent actions actually led to the result and measures what fraction of the team's effort really counted.

Why it matters: A team can succeed while wasting most of its effort, and CCE catches that.

Covered in: Part 9: Multi-agent teams

Causal dependency

A causal dependency is a link where one action had to happen for another to happen or succeed.

Why it matters: CCE is built by tracing these links.

Covered in: Part 9: Multi-agent teams

Graph

A graph, in computing, is a set of points (nodes) connected by lines (edges), used to show how things relate.

Why it matters: CCE and knowledge graphs both use graphs.

Covered in: Part 9: Multi-agent teams, Part 5: Long-term memory

SIMMER

SIMMER is a benchmark that looks for latent failures in executable plans by running them against a world model.

Why it matters: It catches failures that only show up when a plan is actually carried out.

Covered in: Part 9: Multi-agent teams

Executable planning

Executable planning is producing a plan precise enough that a program can carry it out step by step.

Why it matters: Plans that read well can still fail when run.

Covered in: Part 9: Multi-agent teams

Latent failure

A latent failure is a hidden flaw that does not show until a certain step or situation happens.

Why it matters: These are the failures SIMMER is built to find.

Covered in: Part 9: Multi-agent teams

World model

A world model is a simulation of how an environment behaves, used to predict what will happen when an action is taken.

Why it matters: SIMMER grounds its checks in one.

Covered in: Part 9: Multi-agent teams

Chain of Agents

Chain of Agents is a research technique that splits a long input across several agents, each reading one part and passing its notes on to the next.

Why it matters: It applies team structure to long text instead of long time.

Covered in: Part 9: Multi-agent teams

Round robin

Round robin means taking turns in a fixed order, one after another, then starting again. AutoGen's RoundRobinGroupChat lets agents speak in turn.

Why it matters: It is how the two-agent example in Part 9 runs.

Covered in: Part 9: Multi-agent teams

MaxMessageTermination

MaxMessageTermination is an AutoGen setting that stops a team conversation after a set number of messages, six in the Part 9 example.

Why it matters: It is the team version of a stop condition.

Covered in: Part 9: Multi-agent teams

Code and computer basics

Python

Python is a popular programming language, easy to read, and the most common language for AI work. python3 is the command that runs it.

Why it matters: Every code sample in the series is Python.

Covered in: Part 2: What an AI agent is

Terminal

The terminal, or command line, is a text window where you type commands instead of clicking. The "Try this" boxes marked bash are commands to type there; bash is the most common terminal program on Linux and Mac.

Why it matters: That is where you run the examples.

Covered in: Part 2: What an AI agent is

python3 -c

python3 -c "..." runs a short piece of Python written directly in the command, with no file needed.

Why it matters: Most of the quick "Try this" examples use it.

Covered in: Part 2: What an AI agent is, Part 4: The agent loop

pip

pip is Python's installer for add-on packages. pip install autogen-agentchat downloads and installs that package.

Why it matters: You need it before some examples will run.

Covered in: Part 9: Multi-agent teams

Library

A library, or package, is ready-made code you add to your program so you do not write everything yourself.

Why it matters: Tenacity, tiktoken, openai and AutoGen are all libraries.

Covered in: Part 5: Long-term memory

OpenAI Python library

The openai Python library is OpenAI's official code for calling its models from Python. client.chat.completions.create(...) is the line that sends a prompt.

Why it matters: It powers the summariser example in Part 6.

Covered in: Part 6: Context compression

Environment variable

An environment variable is a named setting stored in your terminal session, read by programs. export OPENAI_API_KEY=... creates one so code can read the key without it being written in the code.

Why it matters: It keeps secrets out of your code files.

Covered in: Part 9: Multi-agent teams, Part 6: Context compression

Git clone

Git is a tool that tracks versions of code. git clone <address> downloads a full copy of a project, usually from GitHub, a website that hosts code.

Why it matters: Parts 6, 8 and 9 invite you to clone the research code.

Covered in: Part 6: Context compression, Part 8: Reward hacking, Part 9: Multi-agent teams

Open source

Open source means the code is published for anyone to read, use and change.

Why it matters: ACON, AgentBench, AgentWorld, SIMMER and AutoGen all publish their code.

Covered in: Part 6: Context compression

JSON

JSON is a plain text format for storing data as named fields, like {"name": "Asha", "age": 30}.

Why it matters: The minimal memory build in Part 5 saves facts to a JSON file.

Covered in: Part 5: Long-term memory

Markdown

Markdown is a plain text format with simple marks for formatting, like # for a heading and **bold**.

Why it matters: Memory notes are often kept as Markdown files.

Covered in: Part 5: Long-term memory

Regular expression

A regular expression is a compact pattern for finding text, such as \w+ meaning "one or more letters or digits".

Why it matters: The memory code and the token approximation both use one.

Covered in: Part 5: Long-term memory

Function

A function is a named block of code that takes inputs, does something and returns a result, like pick(...) or retrieve(...).

Why it matters: The code samples are built from small functions.

Covered in: Part 3: Chatbot vs workflow vs agent, Part 4: The agent loop

Return value

A return value is what a function hands back when it finishes. A wrong return type means it handed back the wrong kind of thing, like a list instead of a number.

Why it matters: It is one of the bugs fixed in the Part 4 loop.

Covered in: Part 4: The agent loop

Import

An import is a line at the top of a Python file that brings in code from a module, a separate file or library. A missing import causes a "module cannot be found" error.

Why it matters: It is the first bug in the Part 4 example.

Covered in: Part 4: The agent loop

Test

A test is a small piece of code that checks other code works, by running it and comparing to the expected result. A test suite is the full collection; "green" means all pass.

Why it matters: Tests give the Part 4 agent a clear definition of done.

Covered in: Part 4: The agent loop

Debugging

Debugging is finding and fixing the cause of a bug, a mistake in code. A failing build is when the code cannot be assembled or its checks fail.

Why it matters: It is the classic job where an agent earns its keep, because nobody knows the steps in advance.

Covered in: Part 3: Chatbot vs workflow vs agent, Part 4: The agent loop

Async

Async code, written with async and await and run with asyncio, lets a program wait for slow things, like a model reply, without freezing.

Why it matters: The AutoGen example in Part 9 is written this way.

Covered in: Part 9: Multi-agent teams

Retry

A retry is trying a failed action again automatically.

Why it matters: Retries are part of what makes an agent a whole system, and part of the Part 5 memory example.

Covered in: Part 5: Long-term memory, Part 7: Testing an agent

Backoff

Backoff is the wait between retries, which grows each time, for example from 2 seconds up to 10.

Why it matters: It is the precise fact that drifts away in the summary example.

Covered in: Part 5: Long-term memory

Tenacity

Tenacity is a Python library that adds retries and backoff to code.

Why it matters: It is the remembered "payment retry" fact in Part 5.

Covered in: Part 5: Long-term memory

Timeout

A timeout is a time limit after which a waiting action is cancelled.

Why it matters: It appears as an example task and as a failure category.

Covered in: Part 5: Long-term memory, Part 7: Testing an agent

Webhook

A webhook is a message one service sends to another automatically when something happens, like "payment received".

Why it matters: The Part 5 example agent was fixing a payment webhook.

Covered in: Part 5: Long-term memory

Handler

A handler is the piece of code that runs when a certain event or request arrives.

Why it matters: The payment handler is where the retry fact lives.

Covered in: Part 5: Long-term memory

HTTP status code

An HTTP status code is a three-digit number a web server returns with each reply. 200 means OK; 202 means "accepted, will process later"; 404 means not found.

Why it matters: The 202 response is one of the facts the summary kept.

Covered in: Part 5: Long-term memory

Job id

A job id is a reference number a server hands back so you can check on work it will finish later.

Why it matters: It comes with the 202 response in the example.

Covered in: Part 5: Long-term memory

Service

A service is a separate program that does one job for other programs, like billing or payments.

Why it matters: "Which service owns billing" is the kind of fact a memory system should keep.

Covered in: Part 5: Long-term memory

Database

A database is a program that stores data in an organised way so it can be searched and updated.

Why it matters: Vector stores are a kind of database. The minimal memory build skips one.

Covered in: Part 5: Long-term memory

Deployment

Deployment is putting software live where it runs for real. A deployment region is the part of the world its servers sit in. A staging environment is a copy of the live system used for testing first.

Why it matters: They show up as example facts in the memory test questions.

Covered in: Part 5: Long-term memory

Migration

A migration is a planned move of data or code from an old setup to a new one, often done in stages.

Why it matters: "What is the status of the migration" is one of the memory test questions.

Covered in: Part 5: Long-term memory

Thumbnail

A thumbnail is a small preview image for an article, here 1200 by 630 pixels.

Why it matters: Part 5 mentions that its shareable diagram matches the thumbnail.

Covered in: Part 5: Long-term memory

Sources