Study files

REPRODUCE.md

15 KB · View on GitHub →

Reproducing the agent runtime comparison

This explains how to re-run the study that produced agent-runtime-comparison.md: the same sources, the same instructions and the same process.

The study was produced by language-model agents. A re-run will not produce identical text. What can be reproduced is:

  • the inputs (exact revisions),
  • the instructions (the briefs),
  • the process (the stages below),
  • the checks (study/validate.py).

Each cited claim can also be checked by hand: every ledger entry is a link pinned to a commit with a line range.

1. Original environment

Item Value
Date 2026-11-28
Model Claude Opus 5.5 (claude-opus-5-5) for the coordinator and all sub-agents
Harness Claude Code 2.1.332 (CLI), on Linux 6.12 (Debian 13), bash, Python 3
Tools used by agents Read-only file access, grep, find, sed, git log/show. No network access to live services, no builds, no test runs, no paid model calls other than the study agents themselves

Any agent harness that can run sub-agents with read-only filesystem access can follow this process. Using a different model or harness is a change of method: record it in your report.

2. Files in this directory

Path Purpose
REPRODUCE.md This file
agent-runtime-comparison.md The published report
study/TASK.md The original task specification, verbatim
study/AUDIT_BRIEF.md Stage A brief: instructions given to every per-runtime auditor
study/SYNTH_BRIEF.md Stage B brief: instructions given to every table drafter, including the corrections the coordinator had verified by then
study/coordinator_checks.md Stage C: claims the coordinator re-checked by hand, with the lines read
study/head.reference.md Coordinator-written front matter (reproducibility, method, executive assessment), for reference
study/tail.md Pre-delivery checklist appended to the report
study/assemble.py Stitches the drafts into the final report
study/validate.py Integrity checks on a finished report
study/RUBRIC.md Stage E grading rubric (anchors per column, written before grading) plus errata R1–R14
study/GRADER_BRIEF.md Stage E brief given to each independent grader
study/grades/g{12,34,56}-{A,B}.md The six graders' raw tables, unedited
study/grades_overrides.tsv Adjudicated cells: disagreements settled, errata applied, service-dependency notation
study/compare_grades.py Inter-grader agreement statistics and disagreement list
study/finalize_grades.py Merges grader tables and overrides into the graded matrix and adjudication log
study/graded_intro.md Front text of the report's Graded summary section
study/export_grades_json.py Exports grades, rubric criteria and cited ledger entries as study/grades.json
study/grades.json Machine-readable graded summary (schema in study/VISUALIZE.md)
study/VISUALIZE.md How to build a graphic summary of the grades: required elements, encoding rules, what not to imply

In the briefs, $STUDY_ROOT is the directory holding the ten checkouts, and $WORK is a scratch directory outside it. Replace both with real paths before giving a brief to an agent.

3. Get the exact sources

Fetch each repository at its pinned commit. A shallow fetch of the exact SHA works on GitHub, and pinning by SHA avoids depending on whatever a branch points to later.

export STUDY_ROOT="$PWD"          # directory that will hold the ten checkouts
while read -r name url sha; do
  git init -q "$name"
  git -C "$name" remote add origin "$url"
  git -C "$name" fetch -q --depth 1 origin "$sha"
  git -C "$name" checkout -q --detach FETCH_HEAD
  printf '%-20s %s\n' "$name" "$(git -C "$name" rev-parse HEAD)"
done <<'EOF'
codex              https://github.com/openai/codex.git                  065e18b04021008e2e7d504db8dc50275f589f73
goose              https://github.com/aaif-goose/goose.git              c546eaa1cd02696e4cd628e203df51429e158175
hermes-agent       https://github.com/NousResearch/hermes-agent.git     3ef8bf4f68c91dce2870eba5625426b32ac6ba58
letta-code         https://github.com/letta-ai/letta-code.git           52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21
nullclaw           https://github.com/nullclaw/nullclaw.git             5f1cade05c19b6ecdfb9565ae3305e892e484da9
openclaw           https://github.com/openclaw/openclaw.git             ac0771450bce15e44c3d4e3dda76ccf38f8b6c61
opencode           https://github.com/anomalyco/opencode.git            2204311ec6e966db8d67988ab3638ad95a811a46
pi                 https://github.com/earendil-works/pi.git             2126569de40d5595dd3f41f7af126001f04c1de0
software-agent-sdk https://github.com/OpenHands/software-agent-sdk.git  cf8158bc25f5552c50ad131a5f0ce2dbc297789b
spore              https://github.com/RHIZOGRIP/spore.git               4a9db7982fda3ae2f30a817fa0037c92e246f97f
EOF

Every printed SHA must match the table. The checkouts total about 3 GB; openclaw alone is about 1.2 GB. The original study cloned with git clone --depth 1 --single-branch, which gives the same tree when the SHA matches. opencode's default branch was dev, all others main.

Make the checkouts read-only so no agent can change them by accident:

chmod -R a-w codex goose hermes-agent letta-code nullclaw openclaw opencode pi software-agent-sdk spore

External components not in these trees are pinned in the report's Pinned external dependencies table. Examples:

  • letta-code's Letta server, which the tree does not pin. Its claims are [D].
  • spore's mohdel 4.11.0.
  • opencode's psychoscript 0.3.0.

Claims about these components are labelled [D] unless the code is vendored in-tree.

4. Run the study

Prepare a scratch directory: export WORK=/some/scratch; mkdir -p "$WORK/findings" "$WORK/draft".

Stage A: per-runtime audits (10 independent agents, run in parallel)

Start one agent per runtime with this prompt:

Read and follow study/AUDIT_BRIEF.md exactly. Your repo: <name> at $STUDY_ROOT/<name>, revision <sha>. Write your output to $WORK/findings/<name>.md as the brief specifies.

The original run added these per-runtime hints to the prompt. Each hint names a fact about the tree's layout and none suggests a conclusion:

Runtime Hint
codex codex-rs/ is the Rust runtime and sdk/ holds the SDKs. The Cargo version is 0.0.0, so locate the real release version and say where it comes from
hermes-agent The manifest versions (1.0.0 / 0.0.0) are ambiguous. Determine the real version
letta-code It is a client of a Letta server outside the tree. Pin the server and SDK versions, label server-side claims [D], and label the configuration (Cloud, self-hosted or local)
nullclaw Written in Zig. The last commit is older than the others
openclaw Very large. Prioritize the core gateway and agent runtime, and treat extensions as optional. Check whether the agent loop comes from an external package and pin it if so
opencode Default branch is dev. Confirm the package versions under packages/
pi Report the versions of the core packages under packages/
software-agent-sdk Four packages. Distinguish the local workspace default from Docker and remote workspaces
spore Treat its design documents as intent, not proof. Pin its dependencies from the lockfile. Note: the original hint wrongly called @rhizogrip/cairn external. It is an in-tree workspace. Do not repeat that error

Each audit covers all 18 columns, metadata, companion facts, a negative-finding log (searches and paths), unresolved items and schema gaps. In the original run each took about 7 to 14 minutes and roughly 125k to 270k sub-agent tokens.

Stage B: table drafting (7 agents, run in parallel after Stage A)

All seven drafters read study/SYNTH_BRIEF.md. The list of verified corrections in that brief reflects what the coordinator had confirmed by the start of Stage B. A re-run should replace that list with its own Stage C findings.

Output file in $WORK/draft/ Contents Ledger prefix
0-metadata-companion-limits.md Metadata table, pinned dependencies, companion tables (Part A and Part B), merged unresolved claims, conflicts, coverage limits, experiments, schema gaps M, A
1-programmable.md Capability interface · Reusable computation · Capability transfer P
2-evidence-memory.md Durable evidence · Context recovery · Memory maintenance E
3-specialists.md Specialist definition · Continuation · Coordination C
4-execution-controls.md Confinement · Credential handling · Budget enforcement (at least 3 line ranges re-checked per runtime) X
5-integration.md Embedding interfaces · Declarative configuration · Durable execution I
6-operations.md Service dependencies · Execution records · Result checks O

Prompt pattern: "Read and follow study/SYNTH_BRIEF.md. Your part: group N "", columns … (audit sections Na/Nb/Nc). Ledger prefix: X. Output: $WORK/draft/<file>."

Each drafter writes one group across all ten runtimes, which keeps each column consistent. Each drafter re-checks cited line ranges against the checkouts and records corrections in a verification log.

Stage C: coordinator checks (by hand)

While Stages A and B run, re-check the most consequential or disputed claims directly, as study/coordinator_checks.md does. Prioritize:

  • negative findings, for example "X is never called";
  • defaults that change the security posture;
  • doc-vs-code conflicts;
  • any claim where two agents disagree.

Feed confirmed corrections into the Stage B brief.

Stage E: graded summary (added after the original study, at the requester's request)

This stage departs from rule 13 of study/TASK.md ("do not manufacture numerical scores"). It adds per-column levels, written against fixed criteria and never aggregated. Run it only after Stage C, against the finished tables.

  1. Fix the rubric before looking at results. Use study/RUBRIC.md. Each column has anchors for levels 0–4, except Service dependencies, which gets a footprint class. Each cell gets a default level, a best-supported level with the configuration named, and a confidence mark. A level resting only on documentation or tests is capped at 2.

  2. Grade in independent pairs. Run six graders: two per pair of groups (1–2, 3–4, 5–6). Each gets study/GRADER_BRIEF.md with $STUDY_ROOT and $WORK substituted. Grader B of each pair works through the runtimes in reverse order. Graders must not see each other's output. They write $WORK/grades/<pair>-<A|B>.md.

  3. Measure agreement:

    python3 -I study/compare_grades.py "$WORK/grades"
    

    This prints exact and within-one-level agreement and writes disagreements.md. Original run: 92% exact / 98% within one level for default levels, and 90% / 98% for best-supported levels, over 170 graded cells.

  4. Settle rubric ambiguities as errata. Collect the "Rubric problems" reported by the graders. Decide each one once, append it to the rubric as an erratum, and apply it to every runtime, including cells the graders agreed on. Do not edit the anchors themselves after grading.

  5. Adjudicate. For each disagreement, and each agreed cell an erratum changes, re-read the cited code where needed. Record the result in an overrides TSV with the columns: runtime, column, D, B, confidence, B config, refs, reason, basis.

  6. Build the matrix:

    python3 -I study/finalize_grades.py "$WORK/grades" overrides.tsv "$WORK/grades/final.md"
    

    Put graded_intro.md in $WORK. Stage D then inserts the section before the companion table.

Grading took about 5 to 6 minutes and about 125k sub-agent tokens per grader in the original run. High agreement shows that the rubric is applied consistently. It does not independently confirm the evidence, because graders read the same report.

Stage D: assemble and validate

  1. Write the front matter as $WORK/head.md: reproducibility table, scope and method, and an executive assessment of 300 words or fewer, written only from the drafted tables. study/head.reference.md shows the original.

  2. Put your own coordinator_checks.md and tail.md (the checklist) in $WORK.

  3. Assemble:

    python3 -I study/assemble.py "$WORK/draft" agent-runtime-comparison.md
    

    assemble.py reads head.md, coordinator_checks.md, tail.md and, if present, graded_intro.md and grades/final.md from the parent of the draft directory, and expects the draft headings in the format described in study/SYNTH_BRIEF.md.

  4. Validate:

    python3 -I study/validate.py agent-runtime-comparison.md
    

    It checks four things:

    • each of the six runtime tables has the ten rows in the required order with no empty cells;
    • the executive assessment is 300 words or fewer;
    • every [P12]-style reference has a ledger entry;
    • every GitHub link is pinned to the study revision of its repository.

    The published report passes all checks.

  5. Confirm nothing touched the checkouts: git -C <repo> status --porcelain must print nothing for every repository.

5. Verifying the published report without re-running it

You don't need agents to check the conclusions:

  • One claim: open its ledger link. Each is pinned to a commit and line range, and labelled [S] (traced to a production entry point), [D] (documented only) or [T] (test only).
  • Starting points: the coordinator re-checks at the top of Verification logs, and the Source/doc conflicts table.
  • Runtime behavior: the report lists 25 Proposed validation experiments. None was performed. Running any of them, such as reading credentials from inside a default sandbox or killing a process during a tool call, is new evidence, not reproduction. Record the environment, configuration and model used.

6. Known sources of variation

  • Model output varies. Wording, emphasis and which secondary details appear will differ between runs. Cited mechanisms should not, because they are tied to fixed lines of fixed commits.
  • Coverage was uneven where trees are very large. Examples: openclaw's extensions, messaging adapters, and desktop or web clients. The report's Material coverage limits lists these areas, and a re-run may cover them differently.
  • Line ranges were sampled, not all re-checked. Drafters re-checked a sample. Script checks confirm only that each file exists and each range fits inside it.
  • Intermediate audit files were not preserved. The original Stage A findings and Stage B drafts were written to a session scratch directory and are not kept. The Stage E grader tables are kept in study/grades/. A re-run can therefore compare its grades with the original line by line, but not its audits.
  • Graded levels depend on the rubric's wording. Small anchor changes move levels. For example, codex embedding interfaces is graded 2 only because its app-server is labelled "experimental" and the level-2 anchor names that status. Compare levels only across runs that use the same rubric and errata.