Repository navigation
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"]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/