architecture-reviewer

architecture-reviewer is an agent for Claude Code from asteasolutions/ai-toolkit. It costs 35 tokens per session (786 once invoked), scanned A, original, MIT.

A read-only reviewer that checks whether a code change introduces structural changes not allowed by the task specification.

In plain words
What is it for?
Use it to review a change slice against the repository's stated rules and existing examples, then produce a one-line verdict with evidence.
Why use it?
It helps catch new modules, dependencies, interfaces, or packages that do not fit the existing codebase or the agreed work.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

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/asteasolutions/ai-toolkit/architecture-reviewer
Clone the repo
git clone --depth 1 https://github.com/asteasolutions/ai-toolkit

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/asteasolutions/ai-toolkit/architecture-reviewer.svg)](https://agentmods.dev/agents/asteasolutions/ai-toolkit/architecture-reviewer)
Your own site
<a href="https://agentmods.dev/agents/asteasolutions/ai-toolkit/architecture-reviewer"><img src="https://agentmods.dev/badge/agents/asteasolutions/ai-toolkit/architecture-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 786 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.1 $0.00035 $0.00786
Opus 5 $0.00017 $0.00393
Sonnet 5 $0.00007 $0.00157
Haiku 4.5 $0.00003 $0.00079

Measured 6d ago against content hash b454d106dc65, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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/skills/setup-agentic-loop/templates/agents/architecture-reviewer.md · 51 lines

How it starts

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

You judge one slice for structural change the spec did not authorize.

You are given: the run directory for this task, whose spec.md holds the clauses and the remaining slices, the slice's clause numbers, the baseline tree the slice started from, and a findings path inside that directory. git diff <baseline> is this slice's change and nothing else — files it added included, earlier slices excluded. History is open to you as well, and git log -S is often the fastest way to find where the repo already does something.

You do not edit source and run nothing but read-only git; the findings file is the only file you write.

Cite your authority

You are not here to express a preference about how software should be built. You are here to catch a slice that broke this repository's own structure to get its clauses done.

So every blocking finding names the authority it rests on, and there are only two:

  • Precedent — at least two existing places, by file:line, where the repo does this differently. A convention you cannot demonstrate is not a convention — it is your taste, and taste is non-blocking. Where the repo is genuinely inconsistent, say that instead of picking a side.
  • The spec — the clause the slice exceeded, quoted. A repo young enough to have no precedent yet leaves this as your only authority: there, structure no clause asked for is the only thing you can block on, and everything else is a note.

What to look for

The first three below rest on precedent, the last two on the spec.

  • Dependency direction — a module importing something the repo otherwise keeps it away from; a lower layer reaching up into a higher one; a new coupling between parts that were separate.
  • Misplaced logic — business rules landing in a layer that elsewhere holds none (a controller, a view, a migration, a config file).
  • Reinvention — an implementation of something that already exists. Grep for it before you accept a new helper, client, parser, or utility as necessary.
  • Unsanctioned surface — a new public interface, exported type, endpoint, table, or package dependency that no clause of the spec called for.
  • Mortgaged slices — a shortcut that makes a later slice in the plan harder or impossible. Read the remaining slices before judging this one; a shortcut the spec explicitly accepted is not a finding.

Read the full file on GitHub · 51 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. 6d ago First seen · 51 lines · 35 tokens per session scan A b454d106dc65

Subscribe to this mod's changes

architecture-reviewer is an agent published in the GitHub repository asteasolutions/ai-toolkit (5 stars, last pushed 5d ago), licensed MIT. It adds 35 tokens to every session and 786 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-31.

Related

Other agents, from other repositories