agent-emergency

agent-emergency is a skill for Claude Code from leopu00/job-hunter-team. It costs 0 tokens per session (1,783 once invoked), scanned A, original, MIT.

An emergency procedure for detecting and handling an agent that is active but repeating the same actions without making progress.

In plain words
What is it for?
Use it when an agent's work queue is not shrinking, records are not changing, or the same exchange keeps repeating.
Why use it?
It covers agents that are alive and producing turns but are trapped in loops, such as repeating queries or sending the same messages.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash(tmux *), Bash(jht-agent-contain *), Bash(jht-tmux-send *), Bash(/app/.launcher/spawn-doctor.sh *), Bash(bash /app/.launcher/start-agent.sh *), Bash(python3.

Good fit Use it when an agent's work queue is not shrinking, records are not changing, or the same exchange keeps repeating.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/leopu00/job-hunter-team
agentmods
npx agentmods add skills/leopu00/job-hunter-team/agent-emergency

Made for: Claude Code.

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 agent-emergency

README.md
[![agentmods](https://agentmods.dev/badge/skills/leopu00/job-hunter-team/agent-emergency/github.svg)](https://agentmods.dev/skills/leopu00/job-hunter-team/agent-emergency)
Your own site
<a href="https://agentmods.dev/skills/leopu00/job-hunter-team/agent-emergency"><img src="https://agentmods.dev/badge/skills/leopu00/job-hunter-team/agent-emergency/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 agent-emergency

Your own site · 80×15
<a href="https://agentmods.dev/skills/leopu00/job-hunter-team/agent-emergency"><img src="https://agentmods.dev/badge/skills/leopu00/job-hunter-team/agent-emergency.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,783 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.01783
Opus 5 $0.00000 $0.00892
Sonnet 5 $0.00000 $0.00357
Haiku 4.5 $0.00000 $0.00178

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

Security

Grade A, and why

agent-emergency 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 11d 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.

agents/_skills/agent-emergency/SKILL.md · 128 lines

How it starts

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

agent-emergency — agent stuck in an active loop

Why it exists (the crack between C-08 and C-12)

The existing signals cover two cases:

  • C-08 — a dead / silent agent (pane = bash, no turns) → Dottore diagnosis.
  • C-12 — an agent burning with cadenza 0.00/min, zero checkpoints → kill candidate.

The third one is missing: an agent that is ALIVE and ACTIVE and REPEATS the same cycle without producing anything. It generates turns (so it is NOT "dead" and does NOT have cadenza 0.00), but it makes no progress. Real examples:

  • two sessions bouncing ACK off each other forever (coordination ping-loop);
  • a worker repeating the same query / same action to no effect;
  • an agent re-processing the same undelivered message.

It used to be invisible → the Capitano never stepped in. This skill makes it detectable and manageable.

When to use it

On SUSPICION, not across the board and not on every tick. Start this procedure when you notice one of these hints (usually while doing something else): an agent that has been "working" for a while but whose queue is not shrinking / no new position changes state; or you see the same exchange repeating in the chat/pane.

1. DETERMINISTIC detection (no eyeballing)

Confirm the loop with two cheap checks — no message to the agent (do not disturb it, this is Tier-2 pull):

# (a) REPETITION — does the pane show the same exchange/output N times?
#     Two captures spaced apart: if the "new" content is identical → it is repeating.
tmux capture-pane -t <SESSION> -p -S -60 > /tmp/ae_1.txt
sleep 20
tmux capture-pane -t <SESSION> -p -S -60 > /tmp/ae_2.txt
diff /tmp/ae_1.txt /tmp/ae_2.txt        # little/no "real work" difference = suspected loop

# (b) 0 DB PROGRESS — is the agent "active" but moving nothing in the DB?
#     If available, the by-agent observability helper (it reuses
#     position_state_transitions): 0 recent transitions for this agent = no output.
python3 /app/shared/skills/db_query.py recent-activity   # by_agent: 0 for the session = no output
#     Generic fallback: the queue upstream of the agent does NOT shrink between two checks
#     (e.g. next-for-analista unchanged while ANALISTA-N is "working").

Read the full file on GitHub · 128 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 128 lines · 0 tokens per session scan A 5992f0429994

Subscribe to this mod's changes

agent-emergency is a skill published in the GitHub repository leopu00/job-hunter-team (49 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,783 tokens. 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.

Related

Other skills, from other repositories

atmos-introspection

Introspection & Querying: describe/list commands, config filtering, workspace introspection, dependency graphs, YQ integration, --help= scoped CLI help.

cloudposse/atmos · 37 tokens

atmos-schemas

JSON Schema for Atmos: stack-manifest and atmos.yaml config schemas, IDE auto-completion, validate stacks/schema/config, SchemaStore integration.

cloudposse/atmos · 32 tokens

vs-search-tuning-partial-case

Use when the user provides 1-50 concrete bad-case search queries for one Viking Search app and wants local deterministic fixes. This skill only verifies request-level fine-operation interventions against a read-only baseline scene and delivers a console-ready configuration sheet, validated payloads, and a replay…

volcengine/SearchCLI · 85 tokens

atmos-lint

Atmos Terraform linting with TFLint: standalone atmos terraform lint, component-aware config discovery and toolchain versions, TFLint rule configuration, and lifecycle hooks/CI findings. Use when configuring, running, debugging, or documenting Terraform/OpenTofu linting in an Atmos project.

cloudposse/atmos · 64 tokens

atmos-diagnostics

Atmos diagnostics: machine-readable JSONL event streams, diagnostics.enabled/file/includeoutput, subprocess start/end/output events, masking, and debugging Atmos execution.

cloudposse/atmos · 33 tokens

vs-search

Search runtime and scene management: verify queries, inspect scenes, debug app readiness, and diagnose recall or scene-config issues.

volcengine/SearchCLI · 27 tokens