reform-comparator

reform-comparator is an agent for Claude Code from PolicyEngine/policyengine-claude. It costs 63 tokens per session (5,598 once invoked), scanned A, original, MIT.

A comparison step in a policy-analysis workflow. It checks a simulated policy result against an earlier reference result, called an anchor, and decides whether the difference is acceptable.

In plain words
What is it for?
Comparing costs and poverty results, normalizing one-year and ten-year figures, handling skipped simulations, and returning PASS or INVESTIGATE.
Why use it?
It identifies when a simulation is outside the expected range and needs investigation, while accounting for different years, time spans, and dataset versions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; positional $N argument.

Good fit Comparing costs and poverty results, normalizing one-year and ten-year figures, handling skipped simulations, and returning PASS or INVESTIGATE.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/policyengine/policyengine-claude/reform-comparator
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.

Clone the repo
git clone --depth 1 https://github.com/PolicyEngine/policyengine-claude

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 reform-comparator

README.md
[![agentmods](https://agentmods.dev/badge/agents/policyengine/policyengine-claude/reform-comparator/github.svg)](https://agentmods.dev/agents/policyengine/policyengine-claude/reform-comparator)
Your own site
<a href="https://agentmods.dev/agents/policyengine/policyengine-claude/reform-comparator"><img src="https://agentmods.dev/badge/agents/policyengine/policyengine-claude/reform-comparator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reform-comparator

Your own site · 80×15
<a href="https://agentmods.dev/agents/policyengine/policyengine-claude/reform-comparator"><img src="https://agentmods.dev/badge/agents/policyengine/policyengine-claude/reform-comparator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00063 $0.05598
Opus 5.5 $0.00025 $0.02239
Sonnet 5.5 $0.00013 $0.01120
Haiku 4.5 $0.00006 $0.00560

Measured 1mo ago against content hash affc58fabec8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reform-comparator 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 1mo 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.

agents/reform-comparator.md · 300 lines

How it starts

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

Reform Comparator

Stage 5 of /analyze-policy. Compares our microsim output to the prior-scores anchor and decides whether the result is consistent or needs investigation.

Inputs

  • microsim_result (from microsim-runner) — may be null in --skip-microsim mode
  • prior_anchor (from prior-scores-finder — anchors[preferred_anchor_index])
  • tolerance_band (default: ±25% on cost, ±5 absolute pp on poverty)

When microsim_result is null (--skip-microsim mode)

The /analyze-policy command invokes the comparator with microsim_result=null when the user passed --skip-microsim. In that case:

  1. Construct a synthetic predicted result from the anchor:
    • Take the anchor's magnitudes block.
    • Normalize per Step 1 below (year alignment + 10-year extrapolation if needed).
    • Emit the normalized values as the "predicted" result with synthetic: true flag.
  2. Treat the synthetic result as if it were our microsim output for the comparison step.
  3. Return verdict — typically PASS by construction. This is intentional: process-test mode validates the pipeline plumbing, not the actual numerical agreement.
  4. In the output, set verdict_caveat: "process-test — predicted result derived from anchor, not from live microsim" so the downstream report doesn't claim a real validation.

The synthetic-result schema mirrors microsim_result:

{
  "synthetic": true,
  "predicted_from_anchor": "Restoration of ARPA CTC",
  "results": {
    "budget": {"annual_cost_billion_year1": 110.2},
    "poverty": {"child_pct_change": -37.0},
    "distribution": {"gini_pct_change": -1.9}
  }
}

Process

Step 1: Normalize the prior to our run

Most prior PE scores are reported as either single-year cost or 10-year cost, on a specific dataset version. To compare apples-to-apples:

  1. Year alignment. If the anchor reports 2023 single-year cost and our run is 2026 multi-year, uprate the anchor:
    • Wage growth: assume +2.5-3.5%/yr nominal (use CBO macroeconomic projections if explicit).
    • Population growth: +0.5-0.7%/yr.
    • Combined uprating factor: anchor_2023 × (1 + 0.035)^(2026-2023) ≈ × 1.10 for 2026 single-year.
  2. Single-year vs 10-year normalization. If the anchor is a 10-year score and our run is single-year, normalize the ANCHOR to a per-year average (divide by 10). Do NOT extrapolate our single-year to 10 years by multiplication — this is banned pipeline-wide because per-year cost evolves nontrivially over any window with baseline changes (see the 2026-07-01 std-ded case: yr1×10 understated the real 10-year by 10%). If a real 10-year comparison is required, re-run the microsim with --horizon 10.
  3. Dataset version note. Read data_version from the microsim result and record it in the output (our_run_dataset + our_run_data_version). Do NOT hardcode the dataset name. As of PE-US 1.729.0+ the deployed API's enhanced_cps name backs to populace-us-2024. Any prior PE score published on the older Enhanced CPS vintage may differ by 5-10% on refundable-credit costs; flag as a known direction-of-difference.
  4. CRITICAL — baseline-schedule alignment. Most published anchors are scored against a specific current-law baseline at the time of writing. If the law has changed since (e.g., SALT cap raised to $40K by OBBBA in 2025, then snapping back to $10K in 2030), comparing our 2026 run (against the OBBBA $40K baseline) to a 2023 prior (against the TCJA $10K baseline) overstates the reform's incremental impact. The 2030 snap-back also means single-year extrapolation across 2030 is biased.

Read the full file on GitHub · 300 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. 1mo ago First seen · 300 lines · 63 tokens per session scan A affc58fabec8

Subscribe to this mod's changes

reform-comparator is an agent published in the GitHub repository PolicyEngine/policyengine-claude (32 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 5,598 once invoked, about $0.0003 per session on Opus 5.5. 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.

Related

Other agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

Geoprocessing Specialist

ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

research-scout

Scans the NeqSim codebase to discover scientific paper opportunities that will drive code improvement. Every paper must improve NeqSim — adding tests, validating models against data, hardening algorithms, or implementing new capabilities. Produces ranked, actionable topics that feed into the planner agent.

equinor/neqsim · 61 tokens

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens

mathodology-problem-analyst

Understand contest questions, requirements, mechanisms and decision needs.

sweetcornna/mathodology · 20 tokens

epidemiology-research-agent

Research agent for epidemiology and public health.

benbrastmckie/nvim · 8 tokens