claude-forge: Skill for Claude Code

.claude/skills/forge-heartbeat/SKILL.md

forge-heartbeat is a skill for Claude Code from ForgeyClap/claude-forge. It costs 41 tokens per session (709 once invoked), scanned A, original, MIT.

A read-only watchdog that checks event logs for an AI agent that has stopped reporting during a multi-agent run.

In plain words
What is it for?
Use it to check a run for stalled agents, adjust the silence window, or receive machine-readable stall results.
Why use it?
It helps identify crashed, stuck, or silent agents without changing the agent or the recorded run.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ForgeyClap/claude-forge's own configuration. It tells Claude Code how to work on claude-forge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-forge configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .claude/forge-bin/forge-heartbeat.cjs check <run_id>.

Reuse

Borrowing it

Nothing to install: this file belongs to ForgeyClap/claude-forge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ForgeyClap/claude-forge/main/.claude/skills/forge-heartbeat/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ForgeyClap/claude-forge

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 forge-heartbeat

README.md
[![agentmods](https://agentmods.dev/badge/skills/forgeyclap/claude-forge/forge-heartbeat.svg)](https://agentmods.dev/skills/forgeyclap/claude-forge/forge-heartbeat)
Your own site
<a href="https://agentmods.dev/skills/forgeyclap/claude-forge/forge-heartbeat"><img src="https://agentmods.dev/badge/skills/forgeyclap/claude-forge/forge-heartbeat.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 709 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.00041 $0.00709
Opus 5 $0.00020 $0.00354
Sonnet 5 $0.00008 $0.00142
Haiku 4.5 $0.00004 $0.00071

Measured 8d ago against content hash 83a25cb499b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

forge-heartbeat 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 8d 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.

.claude/skills/forge-heartbeat/SKILL.md · 54 lines

How it starts

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

forge-heartbeat — stall/silence watchdog

Flags a dispatched Boss that went quiet mid-work — crashed, stuck in a loop, or waiting on something nobody is watching. Read-only: it never touches a live agent, it only reads the real events already logged.

When to use

  • During a multi-agent /forge run — periodically, or whenever the run "feels quiet" (no new dashboard activity for a while).
  • When the owner asks "is anything stuck?" or "did that agent die?"
  • As a future forge-doctor check — same read-only, evidence-only pattern as forge-doctor/forge-verify; can be wired in later without changing this tool's contract.

How to run

node .claude/forge-bin/forge-heartbeat.cjs check <run_id>
  # print stalled agents (or "no stalled agents"), exit 0 clean / 1 stalled

node .claude/forge-bin/forge-heartbeat.cjs check <run_id> --window 15   # override the silence window (minutes)
node .claude/forge-bin/forge-heartbeat.cjs check <run_id> --root <projectRoot>
node .claude/forge-bin/forge-heartbeat.cjs check <run_id> --json        # full machine-readable result

What STALLED means

  • An agent is tracked once it has logged agent_started or subagent_started.
  • An agent is finished — and never flagged, no matter how old its last event is — once it has logged agent_completed, subagent_completed, agent_failed, or subagent_failed anywhere in its history. Silence after a real completion/failure is expected, not a stall.
  • An unfinished, tracked agent is STALLED when it has been silent for longer than the window (default 10 minutes) since its last real event.
  • Within stalled agents, NEVER PROGRESSED is a stronger flag: the agent's start event is also its only event — it never logged a single progress/output event before going quiet.
  • Events with no resolvable timestamp are never treated as "just happened" or invented a fake time for — they're tracked but excluded from the last-seen calculation, so a stall is never hidden or invented by a missing timestamp.

Read the full file on GitHub · 54 lines

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. 8d ago First seen · 54 lines · 41 tokens per session scan A 83a25cb499b7

Subscribe to this mod's changes

forge-heartbeat is a skill published in the GitHub repository ForgeyClap/claude-forge (2 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 709 once invoked, about $0.0002 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-31.