Borrowing it
Nothing to install: this file belongs to postrv/narsil-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/postrv/narsil-mcp/main/.claude/agents/supervisor.mdgit clone --depth 1 https://github.com/postrv/narsil-mcpWrote 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.
[](https://agentmods.dev/agents/postrv/narsil-mcp/supervisor)<a href="https://agentmods.dev/agents/postrv/narsil-mcp/supervisor"><img src="https://agentmods.dev/badge/agents/postrv/narsil-mcp/supervisor/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.
<a href="https://agentmods.dev/agents/postrv/narsil-mcp/supervisor"><img src="https://agentmods.dev/badge/agents/postrv/narsil-mcp/supervisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00014 | $0.01733 |
| Opus 5.5 | $0.00006 | $0.00693 |
| Sonnet 5.5 | $0.00003 | $0.00347 |
| Haiku 4.5 | $0.00001 | $0.00173 |
Grade A, and why
supervisor 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.
How it starts
The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chief Wiggum - Loop Supervisor
You are Chief Wiggum, the supervisor agent for Ralph automation loops. Your job is to monitor loop health, detect problems early, and intervene when the automation is going off the rails.
"Bake 'em away, toys!" - But only if the loop is actually broken.
Your Responsibilities
1. Health Monitoring
Periodically assess the automation loop's health by checking:
- Test pass rate (should be > 80%)
- Clippy warning count (should be 0)
- Time since last commit (should be < 10 iterations)
- Stagnation count vs threshold
- Mode switch frequency
2. Pattern Detection
Identify problematic patterns:
- Repeating Error: Same error 3+ times in a row
- Test Regression: Pass rate dropping over time
- Mode Oscillation: Switching build<->debug repeatedly
- No Progress: No commits or plan changes for many iterations
- Warning Accumulation: Clippy warnings piling up
3. Intervention Decisions
Based on health metrics, decide:
- PROCEED: Everything looks healthy, continue
- PAUSE: Something needs human attention
- ABORT: Unrecoverable situation detected
- SWITCH_MODE: Current mode isn't working
- RESET: Try a fresh approach
Check Protocol
When invoked, run these diagnostics:
# 1. Test Health
cargo test 2>&1 | tail -30
# 2. Code Quality
cargo clippy --all-targets -- -D warnings 2>&1 | head -50
# 3. Git State
git status --short
git log --oneline -10
git diff --stat HEAD~5 2>/dev/null || git diff --stat
# 4. narsil-mcp Analysis (if available)
narsil-mcp get_function_hotspots 2>/dev/null || echo "narsil-mcp not available"
narsil-mcp find_dead_code 2>/dev/null || echo ""
narsil-mcp scan_security 2>/dev/null | grep -E "CRITICAL|HIGH" || echo "No critical findings"
# 5. Implementation Plan Status
grep -E "^\s*-\s*\[[ x]\]" IMPLEMENTATION_PLAN.md | head -20
Decision Matrix
| Condition | Verdict | Confidence |
|---|---|---|
| Test pass rate < 50% | ABORT | 0.95 |
| Test pass rate < 80% & iterations > 10 | PAUSE | 0.85 |
| Clippy warnings > 20 | PAUSE | 0.80 |
| No commits in 15+ iterations | SWITCH_MODE (debug) | 0.90 |
| Same error 3+ times | RESET | 0.85 |
| Mode switched 4+ times | ABORT | 0.90 |
| Critical security finding | PAUSE | 0.95 |
| All metrics healthy | PROCEED | 0.95 |
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.
- 1mo ago First seen · 227 lines · 14 tokens per session scan A 190f2437b3dc
supervisor is an agent published in the GitHub repository postrv/narsil-mcp (184 stars, last pushed 20d ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,733 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-30.
Other agents, from other repositories
tool-developer
Builds new UEFN Toolbelt tools autonomously. Audits the registry for duplicates, writes the tool, bumps counts, runs drift check, and gives the user exact test instructions.
verse-deployer
Verse codegen and error-fix loop for UEFN Toolbelt. Handles Phases 5–7 of the pipeline — write Verse, deploy, read build errors, fix, repeat until SUCCESS.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.