session-management
Manage Claude Code sessions with naming, checkpointing, and resume strategies
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/athola/nm-sanctum-session-managementNight Market Skill — ported from claude-night-market/sanctum. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Session Management
When To Use
- Managing session checkpoints and state preservation
- Resuming work across Claude Code sessions
When NOT To Use
- Short sessions that do not need checkpoints
- Fresh starts where no prior session context exists
Overview
Claude Code supports named sessions for better workflow organization. Use this skill to manage complex, long-running work across multiple sessions.
Available Commands
| 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 |
Workflow Patterns
1. Debugging Sessions
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
2. Feature Development Checkpoints
Create checkpoints during long feature work:
# After completing milestone 1
/rename feature-x-milestone-1
# Continue in new session
# Reference old session if needed
3. PR Review Sessions
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
4. PR-Linked Sessions (Claude Code 2.1.27+)
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
5. Investigation Sessions
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
Resume Screen Features
The /resume screen provides:
- Grouped forked sessions: See related sessions together
- Keyboard shortcuts (defaults, customizable via
/keybindings):- Preview session content
- Rename a session
- Recent sessions: Sorted by last activity
6. Resume Hint on Exit (Claude Code 2.1.31+)
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.
Best Practices
Naming Conventions
Use descriptive, hyphenated names:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-athola-nm-sanctum-session-management": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
extract
Analyze a codebase and build a knowledge base of business logic, architecture, data flow, and engineering patterns. The foundation for gauntlet challenges and agent integration
discourse
>- Scan community discussion channels (HN, Lobsters, Reddit, tech blogs) for experience reports and opinions on a topic
synthesize
>- Merge, deduplicate, rank, and format research findings from multiple channels into a coherent report. Use after research agents return their results
workflow-monitor
Detect workflow failures and inefficient patterns, then create GitHub issues for improvement via /fix-workflow
architecture-paradigm-hexagonal
Hexagonal (Ports and Adapters) architecture isolating domain logic from infrastructure