Documentation
¶
Overview ¶
Package convert converts Claude Code sessions into the Agent Session Format. docs/formats/claudecode.md is the mapping and lists every finding code it reports.
Index ¶
Constants ¶
View Source
const Harness = "claude-code"
Harness is the harness name converted sessions record.
View Source
const Source = "claudecode"
Source is the format name and the namespace of every extension member and custom entry this converter writes.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(s *claudecode.Session, opts Options) (*agentimport.Result, error)
Convert converts a session: the main transcript becomes the first session of the result, and each sub-agent a session of its own after the session that spawned it.
func ConvertFile ¶
func ConvertFile(path string, opts Options) (*agentimport.Result, error)
ConvertFile reads the session whose main transcript is path, with its sub-agents, and converts it.
Types ¶
type Options ¶
type Options struct {
// Slim drops what the model never saw and the session format has
// no member for, rather than keeping it in namespaced members and
// custom entries: the toolUseResult sidecar, line members the
// converter does not map, attachment payloads beside their
// rendering, the request log and file-history checkpoints. Each
// drop is still reported.
Slim bool
// Derive writes the entries the module's derivation rules infer
// from the converted path, each marked agentimport:derived: a Bash
// call's published refs (docs/plans/agentimport.md).
Derive bool
}
Options tune a conversion. The zero value keeps everything.
Click to show internal directories.
Click to hide internal directories.