diagnose-stuck-flywheel

diagnose-stuck-flywheel is a command for Claude Code from jianzhichun/emerge. It costs 15 tokens per session (184 once invoked), scanned A, original, MIT.

A diagnostic command for finding why an Emerge intent is not becoming a stable, repeatable execution path. Emerge is a system that learns successful command patterns and turns them into pipelines.

In plain words
What is it for?
Use it to inspect status and event logs, find the smallest next repair, and determine whether to run a verified span, unblock synthesis, unfreeze policy, or repair a bridge.
Why use it?
It replaces guesswork with checks of recent activity, policy, synthesis jobs, and remote state. It identifies whether low success, verification failures, frozen rules, or broken connections are blocking progress.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the emerge plugin — 15 skills, 10 commands, 3 agents, 24 hooks shipped together

Good fit Use it to inspect status and event logs, find the smallest next repair, and determine whether to run a verified span, unblock synthesis, unfreeze policy, or repair a bridge.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jianzhichun/emerge/diagnose-stuck-flywheel
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/jianzhichun/emerge

Made for: Claude Code.

Or install emerge, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 3 agents, 24 hooks.

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 diagnose-stuck-flywheel

README.md
[![agentmods](https://agentmods.dev/badge/commands/jianzhichun/emerge/diagnose-stuck-flywheel/github.svg)](https://agentmods.dev/commands/jianzhichun/emerge/diagnose-stuck-flywheel)
Your own site
<a href="https://agentmods.dev/commands/jianzhichun/emerge/diagnose-stuck-flywheel"><img src="https://agentmods.dev/badge/commands/jianzhichun/emerge/diagnose-stuck-flywheel/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 diagnose-stuck-flywheel

Your own site · 80×15
<a href="https://agentmods.dev/commands/jianzhichun/emerge/diagnose-stuck-flywheel"><img src="https://agentmods.dev/badge/commands/jianzhichun/emerge/diagnose-stuck-flywheel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 184 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.00015 $0.00184
Opus 5 $0.00008 $0.00092
Sonnet 5 $0.00003 $0.00037
Haiku 4.5 $0.00002 $0.00018

Measured 12d ago against content hash 4ab37c77f5df, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

diagnose-stuck-flywheel 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 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.

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/diagnose-stuck-flywheel.md · 14 lines

What it actually says

Diagnose Stuck Flywheel

  1. Read current policy and recent spans with icc_span_status, policy://current, or state://deltas.
  2. Check whether stage is blocked by low success, low verify rate, frozen policy, or bridge demotion.
  3. Inspect synthesis events in scripts/watch_emerge.py output, especially synthesis_job_ready, synthesis_blocked, and bridge failure reasons.
  4. If Memory Hub is involved, check icc_hub(action="status") before assuming local state is authoritative.
  5. Report the smallest next action: run a verified span, fix a blocked synthesis job, unfreeze policy, or repair a broken bridge.

Never write policy state directly; all lifecycle changes must flow through the daemon tools and PolicyEngine.

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 First seen · 14 lines · 15 tokens per session scan A 4ab37c77f5df

Subscribe to this mod's changes

diagnose-stuck-flywheel is a command published in the GitHub repository jianzhichun/emerge (107 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 184 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-30.