Claude Code Checkpoints and Hooks: Recovery Is Helpful, Policy Is Better
In September 2025, Anthropic announced checkpoints for Claude Code alongside hooks, subagents, and background tasks. Checkpoints can help rewind the tool’s file edits during an autonomous task. Hooks can run configured actions at specific workflow points, such as invoking a formatter or test command.
These features solve different problems. A checkpoint is a recovery aid for changes made by the tool; version control is the durable history for the project. A hook automates a known action; it does not decide whether the action is safe or whether its result is correct. Use Git before the task and review the diff afterward, even when a rewind option is available.
Hooks are most useful for predictable, local checks. A pre-commit formatter or a targeted unit test can provide fast feedback. Avoid hooks that publish artifacts, modify shared infrastructure, or depend on production credentials. If a hook takes several minutes, make its behavior visible so the developer understands why the agent paused.
Checkpoints do not necessarily capture every effect outside the tool’s edits. Shell commands can alter files, state, or external services. A database migration, network request, or package install may need its own rollback plan. Treat the checkpoint as a convenience for source changes, not a transaction over the whole development environment.
Subagents and background tasks also widen the coordination surface. Give each worker a distinct responsibility, inspect shared-file conflicts, and require the parent task to summarize what was changed. Parallel work is valuable only when the results can be reconciled and reviewed.
Anthropic’s September 29, 2025 announcement explains checkpoints, hooks, subagents, and background tasks. The current Claude Code hooks guide covers setup and event behavior.