ceo-loop

ceo-loop is a skill for Claude Code from nxtg-ai/forge-plugin. It costs 142 tokens per session (4,729 once invoked), scanned B, original, MIT.

A repeated decision process for an AI product-management agent. It observes the current work, reasons about the next decision, builds or delegates changes, inspects the result, and continues until the work queue or limits are reached.

In plain words
What is it for?
Use it to run autonomous product-governance iterations, track decisions and limits, review progress, and continue queued work through stop hooks.
Why use it?
It turns one-off agent decisions into a tracked loop with progress across sessions and checks on whether earlier decisions were correct.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool.

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

Good fit Use it to run autonomous product-governance iterations, track decisions and limits, review progress, and continue queued work through stop hooks.

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

Any agent
npx skills add nxtg-ai/forge-plugin --skill ceo-loop
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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nxtg-ai/forge-plugin/ceo-loop"><img src="https://agentmods.dev/badge/skills/nxtg-ai/forge-plugin/ceo-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,729 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.00142 $0.04729
Opus 5.5 $0.00057 $0.01892
Sonnet 5.5 $0.00028 $0.00946
Haiku 4.5 $0.00014 $0.00473

Measured 3d ago against content hash ee5d409b5d29, 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 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 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.

Reads agent configuration directoriesmediumAgent snooping

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

1. **State file**: `cat .claude/ceo-loop-state.json`
plugins/nxtg-forge/skills/ceo-loop/SKILL.md · 385 lines

How it starts

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

CEO Decision Loop — ORBIT Protocol

Overview

The CEO-LOOP ORBIT model turns the CEO agent from a single-pass decision oracle into a continuous governance engine. Each invocation of this skill is one ORBIT iteration. The Stop hook (ceo-loop-stop.sh) re-invokes this skill after each iteration until the queue is empty or limits are reached.

Five contributions ORBIT adds to CEO-LOOP:

  1. Actual loop mechanism — Stop hook + state file, not pseudocode
  2. Cross-context continuity — progress file bridges compaction
  3. Iteration tracking + retrograde — was the last decision correct?
  4. Adaptive depth — ESLint fix in 30s, architecture in 15 min with Agent Teams
  5. Trust calibration — accuracy tracked, demotion alert surfaces to human

State Files (all in $PROJECT_ROOT/.claude/)

These are written and read by the loop. Never modify manually during an active loop.

ceo-loop-state.json — Hook state

{
  "active": true,
  "iteration": 7,
  "max_iterations": 20,
  "time_limit_minutes": 30,
  "started_at": "2026-03-08T10:00:00Z",
  "trust_level": "standard",
  "depth_escalation_counter": 0,
  "correct_decisions": 47,
  "incorrect_decisions": 2
}
  • active: Stop hook checks this. If false, hook is a no-op.
  • iteration: Current iteration number. Hook increments this before re-feed.
  • depth_escalation_counter: How many consecutive trivial-only iterations. At 3, go proactive.
  • trust_level: "standard" | "elevated" | "demoted". Demoted = escalate more.

ceo-loop-decisions.jsonl — Decision journal (append-only)

{
  "id": "iter-7-1",
  "iteration": 7,
  "ts": "2026-03-08T10:15:00Z",
  "tier": "auto_approve",
  "depth": "trivial",
  "category": "quality",
  "input": "Add ESLint auto-fix to CI pipeline",
  "decision": "APPROVED",
  "reason": "Code quality improvements are always welcome. Low risk, high alignment.",
  "next_action": "Commit and move to next task.",
  "verification": "PENDING",
  "retrograde": { "previous_id": null, "outcome": "N/A" },
  "confidence": 0.98
}

Tier values: auto_approve | quick_review | deep_think | escalate Depth values: trivial | light | medium | heavy Category values: feature | architecture | quality | scope | deploy Decision values: APPROVED | NEEDS_REVIEW | REJECTED Verification values: CONFIRMED | FAILED | PENDING Retrograde outcome values: CORRECT | INCORRECT | PENDING | N/A

Read the full file on GitHub · 385 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 ee5d409b5d29
  2. 1mo ago Changed · +4 tokens per session a93de35616cd
  3. 3mo ago First seen · 385 lines · 138 tokens per session scan B d1652878e8b9

Subscribe to this mod's changes

ceo-loop is a skill published in the GitHub repository nxtg-ai/forge-plugin (7 stars, last pushed 2d ago), licensed MIT. It adds 142 tokens to every session and 4,729 once invoked, about $0.0006 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-09-03.

Related

ceo-loop compared with skills from other repositories

ceo-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ceo-loopnxtg-ai/forge-pluginSkill72d agoMITB142Claude Code
rag-retrievalyonatangross/orchestkitSkill313todayMITA58Claude Code
error-analysisyonatangross/orchestkitSkill313todayMITA48Claude Code
devyonatangross/orchestkitSkill313todayMITA45Claude Code
accessibilityyonatangross/orchestkitSkill313todayMITA51Claude Code
testing-llmyonatangross/orchestkitSkill313todayMITA55Claude Code
manage-schemasjpicklyk/task-orchestratorSkill215todayMITA207Claude Code