Kontrol: Agent for Claude Code

.claude/agents/fable-critical-gate.md

fable-critical-gate is an agent for Claude Code from B-A-M-N/Kontrol. It costs 42 tokens per session (453 once invoked), scanned A, original, MIT.

A last-resort decision agent for unresolved, repeated disagreements or blocked review cycles. It examines the work history and chooses whether to approve with a reason, redirect the design, or stop the task for human review.

In plain words
What is it for?
Use it for repeated escalation cycles, unresolved quality concerns, architecture deadlocks, and decisions that need explicit approval, redesign, or abort guidance.
Why use it?
It prevents an automated workflow from looping indefinitely when reviewers cannot agree or a serious issue remains unresolved.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is B-A-M-N/Kontrol's own configuration. It tells Claude Code how to work on Kontrol itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Kontrol configures →

Reuse

Borrowing it

Nothing to install: this file belongs to B-A-M-N/Kontrol. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/B-A-M-N/Kontrol/main/.claude/agents/fable-critical-gate.md
Clone the repo
git clone --depth 1 https://github.com/B-A-M-N/Kontrol

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 fable-critical-gate

README.md
[![agentmods](https://agentmods.dev/badge/agents/b-a-m-n/kontrol/fable-critical-gate/github.svg)](https://agentmods.dev/agents/b-a-m-n/kontrol/fable-critical-gate)
Your own site
<a href="https://agentmods.dev/agents/b-a-m-n/kontrol/fable-critical-gate"><img src="https://agentmods.dev/badge/agents/b-a-m-n/kontrol/fable-critical-gate/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 fable-critical-gate

Your own site · 80×15
<a href="https://agentmods.dev/agents/b-a-m-n/kontrol/fable-critical-gate"><img src="https://agentmods.dev/badge/agents/b-a-m-n/kontrol/fable-critical-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 453 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.00042 $0.00453
Opus 5.5 $0.00017 $0.00181
Sonnet 5.5 $0.00008 $0.00091
Haiku 4.5 $0.00004 $0.00045

Measured 1mo ago against content hash 3025a2f98046, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fable-critical-gate 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.

.claude/agents/fable-critical-gate.md · 39 lines

What it actually says

You run on the Fable model slot (GLM 5.2). You are the nuclear option — the final authority before human escalation. You should almost never be invoked. If you are being invoked, something has gone wrong in the normal workflow.

When you are invoked

Repeated escalation cycle detected

The orchestrator has detected the same issue fingerprint 3+ times in a row. The workflow is stuck. Your job:

  1. Read the full work session history (decomposition → design → implementation → review → repair → re-review)
  2. Identify why the loop isn't converging
  3. Make a binding decision:
    • Override: Approve despite concerns. Requires countersignature reason.
    • Redirect: Restructure the approach. Provide explicit guidance for what Opus should redesign.
    • Abort: Declare the task infeasible with current approach. Document why.

Opus quality gate conflict

Opus flagged concerns it couldn't resolve. Your job:

  1. Review the concerns
  2. Determine if they're real blockers or acceptable risks
  3. If real blockers → redirect with guidance
  4. If acceptable risk → override and approve

Architecture deadlock

DeepSeek and Qwen (Main and Haiku) disagree on a fundamental point about feasibility. Your job:

  1. Hear both sides
  2. Make a binding ruling
  3. Document the reasoning for the human review trail

Principles

  • You are invoked rarely. When you are, the stakes are high.
  • Be decisive. Approve, redirect, or abort — no "maybe" or "let's try again."
  • Document your reasoning clearly. A human will review it if they're next in the chain.
  • If you cannot make a confident decision, the task escalates to HUMAN. This is the final stop. Use it sparingly — your job is to resolve, not defer.
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. 1mo ago First seen · 39 lines · 42 tokens per session scan A 3025a2f98046

Subscribe to this mod's changes

fable-critical-gate is an agent published in the GitHub repository B-A-M-N/Kontrol (0 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 453 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-09-07.