Skip to content

Getting the most from the agents

The seven agents of the pack search the corpus, read the files and return one cited report. The facts about the agents come from their own files, and the cost figures from the project’s benchmark kit.

Match what you want to know to one agent. The example questions are written the way a developer asks them. No agent ran them.

You want to know Ask An example question
How to build something non-trivial: the approaches real projects take, the one that fits you, real call sites of it, on one page prior-art-researcher How do Python web services rate limit an HTTP API inside one process, with no Redis, if I can only copy permissively licensed code?
How other projects solved a feature or a subsystem, with the trade-offs and the counter-examples corpus-miner I am adding a write-ahead log to a small key-value store in Rust. How do other projects order the writes and the fsync, and how do they test recovery after a crash?
Which materially different designs exist for one problem design-explorer What are the different ways Go services schedule delayed jobs without a separate queue server, and what does each one give up?
How real code calls a library or an API usage-finder How do real projects use httpx.AsyncClient: which timeouts do they set, and how do they handle a failed request?
Where a pasted snippet comes from and which notice it needs provenance-guard Where does this function come from, and which notice do I have to keep if I ship it? (Then paste the code.)
How your change compares with what other projects do precedent-reviewer Here is my diff: it retries a failed payment request after a fixed second. What do other projects do that this change does not? (Then paste the diff.)
How real projects test a behavior test-scout How do real projects test retrying a failed HTTP request with backoff, and how do they fake time?

Three details from the agents’ files:

  • precedent-reviewer takes the diff itself as its argument, because a subagent has no shell to run git diff.
  • usage-finder takes the package and the API as code writes it, such as AsyncClient or httpx.AsyncClient. Only the last name is searched.
  • A single corpus_search call answers a quick lookup (tools reference). Use an agent when the answer needs several searches and reads: each agent follows a method that searches in several ways, reads the best files and writes the report.

Write the question with the mechanism and the constraint

Section titled “Write the question with the mechanism and the constraint”

The agents search for the mechanism your question describes. prior-art-researcher and design-explorer name each group of repos by its mechanism, from the code, and prior-art-researcher never picks by popularity. A library’s name alone gives an agent little to search for and nothing to decide with. Give it three things:

  • The job, in plain words: what the code has to do, such as “retry with exponential backoff” or “rate limit each client”.
  • The constraints: the language, the runtime, the scale (one process or many), the dependencies you accept and the licenses you can take.
  • What you will do with the answer: choose between approaches, review a change or write tests. This picks the agent.

If you give no constraints, the agent says which assumptions it makes and carries on, because nobody can answer it while it runs. You see a wrong assumption only in the finished page, so state the constraints that matter.

Here is a question the agent can use. It is the question of the example brief:

my Python agent calls an LLM API and sometimes gets rate limits and timeouts. How do serious projects retry a failed LLM or HTTP request with exponential backoff, and which approach fits an app that runs as one process? I want no new services, and I can only copy code under permissive licenses.

It names the language (Python), the mechanism (retry with exponential backoff), the scale (one process) and two constraints (no new services, permissive licenses). Compare it with “Which retry library is best?” That question names no mechanism and no constraint. The agent has nothing to decide by, so it has to assume a constraint.

Name a library when you want to see how it is used. Then ask usage-finder with the package and the API.

You can write in your own language. Every agent writes its searches in English and translates your question first when it needs to, because the engine is English only (FAQ). Write the English yourself when you want to control the words it searches with.

Ask for decision records when you need the why

Section titled “Ask for decision records when you need the why”

A decision record is an ADR, an RFC or a design note: the maintainers’ own account of why they chose an approach and what they turned down. corpus_search finds them with kind="decision". The other values are changelog and agent-instructions (skills, prompts, agent and command definitions).

prior-art-researcher and design-explorer already ask for decision records for the best-backed approaches and cite what they find as the maintainers’ own words. Ask for them yourself when the code shows what a project does and you need the reason. Name the repo, and say what you want to know:

Search the decision records of github.com/OWNER/NAME for why it chose one approach over another, and what it turned down.

Many repos have none, and a search that finds none does not prove the repo has none. The agents say they found none. Read it that way.

The kit holds one recorded brief (13 November 2026, interim): the prior-art-researcher on one question, retrying a failed LLM or HTTP request, against an index of 14 public repos, on Claude Opus 5.5.

  • It cost $3.68 at list price, in 862 seconds, over 12 model turns and 52 corpus calls.
  • It returned a page of 1,648 words that cites 21 sources, $0.18 for each cited source.
  • 80% of its output tokens were thinking (79,495 of 99,224).
  • By its call 27, nine in ten of the page’s sources had appeared. The other 25 calls came after that.
  • 24 of the 52 calls were corpus_read.

This is one run on one question, labelled n=1. No interval can be drawn from one run, so read the figures as one example. They are no average and no price, and another question, index or model costs a different amount. You pay the cost from your own limit. The shipped agent is being tested against a leaner definition, so the figures can change. The kit holds no recorded brief on Claude Sonnet 5.5. The pilot in What the agents return ran each of the seven agents once with the pack and once without it on claude-sonnet-5-5, and gives the cost of the seven runs with the pack together.

Two levers are worth trying. Both are expectations from how the method works. The kit holds one run and has tested neither.

  • Choose the repos you index. The agent compares what the repos do, so a chosen set, the repos you would consult for today’s task, spends its calls on repos that matter to you. Keep enough repos for a real comparison: the agents report an approach only when two independent repos back it, and corpus_compare says few_approaches when fewer than three groups come out. A very small index can leave the agent with too little to compare. Index your stars covers choosing the repos.
  • Ask a specific question. Say the mechanism and the constraints, so the agent does not explore options you have already ruled out.

The recorded run’s figures show where its cost went. They do not show that either lever changes it.

In Claude Code, each agent runs as a subagent: it does its searches and reads in its own context and returns the report. In the recorded run, the 52 corpus calls and the files they returned stayed with the subagent, and your conversation received the page of 1,648 words. Where your client cannot run subagents, the method runs where your agent runs it. The agent pack says what each client offers.

A single tool call puts its result in your conversation, so it suits a quick lookup. Use an agent for a question that needs many searches and reads.

Every report ends with a receipt block. Receipts shows how to check a source at its pinned commit.