/install claude-session
Session
Integrated skill for managing Claude Code sessions.
Topics
| Topic | Description | Guide |
|---|---|---|
| analyze | Session statistics, tool usage patterns, optimization insights | analyze.md |
| classify | Classify project sessions (delete/keep/extract) | classify.md |
| split | Analyze topic boundaries and recommend session split points | split.md |
| compress | AI-compress sessions via UTCP/code-mode | compress.md |
| destroy | Delete current session and restart IDE | destroy.md |
| id | Look up current session ID (UUID) | id.md |
| import | Pipeline session data to other agents/skills | import.md |
| migrate | Move sessions between projects (main repo → worktree) | migrate.md |
| move | Move specific sessions by ID to another project + update cwd | move.md |
| purge | Delete dead sessions (hook-only, no assistant response) permanently | purge.md |
| rename | Assign and look up custom title for session | rename.md |
| repair | Restore session structure (chain, tool_result, UUID) | repair.md |
| summarize | View and summarize conversation content from other sessions | summarize.md |
| url | Generate claude-sessions web URL from session ID | url.md |
Quick Reference
Summarize (View/Summarize Sessions)
/session summarize # select project/session then summarize
/session summarize \x3Csession_id> # summarize a specific session
Import (Pipeline Delivery)
/session import --hookify # deliver to hookify
/session import --analyze # analysis pipeline
/session import --to \x3Cagent> # deliver to specific agent
Analyze (Session Analysis)
/session analyze # analyze current session
/session analyze \x3Csession_id> # analyze specific session
/session analyze --sync # sync to Serena memory
Split (Topic Split Recommendation)
/session split # Recommend split for current conversation
/session split \x3Csession_id> # Recommend split for specific session
/session split --execute # Execute recommendation immediately
Classify (Session Classification)
/session classify # classify current project sessions
/session classify --depth=medium # required when classifying sessions scheduled for split
/session classify --execute # execute immediately after classification
⚠️ --depth=medium or higher required before split — fast only reads the last 3 messages, so it may miss different topics at the end of the session.
Move (Move Specific Sessions by ID)
/session move \x3Csession_id> [session_id2 ...] \x3Ctarget_project_path>
Move explicit session IDs to another project directory and update cwd references. Unlike migrate, no classification — just direct move.
Migrate (Move Sessions Between Projects)
/session migrate # classify + move code sessions to worktree
/session migrate --dry-run # preview only
/session migrate \x3Csource> \x3Ctarget> # specify source/target projects
Classifies sessions as CODE/INFRA/TINY/READ, then moves CODE sessions to worktree project and optionally deletes TINY sessions.
Compress (Session Compression)
/session compress \x3Csession_id> # compress specific session
/session compress # batch compress sessions containing "hookEvent":"Stop"
Register claude-sessions-mcp with UTCP, then call via code-mode.
ID (Session ID Lookup + Keyword Search)
/session id # look up current session ID
/session id Makefile remove # search sessions by keyword
/session id --today ansible/Makefile # search only today's sessions by file path
Current session ID: output unique marker → search JSONL with find-session-id.sh → return UUID
Keyword search: grep project JSONL → sort by modification time descending → return most recent matching session
Destroy (Delete Session)
scripts/destroy-session.sh
Purge (Dead Session Cleanup)
/session purge # dry-run: list dead sessions in current project
/session purge \x3Cproject_name> # dry-run: specific project
/session purge --all # dry-run: all projects
Dead session = 10 lines or fewer + no "type":"assistant" response.
Script: scripts/purge-dead-sessions.sh \x3Cproject_name> [--delete]
Repair (Session Recovery)
/session repair # select session, then validate and repair
/session repair \x3Csession_id> # repair specific session
/session repair --dry-run # preview only
/session repair --check-only # validate only (no repair)
Repair targets:
- Broken chain (missing parentUuid)
- Orphan tool_result (no matching tool_use)
- Duplicate UUIDs
Rename (Naming a Session)
# Assign a name to a specific session
bash scripts/rename-session.sh \x3Csession_id> "name"
# Assign a name to the latest session in the current project
bash scripts/rename-session.sh "name"
# Check current title
bash scripts/rename-session.sh --show \x3Csession_id>
# List named sessions in current project
bash scripts/rename-session.sh --list
Project Name Conversion Rules
| Actual Path | Project Name |
|---|---|
/Users/es6kr/works/.vscode |
-Users-david-works--vscode |
/Users/es6kr/Sync/AI |
-Users-david-Sync-AI |
Rule: / → -, remove leading / from path
Requirements
- claude-sessions-mcp MCP server required
- Serena MCP server (when using analyze --sync)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install claude-session - After installation, invoke the skill by name or use
/claude-session - Provide required inputs per the skill's parameter spec and get structured output
What is Claude Session?
Manage Claude Code sessions: lookup ID, import, summarize, analyze, classify, compress, delete, migrate, repair, rename, and generate web URLs. It is an AI Agent Skill for Claude Code / OpenClaw, with 180 downloads so far.
How do I install Claude Session?
Run "/install claude-session" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Claude Session free?
Yes, Claude Session is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Claude Session support?
Claude Session is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Claude Session?
It is built and maintained by es6kr (@drumrobot); the current version is v0.1.3.