Expand description
Derive Toolpath documents from opencode sessions.
Each Turn becomes a Step. Every step’s change map carries:
- One entry at
opencode://<session-id>with aconversation.appendstructural op describing the turn’s text, thinking, and tool-call summaries. - Sibling entries for each file touched between the turn’s
snapshot endpoints. When the snapshot git repo is on disk,
ArtifactChange.rawis the real unified diff from git. Otherwise we fall back to file paths reported by tool inputs with norawperspective.
Structs§
- Derive
Config - Configuration for deriving a Toolpath
Pathfrom an opencode session.
Functions§
- derive_
path - Derive a
Pathfrom a loaded opencodeSession. - derive_
path_ with_ resolver - Like
derive_pathbut with a customPathResolver(useful for tests with a temp data directory). - derive_
project - Derive a
Pathfrom multiple sessions.