Skip to main content

Module derive

Module derive 

Source
Expand description

Derive Toolpath documents from Codex CLI sessions.

Each Turn in the assembled ConversationView becomes a Step. Every step’s change map carries:

  • One entry at codex://<session-id> with a conversation.append structural op holding the turn’s text and tool-call summaries.
  • Sibling entries for each file touched by a patch_apply_end whose call_id landed in this turn. Codex’s structured patch output gives us the unified diff verbatim for updates, and the full file content for adds — both are surfaced as ArtifactChange.raw so nothing is lost.

Structs§

DeriveConfig
Configuration for deriving a Toolpath Path from a Codex session.

Functions§

derive_path
Derive a Path from a Codex Session.
derive_project
Derive a Path from multiple sessions. Used for bulk exports.