From myco
Runs Myco's session-end ritual via `senesce` to assimilate raw notes to integrated and auto-fix drift with `immune --fix`. Full mode before compaction; quick mode for fast SessionEnd hooks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/myco:session-endThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Myco's close-of-session ritual, per L1 rule R2. Every session ends
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.npx claudepluginhub battam1111/myco --plugin mycoAutomates session wrap-up by running parallel subagents to detect document updates, patterns, learning points, and follow-ups, then deduplicates and presents options. Trigger: /session-wrap.
Manages long-session context to prevent drift and degradation via proactive summarization, branch isolation, and compaction strategies. Invoke when context feels heavy, accuracy slips, or after a major phase boundary.
Closes out a session cleanly by reviewing work, updating project tracking files, committing changes, and capturing session knowledge. Use when a task is complete with no passoff needed.