Session Protect — AI skill for Claude Code
Protect, explore, and command your AI coding-agent sessions — Claude Code & Codex.
How to install Session Protect
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open rexovas/session-protect and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Session Protect does
Protect, explore, and command your AI coding-agent sessions — Claude Code & Codex. Deletion-safe backup, session explorer TUI, three-tier search, restore, transplant.
Alternatives in AI
- Openclaw Backup — One-click backup & restore for OpenClaw instances — workspace, credentials, skills, agent history 660 ★
- Hazmat — Containment for AI agents - user isolation, sandboxed execution, network controls, backup/rollback 167 ★
- Agf — Local-first TUI to find, search, and resume AI coding-agent sessions across Claude Code, Codex, Grok Build, Ki 148 ★
README
SessionProtect
**Protect, explore, and command your AI coding-agent sessions.**
Your conversations with coding agents are work artifacts: decisions, context, half-finished threads you'll want back. Agents treat them as disposable — sessions get pruned, compacted, or lost when a directory moves. SessionProtect is a single-binary CLI that backs them up safely, lets you browse and search everything you've ever discussed, and puts you back inside any session in one keystroke.
Supports **Claude Code** and **OpenAI Codex** side by side. Local-first: no telemetry, no accounts, and your sessions never leave your machine. The only network call is an optional once-daily release check (`update.check = false` turns it off).
*More: [feature walkthroughs](docs/DEMOS.md) · [how recovery works](docs/RECOVERY.md).*
Highlights
**Protect**
- Git-based backup of all session state, with realtime sync at every turn end via agent hooks (incremental, tens of milliseconds)
- Tracks the hand-maintained configuration around the sessions too (settings, instructions, rules, hooks, skills, the plugin list), but never generated bulk: no log databases, caches, packages or installed plugins, and no config file over 1 MB
- Deletion-safe by design: syncing never propagates deletions, and scheduled backups commit every file's final state before recording its removal — anything that ever existed is recoverable (within the retention window, when one is set)
- Optional git-crypt encryption; daily scheduled backups
- A concurrent-session guard warns when the same session is opened twice
**Explore**
- Full-screen session browser (
sp browse): navigate your projects as a tree, see every session's health at a glance — backed up, stale, unbacked, recoverable, lost — with live sessions highlighted as they run - Inspector with token u
Related Skills
Agentic Session Explorer
Explore, archive, move, and safely delete the chat sessions AI coding agents (Claude Code, Codex, Gemini, Pi,
Windows Dev Machine Migration Notes
Notes on an iPhone-style backup/restore for a Windows dev machine run by an AI agent: secrets in Bitwarden, gi
Safe Rm
Secure file deletion CLI for AI agents with Git-aware protection
Source To Prompt Tui
TUI for combining source code files into LLM-ready prompts: tree explorer, syntax preview, token estimation, a
Prompt Storage
pst — local-first personal prompt library CLI. SQLite+FTS5, instant retrieval (pst code-review), variable temp
Nightward
Local-first TUI for auditing AI agent state, MCP config, and dotfiles backup safety
Related Agents
Cleanup Executor
Safely removes confirmed dead code with git backup, build verification, and dependency-order deletion. Use aft
Karr Ref Worker
App::karr Git/ref storage worker — Git::Native and CLI fallback, refs-backed BoardStore persistence, CAS, lock
Database Reliability Engineer
Use this agent to review database schema, indexing, backup/restore posture, and replication/failover configura