Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By stefan-jansenv1.5.0MITIn 1 marketplace
Keeps a written record of each Claude Code session by saving the compaction summary to dated files under .workspace/transitions/. Hooks run automatically on every compaction, and it says the directory can be relocated with CLAUDE_TRANSITIONS_DIR.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Purpose: Session boundary management and context handoffs
This plugin handles transitions between Claude Code sessions, managing context preservation and continuation.
Beyond just session continuity, transitions create an automatic project history:
Over time, transitions become more valuable than commit history—they capture the thinking behind changes, not just the changes themselves.
Storage location: Hooks write to .workspace/transitions/ (shared workspace for Claude Code and Codex). Run /setup first to scaffold .workspace/.
Set CLAUDE_TRANSITIONS_DIR to put them somewhere else - absolute, or relative
to the project root. Same rule as the memory plugin's CLAUDE_MEMORY_DIR, and
set the same way, in the env block of the project's .claude/settings.json:
{"env": {"CLAUDE_TRANSITIONS_DIR": "transitions"}}
Relocating the directory without setting the variable does not work: the hooks
recreate .workspace/transitions/ after every move.
Most projects should leave it unset, including a repo that is an agent
workspace and has moved its memory and work to the root. Transitions are
machine-written session logs, not curated content - one directory per day,
several files per day, never edited by hand. .workspace/ is where that belongs
even when nothing else is left there. Set the variable when a project already
has a transitions/ of its own, or when the logs must sit beside something that
reads them.
bin/test_transitions_dir.sh runs the hooks against throwaway roots and asserts
where the files land.
The plugin registers its own compaction hooks via hooks/hooks.json, so
enabling transition@local (or the marketplace equivalent) is sufficient — no
per-project wiring in settings.json. Both resolve their target from $CLAUDE_PROJECT_DIR (the top-level project dir Claude
Code always sets for hooks), which is why they are safe to register at the plugin
level.
PreCompact (auto|manual) → hooks/pre-compact.sh — emits custom
instructions telling Claude what to preserve in the compaction summary
(current task, decisions, active files, blockers). Its stdout reaches the
summarizer (verified 2026-10-23); about 250 tokens per compaction.PostCompact (auto|manual) → hooks/post-compact.sh — writes the
compaction summary, minus the <analysis> scratch block, to a timestamped
<transitions>/YYYY-MM-DD/HHMMSS.md (one file per event - the same convention
/handoff uses). It copies the summary Claude Code already generated; there
is no second model call. The file outlives Claude's transcript retention
(cleanupPeriodDays, default 30) and is readable by Codex and other sessions.The SessionEnd marker hook and the stale-/memory-gc nudge were removed on
2026-10-23: nothing read the marker, and the memory plugin's SessionStart hook
already reports the nudge.
hooks/init-transition.sh is retained but unregistered. The old
UserPromptSubmit hourly-stub hook was removed on 2026-08-05: it created an
empty HH.md per hour that nothing filled in, and it resolved its destination
from the shell cwd, so a command run inside a nested repository scattered a
stray .workspace/ there. Do not recreate a per-hour auto-stub.
Automatic capture covers compaction. On the same host, claude --continue /
--resume and codex resume restore a session. For a Claude↔Codex host swap,
or a deliberate /clear that must start from curated state, use the
workflow plugin's /handoff; /continue resumes from it on either host.
Session Transitions (this plugin):
Persistent Memory (memory plugin):
Clear separation: Transitions handle session boundaries, Memory handles knowledge persistence.
Typical flow:
autoCompactWindow, 300K in the settings
template) compacts; this plugin shapes and copies the summary. No action./handoff on one host, /continue on the other..workspace/transitions/ # shared with Codex
├── 2026-05-08/
│ ├── 143002.md # auto-capture: a compaction summary
│ ├── 171530.md # manual /handoff at 5:15:30 PM
│ └── ...
├── 2026-05-09/
│ └── ...
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub stefan-jansen/coding-agent-plugins --plugin transitionPlugins from other owners that cover similar ground