Research framework
A research loop, run as a Claude Code skill, that scores every pass in three phases (breadth, depth of sourcing, and an audit of missing perspectives) and stops on diminishing returns, naming the gaps it could not close.
Ask an AI to “research” a topic, and a single weak source can count the same as five strong ones. This framework puts a number on the difference. It is a research loop, run as a Claude Code skill, that scores every pass, keeps a pass only if the score improves, and stops when more effort adds little.
The pattern comes from AutoResearch, Andrej Karpathy’s experiment loop: a loop with a fixed, objective metric instead of a complex orchestration system. The skill’s own design notes say it plainly: “no databases, no job queues, just files and a loop.” Search goes through a self-hosted search engine (SearXNG). Pages are read through a ladder of tools, from a plain fetch to a scraping service to a site crawl. A small model searches and extracts, a stronger model writes the synthesis and the audit, and the decision to keep going or stop is arithmetic, with no model involved. Each run leaves a report, its sources, and a log of every pass.
Three scores, one per phase
- Breadth. The share of the research questions that have an answer with a source URL, from a source that is not a data broker or a paywall.
- Depth. For each answer, the number of sources times their average credibility: official 1.0, academic 0.9, news 0.7, blog 0.5, and forum 0.3. The target is 2.4, three sources at an average of 0.8.
- Audit. A seven-lens review of what the evidence leaves out, based on the GoldBerry framework, an existing model I adopted: Indigenous knowledge, deep history, cross-cultural wisdom, scientific evidence, artistic perception, future modelling, and marginalised voices. Each lens is scored out of 10, and any lens under 2.5 is flagged as a critical gap, so a blind spot cannot hide behind a good average.
A phase can end on diminishing returns: less than 0.05 of improvement in a pass for breadth and depth, less than 0.5 for the audit.
A run, pass by pass
A real run from July 2026, a historical biography:
| Pass | Phase | Coverage | Depth | Audit | Findings | Status |
|---|---|---|---|---|---|---|
| 1 | breadth | 1.00 | — | — | 18 | phase complete |
| 2 | depth | 1.00 | 0.90 | — | 26 | keep |
| 3 | depth | 1.00 | 1.00 | — | 30 | phase complete |
| 4 | audit | 1.00 | 1.00 | 3.57 | 30 | keep |
| 5 | audit | 1.00 | 1.00 | 4.14 | 38 | keep |
| 6 | audit | 1.00 | 1.00 | 4.57 | 42 | stop: diminishing |
The first pass answered all 17 questions from 22 sources, and it logged what it could not get: one academic site exhausted every tier of the ladder on a CAPTCHA, and it flagged a discrepancy between sources on a key date (1884 or 1888). By the first audit, the breadth and depth scores were full, and the audit scored 3.57: indigenous knowledge and marginalised voices at 2. Two more passes raised it to 4.57. The second gain, 0.43, was below the 0.5 threshold, and the run stopped.
It did not stop quietly. The log names the two lenses still low and calls those gaps structural: they “require fieldwork/local archives/specialist comparative literature beyond web research scope.” The report separates those from the gaps more searching could still close.
From one score to three
The previous version of the skill (v2.0) had one score, coverage. A question counted as answered once it had one sourced finding, so a single weak source scored the same as five strong ones. And the rule to climb the ladder when a page was blocked was advice, so a page could be logged as blocked after the first try. A real research task in March 2026 showed both problems. On March 29 we rebuilt it as three phases, and made the ladder mandatory: a source is logged as exhausted only after every tier has been tried.
Where it stands
The skill is the version I use. It replaced an earlier Python framework from December 2025, a multi-agent application on LangGraph with a database per project, last changed in March 2026. The skill has been forked once, for a domain-specific variant. It lives in a private repository.
The scores measure the research effort: coverage, depth of sourcing, and the perspectives the audit checks for. They have not been measured against an outside benchmark, and they do not prove a report is right. They show where a run stopped, and why.