fireworks-sessions-saver
Never lose your coding session context again. Auto-persists and restores session state for Claude Code, with manual Codex flows available today.
What It Does
Network timeouts, crashes, and accidental window closures kill your session context. fireworks-sessions-saver automatically tracks what you're working on and makes it instantly recoverable.
- Auto-tracking — heartbeat hook updates
last_activeafter every file write or command - Rich checkpoints — capture task, decisions, files, and open questions on demand
- One-keystroke restore — recover full context in a new session in seconds
- Multi-project dashboard — see all active sessions across directories
- Checkpoint diff — compare what changed between saves
Installation
Quick Install
In Claude Code or Codex, say:
"Help me install fireworks-sessions-saver from https://github.com/yizhiyanhua-ai/fireworks-sessions-saver"
Or run:
curl -fsSL https://raw.githubusercontent.com/yizhiyanhua-ai/fireworks-sessions-saver/main/install.sh | bash
npx skills Install
npx skills add yizhiyanhua-ai/fireworks-sessions-saver -g
How It Works
In Claude Code, a single PostToolUse hook fires heartbeat.py asynchronously after every Write, Edit, or Bash call — updating last_active and tracking modified files. In Codex, use the same checkpoint/restore scripts explicitly because there is no hook system yet.
| Component | Purpose |
|---|---|
heartbeat.py |
Lightweight async hook — tracks activity after tool calls |
save_session.py |
Create rich checkpoints (init / checkpoint / cleanup) |
list_sessions.py |
Scan for recoverable sessions in current directory |
restore_session.py |
Print structured context summary from archive |
dashboard.py |
View all active sessions across directories |
diff_session.py |
Compare changes between checkpoints |
Storage
~/.claude/sessions/
active_{workdir_hash}.json ← current session (rolling 10 checkpoints)
archive_{workdir_hash}_{ts}.json ← archived (restored or expired after 7 days)
Only file paths are stored — never file contents.
Requirements
- Python 3.9+
- Claude Code CLI for auto-tracking
- Codex CLI for manual checkpoint / restore flows
- macOS / Linux
More Information
- Full Documentation
- 中文文档
- Report Bug