Repository navigation
Releases
agentckpt v0.3.0
agentckpt v0.3.0: safer snapshots
Snapshots now store exactly what's on disk, restore never leaves a half-applied tree, and you control what goes in.
New
.agentckptignore: keep paths out of snapshots (same syntax as.gitignore) without touching your.gitignore, index orgit status.restorenever deletes excluded paths. (#11)- Gitignored state (#4): each snap records a metadata-only manifest of gitignored files, and
restorewarns when they changed or went missing. Opt in to capturing named paths withinclude_ignored; secret-looking files (.env*,*.pem, …) also needallow_secrets = trueand are stored unencrypted.
Fixes
- Files over
--max-bytesare skipped beforegit add, so they never grow the store (#2). - Symlinks are restored as symlinks; restore is all-or-nothing, so an error leaves the tree unchanged (#6).
- Snapshots keep exact bytes: no
core.autocrlf,eolor git-lfs conversion, so Windows no longer reports untouched files as conflicts.--path .githubkeeps its leading dot (#8).
Docs
- First-screen FAQ: store size,
.gitignore, ignored.env.
Install
pipx install https://github.com/Blackman99/agentckpt/releases/download/v0.3.0/agentckpt-0.3.0-py3-none-any.whlFull changelog: CHANGELOG.md
agentckpt v0.2.0
agentckpt v0.2.0: agent hooks
Your coding agent now checkpoints the working tree itself: before each prompt, before each edit or shell command, and after each turn. Undo any step with agentckpt restore <id> --force, without touching your git branches or index.
New
agentckpt hook: one adapter for every agent's hooks.- Codex
notifypasses the JSON as the last argument. Claude Code, Codex and Gemini CLI lifecycle hooks pass it on stdin. - It finds the project from the payload
cwdand writes messages likeclaude: before Edit src/app.py,codex: before Bash `rm -rf build`andcodex: turn complete "Rename foo to bar". - It always exits 0 and prints nothing on stdout, so it never blocks a prompt, denies a tool call or adds model context.
- Codex
agentckpt run -- <agent>: snap before and after any CLI (Aider, Cursor CLI, …).- Drop-in configs in
examples/for Codex, Claude Code, Gemini CLI and OpenCode, plus shell wrappers.
Quick start
pipx install git+https://github.com/Blackman99/agentckpt
cd your-repo && agentckpt init# ~/.codex/config.toml
notify = ["agentckpt", "hook", "--source", "codex"]// .claude/settings.json
{ "hooks": { "PreToolUse": [{ "matcher": "Edit|Write|MultiEdit|NotebookEdit|Bash",
"hooks": [{ "type": "command", "command": "agentckpt hook --source claude" }] }] } }Fixes
- Shadow-store git calls now drop inherited
GIT_INDEX_FILE/GIT_DIR/GIT_WORK_TREE. Before this, a snap run from inside a git or agent environment could write to the user's real index.
Still zero runtime dependencies (stdlib + git). Docs: https://blackman99.github.io/agentckpt/docs/hooks/
agentckpt v0.1.0
agentckpt v0.1.0
Checkpoint a working tree while coding agents run, and restore any snapshot without touching your git branches or index.
Why
Coding agents edit and delete files. /undo is often missing or unreliable (openai/codex#9203). agentckpt keeps a private shadow store under .agentckpt/ so you can snap and restore freely.
Install
uvx --from git+https://github.com/Blackman99/agentckpt agentckpt demo
pipx install git+https://github.com/Blackman99/agentckptCommands
init · snap · watch · ls · diff · restore · prune · doctor · demo