Skip to content
Skills Library
AI & agents · Analysis

hang-check

/hang-check

Watch running background agents for evidence of a genuine stall without killing healthy work. Use for hang checks, stuck or silent subagents, stalled agents, watchdog monitoring, or periodic status detection.

Licence
MIT
Last repository change
22.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Watch running background agents for evidence of a genuine stall without killing healthy work. Use for hang checks, stuck or silent subagents, stalled agents, watchdog monitoring, or periodic status detection.

Original author description

Watch running background agents for evidence of a genuine stall without killing healthy work. Use for hang checks, stuck or silent subagents, stalled agents, watchdog monitoring, or periodic status detection.

How it works

  1. Purpose
  2. When to use
  3. Timer
  4. Evidence and decision
  5. Investigate before stopping
  6. Cleanup
  7. Workflow
Original SKILL.md headings · 88 lines, 639 words
SKILL.md preview
---
name: hang-check
description: "Watch running background agents for evidence of a genuine stall without killing healthy work. Use for hang checks, stuck or silent subagents, stalled agents, watchdog monitoring, or periodic status detection."
---

# Hang check

## Purpose

A dispatched subagent can hang: it stops making progress but never returns.
This skill installs a recurring check that catches a real hang while leaving
a slow-but-working agent alone. Judge on evidence, not the clock: elapsed
time alone is never proof of a hang, because a long compile, model load, or
remote wait looks identical to a stuck agent if you only watch the timer.

## When to use

- One or more background subagents are running and may run long.
- The user asks for a watchdog, hang check, or "tell me if an agent gets
  stuck."

Skip it when no background subagents are active, when driving a single
foreground task turn by turn, or when the user wants live per-event log
streaming (use the `Monitor` tool for that).

## Timer

Use `CronCreate` for the recurring check and `CronDelete` to remove it.

- Arm exactly one recurring job when the first watched subagent starts. One
  watchdog covers all active agents; do not arm a second.
- Every 10-15 minutes fits most work; shorten only if agents finish fast.
- The job prompt re-enters this skill: "Run hang-check: review each active
  subagent's status, recent output, and file activity; investigate any
  agent that looks stuck; remove the timer if no subagents remain active."
- Record the returned job ID for cleanup.
- `CronCreate` jobs auto-expire after 7 days; tell the user if the watched
  work could run longer.

## Evidence and decision

Each check, read up to three signals per active agent:

| Signal | How to read it |
| --- | --- |
| Agent status | `TaskList` / agent status: running, completed, or errored |
| Recent output | Latest lines (`TaskOutput` or output file) -- is it advancing? |
| File activity | New or changed files / mtimes in the work area, when relevant |

File activity is evidence only when the agent is expected to touch files. An
agent that is researching, reading, or waiting on a remote call may make no
file changes while healthy; do not treat missing file changes as a hang.

Advancing on any relevant signal means healthy: leave it alone. Quiet on
every relevant signal for an unusually long stretch relative to the task's
pace means suspect a hang: investigate, do not stop it yet. "Unusually long"
is relative to the task, not a fixed number.

## Investigate before stopping

Before touching a suspected-hung agent:

- Read its most recent output in full. A stack trace, a prompt waiting on
  input, or a "downloading..." line changes the diagnosis.
- Check whether it is legitimately blocked on a long operation.
- Check file mtimes when files are expected: a file touched seconds ago
  means work is happening even if stdout is quiet.

Only after the evidence confirms a genuine hang, `TaskStop` the agent. Do
not automatically re-dispatch it: decide whether to resume, replace, or
cancel the work. Re-dispatch is wrong when the task is obsolete, already
done by another agent, unsafe to repeat, or depends on non-idempotent
actions. Report what the evidence showed, not just the action taken.

## Cleanup

After each check, if no subagents remain active, remove the timer with
`CronDelete` using the recorded job ID and confirm with `CronList` so no
orphaned watchdog keeps firing. Re-arm only when new subagents are
dispatched.

## Workflow

1. Confirm one or more background subagents are active. If none, stop.
2. Arm one recurring `CronCreate` watchdog; record the job ID.
3. On each fire, read the relevant evidence signals for every active agent.
4. Leave advancing agents alone; flag agents quiet on every relevant signal.
5. Investigate each flagged agent before acting.
6. For a confirmed hang, `TaskStop`, then decide resume, replace, or cancel.
7. When no subagents remain active, `CronDelete` the timer; confirm with
   `CronList`.
Files in this package (2)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named hang-check.

Database snapshot: 13.11.2026 · package version d75ed311bddc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100liveness-discipline
    Use when launching any long or silent work that could hang — your own probe/script/deploy/fetch-loop/browser-automation, a sub-agent, or a workflow — or when the operator says "the background task hangs", "the agent sits idle", "it never resumes", "is it still running?", or a…
  • 100external-subagents
    Run a planning, research, review, or implementation task on a second model family as a background subagent that cannot hang the session — GPT through the Codex CLI, or the newest Grok through the Cursor CLI where Codex is missing. A wrapper kills stalled runs and salvages…
  • 100hosted-agents
    This skill should be used when the user asks to "build background agent", "create hosted coding agent", "set up sandboxed execution", "implement multiplayer agent", or mentions background agents, sandboxed VMs, agent infrastructure, Modal sandboxes, self-spawning agents, or…
  • 100co-plan
    Generate a parallel plan via Codex. Use when you want an additional planning perspective to compare against your own plan. Runs in the background so you can continue working in parallel.
  • 90using-subagents
    指导如何可靠使用 subagents、多个 Agents、并行 Agent 审查、集群搜索和项目分片处理。当用户要求使用 Agents/SubAgents、并行 Agent、对抗审查、多角色审查、集群搜索、项目分片处理,或明确说出“进入agents approve迭代模式”时使用。

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.