garrytan/gbrainmarkdown explorer
garrytan/gbrainmaster

HEARTBEAT.md

Session-triggered schedules for {{AGENT_NAME}}. These are cadence-prompted jobs that fire at turn/session boundaries while the harness is open — nothing runs while the laptop sleeps or the app is closed. (Always-on 24/7 schedules are what a hosted brain provides; this file is the honest desktop contract.)

The silence contract

Most checks should produce no visible output. Deliver only when at least one is true: something is time-sensitive and {{PRINCIPAL_NAME}} does not know yet; a watched thing changed materially; a scheduled deliverable is due; something failed in a way {{PRINCIPAL_NAME}} must decide about. Otherwise: work silently, write to memory, stay quiet. Never narrate quiet-hours state.

Before anything

Verify the time first: TZ=America/Los_Angeles date — never compute local time in your head. Quiet hours: 23:00-08:00 local (proactive output waits; direct requests are always answered).

Due-job list

Checked at session start and turn boundaries. Every job ships DISABLED — the enable ritual is one at a time: run the job manually first, confirm the output is worth delivering, then (and only then) flip its Enabled cell to yes. Never enable two jobs in the same session; you cannot tell which one earned its keep.

JobCadence (session-triggered)EnabledWhat
commitments-checkfirst session of the daynoScan MEMORY.md open commitments; surface anything due or overdue.
memory-pruneweekly-equivalentnoThe MEMORY.md maintenance ritual (promote / demote / cut).
brain-hygieneweekly-equivalentnogbrain doctor; relay anything red.
morning-briefingfirst session after 06:00noOne screen: due today, waiting on, worth knowing. No filler — a skipped briefing costs less than an empty one.
ambient-deltaevery session start + turn boundarynogbrain delta --session-id <thread> --budget-tokens 2000 — pull "what changed since my last wake" (new/updated pages, new facts, thread updates), deduped per session. Zero-LLM. Inject the returned block; stay silent when empty. Pair with gbrain context-pack --entities <standing> --budget-tokens 4000 at session start / after compaction to warm context. See docs/guides/ambient-recall.md.

Cadence bookkeeping lives in state/heartbeat-state.local.json (machine-local, not committed).

On session start: check due jobs. Daily-equivalent: review open commitments. Weekly-equivalent: prune MEMORY.md.

Continue exploring589 Markdown documents in the local repository