heartbeat

heartbeat is a command for Codex from jackofall1232/l00prite. It costs 0 tokens per session (808 once invoked), scanned A, original, MIT.

A status-check command for a project managed by l00prite, a file-based system that tracks plans, progress, events, and execution state.

In plain words
What is it for?
Use it to inspect the project blueprint, task ledger, run state, locks, pending events, failed CI results, review requests, and iteration limits.
Why use it?
It checks whether work is complete, blocked, awaiting human review, or affected by pending events without implementing features.

Command for Codex

Written for Codex: installed under .codex/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jackofall1232/l00prite/heartbeat
Clone the repo
git clone --depth 1 https://github.com/jackofall1232/l00prite

Made for: Codex.

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 heartbeat

README.md
[![agentmods](https://agentmods.dev/badge/commands/jackofall1232/l00prite/heartbeat.svg)](https://agentmods.dev/commands/jackofall1232/l00prite/heartbeat)
Your own site
<a href="https://agentmods.dev/commands/jackofall1232/l00prite/heartbeat"><img src="https://agentmods.dev/badge/commands/jackofall1232/l00prite/heartbeat.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 808 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00808
Opus 5 $0.00000 $0.00404
Sonnet 5 $0.00000 $0.00162
Haiku 4.5 $0.00000 $0.00081

Measured 6d ago against content hash 0bc2571cdce4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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

.codex/prompts/heartbeat.md · 73 lines

How it starts

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

Heartbeat Prompt

Path convention: every .l00prite/ path in this prompt is relative to the protocol root — the directory that contains the .l00prite/ folder. In a project scaffolded by build-loop that is the l00prite/ directory at the repo root (memory at l00prite/.l00prite/); in the l00prite source repo it is the repo root itself.

You are performing a l00prite heartbeat check. Do not implement features during this check.

Read first

  • .l00prite/blueprint.md
  • .l00prite/ledger.md
  • .l00prite/todos.md
  • .l00prite/state.json
  • .l00prite/heartbeat.json
  • .l00prite/lock.json
  • .l00prite/events/pending/
  • .l00prite/events/processing/

Checks

Determine:

  1. Is the project complete according to the blueprint and completion criteria?
  2. Is the current run blocked?
  3. Are there pending events?
  4. Are there failed CI events?
  5. Are there PR review events?
  6. Is human review required by a gate, event, or stop condition?
  7. Should the next loop process an event before normal roadmap work?
  8. Has current_iteration reached or exceeded max_iterations?
  9. Is .l00prite/lock.json currently active and not expired, and if so, who owns it?
  10. Is an execution run recorded as active (state.json.execution_active: true), and if so, is it genuinely live (its lock still active and unexpired) or stale? A stale execution flag with no live lock means the run crashed — recommend recovery per .l00prite/prompts/execute-loop.md rather than treating the project as running.
  11. Should the next loop continue, pause, or stop?

Precedence rules

When signals disagree, resolve in this order:

  1. An active, non-expired lock held by a different agent or session wins over any recommendation to continue — recommend pause until it is released or expires.
  2. state.json.blocked: true wins over heartbeat.json.should_continue.
  3. Human review gates win over normal roadmap work.
  4. Failed CI / PR review / other blocker-priority events outrank normal roadmap tasks.

Read the full file on GitHub · 73 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. 6d ago First seen · 73 lines · 0 tokens per session scan A 0bc2571cdce4

Subscribe to this mod's changes

heartbeat is a command published in the GitHub repository jackofall1232/l00prite (9 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 808 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-31.