outl: Agent for Claude Code

.claude/agents/paper-verifier.md

paper-verifier is an agent for Claude Code from outlmd/outl. It costs 72 tokens per session (936 once invoked), scanned A, original, MIT.

A formal review agent that compares Rust code for a tree data structure with the published algorithm it is meant to implement. It checks whether functions and data mappings match the paper’s pseudocode.

In plain words
What is it for?
Use it when changing tree-operation functions in outl-core, especially move, undo, redo, apply, parent, or cycle-detection logic.
Why use it?
It catches subtle differences between an implementation and its reference algorithm before they cause incorrect replicated-tree behavior.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is outlmd/outl's own configuration. It tells Claude Code how to work on outl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything outl configures →

Reuse

Borrowing it

Nothing to install: this file belongs to outlmd/outl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/outlmd/outl/main/.claude/agents/paper-verifier.md
Clone the repo
git clone --depth 1 https://github.com/outlmd/outl

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 paper-verifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/outlmd/outl/paper-verifier/github.svg)](https://agentmods.dev/agents/outlmd/outl/paper-verifier)
Your own site
<a href="https://agentmods.dev/agents/outlmd/outl/paper-verifier"><img src="https://agentmods.dev/badge/agents/outlmd/outl/paper-verifier/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 paper-verifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/outlmd/outl/paper-verifier"><img src="https://agentmods.dev/badge/agents/outlmd/outl/paper-verifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 936 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.00072 $0.00936
Opus 5.5 $0.00029 $0.00374
Sonnet 5.5 $0.00014 $0.00187
Haiku 4.5 $0.00007 $0.00094

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

Security

Grade A, and why

paper-verifier 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.

.claude/agents/paper-verifier.md · 95 lines

How it starts

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

Paper Verifier

You are a formal reviewer. Your task: given a snippet of the Rust implementation, compare it line by line against the paper's pseudocode and point out any semantic divergence, however subtle.

Canonical source

Workflow

  1. Identify the snippet. Ask (or identify from the diff) which Rust function to compare.

  2. Re-read the matching pseudocode. If you're not sure, fetch the paper with WebFetch and cite the page.

  3. Map structures.

    • tree in the paper ↔ materialized state in Rust (HashMap<NodeId, (parent, position)>)
    • log_op in the paper ↔ LogOp { ts, actor, op } in Rust
    • move_op in the paper ↔ Op::Move { node, new_parent, position, old_parent, old_position }
    • Note: the paper stores (old_parent, old_meta) inside the log_op after do_op — verify that Rust does the same.
  4. Mandatory semantic checks.

    a) do_op returns (new_log_op, new_tree) in the paper. In Rust this appears as mutation + a LogOp enriched with old_*. Without those fields populated, undo is impossible.

    b) undo_op uses the old_parent / old_meta that do_op stored. If Rust does not persist those fields, the algorithm is broken.

    c) ancestor(n, p, tree) is transitive. The naive check tree[n].parent == p is wrong. It must walk recursively up to the root.

    d) apply_op ordering: compare the new op's ts against the last ts in the log, undo until the right point, apply the new one, replay. Watch out for:

    • HLC compares (ts, actor) lexicographically — actor is the tiebreak
    • undone is a stack (LIFO), replay is in reverse order

    e) Move with cycle = no-op on materialization, but the op stays in the log, enriched with the correct old_parent (which is the node's current parent, or None if orphan). Removing it breaks reorder.

Read the full file on GitHub · 95 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 · 95 lines · 72 tokens per session scan A 804b060d0fb1

Subscribe to this mod's changes

paper-verifier is an agent published in the GitHub repository outlmd/outl (222 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 936 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-09-01.

Related

Other agents, from other repositories

algorithm-reviewer

Use when code contains non-trivial algorithms, loops, recursion, or data-structure choices — the specialist that analyzes the time/space complexity (Big-O) of every routine and proposes a lower-complexity algorithm or data structure where one exists. Verifies against the performance and scientific persona standards.

jeremylongshore/tons-of-skills-marketplace · 64 tokens

r-reviewer

R code reviewer for academic scripts. Checks code quality, reproducibility, figure generation patterns, and theme compliance. Use after writing or modifying R scripts.

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

06-positioning-check

Audit talk track freshness, objection signal counts, and detect canonical file drift.

assafkip/kipi-system · 19 tokens

r-reviewer

R code reviewer for academic scripts. Checks code quality, reproducibility, figure generation patterns, and theme compliance. Use after writing or modifying R scripts.

brycewang-stanford/Auto-Empirical-Research-Skills · 34 tokens

meteo-reviewer

Reviews a weather event analysis, synoptic narrative, or atmospheric mechanism claim for meteorological rigor — dynamical and thermodynamic consistency, physical basis, observational adequacy, competing drivers, hydrological consistency, and uncertainty calibration. Grounded in AMS CCM-level competence across the five…

dgilford/ai-science-toolkit · 115 tokens

lint-rule-handler

Map a natural-language wiki-health request to one or more scraps lint rules, run them, interpret each violation as a signal against the user's purpose, and either apply mechanical fixes or report findings. Use this agent for purpose-driven Scraps lint work.

boykush/scraps · 53 tokens