Documentation
¶
Overview ¶
Package sessionkind classifies a session into zero-or-more "special session" kinds from the turns and tool counters an importer already projected. The result is stored in the session_kinds table and surfaced in the panel as badges, a filter, and an insights breakdown.
Classify covers the kinds derivable from a single session in isolation (goal, workflow, ralph-loop). The orchestrator kind depends on child edges that may not exist at single-session projection time, so it is computed post-sweep by the store (see store.RefreshOrchestratorKinds).
Index ¶
Constants ¶
const ( // KindGoal marks a Codex goal session: the first user turn is wrapped // in <codex_internal_context source="goal">. KindGoal = "goal" // KindWorkflow marks a Claude Code dynamic workflow: the session used // the Workflow tool. KindWorkflow = "workflow" // KindRalphLoop marks a Claude Code Ralph Loop run, detected by the // /ralph-loop:ralph-loop slash command. KindRalphLoop = "ralph-loop" // KindOrchestrator marks a session that spawned subagents. Set by the // store from parent/child edges, not by Classify. KindOrchestrator = "orchestrator" )
Kind constants. These are the canonical values written to session_kinds and matched by the panel's Kind filter.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.