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/hdk10/orgkitnpx agentmods add commands/hdk10/orgkit/orgkit-cadenceWrote 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/commands/hdk10/orgkit/orgkit-cadence)<a href="https://agentmods.dev/commands/hdk10/orgkit/orgkit-cadence"><img src="https://agentmods.dev/badge/commands/hdk10/orgkit/orgkit-cadence/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/commands/hdk10/orgkit/orgkit-cadence"><img src="https://agentmods.dev/badge/commands/hdk10/orgkit/orgkit-cadence.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.00037 | $0.01254 |
| Opus 5.5 | $0.00015 | $0.00502 |
| Sonnet 5.5 | $0.00007 | $0.00251 |
| Haiku 4.5 | $0.00004 | $0.00125 |
Grade A, and why
orgkit-cadence 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 1mo 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 — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are helping the user choose a capture cadence — how often, and at what time, an automated batch /capture should sweep their roles — grounded in their actual Claude Code usage, not a guess.
Capture has two paths and this command tunes the second:
- Live capture (always on) — the model writes lessons to
_pending.mdas it works. Primary. - Batch capture (what this configures) — a periodic sweep that mines any session the live path missed, across all roles with pending activity.
Steps
-
Run the analysis (read-only, writes nothing, no API calls):
python3 .org/cadence.pyShow the user the report: their core hours, busiest weekday, the lightest in-range slot, per-role activity, and the recommended cadence + slot.
-
Ask the one thing the data can't tell you — plan + headroom. The analysis sees Claude activity but not your plan tier or token limits (those aren't readable locally). Ask:
- Which plan? (Pro / Max / API pay-as-you-go)
- Do you regularly hit usage limits, or is there headroom?
Use the answer to sanity-check the slot: if headroom is tight, lean toward a slot well outside their busiest window so batch capture never competes with active work.
-
Present the recommendation and the trade-off honestly. Default mechanism is cron, deliberately (see below). State the recommended cadence (e.g. "every 2 days") and slot from the analysis.
The slot is chosen by awake-probability (how many distinct days the laptop was on in that hour), NOT token volume — a cron only fires if the machine is on. If even the best hour is awake <60% of days (common for people without a true idle window), do not pick one slot: spread several
--slot-hoursacross the hours they're most reliably on (e.g. a couple midday + a couple evening). The once-per-cadence guard fires only the first attempt that catches the laptop awake; every other slot no-ops for free. Surface the per-hour awake% so the user understands firing odds. -
Explain cron vs launchd — and why cron is the default here:
- launchd runs a missed job as a catch-up at next wake. That's exactly the wrong moment: you wake with a full day and limited tokens, and capture fires across every role before you start. Rejected for that reason.
- cron only fires if the machine is awake at the scheduled minute; if asleep, it simply skips — no wake-time ambush. The cost is a missed cycle when you're asleep at that time. We mitigate that with multiple attempts across the quiet window plus an idempotency guard: capture runs at most once per cadence period (a
.last_capture_runmarker short-circuits the rest), so extra cron entries are free retries that catch the laptop whenever it happens to be awake — never repeated token spend, never on wake.
-
Offer the opt-in install, and state what they lose by declining:
Without scheduled batch capture you rely only on live capture. Anything the model didn't write live — it didn't comply, or under-valued a session — is recoverable only by manually running
/capture. If you never do, those lessons rot when the transcript is cleaned (~30 days). Batch is the safety net.If they opt in, install the cron with the recommended (or user-adjusted) cadence + slot:
python3 .org/install_cron.py --cron --cadence-days <N> --slot-hours <h1,h2,...>The installer:
- resolves absolute
claude+python3paths (cron has a stripped PATH), - uses the user's subscription token only —
CLAUDE_CODE_OAUTH_TOKENfromclaude setup-token, placed in a 0600.org/.capture_env. Never an API key (that bills a separate pay-as-you-go account); the script hard-refuses ifANTHROPIC_API_KEYis set, - runs an auth probe (
claude -ponce) and refuses to install if headless auth fails, telling the user how to fix it, - generates a batch script that, per run: checks the
.last_capture_runguard (exits free if within cadence), then for each role with un-captured pending activity runs capture on Sonnet (--model claude-sonnet-4-6, never Opus), sequentially, logging to a file, - touches
.last_capture_runonly on success.
- resolves absolute
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.
- 1mo ago First seen · 57 lines · 37 tokens per session scan A acfc584365d7
orgkit-cadence is a command published in the GitHub repository hdk10/orgkit (2 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 1,254 once invoked, about $0.0001 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.
Other commands, from other repositories
security-scan
Run AgentShield against agent, hook, MCP, permission, and secret surfaces.
instinct-import
Import instincts from external sources.
learn
Extract patterns and learnings from current session.
quality-gate
Run the ECC quality pipeline on demand for a file or project scope.
export-closedloop-learnings
Exports pending ClosedLoop learnings to global location with deduplication.
analyze
Analyze Claude Code transcripts to surface subagent behavior and improvement opportunities.