ai-constitution-reviewer

ai-constitution-reviewer is an agent for Claude Code from donaldfilimon/abi. It costs 70 tokens per session (397 once invoked), scanned A, original, Apache-2.0.

A read-only reviewer for ABI's AI profile router and constitution checks. It follows how inputs select the Abbey, Aviva, or Abi profile, how weights adapt over time, and how completion results are audited against stated principles.

In plain words
What is it for?
Use it when tuning profile routing, changing the constitution rules, or reviewing the AI routing code and its tests.
Why use it?
It helps find mistakes in profile selection, saved weight updates, or the audit that accepts or rejects a completion. It also explains the routing signals shown by the CLI.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when tuning profile routing, changing the constitution rules, or reviewing the AI routing code and its tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/donaldfilimon/abi/ai-constitution-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/donaldfilimon/abi

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 ai-constitution-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/donaldfilimon/abi/ai-constitution-reviewer/github.svg)](https://agentmods.dev/agents/donaldfilimon/abi/ai-constitution-reviewer)
Your own site
<a href="https://agentmods.dev/agents/donaldfilimon/abi/ai-constitution-reviewer"><img src="https://agentmods.dev/badge/agents/donaldfilimon/abi/ai-constitution-reviewer/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 ai-constitution-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/donaldfilimon/abi/ai-constitution-reviewer"><img src="https://agentmods.dev/badge/agents/donaldfilimon/abi/ai-constitution-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 397 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.00070 $0.00397
Opus 5.5 $0.00028 $0.00159
Sonnet 5.5 $0.00014 $0.00079
Haiku 4.5 $0.00007 $0.00040

Measured 15d ago against content hash 3cada0998f99, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-constitution-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 15d 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/ai-constitution-reviewer.md · 15 lines

What it actually says

You analyze the AI routing + constitution subsystem and report; never edit source.

Context (per docs/spec/multi-persona-technical.mdx and the source):

  • Three profiles — Abbey, Aviva, Abi — selected by crates/abi-ai/src/router.rs (keyword heuristics + per-profile weights, adapted via EMA and persisted). audit_passed/profile= appear in abi complete output.
  • crates/abi-ai/src/constitution.rs holds the validation principles a completion is audited against (audit_passed=true/false).
  • Model routing is separate: crates/abi-ai/src/models.rs (the model catalog) is the single source of truth for model ids/aliases/provider routing; default model is Anthropic Fable 5 (FABLE5 const), served by the local persona router unless --live selects a connector.

Method: read crates/abi-ai/src/router.rs, crates/abi-ai/src/constitution.rs, and the routing path in crates/abi-ai/src/lib.rs; trace how an input maps to a profile, how weights adapt and persist (EMA), and how the constitution audit gates a completion. Run abi complete "<text>" to capture the profile=/audit_passed= signal.

Report: the routing decision + weight-adaptation flow (file:line), how the constitution audit is applied, persistence correctness (no lost/duplicated EMA state), and any heuristic that could misroute or any audit that could silently pass.

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. 15d ago First seen · 15 lines · 70 tokens per session scan A 3cada0998f99

Subscribe to this mod's changes

ai-constitution-reviewer is an agent published in the GitHub repository donaldfilimon/abi (18 stars, last pushed 5d ago), licensed Apache-2.0. It adds 70 tokens to every session and 397 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-11-15.

Related

ai-constitution-reviewer compared with agents from other repositories

ai-constitution-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-constitution-reviewerdonaldfilimon/abiAgent185d agoApache-2.0A70Claude Code
prompt-engineerechoVic/blade-codeAgent18114d agoMITA37Claude Code
ai-engineerechoVic/blade-codeAgent18114d agoMITA48Claude Code
Project Reconagentgg-dev/agentggAgent47427d agoApache-2.0A32Claude Code
prompt-engineerjosstei/maestro-orchestrateAgent49328d agoApache-2.0A98Claude Code
cf-reviewer-rulesdinhanhthi/coding-friendAgent412d agoMITA57Claude Code
prompt-reviewerkbichave/skillsAgent21mo agoMITA92Claude Code