Skip to content

Driving Science with a Fleet of Agents

In tier 4 you drive the science, and a fleet of agents helps. The agents implement ideas and report back what they find. You turn their results into slides and present them to your group, and the group's questions drive the next work. The manuscript session ties each result to the literature, and the goal is to improve what the field knows.

The talks are the new piece, so we call this talk-driven development. Once a result is worth keeping, its analysis is moved into the project's main branch. The June post described manuscript-driven development. The manuscript still matters, but now the talk drives the work. Talks match how scientists already work, and they bring people back into the room.

As scientists, we have spent much of our time on operations. Even when we don't write the code, we review PRs that only change its structure, chase failed jobs, and keep track of who is doing what. In this setup the agents take the operations, and you keep the science. A change that could touch the science, such as an analysis, a claim, or what the paper says, comes to you. A change that is purely operational lands without you.

This page has four diagrams. The first shows the whole system. The other three zoom in on an issue, a worker, and a fix to the skills. In all four, people are in a humanist face with a purple outline, and agents are in typewriter. The literature is in a dashed box, because it is knowledge, not a person or an agent.

The whole system

Talk-driven development: four layers of knowledge, from research up to the field, with a support layer below

Read the upper four layers from the bottom up. Each is a wider circle that has to understand and accept a result. Tier 3 introduced the EPIC, conductor and worker sessions; Agent Roles says what each role owns.

  • Research. The agents implement ideas and report back what they find. The EPIC session (/bip-epic) holds the current edge of one research question. The conductor (/bip-conductor) spawns a worker for each issue. The manuscript session (/bip-ms) stores each result with how it relates to prior work.
  • You. Most of the work happens here, between you and the talks session (/bip-talk). Together you turn results into slides, and you have to understand each result well enough to explain it. A /bip-helper does the figure and deck work, so the talks session stays free to answer you.
  • The group. You present the slides, and the group's questions come back. The talks session writes each question into the talk's feedback.md. It answers each one with a reproducible exploratory analysis, or sends it to the EPIC session as a draft issue.
  • The field. The literature is the field's state of knowledge, and the goal is to improve it. The manuscript session reads the literature in and keeps the results in the paper. People rewrite the paper before it goes back out (see The paper).

The support layer holds no results. It keeps the other layers running.

  • Staff (/bip-staff) holds your rulings word for word. It answers what it can and pages you for the rest.
  • A sysadmin session, which has no skill of its own, watches the machine, and an infra session (/bip-infra) watches the cluster.
  • A librarian session (/bip-librarian) triages literature alerts and asks the EPIC owners about the few that matter.
  • A bipartite session, started in this repo, lands fixes to the skills (see Kaizen).

The paper

The paper in the repository is the project's storehouse, not the text we submit. The manuscript session keeps it current as each research thread completes, without asking you where a result goes or how to word it. Methods and Results are readable prose, so anyone can follow the full scope of the project. The Introduction and Discussion are outlines that place the work in the literature. Each point is a full-sentence claim with its citations and the results it rests on. When a talk flags a problem, the paper changes too. Before submission, people go over the paper line by line, and write the Introduction and Discussion from their outlines. Nothing goes out as the agents wrote it.

The life of an issue

The life of an issue: formulate with ms and EPIC, check and file, work, land, and the result goes back

Many agents look at one issue before it lands. An issue starts from you, a talk question, or the follow-ups a PR lists as deferred. Before it is filed, its draft goes to two sessions:

  • The manuscript session knows what the field knows. It can say whether published work already predicts the answer.
  • The EPIC session knows the project's current edge. It can say how the issue fits the work in flight.

/bip-issue-check then reviews the draft, and the issue is filed. For an issue that the EPIC or talks session writes, a skeptic agent also looks for flaws in its plan. The conductor spawns a worker for it. A self-contained PR lands after the EPIC session checks the claims it makes; a PR that changes shared code needs a review from a group member. The result goes back to the EPIC session, which rules on it, to the manuscript session, which records it, and to the talks session, which finds it at cold start and presents it. Issue Lifecycle gives the skills in order.

Inside a worker

Inside a worker: the worker loop, the issue-lead, and parallel review agents

A worker owns one issue in one clone. It loops: implement, run, report. At each stopping point it spawns an issue-lead, which reads the files cold, with none of the worker's context. The issue-lead judges scope and results, and says whether to continue, fold deferred work in, or escalate. Before merge, /bip-pr-review runs its review agents in parallel. clean-code checks naming and function size, and code-reuse looks for existing code the PR could use. The skeptic runs only when the PR makes a scientific claim, the cold reader reads a rendered notebook as its audience would, and runs only when the PR adds one, and the math back-translation runs only for a PR with formulas or scientific computation. The math back-translation restates the code's math in LaTeX, checks it against the paper the method comes from, and posts it to the PR. The EPIC session sends corrections through the conductor, so the message and the clone's log of work stay in step. Once CI is green at the PR's head, the PR goes to its landing signer: the session or person who signs off the landing.

Kaizen

Kaizen: a proposal from any session goes to the bipartite session, is reviewed and landed, and reaches every session

You, or the session you are working in, can hit friction or a bug. Run /bip-kaizen there, or the session drafts the kaizen itself. It writes what happened, the root cause, and a proposed edit. A fix that is purely operational goes ahead, and you hear about it afterward. A fix that could touch the science waits for your word. A change to a project's own files is made in place. For a change to bipartite, the session sends the proposal to the bipartite session and quotes any words of yours. The bipartite session weighs it, places it in the right file, and is lean by default: a rule must name a failure someone actually hit, and deleting beats adding. It may push back, or ask for an A/B test first. The session that sent the proposal approves the diff, and for a trim to a skill, a cold reviewer also compares the old file with the new one. The fix lands once CI is green at the PR's head. The skills directory is symlinked into ~/.claude/skills, so every session in every repo uses the fix from its next skill invocation.