eval_writeup

eval_writeup is a command for Claude Code from swarm-ai-research/swarm. It costs 0 tokens per session (2,360 once invoked), scanned A, original, MIT.

A command that reads the output of a Prime Intellect evaluation run, extracts its measurements, and can generate a blog post explaining the results. Prime Intellect is a platform for running evaluations of AI systems and environments.

In plain words
What is it for?
Use it to parse metrics only, or to create a blog post based on an evaluation run, with an optional custom title.
Why use it?
It turns evaluation output into structured information or a draft write-up without requiring the results to be interpreted and documented manually.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/swarm-ai-research/swarm/eval_writeup
Clone the repo
git clone --depth 1 https://github.com/swarm-ai-research/swarm

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for eval_writeup

README.md
[![agentmods](https://agentmods.dev/badge/commands/swarm-ai-research/swarm/eval_writeup.svg)](https://agentmods.dev/commands/swarm-ai-research/swarm/eval_writeup)
Your own site
<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/eval_writeup"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/eval_writeup.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02360
Opus 5 $0.00000 $0.01180
Sonnet 5 $0.00000 $0.00472
Haiku 4.5 $0.00000 $0.00236

Measured 4d ago against content hash 7e2a1f944458, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

eval_writeup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/eval_writeup.md · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/eval_writeup

End-to-end pipeline: parse a Prime Intellect eval run, read the environment source, and auto-generate a blog post from eval metrics. Use --parse-only to just extract structured metrics without writing a post. Distinct from /add_post (manually-written original blog post) — use /eval_writeup when starting from eval output, /add_post when writing from scratch.

Consolidates the former /parse_eval command (now /eval_writeup --parse-only).

Usage

/eval_writeup <eval-output-or-job-id> [--title "Custom Title"] [--parse-only]

Examples:

  • /eval_writeup /path/to/eval_output.txt
  • /eval_writeup swarm_economy_openai_gpt_4.1_mini_20260212_205322_b3c5c09f --title "GPT-4.1 Mini Plays the SWARM Economy"
  • /eval_writeup /path/to/eval_output.txt --parse-only (just parse metrics, no blog post)
  • /eval_writeup swarm_economy_openai_gpt_4.1_mini_20260212_205322_b3c5c09f --parse-only

Argument parsing

Parse $ARGUMENTS to extract:

  • --parse-only: Only run Phase 1 (parse eval output into structured metrics). Skip environment reading, analysis, and blog post generation.
  • --title "...": Custom blog post title (ignored in --parse-only mode).
  • Remaining arg: eval output file path or job ID.

If given a file path, read it directly. If given a job ID, look for the most recent matching output in the tool results cache or ask the user to provide the output.


--parse-only mode

Parse raw prime eval run output into structured metrics tables. This is a read-only analysis — no files are created.

1) Extract header metadata

From the --- Evaluation --- block, extract:

  • Environment: name
  • Model: provider/model
  • Provider: inference endpoint URL
  • Examples: count
  • Rollouts per example: count

2) Extract reward metrics

From the --- All --- / Rewards: section, parse each metric line:

metric_name: avg - X.XXX, std - X.XXX

Build a summary table:

Metric Avg Std Min Max
reward 0.830 0.092 0.690 1.028
payoff_reward 0.701 0.101 0.540 0.916
... ... ... ... ...

Read the full file on GitHub · 222 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 222 lines · 0 tokens per session scan A 7e2a1f944458

Subscribe to this mod's changes

eval_writeup is a command published in the GitHub repository swarm-ai-research/swarm (41 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,360 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.