ceo-loop-cancel

ceo-loop-cancel is a command for Claude Code from nxtg-ai/forge-plugin. It costs 55 tokens per session (1,047 once invoked), scanned B, original, MIT.

A command for stopping an active CEO Decision Loop, a recurring process that records and handles project decisions. It saves a final session summary, keeps the decision history, and leaves unfinished decisions for a later session.

In plain words
What is it for?
Use it when you want to end an active CEO Decision Loop and keep its decisions, statistics, and pending work available for the next session.
Why use it?
Stopping the process manually could lose context or leave its state unclear. This closes the session while preserving the records needed to continue later.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it when you want to end an active CEO Decision Loop and keep its decisions, statistics, and pending work available for the next session.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nxtg-ai/forge-plugin/ceo-loop-cancel
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/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 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 ceo-loop-cancel

README.md
[![agentmods](https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/ceo-loop-cancel/github.svg)](https://agentmods.dev/commands/nxtg-ai/forge-plugin/ceo-loop-cancel)
Your own site
<a href="https://agentmods.dev/commands/nxtg-ai/forge-plugin/ceo-loop-cancel"><img src="https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/ceo-loop-cancel/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 ceo-loop-cancel

Your own site · 80×15
<a href="https://agentmods.dev/commands/nxtg-ai/forge-plugin/ceo-loop-cancel"><img src="https://agentmods.dev/badge/commands/nxtg-ai/forge-plugin/ceo-loop-cancel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 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,047 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00055 $0.01047
Opus 5.5 $0.00022 $0.00419
Sonnet 5.5 $0.00011 $0.00209
Haiku 4.5 $0.00006 $0.00105

Measured 12d ago against content hash 525eede08d04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ceo-loop-cancel scanned grade B with 1 finding 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 12d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat .claude/ceo-loop-state.json 2>/dev/null
plugins/nxtg-forge/commands/ceo-loop-cancel.md · 107 lines

How it starts

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

/nxtg-forge:ceo-loop-cancel — Cancel CEO Decision Loop

Graceful exit from the CEO-LOOP ORBIT cycle.

Step 1 — Check current state

cat .claude/ceo-loop-state.json 2>/dev/null

If no state file exists or active: false: report "No CEO-LOOP is currently active" and exit.

Step 2 — Collect session statistics

Read stats for the final summary:

# Get state values
ITERATION=$(jq -r '.iteration // 0' .claude/ceo-loop-state.json 2>/dev/null)
STARTED=$(jq -r '.started_at // "unknown"' .claude/ceo-loop-state.json 2>/dev/null)
CORRECT=$(jq -r '.correct_decisions // 0' .claude/ceo-loop-state.json 2>/dev/null)
INCORRECT=$(jq -r '.incorrect_decisions // 0' .claude/ceo-loop-state.json 2>/dev/null)
TRUST=$(jq -r '.trust_level // "standard"' .claude/ceo-loop-state.json 2>/dev/null)

# Count decisions in journal
TOTAL_DECISIONS=$(wc -l < .claude/ceo-loop-decisions.jsonl 2>/dev/null || echo 0)
AUTO_APPROVED=$(grep -c '"tier":"auto_approve"' .claude/ceo-loop-decisions.jsonl 2>/dev/null || echo 0)
ESCALATED=$(grep -c '"tier":"escalate"' .claude/ceo-loop-decisions.jsonl 2>/dev/null || echo 0)

# Count pending items remaining
PENDING=$(jq 'length' .claude/ceo-decisions-pending.json 2>/dev/null || echo 0)

Step 3 — Write final session summary to progress file

Append a final section to .claude/ceo-loop-progress.md:


---

## SESSION END — Cancelled by user

**Cancelled at**: <ISO timestamp>
**Started**: <started_at>
**Completed iterations**: <N>

### Final Session Statistics
| Metric | Value |
|--------|-------|
| Total decisions | <TOTAL_DECISIONS> |
| Auto-approved (trivial) | <AUTO_APPROVED> |
| Escalated to human | <ESCALATED> |
| Deep decisions | <TOTAL - AUTO - ESCALATED> |
| Correct (retrograde confirmed) | <CORRECT> |
| Incorrect (retrograde failed) | <INCORRECT> |
| Final accuracy | <pct>% |
| Trust level at exit | <TRUST> |

### Queue at cancellation
- Remaining pending decisions: <PENDING>
- Decision journal preserved at: `.claude/ceo-loop-decisions.jsonl`

Resume next session with: `/nxtg-forge:ceo-loop` (will pick up from journal)

Read the full file on GitHub · 107 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. 12d ago Changed 525eede08d04
  2. 1mo ago Changed · +7 lines · +55 tokens per session scan A → B 88f8378833d7
  3. 1mo ago First seen · 100 lines · 0 tokens per session scan A e9ab87d0591f

Subscribe to this mod's changes

ceo-loop-cancel is a command published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 55 tokens to every session and 1,047 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.