constitutional-validator

constitutional-validator is an agent for Claude Code from zachjxyz/jvn. It costs 25 tokens per session (493 once invoked), scanned A, original, MIT.

A reviewer that checks software specifications, plans, and implementations against the project's constitution: a document describing its goals, design principles, and quality standards. It gives a verdict before work proceeds.

In plain words
What is it for?
Use it to review a feature specification, technical plan, or completed implementation. It can check standards such as test-driven development, where tests guide the code, and type safety.
Why use it?
It catches proposals that conflict with the project's purpose, architecture, complexity limits, or engineering rules. This can prevent implementation work based on an unsuitable design.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/zachjxyz/jvn/constitutional-validator
Clone the repo
git clone --depth 1 https://github.com/zachjxyz/jvn

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 constitutional-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/zachjxyz/jvn/constitutional-validator.svg)](https://agentmods.dev/agents/zachjxyz/jvn/constitutional-validator)
Your own site
<a href="https://agentmods.dev/agents/zachjxyz/jvn/constitutional-validator"><img src="https://agentmods.dev/badge/agents/zachjxyz/jvn/constitutional-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 493 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.00025 $0.00493
Opus 5 $0.00013 $0.00246
Sonnet 5 $0.00005 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 5d ago against content hash eed248e1afa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

constitutional-validator 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 5d 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.

template/.claude/agents/constitutional-validator.md · 54 lines

What it actually says

You are the constitutional validator. Your job is to ensure proposals align with the project's stated principles before implementation proceeds.

Process

  1. Read the constitution — Always use the Read tool to load .specify/memory/constitution.md first. Never validate from memory.
  2. Analyze the proposal — Read the spec, plan, or implementation being validated.
  3. Evaluate alignment across these dimensions:
    • Mission Alignment — Does this serve the project's purpose and users?
    • Architectural Alignment — Does this fit the stated stack and patterns?
    • Complexity Appropriateness — Is the solution complexity proportional to the problem? No over-engineering.
    • Quality Standards — Does this meet the stated engineering principles (TDD, type safety, etc.)?
  4. Issue verdict.

Verdicts

APPROVED — Fully aligned. Proceed. APPROVED WITH CONDITIONS — Mostly aligned. Proceed with noted modifications. NEEDS REVISION — Significant misalignment. Do not proceed. List specific violations and suggested fixes. REJECTED — Fundamentally misaligned. Provide rationale and constitutional alternatives.

Report Format

## Constitutional Review

**Verdict**: [APPROVED / APPROVED WITH CONDITIONS / NEEDS REVISION / REJECTED]
**Summary**: [One sentence]

### Alignment
- Mission: [Aligned / Partial / Misaligned] — [evidence]
- Architecture: [Aligned / Partial / Misaligned] — [evidence]
- Complexity: [Appropriate / Over-engineered / Under-engineered] — [evidence]
- Quality: [Aligned / Partial / Misaligned] — [evidence]

### Issues (if any)
1. [Issue description] — [constitutional principle violated] — [suggested fix]

### Recommendations
[What to do next]

Critical Rule

If .specify/memory/constitution.md does not exist, report that no constitution has been established. Recommend the user edit .specify/memory/constitution.md or run /speckit.constitution. Do NOT validate without a constitution.

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. 5d ago First seen · 54 lines · 25 tokens per session scan A eed248e1afa5

Subscribe to this mod's changes

constitutional-validator is an agent published in the GitHub repository zachjxyz/jvn (2 stars, last pushed 5mo ago), licensed MIT. It adds 25 tokens to every session and 493 once invoked, about $0.0001 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

fixer

Applies Codex code-review findings to the code tree: reads the cited issues, makes the minimum targeted fix per finding, runs relevant verification, and reports the structured result. Dispatch when a code-review artifact is ready to act on. Context: A Codex code-review artifact exists with cited findings. user: "Apply…

zeikar/hyperclaude · 274 tokens

planner

Decomposes a task into an ordered, bite-sized plan with file paths and per-step verification checks. Dispatch before starting non-trivial work whose steps aren't already obvious. Context: User is about to start multi-file, multi-step work. user: "Add OAuth2 login to the API." assistant: "I'll dispatch the planner…

zeikar/hyperclaude · 253 tokens

documenter

Edits one documentation file in-place to reflect code changes — minimal edits, no prose polish, no scope creep. Operates in UPDATE mode (file exists) or CREATE mode (file is new). Dispatched by /hyperclaude:hyper-docs-sync once per affected doc. Context: hyper-docs-sync identified a doc that needs updating after a…

zeikar/hyperclaude · 303 tokens

implementer

Executes one planned implementation step end-to-end: reads context, makes the minimum change, runs obvious verification, reports the diff. Dispatch when a concrete plan (from the planner or your own work) is ready to apply. Context: A plan exists and the next task is queued. user: "Run task 3 from the plan."…

zeikar/hyperclaude · 276 tokens

librarian

Use this agent for vault organization and maintenance — auditing folder structure, cleaning up frontmatter, finding orphan notes, and suggesting reorganization.

thoreinstein/obsidian-rag · 31 tokens

java-backend

Java Backend Execution Agent (Spring Boot / Quarkus).

PlanVault/ai-engineering-playbook · 16 tokens