From sanctum
Manages Claude Code sessions using /rename, /resume, and CLI commands for naming, checkpointing, and resuming workflows in debugging, feature development, PR reviews, and investigations.
npx claudepluginhub athola/claude-night-market --plugin sanctumThis skill uses the workspace's default tool permissions.
- Managing session checkpoints and state preservation
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Claude Code supports named sessions for better workflow organization. Use this skill to manage complex, long-running work across multiple sessions.
| Command | Description |
|---|---|
/rename | Name the current session (auto-generates name if no argument given, 2.1.41+) |
/resume | Resume a previous session (REPL) |
claude --resume <name> | Resume from terminal |
Name debug sessions for easy resumption:
# Start debugging
/rename debugging-auth-issue
# ... work on the issue ...
# If you need to pause, session is auto-saved
# Resume later:
claude --resume debugging-auth-issue
Create checkpoints during long feature work:
# After completing milestone 1
/rename feature-x-milestone-1
# Continue in new session
# Reference old session if needed
For complex PR reviews that span multiple sittings:
# Start review
/rename pr-review-123
# Take breaks without losing context
# Resume:
claude --resume pr-review-123
Sessions are automatically linked to PRs when created via gh pr create. Resume PR-specific sessions later:
# Resume session for a specific PR
claude --from-pr 156
claude --from-pr https://github.com/org/repo/pull/156
# Workflow: review → pause → resume with full context
/rename pr-review-156
# ... review work ...
# Later:
claude --from-pr 156
When investigating issues that may require research:
# Start investigation
/rename investigate-memory-leak
# Pause to gather more info externally
# Resume with full context:
claude --resume investigate-memory-leak
The /resume screen provides:
/keybindings):
Claude Code now shows a resume hint when you exit, displaying the command to continue your conversation. This makes session resumption more discoverable — users no longer need to know about --resume beforehand.
Use descriptive, hyphenated names:
| Pattern | Example | Use Case |
|---|---|---|
debugging-<issue> | debugging-auth-401 | Bug investigation |
feature-<name>-<milestone> | feature-search-v2 | Feature development |
pr-review-<number> | pr-review-156 | PR reviews |
investigate-<topic> | investigate-perf | Research |
refactor-<area> | refactor-api-layer | Refactoring work |
Name sessions when:
Unnamed sessions are eventually garbage collected. Named sessions persist longer. Periodically clean up old named sessions you no longer need.
Combine session management with other Sanctum skills:
Skill(sanctum:git-workspace-review) to capture context/rename <descriptive-name>claude --resume <name>If a named session isn't appearing in /resume:
/resume screen to browse available sessionsIf you see duplicate session entries when resuming in VS Code:
If context seems incomplete or resume is slow:
--resume via stat-based session loading with progressive enrichment — especially impactful for users with many sessions. Also fixes hangs when resuming sessions with corrupted transcript files (parentUuid cycles).once: true hooks — saved_hook_context loading is now optimized/catchup to refresh git state/debug (Claude Code 2.1.30+) for session troubleshooting diagnosticsSkill(sanctum:git-workspace-review) if neededPreviously, disconnecting from a terminal on macOS could leave orphaned Claude Code processes running. This is now fixed in 2.1.46+. If you encounter stale CC processes on older versions, manually check and kill them:
# Find orphaned claude processes
ps aux | grep -i claude | grep -v grep
Claude now automatically records and recalls memories as it works. Session summaries, key results, and work logs are captured implicitly and recalled in future sessions. This provides passive cross-session continuity without manual checkpoint management.
--resume now re-uses the --agent value from the previous conversation by default. Agent-specific workflows that are resumed will continue with the same agent configuration without needing to re-specify it.
# Start with a specific agent
claude --agent my-agent
# Resume later — my-agent is automatically used
claude --resume
/catchup - Refresh context from git changes/clear - Start fresh sessionSkill(sanctum:git-workspace-review) - Capture repo context