From ctx
Reflects on Claude Code session progress at breakpoints or task shifts, generating summaries, learnings, decisions, tasks review, and persistence suggestions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ctx:ctx-reflectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Pause and reflect on this session. Review what has been
Pause and reflect on this session. Review what has been accomplished and identify context worth persisting.
/ctx-reflect
/ctx-reflect (after fixing the auth bug)
Before listing items, step back and reason through the session as a whole: what was the arc, what surprised you, what would you do differently? This framing surfaces insights that a mechanical checklist misses.
Work through each category. Skip categories with nothing to report; do not force empty sections.
After reflecting, provide:
This session implemented the cooldown mechanism for
ctx agentand updated all related docs. We discovered that$PPIDin hook context resolves to the Claude Code process PID, which is unique per session.I'd suggest persisting:
- Learning:
$PPIDin PreToolUse hooks resolves to the Claude Code PID (unique per session)ctx add learning --context "..." --lesson "..." --application "..."- Task: mark "Add cooldown to ctx agent" as done
- Decision: tombstone-based cooldown with 10m default
ctx add decision "..."Want me to persist any of these?
| What to persist | Command |
|---|---|
| Learning | ctx add learning --context "..." --lesson "..." --application "..." |
| Decision | ctx add decision "..." |
| Task completed | Edit TASKS.md directly |
| New task | ctx add task "..." |
Before presenting the reflection, verify:
npx claudepluginhub activememory/ctx --plugin ctxGuides end-of-session context persistence by silently analyzing git diffs, logs, status, and conversation to propose learnings, decisions, conventions, and tasks for ctx add.
Reflects on the current Claude Code session to produce a structured retrospective with what went well, what didn't, and actionable takeaways.
Captures session handoff details (completed, pending, learned) into .claude/handoff.md and loads it on session start. Maintains context across Claude Code sessions.