Inspiration
Search agents have a quiet failure mode. Ask for "every novel that won both the Hugo and the Nebula" and you often get a book that won only one, a few right answers, and a few that never show up. Someone then tunes the prompt by hand, and the system stays frozen until the next time someone cares.
We wanted to try the opposite. If a search agent can see how it failed, it should be able to write a better search method, and then use that method when it goes looking for further improvements. That second part is the idea we kept coming back to: a searcher that searches for how to search.
What it does
RSIS (recursive self-improving search) treats a search method as a small JSON file: instructions for the searcher plus a routing policy over Telem's providers. The loop runs in four steps:
- Train. The searcher attempts "find every X and Y" tasks. Failures are recorded.
- Improve. An improver reads the failures, searches past attempts and the web using the current method, writes lessons, and proposes candidate methods.
- Select. Candidates compete with the current method on tasks they haven't seen, under the same search budget. A method is adopted only if it wins.
- Test. The winner is re-run on held-out test tasks, which gives the improvement curve.
A separate recursion test checks the claim that matters most. Same starting method, same frozen history, same improvement budget, but a different method powers the improver. If the successors score higher, the system got better at improving, not just at searching.
Scoring is done by plain Python against a Wikidata answer key:
$$\text{score} = \frac{\max(0,\ \text{correct} - 0.5 \times \text{wrong})}{\max(\text{total},\ 1)}$$
A find only counts if the page it cites was actually retrieved in that search and mentions the answer. That rule is there to stop the agent from scoring on memory or guesses.
How we built it
- Telem is the only search service. It routes each query across providers, including Tavily, and handles page fetching. We track spend per search against a budget.
- Referee. Wikidata supplies the answer key. A judge model checks correct-looking finds that Wikidata is missing, using independent Tavily evidence.
- Tasks. 18 benchmark tasks (8 train, 6 select, 4 held-out test) in several question shapes: intersection, triple, negation, sequence and events. We also wrote open-ended niche questions with no answer key, which score only verified finds.
- Baseline and references.
v000is plain Telem auto-routing. We hand-wrote an anchor-and-verify method as a reference tactic. It is not a learned result. - Harness. A teammate built the Pi-based agent harness on a separate branch. It runs searchers and the improver as headless agents.
- Testing. We tested the loop against fake backends that simulated rate limits, timeouts, malformed responses and crashes mid-round. Several rounds of review found and fixed 79 bugs.
- Most of the pipeline code was written with Claude, directed by us.
What we learned
- On an easy task the baseline already does well. In a recorded run,
v000found 26 of 28 answers on the Hugo and Nebula task with none wrong, for about three cents. Harder tasks are where improvement has room to show. - The scoring judge can change a result dramatically. On a bridges task, the same 35 finds scored 0.0 without the gap judge and 0.79 with it, mostly because it matched English names to Wikidata's local labels. A score can measure name matching instead of search.
- Telem's automatic routing fans out to seven providers per query. That is thorough and costs about $0.03 a query, so a fixed budget buys only a few queries.
- Guarding the score matters as much as improving it. Without the retrieved-page rule, an agent can score by recalling answers from memory.
Challenges
- Reward hacking. Anything the loop optimizes, it can exploit. We added the retrieved-page rule, kept test scores away from the improver, and discard adopted methods that don't hold up on unseen tasks.
- Fairness. Comparing against a frontier model only means something under the same referee and the same Telem budget.
- Crashes and noise. Failed searches are excluded from averages instead of counted as zeros, and an interrupted round resumes cleanly.
- Time. We had a few hours and no model API key on one machine for most of the build.
What's next, and what we haven't shown
We have not yet completed a full measured run. There are no results on screen for the held-out comparison, the frontier comparison, or the recursion test, and our demo labels illustrative content as illustrative. The first thing we want is a matched comparison on the held-out tasks: v000 against the final method, repeated to measure noise, with a frontier model beside it. Then the recursion test.
RSIS tests whether better search can help discover better search strategies.