Inspect active loop state, progress, failure signals, and recommended intervention.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ecc-e4b5e931eef2 ,按照其中的说明把「loop-status」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Inspect active loop state, progress, and failure signals.
This slash command can only run after the current session dequeues it. If you need to inspect a wedged or sibling session, run the packaged CLI from another terminal:
npx --package ecc-universal ecc loop-status --json
The CLI scans local Claude transcript JSONL files under
~/.claude/projects/** and reports stale ScheduleWakeup calls or Bash
tool calls that have no matching tool_result.
/loop-status [--watch]
ecc loop-status --json emits machine-readable status for recent local
Claude transcripts.ecc loop-status --home <dir> scans a different home directory when
inspecting another local profile or mounted workspace.ecc loop-status --transcript <session.jsonl> inspects one transcript
directly.ecc loop-status --bash-timeout-seconds 1800 adjusts the stale Bash
threshold.ecc loop-status --exit-code exits 2 when stale loop or tool signals are
found, or 1 when transcripts cannot be scanned.--exit-code with --watch requires --watch-count so watchdog scripts do
not wait forever for a process exit.ecc loop-status --watch refreshes status until interrupted.ecc loop-status --watch --watch-count 3 --exit-code refreshes a bounded
number of times, then exits with the highest status seen.ecc loop-status --watch --watch-count 3 emits a bounded watch stream for
scripts and handoffs.ecc loop-status --watch --write-dir ~/.claude/loops maintains
index.json and per-session JSON snapshots for sibling terminals or
watchdog scripts.When --watch is present, refresh status periodically. With --json, each
refresh is emitted as one JSON object per line so another terminal or script can
consume the stream.
Use --write-dir <dir> when a separate process needs to inspect loop state
without waiting for the current Claude session to dequeue /loop-status. The
CLI writes:
index.json with one row per inspected session.<session-id>.json with the full status payload for that session.These files are snapshots of local transcript analysis. They do not control or timeout Claude Code runtime tool calls.
$ARGUMENTS:
--watch optional