rexovas

Session Protect — AI skill for Claude Code

AI community

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).

The SessionProtect session explorer: live sessions, health states, inspector, search, and restore

*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