Part 5 · TREC and the 2026 tracks · Chapter 26
Agents and skills in the 2026 track
In one sentence: a coding agent is a language model that reads files and runs commands toward a goal, a skill is a folder of instructions it loads when needed, and in 2026 the RAG track wrote its rules for both people and agents.
Why you should care
The 2026 shift said what changed. This chapter is about how to work in that world. An agent can build in an afternoon what took a team a week. It can also make a quiet mistake in a second and repeat it over 119 narratives. Your value moves from typing the code to setting the task and checking the result. The examples here are our own, including the errors.
Words you need
- Agent
- A system in which a language model decides its own next steps and which tools to use, over many steps.
- Workflow
- A system in which the steps are fixed in code and the model fills in each one. Most RAG pipelines in this book are workflows.
- Skill
- A folder with a file called
SKILL.mdand, if needed, reference files and scripts. The agent loads it when a task matches its description. - Context
- Everything the model can see at one moment: instructions, files it has read, results of commands. It is limited.
- Progressive disclosure
- Showing the agent a short description first and the details only when it needs them.
- Verification pass
- A second, independent check of a result, done by a person, a program or another agent that did not produce it.
- Audit
- Comparing what was claimed with what the files show.
Core The idea
What a skill looks like
A skill is plain text in a folder. The top of SKILL.md has a name and a description. The agent reads only those two lines at first. If a task matches the description, it reads the rest, and then only the reference files it needs. This keeps the context small, which matters because a model with a crowded context makes more mistakes.
The track's three skills
| Skill | What it is for | A rule from it |
|---|---|---|
trec-rag-2026-track-guidelines | The rules of both tasks, the data, and the checks for a finished run | “Load only the reference files needed for the request.” |
pyserini-rest-api | How to call the search service (Chapter 25) | “Never commit .env.local, never paste the token into chat, and never print it in command output.” |
trec-rag-climbmix-corpus-creation | How to rebuild the collection with the official document IDs | “Do not invent document IDs.” |
Source: the TREC-RAG/trec-rag-skills repository, read 16 November 2026.
Read the rules in the right column again. Each one names a typical agent failure: reading too much, leaking a secret, making up an identifier. The guidelines skill says who it is talking to: “you, the agent or developer building, validating, or explaining a TREC RAG 2026 run”. The track's home page does the same. It tells an agent that was sent there to keep its context small and to stay inside the guidelines skill.
Three ways to share the work
- The agent as assistant. You design the pipeline. The agent writes and runs the code for each stage. Most of our RAG work was done this way.
- The agent as a stage. The pipeline is fixed, and an agent does one step in it, such as writing a report from supplied documents.
- The agent as the system. The agent searches, reads, searches again and writes, with no fixed pipeline. One of the organizers' baselines worked this way.
What stays with the person
- The question. What are we trying to learn, and which two runs would show it?
- The rules. Which data may be used, and what must stay private.
- The decision. Which runs to send, and in what priority.
- Outside actions. Registering, signing forms, sending e-mail, publishing.
- The check. Reading enough of the output to know the summary is true.
How to supervise
An agent's report of its own work is a claim, not evidence. Three habits turn claims into evidence. Ask for files, not summaries: the run, the log and the exact prompt. Have a different checker verify the result, with the files and without the first agent's conclusion. And recompute numbers from the saved files with a small separate program.
Watch and read
- CodeTREC-RAG/trec-rag-skills Open one
SKILL.mdand its reference files. It is the shortest way to understand what a skill is. Checked 16 Nov 2026 - SiteAgent Skills overview The open format: what goes in the folder and how agents load it in three stages. Read 16 Nov 2026
- ArticleBuilding effective agents Anthropic, December 2024. The difference between workflows and agents, and when the simpler one is the better choice. Read 16 Nov 2026
- SiteTREC RAG 2026 home page Look for the line addressed to agents. Checked 16 Nov 2026
We have not found a short video on working with skills that we would recommend. One will be added when we do.
How we did it at TREC 2026
| Track | What agents did | What checked it |
|---|---|---|
| RAG | A coding assistant wrote and ran the pipeline code. The search script follows the pacing rule of the track's search skill. | A validator built from the guidelines, and a review of the results by six independent agents |
| RAGTIME, nugget questions | Agents wrote 25 ranked questions for each of the 103 requests, in one of our five runs. | The track's validator on all 103 topics, and counts of repeated questions |
| RAGTIME, reports | Agents wrote one of the four report runs, in 21 batches of up to five topics. | The validator, and duels against our other writer with the order swapped (Chapter 20) |
| Video QA | In one run, an agent that could only read and write files ranked the answer options from video frames. | The same evidence was given to models called without an agent |
| Change Detection | No language model at run time. Agents helped analyse the results afterwards. | Four independent agents recomputed the numbers from the score files |
On the submission forms that asked, we marked the runs as automatic and described the use of agents. A person registered the team, signed the agreements, chose the runs and their priorities, sent every e-mail, and approved anything that became public.
What surprised us
- A default nobody chose. A script's default setting gave our two main RAG runs different document orders. The run description said otherwise (Chapter 22).
- A setting dropped in silence. A generation script removed some settings after the model service rejected them, and wrote nothing to its log.
- A description that was not true. Our RAGTIME notes said the writer saw the full text. The files showed the first 2,400 characters of each document, which cut about half of the documents.
- Invented citations. Before upload, we found answers with made-up citation markers and four narratives with no references at all (Chapter 24).
- A draft with wrong numbers. A first write-up of our Change Detection results gave the wrong cut-off for six of seven runs. An exact replay of the runs corrected it.
One more thing went wrong, and it was ours. The instructions given to the agents that wrote the nugget questions were not saved. We know what the agents produced and not exactly what they were told. A prompt is part of the method, so keep it with the run.
Try it
- Open the guidelines skill. Read only
SKILL.md. Which reference file would you open to answer “how long may an answer be”? - Give a coding agent the skill and one narrative. Ask for one valid RAG record for that narrative, with the log of what it did.
- Audit it. Does every cited ID appear in the documents the agent actually retrieved? Count the words with the track's rule.
- Ask a second agent, or a classmate, to check the record against the guidelines without seeing the first agent's summary.
- Write down one thing the first agent said that the files did not support, if there is one.
Check yourself
- What is the difference between a workflow and an agent?
- What is in a skill folder, and what does the agent read first?
- Why does the guidelines skill tell the agent to load only the files it needs?
- Name three things that stayed with a person in our entry.
- What do the five quiet errors in this chapter have in common?
Answers
- In a workflow the steps are fixed in code. An agent chooses its own steps and tools as it goes.
- A
SKILL.mdfile with a name, a description and instructions, plus optional reference files and scripts. The agent first reads only the name and description. - Context is limited, and a crowded context leads to more mistakes.
- Any three of: the research question, the data rules, the choice and priority of runs, registration and forms, e-mail, publishing, the final check.
- None raised an error. Each was found by comparing a claim with the saved files.
Go deeper
- Write your own skill. Take one thing your team explains to every new member, such as how to validate a run. Put it in a folder with a twenty-line
SKILL.md. Test whether an agent with the skill makes fewer mistakes than one without. - Agentic RAG. The organizers' agent baseline returned between 4 and 15 documents per narrative, where the BM25 baseline returned thousands. An agent that searches, reads and decides when to stop fits the “all and only” rule naturally. Chapter 10 has the trade.
- Agents and blind data. In Auto-Judge, the policy on what may be looked at applies to your coding agent as well as to you. An agent that prints a file to the screen has “looked”. Plan what an agent is allowed to open before it starts.
- Independent checkers. A checker that is handed the first agent's conclusion tends to agree with it. Give the checker the files and the question only.
- Cost. Agents spend tokens on reading and re-reading. One of our Video QA runs used about 7 million tokens through agents, and another run with a different model and direct calls used 5.7 million input tokens. The two are not a fair comparison. Measure it for your own task.
- Project idea. Give the same task to an agent three times. Compare the three logs. Which decisions differed, and did any of them change the output?