From myco
Runs Myco session-end ritual: assimilates raw notes to integrated and runs immune --fix to auto-correct drift. Full mode for PreCompact; quick mode for SessionEnd (~1.5s budget).
npx claudepluginhub battam1111/myco --plugin mycoThis skill is limited to using the following tools:
Myco's close-of-session ritual, per L1 rule R2. Every session ends
Closes Claude Code work sessions via /session-close: compiles status/blockers/lessons/changed files, stops monitors/heartbeats, reflects, archives reports, prepares handoff for resumption. Auto-activates on 'I'm done' etc.
Documents Claude Code session context via session-documenter skill before /clear. Invoke on 'end session', 'end', 'wrap up' to preserve tasks, decisions, files for session-start.
Manages long-session context to prevent drift and degradation via proactive summarization, branch isolation, and /clear decisions. Invoke at phase boundaries, heavy context, or slipping accuracy.
Share bugs, ideas, or general feedback.
Myco's close-of-session ritual, per L1 rule R2. Every session ends here so nothing the agent learned is lost to compaction or eviction.
Directory name note: this skill lives under skills/session-end/
because the v0.5.2 → v0.5.3 rename kept session-end as a
backward-compatible CLI alias (and the skill directory name is what
shows up as the slash-command). The canonical verb is myco senesce;
invoking /myco:session-end calls senesce under the hood via the
alias resolver.
assimilate + immune --fix should run as a single
atomic act.# Full mode — assimilate + immune --fix. Bound to PreCompact.
python -m myco --json --project-dir "$CLAUDE_PROJECT_DIR" senesce
# Quick mode (v0.5.7+) — assimilate only. Bound to SessionEnd.
python -m myco --json --project-dir "$CLAUDE_PROJECT_DIR" senesce --quick
The v0.5.2 alias session-end still resolves — both
python -m myco session-end and python -m myco senesce invoke the
same handler.
senesce is a meta-verb. In full mode it composes two calls:
assimilate (was reflect in v0.5.2) — promote raw notes to
integrated/ where they belong.immune --fix — auto-correct the lint dimensions that support
safe automatic repair.Both run in full mode; the payload aggregates both results and
carries mode: "full". The exit code is the worse of the two —
non-zero does not abort compaction but surfaces as a signal at the
next session's hunger call.
In quick mode (--quick) only step 1 runs; step 2 is reported
as immune: {skipped: true, reason: <str>} in the payload and
mode: "quick". The SessionEnd hook uses quick mode because Claude
Code kills the hook at ~1.5 s; full mode's immune scan can exceed
that budget. The next SessionStart hunger or PreCompact senesce
picks up any findings quick mode would have surfaced.
payload["mode"]. If "quick", note that immune did not
run; mention it to the user so they know a deferred lint pass is
pending at the next boot.payload["reflect"] always present;
payload["immune"] is either the full lint payload or the
skipped: true marker).reflect promoted notes, the agent should summarize what went
into integrated tier in one sentence.hunger will see the residual
state and surface it again./myco:hunger — the matched ritual at session start.assimilate, immune — the underlying verbs, also available
individually as MCP tools or CLI commands.