/daimon:daimon-endfrom Daimon
Writes a Daimon cognitive checkpoint from the live session state before exiting, closing the window between session end and automatic reconstruction. Use when restarting soon.
Ships in Daimon. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/daimon-end)The automatic SessionEnd hook reconstructs a checkpoint from the full transcript after exit — accurate and verbatim-capable, but it lands 4–25 min later. If you restart inside that window, the next session briefs from the previous session's stale checkpoint.
This skill closes that window: the live session writes its own checkpoint now,
from state it still holds. It is provisional and never replaces the automatic
path — the reconstruction still runs, supersedes this checkpoint, and keeps it as
a prev pointer. So it does not need to be perfect to be useful.
Close what this session moved, FIRST. Every store daimon reads back
has its own close verb, and a store you moved but never closed rides into
the next briefing as work. Walk daimon loops and daimon request inbox
and record each close before writing the checkpoint:
# a briefed loop this session closed
daimon resolve <id> --by agent --evidence "<exact contiguous transcript quote>"
# a briefed item that moved but did not close
daimon amend <id> --change progressed|blocked|changed --evidence "<quote>" --by agent
# an accepted inbound request this session satisfied (a shipped fix, a merged PR)
daimon request done <id> --evidence "<quote>" --by agent
# an accepted inbound request still in progress: tell the sender, without closing it
daimon request reply <id> --note "<what moved>" --by agent
A carried item this session re-checked against the world and found still
true is a person's daimon reverify, which needs an interactive terminal.
An agent cannot run it: say what you checked in your closing message.
Closing an accepted request needs no human: run daimon request done <id> --evidence ... the moment evidence exists, in the same turn, not at session
end. Only accept has an agent path, under a covering ruling; reject and
needs-info are a person's. On an ask nobody accepted, an agent done is only a
pending claim that lands when a person accepts.
This step is the sweep for anything missed, not the first chance to close.
(See the daimon-briefing skill's "Closing loops" section for the full
quote-discipline rule.) The CLI answers claim recorded ... pending verification at session end — that is the expected output, not a failure:
each claim is provisional, byte-checked against the transcript when the
session ends. A request done on an ask another project sent prints
no matching request in this bucket; that is the read-time join, not a
miss. Skipping this step never errors: the checkpoint validates, the
briefing renders, and the satisfied request stays [✓ accepted] until
someone notices.
Decide whether to hand off. The baton is a different instrument from the checkpoint: the checkpoint captures full state, the baton is the ONE deliberate message that leads the next briefing. If the next session should start somewhere specific — a reply to check, a play whose timing matters, a decision waiting on the human — write it now:
daimon handoff "<where the next session should start, and why>"
Skipping is a valid decision when the checkpoint alone suffices; a baton that merely restates the checkpoint is noise. But make the decision consciously — a session that captures everything and hands off nothing leaves the next session to infer its own starting point.
Emit a checkpoint JSON from your in-context knowledge of THIS session, conforming exactly to the schema:
{
"session_id": "introspection-<short-unique-id>",
"working_context": {
"active_topic": {"text": "<one line, or empty>", "trust": "inferred"},
"open_questions": [
{"text": "<unresolved loop>", "trust": "verbatim", "quote": "<exact transcript quote>", "external_state": true}
],
"recent_decisions": [
{"text": "<decision or assistant-side fix>", "trust": "inferred"}
]
},
"epistemic_snapshot": {
"strong_beliefs": [{"text": "<belief>", "trust": "inferred"}],
"uncertainties": [{"text": "<open uncertainty>", "trust": "inferred"}]
}
}
session_id above is a placeholder only. Step 5's --session flag, when
your host can supply one, replaces it with this session's real id; when it
cannot, the CLI itself replaces the placeholder with a fresh generated id
rather than ever writing the literal text above. Leave it exactly as shown
— do not spend effort inventing a better one, and never invent a
session_id here as a substitute for --session.
Every item needs text + trust. external_state: true marks items whose
state may have changed outside the AI session (a PR you'll merge, a deploy) —
these surface first in the briefing.
Volume: 5–10 items per list; prefer the ones a fresh session would get wrong.
HONESTY RULE (load-bearing). Quote only what you can reproduce exactly —
an honest quote helps the later merge with the automatic reconstruction, and
this path has no transcript to check against, so the CLI records every item
as inferred either way (#511). Anything from an earlier,
compacted/summarized part of the session you can no longer quote verbatim →
trust: "inferred", no quote. Do not fabricate quotes.
Write it via the CLI (reads JSON on stdin, validates the schema, routes to
this project + global + a per-session file, atomically, with rotation). Write
the JSON to a temp file, then check whether your host exposes the live
session's own id (Claude Code does, as the CLAUDE_CODE_SESSION_ID
environment variable) and pass it with --session when it does:
if [ -n "$CLAUDE_CODE_SESSION_ID" ]; then
daimon write-checkpoint --project "$PWD" --session "$CLAUDE_CODE_SESSION_ID" < /tmp/daimon-end.json
else
daimon write-checkpoint --project "$PWD" < /tmp/daimon-end.json
fi
--session is what lets the later SessionEnd reconstruction recognize this
checkpoint as its OWN earlier state rather than a distinct witness — without
it, this checkpoint and its own reconstruction could misread as two
independent sessions agreeing with each other (#983). On a host with no live
session id to give it, the CLI still writes the checkpoint (falling back to
its own generated id, never a placeholder), but this provisional cannot be
linked to its own reconstruction — accept that any item born here will
never accrue a corroboration badge, on that host, and move on; that is a
known and permanent limit of a host with no live session id, not a bug to
work around.
It prints wrote checkpoint: <path> (source: introspection). If it reports a
schema-validation error, fix the JSON and retry — do not store garbage.
If it exits with code 2 and says admission refused, the ledger that guards
admissions cannot be read right now; retrying changes nothing. Do not retry:
the session-end serialize will capture this session later, once the ledger
is repaired, and the next briefing will say so.
Confirm to the user with the printed checkpoint path.
Seven stores, each read by a different surface. Route by what the next session must see, and never by which command is nearest. The harness's own memory file (MEMORY.md, AGENTS.md, GEMINI.md) is not one of these: daimon never reads it, so a fact placed there is lost to every other host.
| What you hold | Where it goes | Who reads it back |
|---|---|---|
| Facts, decisions, beliefs, open loops from THIS session | the checkpoint, step 3 above (daimon write-checkpoint) | the next briefing, daimon recall, carry |
| The ONE thing the next session should do first | daimon handoff "<do X first, beware Y>" (2000 chars max) | the top of the next briefing |
| A briefed loop this session closed | daimon resolve <id> --by agent --evidence "<quote>" | the briefing withholds it once byte-checked |
| An accepted inbound request this session satisfied | daimon request done <id> --evidence "<quote>" --by agent | the sender's brief and daimon request inbox, as a claim until byte-checked |
| An accepted inbound request still in progress | daimon request reply <id> --note "<what moved>" --by agent | the sender's brief and live nudge, as an unverified agent claim |
| A request this project sent that no longer stands | daimon request withdraw <id> --reason "<why>" --by agent | the recipient's inbox as withdrawn, and a one-line live notice if it had accepted |
| A rule that must never decay (a threshold, a boundary, a standing constraint) | daimon ruling propose --subject ... --verdict ... --scope ... --evidence ... --by agent | every briefing, once a human ratifies; 7 active per project by default |
| An approach that was tried and failed | daimon refute add ... --by agent | daimon refute guard before anyone revives it |
| A briefed item that moved but did not close | `daimon amend --change progressed | blocked |
| A timeline fact worth an audit line and nothing more | daimon log --text "..." | nothing reads it back into a briefing or recall; it is an audit trail only |
If daimon handoff refuses a baton as too long, the trimmed content is not
homeless: facts go in the checkpoint, rules go to ruling propose. Do not
move it to the harness memory file.
write-checkpoint) — never
hand-write checkpoint files or duplicate store logic.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub daily-nerd/daimon --plugin daimon2 skills in this plugin
Other plugins' skills for the same job