forge-heartbeat

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/.

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>.

Good fit Use it to check a run for stalled agents, adjust the silence window, or receive machine-readable stall results.

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/ForgeyClap/claude-forge
agentmods
npx agentmods add skills/forgeyclap/claude-forge/forge-heartbeat

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/github.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/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 forge-heartbeat

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00016 $0.00284
Sonnet 5.5 $0.00008 $0.00142
Haiku 4.5 $0.00004 $0.00071

Measured 3mo ago against content hash 83a25cb499b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 2mo ago), licensed MIT. It adds 41 tokens to every session and 709 once invoked, about $0.0002 per session on Opus 5.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.

Related

forge-heartbeat compared with skills from other repositories

forge-heartbeat next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
forge-heartbeatForgeyClap/claude-forgeSkill22mo agoMITA41Claude Code
returns-policystrands-agents/samplesSkill951todayApache-2.0A36Claude Code
technical-troubleshootingstrands-agents/samplesSkill951todayApache-2.0A38Claude Code
trailhead-viewToRvaLDz/trailheadSkill37yesterdayMITA116Claude Code
reviewhandarbeit/fabrikSkill252d agoApache-2.0A35Claude Code
implement-commenthandarbeit/fabrikSkill252d agoApache-2.0A38Claude Code
specifyhandarbeit/fabrikSkill252d agoApache-2.0A41Claude Code