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.
git clone --depth 1 https://github.com/ForgeyClap/claude-forgenpx agentmods add skills/forgeyclap/claude-forge/forge-heartbeatWrote 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.
[](https://agentmods.dev/skills/forgeyclap/claude-forge/forge-heartbeat)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
/forgerun — 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_startedorsubagent_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, orsubagent_failedanywhere 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
timestampare 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.
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.
- 3mo ago First seen · 54 lines · 41 tokens per session scan A 83a25cb499b7
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.
forge-heartbeat compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| forge-heartbeatForgeyClap/claude-forge | Skill | 2 | 2mo ago | MIT | A | 41 | Claude Code |
| returns-policystrands-agents/samples | Skill | 951 | today | Apache-2.0 | A | 36 | Claude Code |
| technical-troubleshootingstrands-agents/samples | Skill | 951 | today | Apache-2.0 | A | 38 | Claude Code |
| trailhead-viewToRvaLDz/trailhead | Skill | 37 | yesterday | MIT | A | 116 | Claude Code |
| reviewhandarbeit/fabrik | Skill | 25 | 2d ago | Apache-2.0 | A | 35 | Claude Code |
| implement-commenthandarbeit/fabrik | Skill | 25 | 2d ago | Apache-2.0 | A | 38 | Claude Code |
| specifyhandarbeit/fabrik | Skill | 25 | 2d ago | Apache-2.0 | A | 41 | Claude Code |