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§
- Checkpoint
Diff - Checkpoint
List - Checkpoint
Tool Ctx - Shared state for the read-only checkpoint tools.
Functions§
- build_
checkpoint_ tools - Build the read-only checkpoint tools for a given session.
Returns
Noneif the shadow repo cannot be opened (e.g. git missing). - build_
checkpoint_ tools_ at - Like
build_checkpoint_tools, but with an explicitshadow_dir, for tests that want to bypasspaths::user_data_dir()resolution.