Skip to main content

Module checkpoint

Module checkpoint 

Source
Expand description

Read-only agent tools that surface the session’s checkpoint chain.

Only checkpoint_list and checkpoint_diff are exposed to agents. Snapshot creation and restoration are runtime-driven (see AgentRuntime and the recursive sessions rewind CLI), not agent-driven.

Structs§

CheckpointDiff
CheckpointList
CheckpointToolCtx
Shared state for the read-only checkpoint tools.

Functions§

build_checkpoint_tools
Build the read-only checkpoint tools for a given session. Returns None if the shadow repo cannot be opened (e.g. git missing).
build_checkpoint_tools_at
Like build_checkpoint_tools, but with an explicit shadow_dir, for tests that want to bypass paths::user_data_dir() resolution.