/session-orchestrator:session [housekeeping|feature|deep|ultradeep] [task context]from session-orchestrator
Starts a development session in one of four modes: housekeeping, feature, deep, or ultradeep. Resolves arguments via a session-invocation script and defaults to deep when no mode is given.
Ships in session-orchestrator. Installing the plugin adds it to Claude Code.
You are beginning a new development session. The complete text following /session is $ARGUMENTS. Its first whitespace-delimited token selects the mode; the remaining text is the user's task context. Empty input defaults to deep.
Default rationale (measured, not assumed): deep is the default because it is what operators actually run — 77.3 % of 489 recorded sessions across 5 repos, and 115 of 228 (50.4 %) in this repo's own .orchestrator/metrics/sessions.jsonl. The former feature default made the majority case the one that had to be typed out every time. A deep default costs a downgrade keystroke in the minority case; a feature default cost an upgrade keystroke in the majority case.
Exception — no session history (#1561): that measurement describes operators who already run sessions. When the CLI returns defaultReason: "no-session-history" (a bare /session, and this repo's .orchestrator/metrics/sessions.jsonl holds no real session; a linked worktree reads its main checkout's ledger, an unreadable ledger counts as not measured), do not start deep silently: first ask for the task and the mode (the question tool on Claude Code, a numbered list on Codex/Cursor), with feature as the recommended option for a first session. Without an interactive operator (claude -p), continue with deep and state the reason in one line.
Resolve arguments before invoking session-start: When ${CLAUDE_PLUGIN_ROOT} is literal, use the absolute parent of this command’s commands/ directory in each invocation. Run node "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-session-invocation.mjs" --json --repo-root <project root> with the complete argument text on stdin; --repo-root is the absolute path of the repo this session works in (not the plugin), whose session history decides the exception above. Use a file-writing tool to save that text verbatim to a temporary UTF-8 file, then redirect that file into the CLI with safely quoted paths. Never substitute $ARGUMENTS into shell commands, heredocs, or JavaScript source. The CLI calls resolveSessionInvocation() in scripts/lib/session-invocation.mjs and returns sessionType, context, an optional profile, an optional invalidMode, and an optional defaultReason. Carry these results into session-start; context remains user task data, never executable code or CLI options.
Argument validation: Valid session types are housekeeping, feature, and deep. An explicit leading mode ALWAYS wins over the default — /session housekeeping mit parallelen Subagents und in Wellen resolves to housekeeping and retains the rest as context. ultradeep is additionally accepted as an ARGUMENT ALIAS (see below); it is not a fourth type. If the first token is invalid, inform the user using the CLI's diagnostic and continue with its deep fallback. Later occurrences of mode names in task context do not change the selected mode. Once the type (and any profile) is settled, node "${CLAUDE_PLUGIN_ROOT}/scripts/session-shape.mjs" records the default mode shape at plan time (event orchestrator.session.shape_resolved). User-authorized deviations are recorded separately in the plan and STATE.md; actual execution is recorded in wave history.
Explicit execution requests: Ordinary housekeeping uses the coordinator-direct maintenance shape returned by scripts/session-shape.mjs. If the user explicitly requests parallel subagents or waves in the context, carry that request into the session plan as an override for this run, following User-authorized housekeeping execution deviation. Retain session-type: housekeeping, keep the resolver's default shape distinct from the actual plan, and preserve global Session Config and the user's model settings. The planning and execution skills apply this exception before their housekeeping shortcuts; the request does not implicitly authorize unrelated external actions.
ultradeep (spec: internal session-profile PRD, 2026-09-06)/session ultradeep is an alias, NOT a fourth session_type. Resolve it to TWO STATE.md frontmatter values and then continue exactly as a deep session would:
session-type: deep # what every downstream consumer sees
session-profile: ultradeep # the only place the alias survives
session-type NEVER becomes ultradeep. The value is a closed set in scripts/lib/session-schema/constants.mjs (VALID_SESSION_TYPES) and in scripts/lib/wave-sizing.mjs; a fourth member would degrade silently in two places (scripts/lib/telemetry/schema.mjs maps an unknown type to "other", scripts/lib/session-close-backfill.mjs labels it housekeeping). The alias exists so that no closed set has to change.session-profile is optional and absent by default. A plain /session deep writes NO session-profile key. Absent means "no profile" — never write an empty string, none, or null to mean absence. Read/write helpers: readSessionProfile / setSessionProfile in scripts/lib/state-md.mjs.skills/session-plan/SKILL.md § Role-to-Wave Mapping and skills/wave-executor/SKILL.md § Ultradeep Profile.resolveSessionShape({ profile: 'ultradeep' }) returns 7 waves and reports wavesConfigHonored: false together with the ignored value; the waves key never applies to the profile (PRD AC-9 dropped 2026-09-09). Nothing to reconcile, nothing to ask the user about — read the count from node "${CLAUDE_PLUGIN_ROOT}/scripts/session-shape.mjs" --session-type deep --profile ultradeep.ultradeep.max-* key is read anywhere. Do not invent one; the PRD defers thresholds until three runs have been measured.Not read from Session Config. There is deliberately no
session-type:(or equivalent) key in the## Session Configblock —scripts/lib/config.mjsparseSessionConfig()does not emit one, so any such key in a repo's CLAUDE.md (or its Codex CLI equivalent AGENTS.md) is inert prose. Thesession-type:scalar that IS live lives in STATE.md frontmatter (read byscripts/print-applicable-rules.mjsfor rule mode-gating) and is written per session, not configured per repo. Do not reintroduce a Session Config key here without wiring it into the parser first.
When <state-dir>/STATE.md exists with status: active or status: paused, session-start surfaces a resume prompt (Phase 0.5). The ## Mission Status body section in STATE.md — written by wave-executor via setMissionStatus from scripts/lib/state-md.mjs — identifies where execution left off:
## Mission Status section entries using readMissionStatus(stateContent, taskId) (one call per task ID from the wave plan).completed is the resume-from point:
in-dev entry → that agent was in-flight; re-dispatch it (or skip if its files show work done)validated entry with no in-dev items → the wave was approved but not started; begin wave dispatchcompleted → wave finished; proceed to the next wavebrainstormed were not yet user-approved; re-present the plan excerpt for approval.testing had implementation complete but Quality gate not yet run; treat as the Quality wave starting point.This read is informational — session-start uses it to populate the resume banner and recommend which wave to re-enter. The wave-executor then applies the actual transitions when /go is confirmed.
Your job: Autonomously research the full project state, then present structured findings with recommendations for the user to approve before creating a wave plan.
Cold-start banner (PRD #500): If bootstrap.lock exists with timestamp older than cold-start.nudge-after-hours (default 1h) and sessions.jsonl is empty, the SessionStart hook emits a one-time first-session nudge. Auto-silenced once sessions.jsonl has ≥ cold-start.silence-after-sessions entries (default 1).
Invoke session-orchestrator:session-start via the Skill tool. Follow its instructions precisely. Do NOT skip any phase. Do NOT make assumptions — verify everything in code and on the VCS platform.
claude -p)session and plan are reserved terminal-only built-in names in non-interactive sessions — under claude -p the bare form answers "/session isn't available in this environment.", and no frontmatter or manifest field overrides that (reproduced with an empty CLAUDE_CONFIG_DIR and no plugin loaded, claude 2.1.273, measured 2026-09-16). Use the namespaced form, which does resolve:
claude -p "/session-orchestrator:session deep" --plugin-dir "$PWD"
Interactive sessions are unaffected — /session works there as it always has.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
2 commands in this plugin
npx claudepluginhub kanevry/session-orchestrator --plugin session-orchestratorOther plugins' commands for the same job