Research notes · Mengbing Zhou

Understanding Multi-Agent AI Research Frameworks: From Models and Harnesses to Workflows

A look at ScienceEvolve, ScientistTwo, and the GoogleScientistTwo reproduction project

Projects that promise to let AI conduct research autonomously are becoming increasingly common. Google's ScientistTwo claims to outperform the human SOTA on 86 out of 107 research problems from top-tier conferences. OpenMOSS's open-source ScienceEvolve lets you assemble your own “AI research team” with a single JSON file. Independent developers are also attempting to reproduce ScientistTwo in full from its paper.

The READMEs for these projects are often packed with terminology: agents, harnesses, workflows, evolvers, skills, MCP, and more. It is easy to get lost on a first reading. This article offers a layered framework for understanding these systems: breaking a multi-agent research system down from the bottom up to clarify what each layer does and who is responsible for it. With this framework in mind, you can quickly identify the design priorities and weaknesses of a new project.


Layer 1: The Model — It Can Think, but It Cannot Act on Its Own

Everything starts with a large language model. It can understand papers, propose hypotheses, write code, draft articles, and review work. Fundamentally, however, it does just one thing: take content as input and produce content as output.

The model itself cannot read files on your hard drive or execute code, and it does not remember what happened in the previous invocation. To complete a multistep task such as “revise a solver, run the tests, inspect the errors, and revise it again,” it needs another layer around it.

Layer 2: The Harness — Enabling the Model to Act

A harness is the runtime framework wrapped around a model that enables it to do actual work. Claude Code, Codex, pi, and Hermes all fall into this category. Think of the model as an engine and the harness as the chassis, steering wheel, and transmission. The same engine can behave very differently in different vehicles.

The Core of a Harness: The Tool-Calling Loop

The central mechanism of a harness is tool calling. It does not “guess” commands from the model's free-form text. Instead, it works as follows:

  1. When requesting a response from the model, the harness supplies a list of tools, each with a name, description, and parameter format defined by a JSON Schema.
  2. When the model decides that it needs a tool, it produces a structured invocation request, such as {"name": "bash", "input": {"command": "pdftotext paper.pdf -"}}, and then pauses.
  3. The harness checks permissions, executes the command, and collects its output.
  4. The harness sends the result back to the model as a tool_result, which the model uses to decide what to do next.
  5. This loop continues until the model stops calling tools.

The skeleton of a harness can be expressed in just a few lines of code:

messages = [user_task]
while True:
    reply = call_model(messages, tools=TOOLS)
    messages.append(reply)
    calls = [b for b in reply.content if b.type == "tool_use"]
    if not calls:
        break                                  # No more tools needed; finish
    results = []
    for c in calls:
        check_permission(c)                    # Permission and safety checks
        output = HANDLERS[c.name](**c.input)    # Execute the tool
        results.append(tool_result(c.id, truncate(output)))
    messages.append(results)                   # Return results for the next turn

The model can produce properly formatted tool calls because it was specifically trained to do so, and the API server parses this part of its output into structured objects. The harness therefore receives JSON rather than having to extract commands using regular expressions.

Bash as a General-Purpose Tool

Harnesses vary considerably in how many tools they provide out of the box. pi takes a minimalist approach, offering only four tools—read, write, edit, and bash—with other capabilities supplied through extensions. Claude Code, by contrast, includes a broad range of capabilities, including file operations, search, web fetching, subagents, MCP, and skills.

They do share one important property: with bash, the model can access the operating system's entire ecosystem of tools. For example, pdftotext is not a built-in harness tool; it is simply a command-line program installed on the system. If it is available in the environment, the model can use it through bash. If not, the model will often try to install it first.

This highlights an easily overlooked point: an agent's capabilities depend not only on the model and harness, but also on what is installed in its runtime environment.

A Concrete Example: How Do Agents Read and Write Papers?

The model handles the “intelligent” part of reading and writing papers. The harness merely moves content in and out.

Reading a paper essentially means putting its contents into the model's context. TeX source or HTML is ideal because it preserves equations, tables, and section structure. When only a PDF is available, extraction with pdftotext has clear limitations: most body text survives, but table rows and columns can become scrambled, vector figures may be reduced to scattered axis labels, and raster images disappear entirely.

The remedy is to use the model's visual capabilities. Modern mainstream models are natively multimodal: images are split into patches and converted into “visual tokens” by a vision encoder. These are fed into the same model alongside text tokens and processed together through attention. The model sees the image directly rather than first asking another model to describe it. A practical approach is to extract the body text, which is inexpensive, accurate, and easy to search, and separately render important figures and tables as high-resolution images for the model. Bear in mind that models are better at identifying trends and comparisons in figures than at reading precise numerical values.

Writing a paper means having the model write LaTeX source files and using the harness to save them to disk. Rigorous systems deliberately keep tasks that can be handled by deterministic programs—compiling PDFs, generating result tables, and checking numbers—out of the model's hands. We will return to why this matters later.

Layer 3: The Agent — A Model and Harness Also Need a Role and a Place in the Workflow

Does combining a model with a harness give you an agent? Two pieces are still missing. A more complete equation is:

Agent = Model + Harness + Role Configuration + Position in the Workflow

Role configuration determines “who” the agent is: its prompt, responsibilities, and available skills and MCP tools. The same “Claude Code + model” combination becomes a research agent when given a literature-research prompt and retrieval tools, or a review agent when given a review prompt and testing tools. The harness and model do not inherently have a role; the role comes from their configuration.

Position in the workflow determines whom the agent works with: where its tasks come from, who receives its results, whether it operates inside a loop, and how many rounds it runs before exiting.

ScienceEvolve illustrates this approach. It defines an entire team in a workflow.json file: a Main agent coordinates the work, while several Workers take on roles such as research, experimentation, coding, and review. Each agent can independently select its harness—Codex, Claude Code, pi, or another option—and model, along with its own prompts, skills, and MCP configuration. You might give the Coder Claude Code, pair a lightweight pi harness with an inexpensive model for literature research, and use a model from a different provider for Review to obtain an independent perspective.

This freedom to mix and match has limits. Different harnesses natively support different API protocols, so making a particular combination work often requires protocol translation through a model gateway and testing in practice.

Within its assigned step, a well-configured agent can usually work autonomously: a Coder can write code, run it, inspect errors, and make corrections. But it handles one part of the process, not the entire journey. Deciding what comes next and when the work is truly complete belongs to the next layer.

Layer 4: Orchestration — Who Decides What Happens Next?

How multiple agents collaborate is where frameworks differ most. The two projects discussed here illustrate two distinct approaches.

ScienceEvolve uses an LLM to orchestrate the work. Main is itself an LLM agent responsible for coordinating Workers and determining whether the task is complete. The project goes further with a “dual feedback loop”: alongside the usual task loop of “run a method → collect feedback → improve the method,” there is a process loop that adjusts the workflow itself based on research outcomes. An authorized Main can act as an Evolver, adding or removing agents, switching harnesses, changing routing, and submitting an updated workflow for the Runtime to validate and activate.

The GoogleScientistTwo reproduction uses a program to orchestrate the work. In this project, each agent is a claude -p invocation—Claude Code's non-interactive mode—and its definition consists of data such as a prompt, output schema, and tool permissions. The control flow is implemented entirely in a Python engine that acts as a deterministic state machine. It chooses the phase, prepares context for the agent, launches a subprocess in a sandbox, collects and validates structured results against a schema, and passes them to an evaluator for scoring. Based on the critic's verdict, it then moves to the next phase, requests another revision, or abandons the attempt. Agents never talk directly to each other; they exchange information through files and engine-managed state.

ScienceEvolve GoogleScientistTwo Reproduction
Agent composition Choice of harness and model, plus prompts, skills, and MCP Fixed claude -p invocation, plus prompts and an output schema
Orchestrator Main (an LLM agent) plus the Runtime Python engine (a deterministic state machine)
Can the process change during execution? Yes; an authorized Main can restructure the workflow No; the process is fixed in code and configuration
Emphasis Flexibility and evolvability Control, testability, and resistance to gaming

Neither approach is universally better. LLM orchestration is more flexible and suits highly exploratory tasks whose processes are difficult to define in advance. Programmatic orchestration provides more control: the entire state machine can be thoroughly tested with mocks without calling a model—the reproduction project includes 132 such tests—and is harder for an agent to steer off course.

The original ScientistTwo also fits into this orchestration picture: idea generation, staged evaluation from subsets to full datasets, automated ablations, paper writing, simulated peer review, and rebuttals. A meta-reviewer agent oversees the full loop and sends work back for another round when it falls short.

Layer 5: Feedback and Evaluation — The Most Easily Overlooked Layer

Nearly every framework of this kind advertises “closed-loop improvement based on real feedback.” But an important distinction is needed: the framework provides the plumbing through which feedback flows; users generally need to supply the task-specific sources of feedback and criteria for judging it.

For purely computational tasks, the barrier is relatively low. An agent can run code itself, and test outcomes, error measurements, and convergence checks provide readily available feedback. ScienceEvolve's introductory examples, such as building and testing a Todo CLI or a Poisson equation solver, fall into this category of tasks that can be completed in a local feedback loop.

The framework does not, however, know what “better” means. You need to supply benchmarks, metrics, test sets, or verifiers. ScienceEvolve's AlphaEvolve reproduction example uses DeepMind's publicly released problem and verifier repository: the evaluator is prepared in advance. Experiments that cannot run locally, such as cluster training, wet-lab experiments, and instrument measurements, require connections to external platforms through MCP or scripts.

ScientistTwo's success is also closely tied to this point. Its research problems come directly from published papers, with problem definitions, codebases, and benchmarks already in place. The evaluation criteria are ready to use. This is precisely the setting in which automated research can most easily close the loop. Research with ambiguous evaluation criteria, or where the system must formulate its own questions, is much harder.

Another point deserves attention: the ScientistTwo paper's claim of “exceeding the average score of accepted papers” refers to scores from an automated LLM reviewer, not actual peer review. When reading such results, first ask who is doing the scoring.

Layer 6: Integrity — Safety Boundaries Must Sit Outside the Agent

Wherever evaluation exists, there is an opportunity to exploit it. This is reward hacking. The GoogleScientistTwo reproduction provides a revealing example: an early audit found that an agent had accessed an unblocked copy of the test labels for the digits task and obtained a perfect test score of 1.0.

The project's response follows a clear principle: integrity must be enforced by the system, not requested through prompts. Its measures include:

  • Locking down the evaluation harness and checking its hash, with metrics produced exclusively by that harness.
  • Using the macOS sandbox to restrict what agents and evaluated code can read and write, with allowlisted read access under $HOME.
  • Restricting outbound network traffic to the Anthropic API through a logging proxy.
  • Keeping test seeds separate from search seeds and accessing the test set only once, during final export.
  • Having the engine regenerate tables for the reviewer agent directly from result files, so the writer cannot alter them.
  • Flagging numbers in the manuscript that do not appear in the result files.

The original ScientistTwo also pays close attention to this layer, conducting four audits for each paper: rerunning the code to reproduce every number, checking compliance with task specifications, verifying that references are real, and comparing the paper's descriptions against the actual code line by line.

This layer connects directly to the tool-calling mechanism in Layer 2. The model merely proposes a tool call; the harness executes it. The harness is therefore a place to intercept dangerous operations. A stronger approach is to put the entire harness process inside an operating-system-level sandbox, so that boundary violations are still blocked even if the harness's own checks are bypassed.


Conclusion: Questions to Ask When Exploring a New Framework

Putting these layers together, the next time you encounter a new multi-agent research framework, ask:

  1. Model layer: Which models does it use? Can different roles use different models?
  2. Harness layer: What enables agents to execute actions? Which tools are available, and what must be installed in the runtime environment?
  3. Agent layer: What makes up an agent? How are its roles defined?
  4. Orchestration layer: Who decides the next step—an LLM or a program? Can the process change during execution?
  5. Feedback layer: Who supplies the evaluation criteria? What does the framework include, and what must users add?
  6. Integrity layer: Are safeguards against gaming expressed in prompts or enforced by the system?

In one sentence: the model determines how well the system reasons; the harness determines whether it can act; configuration determines who each agent is; orchestration determines how the agents divide and coordinate their work; and evaluation and integrity determine whether the final results can be trusted. Mature open-source components are already available for the earlier layers. What often distinguishes a reliable research framework lies in the last two.

Back to Blog