Expand description
Session metadata — the SessionInfo struct and its satellites.
Structs§
- Forked
From - Where a forked session came from — the parent id, the parent’s name at fork time (a snapshot; the parent may be renamed or gone), and the branch point (conversation rounds carried over).
- Rotation
Info - Rotation telemetry — how many times the backing Claude Code session has been rolled over to avoid context compaction.
- Session
Info - Top-level session metadata — broadcast on attach, list, and every
session.info_update. - Session
Usage - Cumulative usage totals for a session. Aggregated from each SDK
resultevent. - Session
Worktree - A git worktree backing a session’s workdir.
created_by_codeoidmarks a worktree codeoid created for fork isolation (removed on destroy) versus one the user bound (never touched). - Subagent
- Active sub-agent for the identity chain display.
- Turn
Usage - Per-turn usage record — one entry per SDK
resultevent.
Enums§
- Session
Mode - Execution mode — controls tool approval and autonomous budgeting.
- Session
Status - Lifecycle status of a session.