agentckpt
agentckpt is a command-line tool for coding agents (such as Codex, Claude Code, Gemini CLI, OpenCode, Cursor agents) that snapshots (checkpoints) the working tree while the agent is running and can restore any snapshot without touching the real git branch or index. It maintains a private shadow store .agentckpt/ under the project, supports snapshots and restores that include untracked files, respects .gitignore, uses content-addressed deduplicated storage, and provides watch for automatic snapshots, prune for cleanup, doctor for diagnostics, and hook integration.