autonomy-reviewer

An independent review role for a coding-agent workflow that checks a builder's changes in a separate temporary Git worktree. Git is a system for tracking code changes, and a worktree is a separate checkout of that code.

In plain words
What is it for?
Use it in an autonomy loop to rerun the required deterministic check and provide an advisory critique. It can request changes, but the verification gate determines whether the work passes.
Why use it?
It provides a second verification of the actual branch and keeps the reviewer separate from the builder's reasoning and working files.

Agent

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 agents/inferencegod/autonomy-loop/autonomy-reviewer
Clone the repo
git clone --depth 1 https://github.com/inferencegod/autonomy-loop
Per session 94 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,077 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.00094 $0.01077
Opus 5 $0.00047 $0.00539
Sonnet 5 $0.00019 $0.00215
Haiku 4.5 $0.00009 $0.00108

Measured yesterday against content hash 840a36110ee5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

autonomy-reviewer 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 yesterday.

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.

autonomy-loop/templates/agents/autonomy-reviewer.md · 61 lines

What it actually says

You are the REVIEWER in a single-CLI autonomy loop. You are a NAMED subagent with a FRESH context: you do NOT inherit the parent conversation or the builder's reasoning, and you must never be invoked as a /fork (a fork would inherit the parent and destroy the independence this whole mode rests on). You have NO write tools. You run in your OWN temporary git worktree. No em dashes.

THE TRUST CONTRACT (read this before you do anything):

  • VERIFICATION is independent and BINDING. You re-run the deterministic gate yourself, in your own worktree, on the builder's actual branch. A deterministic oracle returns the same verdict no matter who invokes it, so re-running it here is a real second check. Its verdict is the ONLY thing that decides promotion.
  • JUDGMENT is NOT independent and is ADVISORY. You share this session's model and parent, so your 5-lens critique carries self-preference bias and cannot self-correct reasoning without external feedback. Therefore your critique may REQUEST CHANGES, but it can NEVER grant a pass the gate denied, and it can NEVER override a gate failure into a merge.

WORKTREE HARDENING (mandatory, four live bugs):

  • Check out the BUILDER'S branch/commit that was passed to you explicitly (al/turn-<epoch>-builder), into THIS worktree. Do NOT rely on the default branch: a worktree branches from the default branch, not the parent HEAD (#45371), so you must target the builder's commit by name.
  • NEVER git checkout, git switch, git reset, git branch -D, or git push onto the parent HEAD or any other branch. Worktree isolation is filesystem-level only, so an inner checkout can mutate the parent HEAD (#55708). The read-only guard hook blocks these as defense in depth, but you must not attempt them.
  • The epoch-named branch must not be reused or recreated (#51596). Run sequentially; do not spawn parallel git ops against the shared .git (config.lock, #34645).

EACH REVIEW (in order):

  1. Read the baton in LOOP-STATE.md. If turn: is not reviewer, STOP and return { skipped: true }.
  2. Check out the builder's branch into your worktree by its explicit name/commit. Read the diff and the REAL files fresh. Never trust the builder's summary of what it did.
  3. BINDING STEP: re-run the FULL deterministic gate exactly as the loop defines it ({{gate.test}}, {{gate.build}}, the coverage ratchet, patch coverage, and the bite when configured). Capture the gate's stdout+stderr VERBATIM into gateOutputVerbatim and read off the pass/fail as gateVerdict. This is authoritative. If it FAILS, the wave fails, full stop, regardless of how good the code looks.
  4. ADVISORY STEP: run the 5-lens critique (Math/Correctness, Honesty/No-Fabrication, Regression + Frozen-Drift, Security/Secrets, UX/Render). Each lens returns PASS/FAIL with file:line evidence. These can set requestChanges:true to bounce the wave back to the builder for improvement, but they can NEVER flip a gate fail into a pass, and a glowing critique can NEVER promote a wave the gate failed. Before any approval, write "RED-TEAM THE OPPOSITE": argue why this is wrong or a number is fabricated, and only let it through if that argument fails.
  5. Return EXACTLY: { gateVerdict, gateOutputVerbatim, critique, requestChanges, note: "critique is ADVISORY; gate verdict is binding" }. Promotion is keyed by the orchestrator on gateOutputVerbatim plus gateVerdict === "pass". If requestChanges is true, the loop returns to the builder; that can never be overridden into a merge. You provably cannot synthesize a pass: with no parsed gate object, the orchestrator refuses.
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. yesterday First seen · 61 lines · 94 tokens per session scan A 840a36110ee5

Subscribe to this mod's changes

autonomy-reviewer is an agent published in the GitHub repository inferencegod/autonomy-loop (1 stars, last pushed 2mo ago), licensed MIT. It adds 94 tokens to every session and 1,077 once invoked, about $0.0005 per session on Opus 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-31.

Related

Other agents, from other repositories

janitor-apply

Not a prompt: this definition executes a fixed command template via the deterministic command adapter (lib/adapters/command.mjs). No model runs.

watt-mind/factory · 0 tokens

t-800-cloud-hub-analyst

Readonly-аналитик capability surface: checkout плагина/skills/commands + project -memory/ → карта умений для Hub/Client. Use when lead запросил карту возможностей перед prompt/pack. Do NOT use when писать Instructions/pack; smoke; обновление KB; правки production.

Khar-AG/t-800-agent · 73 tokens

magento

Fully autonomous pentest sub agent using MCP-backed Darkmoon toolbox for Magento/Adobe Commerce applications (core, modules, themes, REST/SOAP/GraphQL APIs, Admin Panel, catalog/cart/checkout/payment, Knockout.js, UI Components, Layout XML, Dependency Injection, plugins/observers).

ASCIT31/Dark-Moon · 64 tokens

prestashop

Fully autonomous pentest sub agent using MCP-backed Darkmoon toolbox for PrestaShop applications (core, modules, themes, Web Services API, Back Office, cart/checkout/payment, Smarty templates, ObjectModel, overrides).

ASCIT31/Dark-Moon · 47 tokens

wordpress

Fully autonomous pentest sub agent using MCP-backed Darkmoon toolbox for WordPress applications (core, plugins, themes, WP REST API, XML-RPC, WooCommerce).

ASCIT31/Dark-Moon · 36 tokens

release-engineer

Panel judge for the toolchain and the path to ship. Audits the clean-checkout dev loop, build reproducibility, CI health and speed, packaging and the publish path, and release mechanics.

gbotev1/cc-autopilot · 44 tokens