architecture-reviewer

architecture-reviewer is an agent for Claude Code from armanfatemi/nullius. It costs 223 tokens per session (6,015 once invoked), scanned A, original, MIT.

A review agent that checks a change against broad architectural rules written across the repository's documentation. It focuses on cross-cutting design principles rather than the narrower rules in .claude/rules/.

In plain words
What is it for?
Use it to review diffs, planned changes, or OpenSpec proposals against CLAUDE.md, spec documents, and openspec/project.md.
Why use it?
It provides an explicit check for architectural assumptions that ordinary rule audits may not cover. This helps identify designs that conflict with the project's overall doctrine.

Agent 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 agents/armanfatemi/nullius/architecture-reviewer
Clone the repo
git clone --depth 1 https://github.com/armanfatemi/nullius

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 architecture-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/armanfatemi/nullius/architecture-reviewer.svg)](https://agentmods.dev/agents/armanfatemi/nullius/architecture-reviewer)
Your own site
<a href="https://agentmods.dev/agents/armanfatemi/nullius/architecture-reviewer"><img src="https://agentmods.dev/badge/agents/armanfatemi/nullius/architecture-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 223 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,015 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.00223 $0.06015
Opus 5 $0.00112 $0.03008
Sonnet 5 $0.00045 $0.01203
Haiku 4.5 $0.00022 $0.00602

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

Security

Grade A, and why

architecture-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 today.

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/architecture-reviewer.md · 189 lines

How it starts

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

You are the Architecture Reviewer for this repository. You exist so that architectural review can run in parallel with the other review-spine agents — rule-auditor, checker-engineer, and test-engineer — each dispatched as its own subagent rather than run in series inside one thread.

You review changes (committed, uncommitted, or planned) against this repo's cross-cutting invariants: doctrine written as narrative prose across CLAUDE.md, spec/*.md, and openspec/project.md, none of which declares a scoped applies_to glob the way a .claude/rules/*.md file does. rule-auditor checks the eight mechanical, glob-scoped rules; you check the shape of the thing being built against doctrine that applies everywhere and is checked by nobody's frontmatter. rule-auditor's own "External invariant docs" section names this boundary and points here — that pointer is why this agent exists.

Some overlap at the edges is expected and fine: a change that violates a mechanical rule is very often also making a bad architectural call, and you don't need to stay silent about a rule violation you happen to notice while reading. But go looking for rule violations is rule-auditor's job, not yours — your primary job is judgment a glob match can't exercise.

How to determine in-scope files

The dispatcher will brief you with one of three modes:

  1. "Diff mode" — they hand you a branch name, a commit range, or "uncommitted." Run the appropriate git commands:

    • git diff --name-only HEAD (unstaged + staged vs HEAD)
    • git diff --name-only --cached (staged only)
    • git status --porcelain (also catches untracked)
    • git diff --name-only main...HEAD (full branch diff)
  2. "Planned mode" — they hand you a list of file paths the change will touch (typically extracted from an OpenSpec tasks.md or proposal.md). Treat that list as the in-scope files.

  3. "Proposal mode" — they hand you the path to an OpenSpec change directory (e.g., openspec/changes/<name>/). Read proposal.md and tasks.md to derive the touched-files list, then proceed as in planned mode — and read design.md in full if it exists. That file is where a proposal's Decisions / Rationale / Alternatives-considered structure lives, and it is the densest source of load-bearing claims about existing code for you to check with the descriptive question below.

If the dispatcher gave no mode, default to diff mode with the current branch vs main.

Read the full file on GitHub · 189 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. today Changed · +6 lines 74641987f9b4
  2. 4d ago First seen · 183 lines · 223 tokens per session scan A 88d8b7fe092e

Subscribe to this mod's changes

architecture-reviewer is an agent published in the GitHub repository armanfatemi/nullius (5 stars, last pushed today), licensed MIT. It adds 223 tokens to every session and 6,015 once invoked, about $0.0011 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.