Unofficial VSCode extension — Automatically restore Claude Code CLI sessions after restart
Features
Status bar shows live and idle session counts for the current project
QuickPick session manager: start new sessions, resume interrupted or completed sessions
Automatically restores interrupted sessions when VSCode restarts
Requirements
Claude Code CLI must be installed and available on your PATH
Settings
Setting
Default
Description
claudeResurrect.autoRestore
true
Automatically restore interrupted sessions on startup
claudeResurrect.autoRestoreMaxAge
24
Maximum age (hours) of sessions to auto-restore
claudeResurrect.claudePath
"claude"
Path to the Claude CLI executable
Limitations
Only sessions started through this extension are fully tracked. The status bar "live" count and auto-restore only cover sessions launched via the QuickPick menu or auto-restore. Sessions started manually in a terminal (e.g., claude or claude --resume) are not tracked as "live" — they may appear as idle in the session list even while running.
This extension does not manage session data. It only reads what Claude CLI creates. Sessions with no conversation (e.g., opened and immediately closed) are excluded from the session list, but cannot be deleted by this extension.
Read-only by design. Deleting or modifying ~/.claude/ data is out of scope. Use Claude CLI directly to manage session history.
Data Access
This extension reads the following from ~/.claude/:
history.jsonl — session history (session ID, project path, first prompt, timestamp)
Directory listing of projects/<slug>/ (file names only, to locate session files)
File size of session JSONL files via stat() (content is not read)
This extension does NOT:
Write to ~/.claude/ (read-only access)
Read authentication tokens or API keys
Parse full conversation history
Send any data over the network
Collect telemetry
How we enforce this
All ~/.claude/ access is isolated in a single read-only module (claude-dir.ts)
CI checks block PRs that introduce write APIs or network calls outside allowed modules
The extension is open source — you can audit the code
日本語
非公式 VSCode 拡張 — Claude Code CLI のセッションを VSCode 再起動後に自動復元