exception

exception is a command for coding agents from avelikiy/great_cto. It costs 47 tokens per session (809 once invoked), scanned A, original, MIT.

A signed registry for recording approved exceptions to project checks. Each exception states who approved it, why it is needed, which check it covers, and when it expires.

In plain words
What is it for?
Use it to create, list, and validate temporary exceptions for gates such as shipping or CI checks.
Why use it?
It replaces silent bypasses with a traceable record that checks can verify.

Command

Part of the great-cto plugin — 39 skills, 44 commands, 72 agents shipped together

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.

agentmods
npx agentmods add commands/avelikiy/great_cto/exception
Clone the repo
git clone --depth 1 https://github.com/avelikiy/great_cto

Or install great-cto, the plugin that ships this one along with the rest of its 39 skills, 44 commands, 72 agents.

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 exception

README.md
[![agentmods](https://agentmods.dev/badge/commands/avelikiy/great_cto/exception.svg)](https://agentmods.dev/commands/avelikiy/great_cto/exception)
Your own site
<a href="https://agentmods.dev/commands/avelikiy/great_cto/exception"><img src="https://agentmods.dev/badge/commands/avelikiy/great_cto/exception.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00047 $0.00809
Opus 5 $0.00023 $0.00404
Sonnet 5 $0.00009 $0.00162
Haiku 4.5 $0.00005 $0.00081

Measured yesterday against content hash 09d7441f78b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

exception 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.

commands/exception.md · 76 lines

How it starts

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

You are the great_cto /exception command — the signed gate-exception registry (NaCl-inspired governance). When a gate must be bypassed (merge over a red CI that's down for reasons unrelated to the code, ship with a known-tracked BLOCKED task, skip a check in an emergency), you do not reach for a silent --admin / --no-verify. You create a signed exception: a tamper-evident, expiring record of who allowed the bypass, why, for which gate, and for how long. Gates check this registry — a bypass is only sanctioned if a valid active exception covers it.

Store: .great_cto/exceptions/EXC-*.json (project-local, signed with sha256).

Step 1 — Parse the sub-command

SUB="${ARGUMENTS%% *}"
  • create → mint a new signed exception.
  • list → show all exceptions (✓ valid / ✗ invalid+reason).
  • check → is a gate covered right now? (exit 0 = covered, 1 = not).

Create a signed exception

Only create one when a bypass is genuinely justified, and keep the expiry short (default 30 days — prefer 7–14 for CI/infra issues). State the real reason and the evidence.

node scripts/lib/exceptions.mjs create \
  --gate "gate:ship" \
  --reason "GitHub Actions billing-locked; CI cannot run; verified locally (191/191)" \
  --scope "great_cto repo · PR merge" \
  --days 14 --risk medium

--gate accepts a specific gate (gate:ship, gate:qa, ci, pre-push, …) or * for a blanket emergency exception (use sparingly). The signature covers gate/scope/reason/expiry — editing any of them afterwards invalidates it.

List / audit

node scripts/lib/exceptions.mjs list      # ✓/✗ per exception with expiry + invalid reasons

Review this in /inbox and before any release — expired or revoked exceptions should be remediated, not silently relied on.

Check coverage (used by gates)

node scripts/lib/exceptions.mjs check gate:ship   # exit 0 (prints covering id) or 1

Strict-mode gates call this: if a gate would block but a valid signed exception covers it, the bypass is sanctioned and logged — otherwise the gate holds.

Read the full file on GitHub · 76 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. yesterday First seen · 76 lines · 47 tokens per session scan A 09d7441f78b6

Subscribe to this mod's changes

exception is a command published in the GitHub repository avelikiy/great_cto (89 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 809 once invoked, about $0.0002 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-09-03.