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.
npx agentmods add commands/yeisonrestrepo/code-conductor/cc-checkpointgit clone --depth 1 https://github.com/yeisonrestrepo/code-conductorWhat 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 | $0.00014 | $0.01294 |
| Opus 5 | $0.00007 | $0.00647 |
| Sonnet 5 | $0.00003 | $0.00259 |
| Haiku 4.5 | $0.00001 | $0.00129 |
Grade A, and why
cc-checkpoint 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 2d 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 — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Read the conversation history from the current session.
Identify and extract:
- Decisions made — architectural choices, approach selections, rejected alternatives
- Conventions established — naming patterns, file organization, code style choices
- Technical debt — shortcuts taken, known limitations, deferred work
- Workarounds — non-obvious solutions and why they were needed
Update .claude/memory/project.md (append only, never delete):
- Add a timestamped section:
## Checkpoint [YYYY-MM-DD HH:MM] - List decisions, conventions, and debt from this session
Update .claude/memory/personal.md (local only):
- Add any developer preferences observed this session
Report:
- Timestamp of this checkpoint
- What was saved to project.md (2–3 bullets)
- What was saved to personal.md (1–2 bullets)
Suggest running /cc-checkpoint automatically: before /compact, after completing a feature, after any key architectural decision.
Fail-open DB tail (best-effort, synchronous)
Run only after the project.md append succeeded (authoritative). Any failure here is non-fatal — never block or revert the project.md update.
-
Ensure
.conductor/exists (mkdir -p .conductor, best-effort); if that fails, skip the tail. -
Derive
c— the full-40git rev-parse HEAD(lowercased,/^[0-9a-f]{7,40}$/,"0000000"fallback on non-zero/timeout/git-absent/format-mismatch; shelltimeoutonly if the binary exists). -
Resolve the id:
id="$(node .claude/scripts/session-id.mjs 2>>.conductor/last-write.log)". -
Derive
phby carry-forward: with a bounded ~5 s outer timeout (only iftimeoutexists;conductor-db's internal 2 sbusy_timeoutbounds real contention otherwise), runnode <probe-flags> .claude/scripts/conductor-db.mjs get-session "$id"; if it prints a row whosephaseis a non-empty enum member, reuse it. On no row, empty phase, DB unavailable, or timeout, default to"impl". -
Set
prto the verbatim## Checkpoint …section body just appended toproject.md(the same in-context string) — soproject.mdand the snapshot'sprare byte-identical.pris always non-empty here, so the blob is always v2. -
Project
d/xfrom that section (best-effort): match headings/^#{2,4}[ \t]+(.+?)[ \t]*$/; normalize the heading text by removing all*,_,`then.trim()+ lowercase; a heading containingdecisionorconventionopens adblock, one containingdebt,workaround, orlimitationopens anxblock. Thedset is tested first and wins (a heading matching both opens onedblock). The parent## Checkpoint …heading matches no keyword, so it opens no block and closes any open one. Within a block, bullet lines/^[ \t]*[-*][ \t]+(\S.*?)[ \t]*$/contribute their trimmed capture (line-based; continuation lines ignored — the full text survives inpr). If unstructured,d/xmay be empty (valid). -
Defaults:
n=[],f=[],s= the active spec stem or"none". -
Build the v2 blob: pipe
{ph, c, s, n, f, d, x, pr}on stdin tonode .claude/scripts/snap-build.mjs; capture its stdout. If it exits non-zero, skip the DB write (fail-open). -
Write the rows (both argv double-quoted; blob on stdin; all output to the log):
node <probe-flags> .claude/scripts/conductor-db.mjs session "$id" "$ph" "$s" "$c" >> .conductor/last-write.log 2>&1printf '%s' "$snap_json" | node <probe-flags> .claude/scripts/conductor-db.mjs snapshot "$c" >> .conductor/last-write.log 2>&1
All DB-tail redirects use append mode (>>) so concurrent runs never truncate a preceding trace. Cross-platform note: the forms above are Unix-canonical; on Windows/PowerShell realize the same semantics — set $OutputEncoding = [System.Text.UTF8Encoding]::new($false) before piping, capture $id = node …, pipe $snap_json | node … snapshot "$c", append the log via … 2>&1 | Out-File -Append -Encoding utf8 .conductor/last-write.log (not *>>), and New-Item -ItemType Directory -Force .conductor.
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.
- 2d ago First seen · 51 lines · 14 tokens per session scan A b5f792b1f882
cc-checkpoint is a command published in the GitHub repository yeisonrestrepo/code-conductor (6 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 1,294 once invoked, about $0.0001 per session on Opus 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
edit
Edit a stash item — inline replacement, or open in editor (preserves timestamp).
pop
Pop an item off the stash and continue working on it in the current session.
show
Show a single stash item by number (for reading or copying its text).
drop
Drop a stash item without working on it.
list
Show all items currently in the stash.
log
Show history of popped and dropped stash items.