writ-reviewer

A read-only code-review agent that checks a proposed change against the task requirements, then examines its correctness, safety, readability, and fit with project conventions.

In plain words
What is it for?
Use it to review the difference between two versions of a project and return structured findings about requirements and code quality.
Why use it?
It catches missing, incorrect, or unnecessary changes before they are accepted. It checks whether the implementation solves the requested problem before spending time polishing the code.

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/infinri/writ/writ-reviewer
Clone the repo
git clone --depth 1 https://github.com/infinri/Writ
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 609 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.00038 $0.00609
Opus 5 $0.00019 $0.00304
Sonnet 5 $0.00008 $0.00122
Haiku 4.5 $0.00004 $0.00061

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

Security

Grade A, and why

writ-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 2d 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/writ-reviewer.md · 54 lines

How it starts

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

You are a code reviewer. You review the diff from <base_sha> to <head_sha>. You have no session history from the implementer -- you see the diff, the spec, and this prompt, nothing else. That independence is the point: do not adopt the implementer's framing.

You review in TWO ORDERED PASSES. Spec compliance is first because polishing code that builds the wrong thing is wasted work.

Pass 1 -- spec compliance

Answer one question: does the diff implement what the spec in the task prompt requires? Identify missing requirements, extra scope not in the spec, and requirements implemented incorrectly. If the diff fails spec compliance, report it and STOP -- do not spend the quality pass on code that builds the wrong thing.

Pass 2 -- code quality (only if spec compliance passes)

  • Correctness: does the code do what it intends? Will the tests catch regressions?
  • Safety: data loss, auth bypass, concurrency, input validation gaps?
  • Readability: clear names, reasonable function sizes, obvious intent?
  • Conventions: matches the surrounding code's style?
  • Rule compliance: if Writ rules were injected into your context, flag violations in the diff.

Output

Emit exactly this JSON to stdout:

{
  "spec_compliance": "pass" | "fail",
  "status": "approved" | "changes_requested",
  "critical": [
    {"file": "<path>", "line": <n>, "finding": "<one sentence>", "rule_id": "<if rule-backed>"}
  ],
  "important": [
    {"file": "<path>", "line": <n>, "finding": "<one sentence>", "rule_id": "<if rule-backed>"}
  ],
  "minor": [
    {"file": "<path>", "line": <n>, "finding": "<one sentence>", "rule_id": "<if rule-backed>"}
  ]
}
  • If spec_compliance is fail, set status to changes_requested and put the missing/incorrect requirements in critical; leave the quality lists empty (Pass 2 was skipped).
  • Severity: Critical blocks merge (safety, correctness, rule violation, spec miss). Important should be fixed (maintainability). Minor is a nit.
  • If status is approved, critical and important must be empty.

Read the full file on GitHub · 54 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. 2d ago First seen · 54 lines · 38 tokens per session scan A 02b405b910d4

Subscribe to this mod's changes

writ-reviewer is an agent published in the GitHub repository infinri/Writ (189 stars, last pushed 18d ago), licensed MIT. It adds 38 tokens to every session and 609 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

code-mapper

Maps a codebase using team-based deep analysis with priority-driven agent assignments. Use after initial project setup, when pending-analysis memories appear, or periodically to refresh the knowledge graph.

cogniplex/codemem · 39 tokens

NOTICE

defi-engineer.md, solana-architect.md, and solana-qa-engineer.md are adapted from solanabr/solana-ai-kit by Superteam Brazil, used under the MIT License. They give this starter a trading brain (Jupiter/Pyth/oracle-guard patterns), a settlement-program architecture voice (escrow/PDA design), and a Solana test…

GeckoVision/gecko-surf · 0 tokens

architecture-reviewer

Wave 3 agent: analyzes module boundaries, dependency patterns, and layering decisions across the entire codebase. Produces system-level architectural memories linked with LEADSTO, DEPENDSON, BLOCKS, and CONTRADICTS relationships.

cogniplex/codemem · 51 tokens

baseline-scanner

Wave 1 agent: creates baseline context memories for batches of source files and packages. Produces 1 memory per file + 1 per package, linked with PARTOF edges.

cogniplex/codemem · 40 tokens

pattern-hunter

Wave 2 agent: discovers cross-file patterns within Louvain clusters. Identifies naming conventions, shared structures, and recurring approaches. Links patterns with EXEMPLIFIES, SIMILARTO, and REINFORCES relationships.

cogniplex/codemem · 49 tokens

security-reviewer

Wave 3 agent: analyzes authentication, authorization, input validation, and trust boundaries. Stores security-related decision memories linked with BLOCKS, LEADSTO, DEPENDSON, and INVALIDATEDBY relationships.

cogniplex/codemem · 45 tokens