Research with a team of AI agents
The project is built and run with AI coding agents. 13 role agents each own one kind of work, each on the cheapest model tier that does it well, with a separate reviewer whose only job is to find what is wrong.
How the team works
I set the goal and watch; the orchestrator designs and decides; specialist agents do one job each on the cheapest model that does it well. A gate in front of every call and a log behind it keep the whole thing visible.
Why build it this way
One general-purpose AI session doing everything is fast to start and hard to trust. Splitting the work changes what can go wrong.
Narrow jobs, independent review
- Each agent owns one area and has a short list of things it must never do: the backtest runner cannot edit a file, the paper reader cannot judge a strategy.
- A reviewer that did not write the code reads every change against the project’s own rules before it counts as done.
- Clean context. Helpers start fresh with a complete brief and return a short report, so the main session’s attention stays on design, not on logs.
Reading, judging and checking kept apart
- Extract before judging. A paper is turned into a one-page specification first, so the design follows what the paper says, not how persuasively it says it.
- Numbers copied, not remembered. Every figure in a report comes verbatim from an output file, with the file named.
- An adversarial auditor hunts for look-ahead, survivorship, uncounted trials and missing costs. The most it can call a winner is “a candidate for paper trading”.
The right model, and proof of it
- Cheap models for chores, strong ones for judgment. Most tokens go to the cheapest tier that can do the job reliably.
- No silent downgrades. The gate refuses any call below an agent’s minimum; data-semantics work stays on the reasoning tier on purpose.
- Everything is logged and visible, and agents name a tier, never a model, so switching models or vendors is a one-file change.
In detail
Testing a paper
Testing a paper
- Specification sheet from the PDFpaper-reader (fast) → spec sheet, ≤ 80 lines
- Data feasibility: what the store has for this universe, period, inputsyou, with targeted queries → a short plan
- Design: main specification, universes, deviations from the paperyou → config.py + README "what the paper does / what this does" table
- Implement data.py, signals.py, run.py on paperkityou, or a balanced agent from a precise spec → code
- Sanity checks (signal predicts its own target; plain version tracks a reference; extreme contributors are real)you → short notes
- Run and collect numbersbacktest-runner (fast) → ≤ 40-line report
- Interpret, iterate (every variant counted as a trial)you → decisions
- Closed-form tests tests/test_<study>.py, wired into selftesttest-engineer (balanced) → tests passing
- Adversarial reviewstrategy-auditor (reasoning) → findings
- Report (paperkit.report), README, STATUS.md, publishyou (prose), docs-curator (balanced) for STATUS drift → report.html, docs
Who does what
The main session orchestrates: it owns the design, the judgment calls and the conclusion.
Mechanical work, such as turning a PDF into a specification sheet or running a backtest and copying its numbers, goes to a fast model. Code written to a clear spec goes to a balanced one. Design, data semantics and review stay on the reasoning tier.
Roster
Agent roster
| Agent | What it does | Minimum tier | Effort |
|---|---|---|---|
| code-reviewer | Reviews diffs to QuantDB against the project's own rules: data-semantics correctness (tiers, adjustment bases, PIT, identity keys), silent-failure patterns, storage invariants, vendor/budget discipline, portability, tests and docs. | reasoning | high |
| data-architect | Guardian of QuantDB's schema, provenance tiers, identity spine and point-in-time contracts. | reasoning | high |
| data-validator | Runs and extends QuantDB's data-quality layer and turns findings into a verdict. | reasoning | high |
| identity-steward | Works QuantDB's identity registry: the review queue, decision proposals with evidence, coverage measurement, predecessor-CIK seams, symbol-history windows and entity linking for new sources (ratings, bonds, news). | reasoning | high |
| ingest-engineer | Builds and extends QuantDB data loaders, vendor clients and the storage write path exactly per the loader contract: land raw, parse, resolve identity through the registry, run quality, write once through storage.write_rows, checkpoint, sync the catalog, report per entity. | reasoning | medium |
| signal-engineer | Builds QuantDB's feature store and the research API on top of the store: the feat.* tier with point-in-time and lineage guarantees, the dim.feature registry, the incremental update process driven by input watermarks (FEATURE_STORE_PLAN), the standard tried-and-tested signals (momentum, reversal, volatility, liquidity, value/quality from fundamentals, macro regimes), calendar-aligned event features, benchmark-relative measures, and later NLP/sentiment scores keyed by issuer through the identity registry. | reasoning | medium |
| strategy-auditor | Adversarial reviewer of a finished strategy study (a paper replication or a new strategy): looks for look-ahead, survivorship, data errors presented as signal, uncounted trials, costs left out, benchmark mismatches and claims the numbers do not support. | reasoning | high |
| strategy-researcher | The consumer side of QuantDB. Strategies live in a separate project (../Quant_Strategies/) and read the database only through quantdb.research; this agent writes and reviews strategy code there, keeps examples/ honest, and is the acceptance test of the research API: as-of universes with measured priced_fraction, point-in-time features and macro, explicit costs, walk-forward evaluation, benchmark return-basis checks, reports built with quantdb.viz.stats. | reasoning | medium |
| docs-curator | Keeps QuantDB's documentation true: README, context/STATUS.md, PROJECT_CONTEXT.md, DATA_CATALOG.md, IDENTITY_REGISTRY_PLAN.md and the self-describing catalog in quantdb/catalog_docs.py. | balanced | medium |
| pipeline-operator | Runs QuantDB day to day: the daily option-chain capture (now a scheduled cloud job replayed into the store, DERIVATIVES_PLAN), bar deltas, weekly macro refreshes, budget reconciliation against EODHD's /api/user, catalog lock handling, compaction, drive checks, a quantdb health command and scheduler entries (GitHub Actions cron, Windows Task Scheduler, cron, systemd). | balanced | medium |
| test-engineer | Owns QuantDB's test suite, CI and packaging: offline unit tests wired into quantdb selftest, pytest discovery, a golden layer that asserts the documented verified facts against the live store when the drive is present, regression tests named after STATUS.md gotcha numbers, closed-form assertions for every statistic, pyproject/lockfile and a GitHub Actions workflow. | balanced | medium |
| backtest-runner | Runs an existing study or test command exactly as instructed (python -m examples.<study>.run / .report, quantdb selftest, pytest), and returns a compact report: commands, exit codes, wall time, and the specific numbers asked for copied verbatim from the output CSVs or logs. | fast | low |
| paper-reader | Reads a published quant-finance paper (PDF) and returns a one-page specification sheet: the strategy's universe, signal formula, timing, holding period, weighting, sample, the headline numbers with their table references, and every claim the paper makes. | fast | medium |
Model tiers
Model tiers
| Tier | Used for | Model |
|---|---|---|
| fast | mechanical, verifiable work | claude-haiku-5-5 |
| balanced | code and prose to a clear spec | claude-sonnet-5-5 |
| reasoning | judgment, design, review, data semantics | claude-opus-5-5 |
| frontier | only on escalation: the hardest open questions | claude-fable-5-2 |
What this buys
- Independent review. The strategy auditor looks only for look-ahead, survivorship, uncounted trials, missing costs and unsupported claims, in code it did not write.
- Numbers copied, not remembered. Report figures come from the run’s output files, verbatim.
- Lower cost. Most tokens go to the cheapest tier that can do the job.
- No lock-in. One file maps tiers to models; a new model is a one-file change.