Skip to content

agentckpt v0.2.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 03:28
· 8 commits to main since this release

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 notify passes 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 cwd and writes messages like claude: before Edit src/app.py, codex: before Bash `rm -rf build` and codex: 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.
  • 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/