dancingteeth/agent-looper/check-running-loops
Claude Code and agent skill by dancingteeth/agent-looper
- community
Checking that the SKILL.md file is still in the repository.
Checks whether agent-loop / agent-loop-batch jobs are actually alive, stale, hung, dead, or done, for any worker/judge runtime (Cursor, Cline, OpenCode, Pi, Codex, DSH, Muse, Claude). Use when the user asks if loops are ok, stuck, running, healthy, or what the current batch status is; when they mention agent-loop, loop-batch, verify.sh harness, or AGENT_LOOP_DONE.
Install
npx vskill@latest install dancingteeth/agent-looper/check-running-loopsSKILL.md
The same SKILL.md was published earlier as dancingteeth/agent-looper/check-running-loops.
Check running loops
The harness (agent-loop / agent-loop-batch) is the process to check. Worker and judge may be Cursor, Cline, OpenCode, Pi, Codex, DSH, Muse, or Claude — that does not change the heartbeat.
Do not answer loop health from memory, an IDE job list, Cursor terminal status: running, or running_for_ms. Those stay running after the process dies.
Must run first
From the consumer repo root (the project being looped). The heartbeat script is scripts/check-running-loops.sh next to this SKILL.md. After agent-loop-init that is:
In this harness checkout the same files also live at plugins/agent-looper/skills/check-running-loops/scripts/check-running-loops.sh.
Optional: STALE_SECS=180 HUNG_SECS=600 (defaults: 3 min stale, 10 min hung).
Heartbeat, in order:
ps—agent-loop run/agent-loop-batchPIDs (runtime-agnostic).cursor/loops/*/watch-status.json—pid+ file mtime (written byrun, any runtime)- Cursor Agent Shell terminal files — extra probe only if the grind was started from that chat (
CURSOR_TERMINALS_DIRor~/.cursor/projects/<slug>/terminals). When the grind was started from a sibling Cursor window (harness vs consumer repo), the script also scans$CURSOR_PROJECTS_DIR/*/terminals(default~/.cursor/projects) for files whosecwd:matches this repo. SetCURSOR_TERMINALS_DIRto pin a single folder (tests / explicit).
Optional corroboration for a known loop dir (watch --snapshot is not the heartbeat — log.ndjson often does not grow during a worker/judge think stretch):
Classify
Script verdict | Meaning | |
|---|---|---|
ALIVE | ps has the PID and log age < stale | |
ALIVE_BUT_STALE | PID live, no log growth for ≥ 3 min — do not call this healthy | |
ALIVE_BUT_HUNG | PID live, no log growth for ≥ 10 min — hung or judge/worker stall | |
DEAD | PID gone, no AGENT_LOOP_DONE | |
DONE | PID gone, AGENT_LOOP_DONE in the log | |
NONE | No harness process / no matching terminal / no recent loop dir |
meta_status=running with ps=DEAD → DEAD. Same if a DSH/Cline/OpenCode job UI still says running.
Do not print full ps/pgrep -fl command lines (API keys have leaked there). The script prints PIDs only.
What you may tell the user
Lead with verdict + PID + log age + which loop + runtime. Then last iteration / verify / review gate lines.
Forbidden unless verdict=ALIVE (fresh):
- “everything is ok”
- “harness is healthy”
- “still running” without
ps+ age
ALIVE_BUT_STALE / ALIVE_BUT_HUNG: say quiet since Ns, last phase (worker vs judge), not “ok”.
DEAD mid-batch: first finished loops vs where it died; offer resume (remaining loop-batch.json paths only — do not re-run verified loops unless asked).
Why this exists
Host UIs are not a heartbeat. A worker/judge turn on any runtime can sit with no new log lines until that SDK’s timeout (Cursor: AGENT_LOOP_CURSOR_TIMEOUT_MS, default 45 min). Quiet watch-status.json / terminal log + live harness PID = stall, not success.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/agent-looper/skills/check-running-loops/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dancingteeth/agent-looper/check-running-loops)