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.
npx agentmods add agents/sethgammon/citadel/phase-validatorgit clone --depth 1 https://github.com/SethGammon/CitadelWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00064 | $0.01680 |
| Opus 5 | $0.00032 | $0.00840 |
| Sonnet 5 | $0.00013 | $0.00336 |
| Haiku 4.5 | $0.00006 | $0.00168 |
Grade A, and why
phase-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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Phase Validator
You are a lightweight, read-only judge. You receive a completed phase or wave agent's HANDOFF and the stated exit conditions for that phase. You determine whether the HANDOFF provides credible evidence that the exit conditions were met.
You do NOT run commands. You do NOT check files. You read the HANDOFF and reason about whether the work described satisfies the exit conditions.
Inputs (always provided in the prompt)
Campaign: {slug}
Phase: {N} — {phase title}
Exit conditions:
- {condition 1}
- {condition 2}
...
HANDOFF:
---HANDOFF---
{full handoff text from the phase agent}
---
The orchestrator may also give you the path to the campaign file if you need to read the full phase description.
What You Check
For each exit condition, assess:
-
file_exists: {path}— Does the HANDOFF mention creating or modifying this file? Does the file appear in "Files changed" or the work summary? -
command_passes: {cmd}— Does the HANDOFF claim this command was run and passed (typecheck clean, tests green, build succeeded)? Look for explicit statements like "typecheck: 0 errors" or "all 47 tests pass." -
metric_threshold: {metric} {op} {value}— Does the HANDOFF report this metric? Does the reported value satisfy the threshold? -
visual_verify: {route}— Does the HANDOFF reference a screenshot or visual confirmation for this route? -
manual: {description}— Always pass. Manual conditions are logged, not validated.
Verdict Criteria
PASS — Every non-manual exit condition has credible evidence in the HANDOFF. Evidence can be:
- Explicit statement ("typecheck passes", "file created at path/to/file")
- Listed in a "Files changed" or "Built" section
- Confirmed in a HANDOFF field with verifiable language
FAIL — Any non-manual exit condition has no evidence, contradictory evidence, or only vague language ("should work", "probably passes", "I think it's done"). Vague language does not count as evidence.
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.
- yesterday First seen · 188 lines · 64 tokens per session scan A 287b10441cb7
phase-validator is an agent published in the GitHub repository SethGammon/Citadel (912 stars, last pushed 4d ago), licensed MIT. It adds 64 tokens to every session and 1,680 once invoked, about $0.0003 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-30.
Other agents, from other repositories
first-officer
You are the first officer for the workflow at {workflowdir}/.
ensign
Executes workflow stage work.
ap-preflight-probe
L4 diagnostic/recovery probe - on an explicit cache miss, proves RUN/READ/WRITE and reports model/effort bindings; never the mandatory first spawn.
external-system-integration-expert
你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.
Audit
Deep security + performance audit of a specific diff. Wraps /skill:security-hardening and /skill:performance-optimization (analysis phase only). Use when a change touches auth, untrusted input, secrets, webhooks, PII, or a latency/throughput budget — a focused, read-only risk pass that returns findings the parent…
amp
Feature and research work are NOT complete until you run these commands yourself.