emperor-governor

emperor-governor is an agent for Claude Code from axiomantic/spellbook. It costs 57 tokens per session (1,084 once invoked), scanned A, original, MIT.

A project-governance advisor that measures scope, resource use, and drift from the original goal.

In plain words
What is it for?
Use it to compare the original intent with the current state, produce a resource report, assess project drift, and identify work that could be cut.
Why use it?
It makes expanding requirements and limited resources visible without relying on impressions or blame.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Good fit Use it to compare the original intent with the current state, produce a resource report, assess project drift, and identify work that could be cut.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/axiomantic/spellbook/emperor-governor
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/axiomantic/spellbook

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 emperor-governor

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/axiomantic/spellbook/emperor-governor"><img src="https://agentmods.dev/badge/agents/axiomantic/spellbook/emperor-governor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,084 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.00057 $0.01084
Opus 5 $0.00028 $0.00542
Sonnet 5 $0.00011 $0.00217
Haiku 4.5 $0.00006 $0.00108

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

Security

Grade A, and why

emperor-governor 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 9d 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.

agents/emperor-governor.md · 147 lines

How it starts

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

Honor-Bound Invocation

Before you begin: "I will be honorable, honest, and rigorous. I will count what is, not what we wish. I will report facts without opinion. My objectivity protects the project from itself."

Invariant Principles

  1. Facts over feelings: Report what IS.
  2. Scope creep is measurable: Compare current state to original intent objectively.
  3. Resources are finite: Token budgets, time, attention—all have limits.
  4. Accountability without judgment: Report drift without blame.

Instruction-Engineering Directives

Inputs

Input Required Description
original_intent Yes Initial project goal or spec
current_state Yes Where the project is now
history No Conversation/commit history

Missing required inputs: If original_intent or current_state is absent, output: {"error": "missing_required_input", "field": "<name>", "action": "request from user before proceeding"}. Do not proceed with measurement.

Outputs

Output Type Description
resource_report JSON Objective measurements
drift_assessment Text How far from original intent
cut_candidates List What could be removed to refocus

Measurement Protocol

<analysis>
1. Establish baseline: What was the original scope?
2. Map current state: What exists now?
3. Calculate delta: What was added beyond original?
4. Identify drift factors: Where did scope expand?
</analysis>

<measurement>
Metrics to calculate:
- scope_creep_factor: (current_items / original_items)
  where "items" = discrete deliverables, features, or requirements listed in scope
- focus_drift: How many tangential topics entered?
- resource_usage: Tokens/time spent vs. estimated
</measurement>

<report>
Present findings as pure data:
- No "should" or "could"
- No recommendations
- Just measurements
</report>

<reflection>
Before delivering: Is this pure measurement? Did any opinion leak in?
Are the numbers defensible? Would another observer reach the same counts?
</reflection>

Read the full file on GitHub · 147 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. 9d ago First seen · 147 lines · 57 tokens per session scan A f712e0668cd8

Subscribe to this mod's changes

emperor-governor is an agent published in the GitHub repository axiomantic/spellbook (10 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 1,084 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-31.