I built an open-source skill that makes an AI agent do research like a scientist instead of like a search engine: hypotheses before searching, every data attempt logged, the analysis reproducible, and a validator that checks the finished report against its own artifacts. MIT, free, no signup, Python standard library only.
Claude did most of the heavy lifting. It ships Claude Code subagent definitions for the three review passes, and the code was written and iterated with AI agents across several models. It also runs on Codex, Gemini CLI and Antigravity, which is why I kept the core runtime-agnostic.
Then I ran it on a real problem — the Argentine power grid and the Buenos Aires metro node, about fifty sources — and audited the output by executing the code instead of reading the report.
Three numbers in one results table didn't exist anywhere. Two confidence intervals and a p-value. Not in the exported numbers, not in the analysis output, and the script never computes them.
So I reimplemented the script's bootstrap with the same seed and checked it against the two intervals that were legitimately published. It reproduced both exactly. Which means the other three aren't just untraceable — they're wrong. One upper bound was off by about 0.24 in correlation.
They came in through the reviewer subagent. And the gate whose entire job is "verify or exclude facts introduced by the reviewer" reported PASS.
That's the failure mode I actually care about: not the model being dumb, but the model being plausible and every check downstream saying yes.
What the current version does about it: every number in the summary and results tables has to resolve to something the analysis actually produced; local files supplied by the user can't be promoted to primary-source tier; chart points dated after the report's cutoff are rejected; and a sealed hypothesis file that already contains the computed results gets flagged.
391 unit tests. 34 deliberate violations, all 34 caught, enforced at 100% in CI. Each one has to be caught by the specific rule meant to catch it, not by an unrelated error — and the harness re-stamps the review hashes afterwards, the way an agent covering its tracks would.
What's still broken, because I'd rather say it: a fan chart whose bands are really just deterministic scenarios can still pass if they share an anchor. The reviewer's freshness check got looser than I'd like. And everything lives in a folder the agent controls, so hash binding proves the review was of this version, not that a third party wrote it.
It's vibecoded, it's days old, it has no users. The reason I trust it at all is the audit above.
What I want is people trying to break it. Adding a violation case is about ten lines.