Polarize
GitHub Get in touch

Work · Repository

scientific-research-agents

Specialist AI agents for scientific research repositories, and the protocol they coordinate by

  • Python
  • 5 merged PRs

View on GitHub → Changelog ↓

README

Specialist AI agents for scientific research repositories, and the protocol they coordinate by: who does what, how they hand work to each other, which model each starts on, and what it all costs.

All leads and specialist agents search through the configured Scientific Research RAG MCP first, backed by polarizetech/retrieval-augmented-generation, unless it is unavailable or the user explicitly opts out. They disclose an unavailable service before using another search method. For a repository’s own current code, the checkout remains authoritative and is inspected directly after the RAG-first step.

It is used by scientific-research-scaffold, which installs these agents into every study, sim and tool it makes and keeps them current, but nothing here depends on the scaffold.

The agents

Each file in agents/ is a provider-neutral role brief with Claude Code subagent frontmatter; {{placeholders}} are filled by the installer from the repo and its profile. Claude discovers installed copies in .claude/agents/. ChatGPT, Codex and other repository-aware assistants read the same Markdown bodies through a section of AGENTS.md (templates/AGENTS.block.md). If the environment cannot or must not create a subagent, the lead applies the relevant brief in its current session.

agent takes starts on
scout finding and summarising, read-only, so other agents don’t read everything themselves haiku, low
computational-engineer simulators, models, numerical code, pipelines; language choice, typing, reuse vs duplication sonnet, high
mathematician equations, constants, units and valid ranges; specifies calculators with reference values sonnet, high
designer layout and visual design on the configured component library; how to show a dataset sonnet, medium
frontend-developer zero-build, Python-served apps by default; React when justified, always from the configured design system sonnet, medium
ios-developer native SwiftUI + WKWebView shells around an existing web app; bridge, background audio, simulator and device builds sonnet, medium
researcher literature and evidence, evidence tiers, claims in the research corpus sonnet, medium
analyst data analysis and statistics, preregistered analysis plans sonnet, high
science-writer papers, and blog posts as a separate register sonnet, medium

One agent per role, not per discipline. Research, analysis and writing are different jobs; neuroscience and cardiology mostly are not. The science roles read discipline briefs from disciplines/: what is established in each field, its standards and its traps.

Write additional specialist briefs from templates/specialist.example.md and keep project-specific ones in a separate private repository. The extension guide explains how bin/install-agent-extensions reads a local private checkout, combines each specialist with the public researcher brief, and installs routing into a study without adding the private checkout to this public package. An optional local research checkout setting gives each private profile its own agent-research/<profile>/ folder for Markdown sources and findings. The installer can create those folders independently of study installation.

Updating specialist grounding

Retrieve the affected passages through the configured scientific-research RAG server, preserve evidence IDs verbatim, and run its citation checker over the final claim list. The checker validates quotations and numbers, not entailment, so review the inference yourself. Every row keeps a status and read depth; a new or unverified claim is Background until retrieved. Keep a specialist’s source ledger in its own repository.

The science stays the person’s. Infrastructure is the agent’s to decide; equations, parameters and interpretations come from the person and the research. No agent states a published value from memory.

How they coordinate

COORDINATION.md: one lead delegates; agents pass handoffs of at most 150 words, never transcripts; parallel work only for independent tasks; a scientific feature goes researcher, then the person’s decision, then engineer; each agent starts on a cheap model and the lead escalates a task on a clear signal.

references/language-routing.md is the evidence behind the engineer’s rule for choosing a language.

references/app-architecture.md standardizes interfaces: the configured design system, a zero-build browser app and Python serve.py by default, allow-listed shared assets, and an explicit handoff to the computational engineer for non-trivial APIs.

What it costs

bin/agents usage ~/code/*          # tokens and API-equivalent cost per repo, last 7 days
bin/agents usage --all --days 30   # every project with sessions

usage reads Claude Code’s and Codex’s local logs, counts each API response once (Claude Code writes one response as several transcript lines), prices it at prices.json, and projects a month. For Codex it also shows the plan’s rate-limit windows. On a subscription the dollar figure is scale, not a bill.

Requirements: Python 3.9+. No other dependencies.

Licence

Code is MIT; the agent briefs, protocol and documentation are CC BY 4.0. See LICENSE.

Changelog

2026-11-30 #9

Release agents v0.14.0: exploratory work is MVP work

Adds “Exploratory work is MVP work” to COORDINATION.md, a bullet in the AGENTS.md block, and an MVP-mode section to the computational-engineer and frontend-developer briefs:

  • Scope: the lead whittles a first pass down to what can be built in about an hour; the person decides what’s cut.
  • Reuse: build from open-source and peer-reviewed pieces that already work, writing glue rather than engines, and recommend the open-source option without being asked.
  • Research and versions: one research pass per project, and every try is versioned.
  • Preregistration: none until the work leaves exploratory.
  • Rules still hold: the repo’s own stack, conventions and design system.

Bumps to 0.14.0. Tests: 13 OK.

🤖 Generated with Claude Code

2026-11-30 #8

Release agents v0.13.0: research folder on first research, nothing saved twice

Changes “Research is saved, never a blocker” in COORDINATION.md, the AGENTS.md block and all nine briefs:

  • The folder is made when research first comes up. No repo gets a corpus folder in advance. The first research in a conversation about a study or tool with no project folder opens one, with a short README, without asking.
  • Not twice. Before saving, the corpus is searched (the retrieval tool, then the checkout) for the same paper, passage or finding. What’s already there is linked, never copied, and a paper keeps its existing ledger key.

Bumps to 0.13.0. Tests: 13 OK.

🤖 Generated with Claude Code

2026-11-27 #7

Release agents v0.12.0: research is saved, never a blocker

Adds “Research is saved, never a blocker” to COORDINATION.md, the AGENTS.md block and all nine briefs. Research that comes up is saved without asking to the corpus project for the current study or tool (or the study’s atlas): observations become ledger statements that say how each was marked, and the work links to them. No agent flags, refuses or holds up work because something is research. Scope files citing papers (scope/*.md, SCOPE.toml evidence) count as scope, not research, and are allowed in tools. Bumps VERSION, CHANGELOG and CITATION to 0.12.0. Tests: 13 OK.

🤖 Generated with Claude Code

2026-11-22 #6

Release v0.11.0: the designer's MVP mode for exploratory work

  • The designer works in MVP mode on exploratory work (a study’s mode = "exploratory", a unit’s stage = "exploratory", or a scope’s Tier: explore): one quick pass that designs and builds the page from the design system’s existing components and tokens, aiming for a workable page within about an hour, with no Claude Design, separate mockup, audit or hand-off. Numbers, labels and methods still come from established papers.
  • Past exploratory, it does the full pass: a Claude Design or mockup handed to the frontend-developer.
  • Bumps VERSION, CHANGELOG.md and CITATION.cff to 0.11.0 (also covers #5).

Tests: python3 -m unittest discover tests passes (13).

🤖 Generated with Claude Code

2026-11-03 #5

Let an extension brief reference a profile kept in another repository

A private overlay brief can now be a reference: its frontmatter names source (a path relative to the overlay checkout) and source_repo.

install-agent-extensions installs from the referenced file. It checks that the names match, and stops with an error naming source_repo when the file is missing.

This lets a profile live in the study it serves. The first is aramaic-translator, kept in polarizetech/aramaic-alphabet. docs/EXTENDING.md documents the format.

Tests: python3 -m unittest discover tests passes (13 tests, one new).

🤖 Generated with Claude Code