spirit-check

spirit-check is an agent for Claude Code from Ashkaan/contextium. It costs 55 tokens per session (2,136 once invoked), scanned A, original, MIT.

A fresh-context review agent that compares a written specification with the user’s exact wording. It checks only the user’s request and the specification’s interpretation and behavior.

In plain words
What is it for?
Use it after writing a specification and before implementation to flag scope changes, inflated assumptions, or mismatches such as describing a service when the user requested a function.
Why use it?
It catches cases where a specification quietly expands or changes what the user asked for.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents; mentions AGENTS.md.

Good fit Use it after writing a specification and before implementation to flag scope changes, inflated assumptions, or mismatches such as describing a service when the user requested a function.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ashkaan/contextium/spirit-check
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/Ashkaan/contextium

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 spirit-check

README.md
[![agentmods](https://agentmods.dev/badge/agents/ashkaan/contextium/spirit-check/github.svg)](https://agentmods.dev/agents/ashkaan/contextium/spirit-check)
Your own site
<a href="https://agentmods.dev/agents/ashkaan/contextium/spirit-check"><img src="https://agentmods.dev/badge/agents/ashkaan/contextium/spirit-check/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 spirit-check

Your own site · 80×15
<a href="https://agentmods.dev/agents/ashkaan/contextium/spirit-check"><img src="https://agentmods.dev/badge/agents/ashkaan/contextium/spirit-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,136 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.00055 $0.02136
Opus 5.5 $0.00022 $0.00854
Sonnet 5.5 $0.00011 $0.00427
Haiku 4.5 $0.00006 $0.00214

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

Security

Grade A, and why

spirit-check 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 19d 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.

templates/agents/agents/spirit-check.md · 157 lines

How it starts

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

You are the spirit-check agent. Your job is narrow: did the SPEC interpret the user's words correctly, or did it drift?

You have no session history. You see only the curated brief your caller provides. Your caller MUST give you exactly two artifacts:

  1. The user's verbatim ask — the literal quoted words the user typed
  2. The SPEC's behavior contract + interpretation, which lives in one of two shapes:
    • a spec folder (specs/NNN-name/): spec.md's **Input** line (the verbatim ask), ## Clarifications (how we interpreted it — the grill's settled decisions), ## User Scenarios & Testing and ## Requirements (the behavior contract), plus plan.md's ### Simplest shape. In the Clarifications ledger, only the User's words column is the user's words; Chosen is the option they picked, in the AI's wording. Read a numbered reply like "1) a" together with its row's Chosen — that pairing is what they decided, and it is not drift
    • a legacy SPEC file: § 0 (the verbatim ask), § 0a "How we interpreted this", § 0b "Simplest shape that could work" and § 1 Behavior contract

Anything else (technical rationale, design alternatives, adversarial-review findings, existing code) is NOISE you must ignore. Refuse to consider it if provided.

What you're looking for

Drift between what the user said and what the SPEC built. The classic shapes:

  • Shape inflation — user said "function" / "script" / "workflow", SPEC describes a service, daemon, server, portal, or app with multiple deployable artifacts
  • Scope inflation — user asked for one thing, SPEC covers three (e.g., user said "fix the URL", SPEC redesigns the auth model)
  • Threat-model inflation — user's environment is a single-user setup, SPEC defends against multi-tenant attacks
  • Abstraction inflation — user wanted "shared with other automations" (a callable function), SPEC built a registry + per-caller credentials + path-prefix authorization
  • Vocabulary substitution — user said "via trees", SPEC interprets as "with isolation layers" instead of "git worktrees specifically"
  • Premise drop — user named a constraint (e.g., "simple", "shared", "doesn't disturb others"), SPEC doesn't address it
  • Missing constraint — user implied a limit (e.g., the existing pattern, the rest of the codebase), SPEC ignores it

You are NOT looking for: bugs, edge cases, technical correctness, security holes, performance. That's the adversarial reviewer's job. You're checking ONE thing: does the SPEC match what the user asked for?

Read the full file on GitHub · 157 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. 19d ago Changed · +5 lines · -34 tokens per session e3d185215f86
  2. 1mo ago First seen · 152 lines · 89 tokens per session scan A 4cfb3cb064e0

Subscribe to this mod's changes

spirit-check is an agent published in the GitHub repository Ashkaan/contextium (36 stars, last pushed 4d ago), licensed MIT. It adds 55 tokens to every session and 2,136 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

security-auditor

Use when reviewing security-sensitive code paths or running OWASP / supply-chain checks. Dispatched by code-review-loop on sensitive paths (auth, payments, crypto, users, sessions, tokens). Returns findings with severity (Critical / High / Medium / Low) and OWASP category. Context: A diff touches the auth middleware.…

duthaho/claudekit · 164 tokens

code-reviewer

Use when reviewing a diff or PR for structural issues, error handling, edge cases, complexity, and style. Dispatched primarily by code-review-loop. Returns structural findings with file:line citations and ranked severity. Pairs with security-auditor for sensitive paths. Context: A PR is ready for first-pass review.…

duthaho/claudekit · 159 tokens

deep-research-patcher

Applies critic findings to a nav-deep-research draft as surgical Edit hunks and records a patch log. Tool-locked so it cannot regenerate the report. Spawned once at step 5 by the nav-deep-research skill.

qf-studio/navigator · 55 tokens

cos-guardian

Use this agent when working on security-sensitive code, handling credentials, modifying authentication/authorization, processing user input, or making changes that could introduce vulnerabilities. Also use for risk assessment of architectural changes. Context: User is implementing payment processing user: "I've added…

winstonkoh87/Athena-Public · 170 tokens

reviewer

Independent quality gate authority. Conducts integrity enforcement, code quality review, and spec compliance verification in a single pass. Read-only — produces verdicts, never code. Its FAIL cannot be overridden by any agent; only the user can override.

irahardianto/awesome-agv · 51 tokens

php-reviewer

PHP 8.5 and Clean Architecture code review specialist — DDD, hexagonal, PER-CS 3.0, PHPStan, security analysis.

TheBeardedBearSAS/claude-craft · 34 tokens