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.

Good fit 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.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zachjxyz/jvn/constitutional-validator
View source ↗ zachjxyz/jvn
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/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/github.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/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 constitutional-validator

Your own site · 80×15
<a href="https://agentmods.dev/agents/zachjxyz/jvn/constitutional-validator"><img src="https://agentmods.dev/badge/agents/zachjxyz/jvn/constitutional-validator.svg" alt="Reviewed on agentmods" width="80" 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. 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.00025 $0.00493
Opus 5.5 $0.00010 $0.00197
Sonnet 5.5 $0.00005 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 1mo ago against content hash eed248e1afa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 7mo ago), licensed MIT. It adds 25 tokens to every session and 493 once invoked, about $0.0001 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-08-31.

Related

Other agents, from other repositories