Agents
This section is for researchers who know retrieval and LLMs and want to understand agents well enough to design, direct and critique them: what an agent is, how to build and evaluate one, how agents are trained with RL, and where they fail. Search and deep-research agents are held to a few exemplars; the many other search-agent papers sit in the collapsed “Search & deep research” group. 📌 marks pinned bookmarks.
There are two stages:
- Stage 1 is the main track: one exemplar per idea, from the ReAct loop to RL-trained search agents and how they fail.
- Stage 2 is for following current systems: harness and prompt optimization, memory at scale, frontier deep-research recipes, stateful agent benchmarks, environment and data scaling, and the agentic-RL sections of recent model reports.
Both stages are reading; you do not need to build an agent to follow them. Everything else in the sidebar is optional depth.
Stage 1 · Main track · 15 numbered items · about 9.5 h of reading. Optional reading is under Optional deep dives below.
- ReActA frozen LM interleaves free-text thoughts with tool actions and reads the observations back. This is the prompt-level template behind almost every search agent since.
- IRCoTIRCoT uses each new chain-of-thought sentence as the next BM25 query, so the second hop can be retrieved once the first hop's answer has been written down. Prompting only, with a fixed loop.
- Building effective agentsAnthropic's field guide to agentic systems: start from one augmented LLM call, climb through five fixed workflow patterns, and only then hand control flow to an agent that uses tools in a loop on environment feedback.
- CodeAct: code as the action spaceInstead of emitting one JSON or text tool call per turn, the agent writes Python that a live interpreter runs. Code lets one action compose many tools with loops and variables, and error tracebacks come back as observations the agent can debug from.
- Context engineeringAnthropic's guide to treating context as a finite attention budget: keep the smallest set of high-signal tokens in the window, load data just in time through lightweight identifiers, and use compaction, structured notes or sub-agents when a task outlasts one window.
- MemGPTTreat the context window like RAM: a small fixed main context, larger external stores, and function calls the model uses to page information in and out, with interrupts and a recursive summary of evicted messages.
- Context-Folding & AgentFoldTwo agent-controlled ways to keep a long search trajectory small: Context-Folding (branch into a sub-task, return a short message, trained with FoldGRPO) and AgentFold (a fold directive at every step that condenses or consolidates earlier summaries, trained with SFT).
- Demystifying agent evalsAnthropic's practical guide to agent evaluation: tasks, trials, graders, transcripts and outcomes; code, model and human graders; pass@k versus pass^k; and an eight-step roadmap from 20–50 real failures to a maintained eval suite.
- SWE-agent: agent-computer interfacesA language model fixes real GitHub issues through a purpose-built agent-computer interface (ACI) with summarised search, a 100-line file viewer, a linted editor and compressed history. The lasting lesson is that interface design changes agent performance as much as the model does.
- Indirect prompt injectionGreshake et al. show that once an LLM application retrieves web pages, emails or code, anyone who can write that content can steer the model, because the model has no channel that separates data from instructions. A defensive tour of the taxonomy, the 2023 demonstrations and the mitigations, and why the problem matters even more for today's agents.
- Agentic RL landscape (survey)Zhang et al. formalise the shift from single-response LLM RL (a horizon-1 MDP) to agentic RL (a multi-step POMDP with tool actions and partial observations), then map over five hundred works by capability, by domain, and by environment and framework.
- Search-R1Jin et al. train an LLM with PPO or GRPO to interleave reasoning with calls to a frozen retriever, using only an exact-match answer reward and masking retrieved tokens out of the loss.
- Environments map (start here)What an RL environment for an LLM agent contains, the four ways people now build them (real sandboxes, synthetic code-backed worlds, LLM-simulated worlds, procedural generators), the trade-offs between verifiability, diversity, cost and hackability, and a comparison of the main 2024–2026 works.
- DR Tulu (RLER)An open 8B deep-research agent trained end to end with RLER. Rubrics are grounded in search, then rewritten every step from the policy's own rollouts, so the reward keeps up with what the policy learns and how it tries to cheat.
- MAST: multi-agent failure taxonomyA failure taxonomy for multi-agent LLM systems, built from expert-annotated traces. It has 14 failure modes in 3 categories (system design, inter-agent misalignment, task verification) and comes with an LLM annotator and 1,642 labelled traces.
Why this order
Section titled “Why this order”- 1–2 · The loop. ReAct is the reason–act–observe loop every later system builds on. IRCoT is the one exemplar of retrieval inside that loop: each new chain-of-thought sentence becomes the next BM25 query, with prompting only. RAG is its listed refresher.
- 3–4 · Designing one. Building effective agents goes from one augmented call to workflow patterns to an agent in a loop. CodeAct changes the action space: the agent writes Python instead of JSON tool calls, which is how most current coding and research agents act.
- 5–7 · Context and memory. Context engineering treats context as a finite attention budget. MemGPT pages information in and out of a fixed window like RAM. Context folding is the current, learned version: the agent branches into a sub-task and folds the result back into a short summary, trained with RL.
- 8 · Evaluating agents. Demystifying agent evals comes before any training, because every later result is only as good as its graders and trials (pass@k vs pass^k, transcripts vs outcomes).
- 9–10 · Coding agents and their attack surface. SWE-agent shows that the agent–computer interface changes performance as much as the model does. Indirect prompt injection explains why any text an agent retrieves can act like an instruction; it comes before the RL pages because every later agent reads untrusted text.
- Insert RL background before 11. MDPs and returns, policy gradient, PPO with GAE, and GRPO. Pages 11–14 assume them.
- 11–14 · Training agents with RL. The Agentic RL landscape formalises the move from a horizon-1 MDP to a multi-step POMDP with tools. Search-R1 is the RL-trained search exemplar (outcome exact-match reward, retrieved tokens masked from the loss). The Environments map covers what an RL environment contains and the four ways people now build them. DR Tulu is the deep-research exemplar: an open 8B agent trained end to end with a rubric reward rewritten from its own rollouts.
- 15 · Multi-agent failure. MAST is a taxonomy of how multi-agent systems fail; Anthropic’s multi-agent research system is an optional design primer before it.
Stage 2 · Frontier
Section titled “Stage 2 · Frontier”Start Stage 2 after Stage 1 and the first half of the RL main track. It covers what changed in 2025–26: agents that optimise their own harness, memory that scales to long horizons, deep-research recipes from industrial labs, benchmarks with real state, and how environments and data are scaled for agentic RL. Three items are RL pages and one is the agentic-RL section of a Pretraining model report; where an item is marked section, read only that part.
Ready for Stage 2? Check that you can do these without looking anything up. If not, reread the Stage 1 page in brackets.
- Write the ReAct loop and say what goes into the context at each step (ReAct).
- Explain why pass^k falls quickly even when pass@1 looks good (agent evals).
- Explain why Search-R1 masks retrieved tokens out of the loss (Search-R1).
- Name the parts of an RL environment and two ways to build them (environments map).
Stage 2 · Frontier · 15 numbered items · about 11.5 h of reading. Optional reading is under Optional deep dives below.
- GEPA: reflective prompt evolution can outperform RLSample trajectories, reflect on them in natural language to rewrite prompts, and keep a Pareto set of candidates. Beats GRPO by about 6% on average across six tasks (AIME is the exception) with up to 35× fewer rollouts.
- Meta-HarnessKeep the model frozen and let a coding agent rewrite the code around it. The proposer browses a filesystem holding the source, scores and full execution traces of every earlier harness, and that raw access, not summaries, is what makes the search work. Wins on text classification, retrieval for olympiad math and TerminalBench-2.
- WHALE (weights + harness)Alternate two black-box phases, fine-tuning the model under a frozen harness and then searching harness code with Meta-Harness under the frozen model. Small, interleaved phases beat weight-only, harness-only, prompt-only co-training and one-pass stagewise training, and a patience rule picks when to switch.
- Long-running agent harnessesAnthropic's harness for coding agents that work across many context windows: an initializer session that writes a feature list, progress log, init script and git repo, and coding sessions that get their bearings, build one feature, test it end to end and leave a clean handoff.
- Raw-RAG: naive RAG as memory baselineA plain dense-retrieval + reranking baseline over raw conversation history (Raw-RAG) ranks first in six of seven benchmark-model settings against agentic memory systems, because keeping raw evidence raises evidence coverage.
- Recursive Language Models (RLMs)Keep the long prompt in a Python REPL instead of the context window; the LM writes code to inspect, split and recursively call itself on pieces. Handles inputs two orders of magnitude beyond the window.
- Tongyi DeepResearchAlibaba's open 30B-A3B web agent. Agentic mid-training, a fully synthetic data pipeline, a ladder of training environments from simulated to real, and a deliberately plain on-policy GRPO with a 0/1 answer reward.
- Search-R1 follow-upsTwo February 2026 papers revisit the Search-R1 recipe — one changes the prompt, reward and optimiser one at a time and assembles Search-R1++; the other adds a weight-shared refiner that cuts and regenerates flawed trajectories and a judged process reward.
- DR Pixel (page-native DR)A deep-research agent whose only retrieval and reading unit is a rendered page image (1.06M pages, no OCR at inference). Untrained, it beats OCR pipelines with fewer searches. Trained by SFT that reweights each teacher step by its counterfactual effect on the gold answer, a 27B open model matches GPT-5.4.
- Stateful agent evals (τ-bench, OSWorld)How to evaluate agents that change the world: environments built from a database, tools, a policy and a simulated user; grading by final state or checker scripts; pass^k reliability; dual control (τ²-bench); computer-use sandboxes (OSWorld, WebArena); and asynchronous, time-driven scenarios (Gaia2/ARE).
- Agent World Model (AWM)Snowflake's AWM pipeline has GPT-5 write 1,000 executable, database-backed MCP apps (35,062 tools, 10,000 tasks) with verification code. It then trains Qwen3 agents with GRPO inside them, beating an LLM-simulated environment and EnvScaler on BFCLv3 and MCP-Universe.
- Agent Lightning (2025 → v1.0)Microsoft Research's framework for RL-training agents without rewriting them. The 2025 paper turns any agent run into (input, output, reward) transitions trained by LightningRL; the rebuilt v1.0 (2026) records LLM calls through a proxy and works out how to merge, weight and normalise the resulting samples.
- Agentic data scaling lawsHe et al. split agentic RL training data into three axes (environments, tasks and rollouts per task), fit a power law to each, measure how much synthetic data on each axis is worth, and turn the result into a compute-optimal allocation recipe.
- Long-horizon tool agents (STAR)Wu et al. build STAR, a synthesis–SFT–RL pipeline on TravelPlanner, and vary one factor at a time (reward density, model size, data quantity and difficulty, RL algorithm, tool noise) to produce a scale-aware recipe for training multi-turn tool agents.
- Kimi K3 (+ K2.5)Agentic RL part only: K2.5 agent swarm (PARL) and K3 multi-harness RL on microVM environments.Moonshot's Kimi K3 report (2.8T total, 104B active, 1M context), read for agent training. It covers nine RL experts (3 domains × 3 reasoning efforts) merged by multi-teacher on-policy distillation, budget-controlled reasoning effort, an agentic generative reward model, a white-box harness environment, knowledge-graph task synthesis, and AgentENV microVM sandboxes. It also summarizes the predecessor K2.5's Agent Swarm (PARL).
Why this order
Section titled “Why this order”- Optimising the harness (1–4). GEPA evolves prompts from reflective reading of traces. Meta-Harness searches over whole executable harnesses, and WHALE alternates that search with weight updates. Anthropic’s long-running-harnesses essay shows what a production harness for multi-hour work contains.
- Memory and long context (5–6). Raw-RAG shows that dense retrieval with reranking over raw past turns beats elaborate write-time memory stores. Recursive Language Models offload a 10M-token input to a REPL and call themselves on pieces.
- Deep research at the frontier (7–9). Tongyi DeepResearch is an industrial recipe (agentic continued pretraining, synthetic data, RL). Search-R1 follow-ups show which Search-R1 choices survive ablation. DR Pixel reads pages as images.
- Measuring stateful agents (10). τ-bench, τ²-bench, OSWorld and WebArena grade the final state of an environment, not an answer string; this is where pass^k reliability is measured.
- Environments, infra and scaling (11–15). Agent World Model builds executable environments with an LLM. Agent Lightning trains any existing agent with RL through a proxy. Agentic data scaling fits power laws over environments, tasks and rollouts. Long-horizon tool agents gives the multi-turn RL recipe, and the Kimi K3 section shows it at production scale.
- Optional companions. Tree search for agents (ToT, LATS, WebPilot: explicit search over trajectories, and why it needs a resettable environment), Writing tools for agents, AgentDojo, Aligning autoresearch, SWE-smith, the tech reports hub (a method for reading model reports, with a cross-report table), and the agentic-RL sections of GLM-5 and MiMo-V2.6.
Optional deep dives
Section titled “Optional deep dives”Open a sidebar group only when a project needs it; each link below is that group’s entry point, and the collapsed catalogue further down lists every page with second picks.
- Core groups: Agent fundamentals → Toolformer · Practical guides → Writing tools for agents · Memory & context → ReSum · Agent evaluation → entry point · Coding & autoresearch → Aligning autoresearch · Agentic RL & infra → verl / HybridFlow · Synthetic RL environments → SWE-smith · Multi-agent systems → AutoGen · Safety & security → AgentDojo
- Search & deep research: Foundations → Search-o1 · RL-trained search agents → comparison hub · Deep research systems → Deep research is a retrieval problem · Scientific literature → evaluation atlas
- More: Prompt & program optimization → DSPy · New paradigms → Recursive Language Models · 2026 frontier → Search-R1 follow-ups
Related tracks: the Evals section holds the benchmark and methodology notes, Interpretability has the main weight-space programming note, and the model tech reports themselves live in Pretraining.
All pages by group (sidebar order)
The table lists only pages that exist today; later groups may still grow.
Second picks, by need. Other early loop ideas: Reflexion after Toolformer. Building agents day to day: Harnesses for long-running agents. Agents that outlive one context window: Context-Folding & AgentFold. Automated research: 📌 Aligning autoresearch. Running agent RL yourself: HybridFlow / verl. Training environments for IR: Building a retrieval environment. Designing orchestrators: Anthropic’s multi-agent research system. Agents trained with RL: Reward hacking. Retrieval-in-the-loop classics: Self-RAG and WebGPT. A trained deep-research system: Tongyi DeepResearch. Program optimisation without RL: GEPA after DSPy. The 2026 frontier: Meta-Harness, then WHALE, which alternates harness search with weight training. Memory you can train against: Notes + RL (Engram), where RL teaches a model how to use a fixed set of notes. Deep research using page images, with no OCR in the retrieval-and-reading path: DR Pixel.
Optional specialist route for search agents (prerequisite-ordered)
If search agents are your focus, read these in order; this is an optional specialist route, not the main track, and everything else in the Search & deep research group is a branch.
- ReAct: the reason–act–observe loop.
- IRCoT (or RAG as a refresher): retrieval inside the reasoning loop.
- DSPy → MIPROv2 → GEPA: optimising a program’s prompts against a metric, without RL.
- RL background before going further: MDPs and returns, policy gradient, PPO with GAE, and GRPO. The agentic-RL and RL-search pages assume these.
- Search-R1 → Agentic RL landscape: RL-trained search, then the map.
- Tongyi DeepResearch → DR Tulu: full trained deep-research systems.
Optional branches. Systems: HybridFlow / verl, Agent Lightning, mmGRPO and ASearcher (how training is run, not what the agent learns). Comparative reading: the other RL-trained search agents, best read through the comparison hub by the axis you care about.
Longer path through the whole section
- The loop: ReAct → Toolformer → Reflexion. Reason, act, observe, and reflect on failure.
- Engineering and evaluation spine: Building effective agents → Context engineering → Writing tools → Demystifying agent evals. Read these early: they are short, practical and make every later system easier to judge.
- Retrieval in the loop: RAG → WebGPT → IRCoT → DSP → Self-RAG → Search-o1. This is a learning order, not a line of descent: ReAct, IRCoT and DSP appeared within three months of each other in late 2022 as related, contemporary ideas.
- Programs, not prompts: DSPy → MIPROv2 → GEPA, with BetterTogether for combining prompt optimization and fine-tuning.
- RL-trained search agents: read the comparison page first, then Search-R1 and the agentic-RL landscape. Pick two or three of the others by the axis you care about (reward, environment, data synthesis).
- Deep research: STORM, then the two retrieval-centred essays (deep research is a retrieval problem; what agentic retrieval looks like), then DR Tulu or Tongyi DeepResearch as a trained system.
- Long horizons and risk: memory (MemGPT, then the pinned Raw-RAG baseline); multi-agent systems (AutoGen and CAMEL for the interaction patterns, then MAST for failure modes, then the DeepSeek prototype); and safety (indirect prompt injection → AgentDojo → reward hacking → pretraining backdoors, which assumes a training-pipeline view).
- Measure it: the agent evaluation entry point, then the new paradigms (Recursive Language Models, weight-space programming).
- Scientific literature (branch): start with the evaluation atlas as a map of tasks and metrics, then OpenScholar, PaperQA2, Scholar QA and PaSa.
- Frontier, by prerequisite: memory and context pages before TokenGate; RLMs, DSPy and GEPA before Meta-Harness and harness generalization; basic RL and reward ideas (and the reward-hacking section) before Aligning autoresearch.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Connect
Trace two decisions through the main track: who chooses the next action (a query, a tool call or stopping), and what signal, if any, shapes that choice. Answer for ReAct, IRCoT, Search-R1, Agent World Model and DR Tulu, and say for the trained ones whether the reward checks an outcome or the agent's written answer.
What a strong answer covers
- ReAct: a prompted LM writes thoughts and actions, so it chooses the query and the finish action itself; in the main setting behaviour comes from few-shot examples (the paper also fine-tunes smaller models on successful trajectories, but with no reward-driven RL).
- IRCoT: a fixed loop with prompting only; the query is the latest chain-of-thought sentence, and the stop test (answer phrase or 8 sentences) runs right after each sentence.
- Search-R1: the policy learns both the query and the stopping decision from an outcome (exact-match) reward on a short answer with PPO or GRPO, and retrieved tokens are masked out of the loss.
- Agent World Model: the environment itself is generated code (a SQLite state, MCP tools in Python, verification code); GRPO uses a judge grounded in the final database (1.0 completed, 0.1 partial, 0 otherwise, −1 for a format violation), so the reward checks the outcome, not the agent's claim.
- DR Tulu: a long cited report has no single gold answer, so GRPO is driven by rubric scores from search-grounded persistent rubrics plus rubrics rewritten each step from the group's own rollouts; the reward grades the written answer, which is why negative rubrics target hacks such as verbatim copying.
- Design
You have six weeks to prepare an IR-strong student, new to RL, to read agent papers critically. Using the main track on this page, plan what to read each week, which RL background to insert and where, and what you would deliberately skip on a first pass.
What a strong answer covers
- Weeks 1–2: the loop and practice (ReAct, IRCoT, building effective agents, context engineering, MemGPT, agent evals, SWE-agent); none needs RL, and the agent-evals vocabulary (trial, grader, transcript versus outcome, pass@k versus pass^k) is the lens for every later result.
- Week 3: RL background before main-track page 8: MDPs and returns, policy gradient, PPO with GAE, and GRPO; without them the agentic-RL, Search-R1, environment and DR Tulu pages are not self-contained.
- Weeks 4–5: the agentic RL landscape, Search-R1, the environments map and Agent World Model, treating the environment (state, tools, transition, verifier) as the object being designed; note that AWM targets database apps, so a retrieval environment is an open project.
- Week 6: tech reports, DR Tulu, MAST and indirect prompt injection; the injection page should be read before the student runs any agent on untrusted web content.
- Skip on a first pass: prompt and program optimisation (DSPy, MIPROv2, GEPA), training systems (HybridFlow, Agent Lightning, ASearcher) and most single-recipe search-agent papers, which are comparative reading through the comparison hub later.
- Critique
Two search-agent papers each report a gain of a few points on the same multi-hop QA benchmark: one changes the reward, the other the training data. What must match before you can attribute the difference to the change, and which mismatches do the pages in this section show actually occur?
What a strong answer covers
- Backbone and starting point (base, instruct or SFT cold start), because several systems differ on these at the same time as the reward or data.
- Retrieval setup: corpus snapshot, retriever and top-k; for example ORBIT evaluates on a June 2024 Wikipedia dump while InfoSeek reports Wikipedia-25, despite ORBIT describing its setting as a replication.
- Tool and rollout budget (turns, searches, group size), and whether observation tokens are masked from the loss.
- Metric and judge: exact match, F1 and LLM-judge scores are not interchangeable, and baseline rows copied from other papers were not rerun under the same setup.
- Seeds and variance: a one- or two-point gap on a small test set can be within noise, so ask for multiple runs or intervals.