Kontrol: Skill for Codex

.codex/skills/nelson-wiggum-loop/SKILL.md

nelson-wiggum-loop is a skill for Codex from B-A-M-N/Kontrol. It costs 28 tokens per session (1,617 once invoked), scanned A, original, MIT.

A review workflow connecting a WebUI reviewer with a command-line coding agent. The work is submitted by the WebUI, completed by the agent, and accepted only when the reviewer gives an “A-okay” approval.

In plain words
What is it for?
Use it when wiring the Kontrol review interface, sending tasks to a coding agent, returning completed work, and recording the reviewer’s approval or feedback.
Why use it?
It prevents a coding task from being treated as complete before the WebUI has reviewed and approved the returned work.

Skill for Codex

Written for Codex: installed under .codex/.

This is B-A-M-N/Kontrol's own configuration. It tells Codex 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/.codex/skills/nelson-wiggum-loop/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/B-A-M-N/Kontrol

Made for: Codex.

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 nelson-wiggum-loop

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/b-a-m-n/kontrol/nelson-wiggum-loop"><img src="https://agentmods.dev/badge/skills/b-a-m-n/kontrol/nelson-wiggum-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,617 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.00028 $0.01617
Opus 5 $0.00014 $0.00809
Sonnet 5 $0.00006 $0.00323
Haiku 4.5 $0.00003 $0.00162

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

Security

Grade A, and why

nelson-wiggum-loop 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 3d 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.

.codex/skills/nelson-wiggum-loop/SKILL.md · 155 lines

How it starts

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

Nelson Wiggum Loop

"A-okay!" — Nelson Wiggum, the only voice that ends the loop.

The WebUI-side counterpart to ralphie-muntz-loop. The active WebUI model is the reviewer, orchestrator, and inspector. The CLI coding agent is an optional bounded worker. The loop is not complete until the WebUI signs off "A-okay" via provide_review_feedback with verdict approve.

No polling. No busy loops. The WebUI's "A-okay" is the single completion criterion.

Topology (registry roles)

The agent registry makes the split explicit:

Name Role Meaning
cli-coding-agent agent The worker. Registers itself at runtime via POST /acp/agents/register. Executes tasks, submits work for review.
webui reviewer The reviewer. Seeded by Kontrol as a well-known reviewer entry and the only signer of "A-okay".

Kontrol is the broker that hosts the WebUI's reviewer tool (submit_to_coding_agent) and the WebUI-facing ACP agent (kontrol-submit-work-to-webui).

The Pattern

WebUI (Nelson)                    Kontrol Server                 CLI Coding Agent (Ralphie)
    │                                    │                                │
    ├─ submit_to_coding_agent ──────────►│                                │
    │   (task from the human)            ├─ forward over ACP ─────────────►│
    │                                    │                                ├─ start_work_session
    │                                    │                                ├─ [do work: edit, shell, test]
    │                                    │◄─ submit_for_review ───────────┤
    │                                    │   (or kontrol-submit-work-to-webui via ACP) │
    │                                    ├─ status: awaiting_review        │
    │◄── diff card + feedback form ──────┤                                │
    │                                    │                                ├─ await_review_feedback (BLOCKS)
    │                                    │                                │
    │   human reviews, clicks A-okay ───►├─ provide_review_feedback        │
    │   (verdict: approve)               ├─ feedback committed             │
    │                                    ├─ waiter resolved ──────────────►│
    │                                    │                                ├─ finish, summarize
    │                                    │                                │
    ├── COMPLETION: only when WebUI says "A-okay" ────────────────────────┤

Read the full file on GitHub · 155 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. 3d ago Changed · +1 lines · -61 tokens per session a42f32694dd3
  2. 10d ago First seen · 154 lines · 89 tokens per session scan A 146e4b527a04

Subscribe to this mod's changes

nelson-wiggum-loop is a skill published in the GitHub repository B-A-M-N/Kontrol (0 stars, last pushed 3d ago), licensed MIT. It adds 28 tokens to every session and 1,617 once invoked, about $0.0001 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.