The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Other engines' runtime profiles and switches: their parsers through the loader (o4) (#1059)
Dee25bb0d032075
diff --git a/cli/src/architecture.spec.ts b/cli/src/architecture.spec.tsindex 34d0ea94b..0596d058b 100644--- a/cli/src/architecture.spec.ts+++ b/cli/src/architecture.spec.ts@@ -232,16 +232,6 @@ const theirs = (file: string): boolean => THEIRS.some((pattern) => pattern.test(const OTHER_ENGINES_CORE_MAY_REACH: Record<string, string> = {'engines/cursor/pendingTasks.ts': '(o6) Cursor\'s pending tasks, read at the start and cleared on Stop and forget: a declared file, then a lazy load','lib/hermesHome.ts': '(o6) homes: which Hermes store a session\'s history is in',- 'engines/agy/runtimeProfile.ts': '(o4) runtime profiles',- 'engines/amp/runtimeProfile.ts': '(o4) runtime profiles',- 'engines/commandcode/runtimeProfile.ts': '(o4) runtime profiles and model switching',- 'engines/devin/runtimeProfile.ts': '(o4) runtime profiles and model switching',- 'engines/grok/runtimeProfile.ts': '(o4) runtime profiles',- 'engines/hermes/runtimeProfile.ts': '(o4) runtime profiles and model switching',- 'engines/kilo/runtimeProfile.ts': '(o4) runtime profiles',- 'engines/muse/runtimeProfile.ts': '(o4) runtime profiles',- 'engines/opencode/runtimeProfile.ts': '(o4) runtime profiles and model switching',- 'engines/pi/runtimeProfile.ts': '(o4) runtime profiles and model switching','engines/agy/normalizer.ts': '(o5) adoption\'s readers, through lib/transcriptReader.ts','engines/amp/normalizer.ts': '(o5) adoption\'s readers, through lib/transcriptReader.ts','engines/commandcode/normalizer.ts': '(o5) adoption\'s readers, through lib/transcriptReader.ts',@@ -294,6 +284,9 @@ const FACETS_FREE_OF_THEM: Array<[string, string]> = [['core/transcripts/databaseHistory.ts', '(o3)'],['core/engines/cursorTasks.ts', '(o3)'],['core/turns/agyBackstop.ts', '(o3)'],+ // What the core reads of their model and effort, and how a switch of theirs would be driven.+ ['lib/runtimeProfileManager.ts', '(o4)'],+ ['lib/runtimeControl.ts', '(o4)'],]describe('the daemon\'s shape', () => {diff --git a/cli/src/engines/__fixtures__/other-runtime.golden.json b/cli/src/engines/__fixtures__/other-runtime.golden.jsonnew file mode 100644index 000000000..0a81a830f--- /dev/null+++ b/cli/src/engines/__fixtures__/other-runtime.golden.json@@ -0,0 +1,1477 @@+{+ "strings": {+ "engines/agy/runtimeProfile.spec.ts": [+ "vitest",+ "node:fs",+ "node:url",+ "./runtimeProfile.js",+ "Fetching available models...\ngemini-3.7-flash-high\tGemini 3.7 Flash (High)\ngemini-3.7-flash-medium\tGemini 3.7 Flash (Medium)\ngemini-3.7-flash-low\tGemini 3.7 Flash (Low)\ngemini-3.6-flash-high\tGemini 3.6 Flash (High)\ngemini-3.6-flash-medium\tGemini 3.6 Flash (Medium)\ngemini-3.6-flash-low\tGemini 3.6 Flash (Low)\ngemini-3.5-flash-high\tGemini 3.5 Flash (High)\ngemini-3.5-flash-medium\tGemini 3.5 Flash (Medium)\ngemini-3.5-flash-low\tGemini 3.5 Flash (Low)\ngemini-3.1-pro-high\tGemini 3.1 Pro (High)\ngemini-3.1-pro-low\tGemini 3.1 Pro (Low)\nclaude-sonnet-4-6\tClaude Sonnet 4.6 (Thinking)\nclaude-opus-4-6-thinking\tClaude Opus 4.6 (Thinking)\ngpt-oss-120b-medium\tGPT-OSS 120B (Medium)\n",+ "agy model catalog",+ "parses every row the real catalog prints, and drops the progress notice",+ "gemini-3.7-flash-high",+ "claude-opus-4-6-thinking",+ "gpt-oss-120b-medium",+ "Fetching",+ "agy pane footer",+ "reads the idle footer as a catalog slug plus its effort",+ " ↑/↓ Navigate · enter Select · esc Skip\nesc to cancel Gemini 3.7 Flash · high",+ " ↑/↓ Navigate · enter Select · esc Skip",+ "esc to cancel Gemini 3.7 Flash · high",+ "high",+ "reads the footer off a real captured pane, escapes and all",+ "../../lib/__fixtures__/permission-agy.txt",+ "utf8",+ "ignores a pane with no footer",+ "> just a prompt\nno footer here",+ "agy pane busy/idle",+ "reads a real captured pane",+ "../../lib/__fixtures__/question-agy.txt",+ "treats \"? for shortcuts\" as idle and \"esc to cancel\" as busy",+ ">\n? for shortcuts Gemini 3.7 Flash · high",+ " ↑/↓ Navigate\nesc to cancel Gemini 3.7 Flash · high",+ "nothing familiar here"+ ],+ "engines/commandcode/runtimeProfile.spec.ts": [+ "vitest",+ "./runtimeProfile.js",+ "Available models · 50 models\n\nOpen Source\n\ndeepseek/deepseek-v4-pro hybrid-attention long-context reasoning\ndeepseek/deepseek-v4-flash fast hybrid-attention reasoning (default)\nmoonshotai/kimi-k2.7-code-highspeed high-speed long-horizon coding with vision\n\nAnthropic\n\nclaude-sonnet-5 best combo of speed & intelligence (recommended)\nclaude-haiku-4-5 fastest & most compact, great for quick tasks",+ "Available models · 50 models",+ "Open Source",+ "deepseek/deepseek-v4-pro hybrid-attention long-context reasoning",+ "deepseek/deepseek-v4-flash fast hybrid-attention reasoning (default)",+ "moonshotai/kimi-k2.7-code-highspeed high-speed long-horizon coding with vision",+ "Anthropic",+ "claude-sonnet-5 best combo of speed & intelligence (recommended)",+ "claude-haiku-4-5 fastest & most compact, great for quick tasks",+ "command code model catalog",+ "reads ids and sections, and keeps the short name the device labels by",+ "Open Source:deepseek-v4-pro",+ "Open Source:deepseek-v4-flash",+ "Open Source:kimi-k2.7-code-highspeed",+ "Anthropic:claude-sonnet-5",+ "Anthropic:claude-haiku-4-5",+ "moonshotai/kimi-k2.7-code-highspeed",+ "claude-sonnet-5",+ "deepseek/deepseek-v4-flash",+ "ignores the counter line and never mistakes a heading for a model",+ "Open Source\n\nAnthropic\n",+ "reads the words Command Code refuses an unsupported effort with",+ "◼ Reasoning effort not supported for Kimi K2.6.",+ "Reasoning effort not supported for Kimi K2.6",+ "❯ Ask your question...",+ "counts refusals so an older one cannot be read as this command being refused",+ "◼ Reasoning effort not supported for Kimi K2.6.\n❯ /effort high\n◼ Reasoning effort not supported for Kimi K2.6.",+ "❯ /effort high",+ "reads the running model out of the session banner",+ "# Command Code v1.6.0\n# models: kimi-k2.6 · taste-1\n# /private/tmp/rp2/cc",+ "# Command Code v1.6.0",+ "# models: kimi-k2.6 · taste-1",+ "# /private/tmp/rp2/cc",+ "kimi-k2.6"+ ],+ "engines/devin/runtimeProfile.spec.ts": [+ "vitest",+ "./runtimeProfile.js",+ "Available models (38 families)\n\nClaude Opus 5 (claude-opus-5)\n aliases: opus\n claude-opus-5-medium Claude Opus 5 Medium [$5 / MTok In · $25 / MTok Out]\n claude-opus-5-xhigh Claude Opus 5 XHigh [$5 / MTok In · $25 / MTok Out]\n claude-opus-5-max-fast Claude Opus 5 Max Fast [$10 / MTok In · $50 / MTok Out]\n\nGPT-5.6 Sol (gpt-5.6-sol)\n gpt-5-6-sol-none GPT-5.6 Sol No Thinking [$5 / MTok In · $30 / MTok Out]\n gpt-5-6-sol-high GPT-5.6 Sol High Thinking [$5 / MTok In · $30 / MTok Out]\n\nSWE-1.6 Slow (swe-1.6-slow)\n swe-1-6-slow SWE-1.6 Slow [200K context, $0.3 / MTok In · $1.5 / MTok Out]\n\nGemini 3 Flash (gemini-3-flash)\n MODEL_GOOGLE_GEMINI_3_0_FLASH_MINIMAL Gemini 3 Flash Minimal [$0.5 / MTok In · $3 / MTok Out]",+ "Available models (38 families)",+ "Claude Opus 5 (claude-opus-5)",+ " aliases: opus",+ " claude-opus-5-medium Claude Opus 5 Medium [$5 / MTok In · $25 / MTok Out]",+ " claude-opus-5-xhigh Claude Opus 5 XHigh [$5 / MTok In · $25 / MTok Out]",+ " claude-opus-5-max-fast Claude Opus 5 Max Fast [$10 / MTok In · $50 / MTok Out]",+ "GPT-5.6 Sol (gpt-5.6-sol)",+ " gpt-5-6-sol-none GPT-5.6 Sol No Thinking [$5 / MTok In · $30 / MTok Out]",+ " gpt-5-6-sol-high GPT-5.6 Sol High Thinking [$5 / MTok In · $30 / MTok Out]",+ "SWE-1.6 Slow (swe-1.6-slow)",+ " swe-1-6-slow SWE-1.6 Slow [200K context, $0.3 / MTok In · $1.5 / MTok Out]",+ "Gemini 3 Flash (gemini-3-flash)",+ " MODEL_GOOGLE_GEMINI_3_0_FLASH_MINIMAL Gemini 3 Flash Minimal [$0.5 / MTok In · $3 / MTok Out]",+ "devin model catalog",+ "splits the effort out of a model id, keeping Fast as part of the model",+ "claude-opus-5-medium",+ "claude-opus-5",+ "medium",+ "claude-opus-5-max-fast",+ "claude-opus-5-fast",+ "max",+ "gpt-5-6-sol-low-priority",+ "gpt-5.6-sol",+ "gpt-5-6-sol-priority",+ "low",+ "swe-1-6-slow",+ "swe-1.6-slow",+ "auto",+ "MODEL_GOOGLE_GEMINI_3_0_FLASH_MINIMAL",+ "gemini-3-flash",+ "parses the catalog into model + effort, ignoring the header and alias lines",+ "Claude Opus 5 / medium",+ "Claude Opus 5 / xhigh",+ "Claude Opus 5 Fast / max",+ "GPT-5.6 Sol / none",+ "GPT-5.6 Sol / high",+ "SWE-1.6 Slow / auto",+ "Gemini 3 Flash Minimal / auto",+ "hoists only the effort the id proves, so a family named after one survives",+ "Qwen 3.6 Max Preview",+ "GPT-5.6 Sol Low Thinking Fast",+ "GPT-5.6 Sol Fast",+ "GPT-5.6 Sol No Thinking",+ "none",+ "GPT-5.6 Sol",+ "GLM-5.2 Max 1M",+ "GLM-5.2 1M",+ "MiniMax M3",+ "ignores rows that arrive before any family heading",+ " orphan-row Orphan [x]\n",+ "Available models (38 families)\n",+ "reads the outcome devin prints after /model",+ "❭ /model swe-1-6-slow\n✓ Model set to SWE-1.6 Slow",+ "❭ /model adaptive\n✗ Model not available\n /upgrade to access this model",+ "unavailable",+ "❭ Ask Devin to build features",+ "reads the current model out of the footer, whichever hint it is showing",+ "❭ Ask Devin to build features, fix bugs, or work on your code",+ "─────────────────────────────────────",+ "❭ Ask Devin to build features, fix bugs, or work on your code\n─────────────────────────────────────\nSWE-1.6 Slow See all keyboard shortcuts: /shortcuts\n",+ "See all keyboard shortcuts: /shortcuts",+ "SWE-1.6 Slow",+ "❭ Ask Devin to build features, fix bugs, or work on your code\n─────────────────────────────────────\nSWE-1.6 Slow Type while the agent works to queue messages\n",+ "Type while the agent works to queue messages",+ "reads past an overlay that devin draws BELOW the footer",+ "❭ /model\n─────────────────────────────────────\nSWE-1.6 Slow tab next · shift+tab prev · ↵ accept · esc close\n● /model [adaptive|claude-fable-5|claude-haiku-4.5|...] - Interactively choose a model\n",+ "❭ /model",+ "SWE-1.6 Slow tab next · shift+tab prev · ↵ accept · esc close",+ "● /model [adaptive|claude-fable-5|claude-haiku-4.5|...] - Interactively choose a model",+ "reads a footer straight off a raw capture, escape codes and all",+ "\u001b[38;2;124;124;124mSWE-1.6 Slow\u001b[39m \u001b[2mesc close\u001b[0m"+ ],+ "engines/grok/runtimeProfile.spec.ts": [+ "vitest",+ "./runtimeProfile.js",+ "Grok runtime profile",+ "reads the measured idle footer",+ "--- Grok 4.5 (medium) · always-approve ---",+ "grok-4.5",+ "medium",+ "reads the model off the composer box edge current builds print it on",+ " ╰──────────────────────────────── Grok 4.6 (xhigh) ─╯",+ "grok-4.6",+ "xhigh",+ "Grok 4.5 (high) | always-approve",+ "high",+ "Grok 4.6 (low)",+ "low",+ "reads a grid model, whose name is not the vendor's and carries no effort",+ " ╰──── DeepSeek-V4-Flash-0731 · always-approve ─╯",+ "deepseek-v4-flash-0731",+ "auto",+ " ╰──────── DeepSeek-V4-Flash-0731 ─╯",+ " ┃ this session defaults to Grok 4.6 (xhigh), context 500k\n ╭────────────────────────────────────╮\n │ ❯ │\n ╰──── DeepSeek-V4-Flash-0731 ─╯",+ " ┃ this session defaults to Grok 4.6 (xhigh), context 500k",+ " ╭────────────────────────────────────╮",+ " │ ❯ │",+ " ╰──── DeepSeek-V4-Flash-0731 ─╯",+ "does not mistake prose that mentions a Grok version for the footer",+ "I used Grok 4.6 to write this",+ "Grok 4.6 (xhigh) was fast",+ "reads the measured model catalog and skips prose",+ "You are logged in with grok.com.\n\nDefault model: grok-4.5\n\nAvailable models:\n * grok-4.5 (default)",+ "You are logged in with grok.com.",+ "Default model: grok-4.5",+ "Available models:",+ " * grok-4.5 (default)"+ ],+ "engines/hermes/runtimeProfile.spec.ts": [+ "vitest",+ "./runtimeProfile.js",+ "hermes model catalog",+ "reads every provider page out of the picker cache",+ "dd7c",+ "gpt-5.4",+ "gpt-5.4-mini",+ "bd6c",+ "claude-fable-5",+ "not a list",+ "copilot",+ "anthropic",+ "reads the two scalars it needs from config.yaml and nothing else",+ "model:\n default: minimax/minimax-m3\n provider: custom\n api_key: ${HERMES_SECRET}\nagent:\n max_turns: 150\n reasoning_effort: medium\n personalities:\n helpful: You are a helpful assistant.\nvoice:\n model: whisper-1",+ "model:",+ " default: minimax/minimax-m3",+ " provider: custom",+ " api_key: ${HERMES_SECRET}",+ "agent:",+ " max_turns: 150",+ " reasoning_effort: medium",+ " personalities:",+ " helpful: You are a helpful assistant.",+ "voice:",+ " model: whisper-1",+ "minimax/minimax-m3",+ "medium",+ "model:\n default: x\nagent:\n reasoning_effort: nonsense",+ "reads the model out of the status line",+ " ⚕ minimax-m3 │ ctx -- │ [░░░░░░░░░░] -- │ 4s │ ⏲ 0s",+ "minimax-m3",+ "no status here",+ "hermes model picker pages",+ "reads the rows and the cursor of the provider page",+ "╭─ ⚙ Model Picker — Select Provider ─────────────╮\n│ │\n│ Current: minimax/minimax-m3 on custom │\n│ │\n│ Mixture of Agents (1 model) │\n│ ❯ vibe (1 model) ← current │\n│ GitHub Copilot (17 models) │\n│ Cancel │\n╰────────────────────────────────────────────────╯",+ "╭─ ⚙ Model Picker — Select Provider ─────────────╮",+ "│ │",+ "│ Current: minimax/minimax-m3 on custom │",+ "│ Mixture of Agents (1 model) │",+ "│ ❯ vibe (1 model) ← current │",+ "│ GitHub Copilot (17 models) │",+ "│ Cancel │",+ "╰────────────────────────────────────────────────╯",+ "Mixture of Agents (1 model)",+ "vibe (1 model)",+ "GitHub Copilot (17 models)",+ "Cancel",+ "reads the model page, and refuses a capture with no picker in it",+ "╭─ ⚙ Model Picker — Anthropic ───────────────────╮\n│ ❯ claude-fable-5 │\n│ claude-sonnet-5 │\n│ ← Back │\n╰────────────────────────────────────────────────╯",+ "╭─ ⚙ Model Picker — Anthropic ───────────────────╮",+ "│ ❯ claude-fable-5 │",+ "│ claude-sonnet-5 │",+ "│ ← Back │",+ "claude-sonnet-5",+ "← Back",+ "❯ just a prompt"+ ],+ "engines/kilo/runtimeProfile.spec.ts": [+ "vitest",+ "./runtimeProfile.js",+ "kilo/~anthropic/claude-opus-latest\nkilo/~openai/gpt-latest\nkilo/ai21/jamba-large-1.7\nkilo/kilo-auto/free\nkilo/kilo-auto/frontier\nkilo/stepfun/step-3.7-flash\nkilo/stepfun/step-3.7-flash:free",+ "kilo/~anthropic/claude-opus-latest",+ "kilo/~openai/gpt-latest",+ "kilo/ai21/jamba-large-1.7",+ "kilo/kilo-auto/free",+ "kilo/kilo-auto/frontier",+ "kilo/stepfun/step-3.7-flash",+ "kilo/stepfun/step-3.7-flash:free",+ "kilo model catalog",+ "keeps the ids that carry a ~ alias or a : variant",+ "splits provider from model at the FIRST slash, leaving the vendor in the model",+ "kilo",+ "stepfun/step-3.7-flash",+ "ignores anything that is not a provider/model line",+ "loading…\n\nnot-a-model\n",+ "kilo footer → model",+ "resolves the model kilo shows in its composer footer",+ " ┃ Code · Auto Free Kilo Gateway /private/tmp/kilo-probe",+ "resolves a plain vendor model by its leaf",+ "┃ Code · Step 3.7 Flash Kilo Gateway /tmp/x",+ "ignores the turn footer, which names the resolved model rather than the selected one",+ "▣ Code · Auto Free · Step 3.7 Flash · 17.9s",+ "answers null rather than guessing when nothing matches",+ "┃ Code · Nonsense Model Kilo Gateway /tmp/x",+ "┃ Code · Auto Free Kilo Gateway /tmp/x",+ "no footer here"+ ],+ "engines/opencode/runtimeProfile.spec.ts": [+ "vitest",+ "./runtimeProfile.js",+ "opencode/ling-3.0-flash-free\nopencode-go/kimi-k3\nopencode-go/minimax-m3\nopencode-go/mimo-v2.5\nopencode-go/mimo-v2.5-pro\nvibe/minimax/minimax-m3\nnot a model line",+ "opencode/ling-3.0-flash-free",+ "opencode-go/kimi-k3",+ "opencode-go/minimax-m3",+ "opencode-go/mimo-v2.5",+ "opencode-go/mimo-v2.5-pro",+ "vibe/minimax/minimax-m3",+ "not a model line",+ "opencode model catalog",+ "reads provider/model and builds a picker filter from the model leaf plus provider",+ "minimax m3 vibe",+ "kimi k3 opencode go",+ "parses the picker rows between its header and the hint line",+ " Select model esc\n minimax m3\n MiniMax-M3 OpenCode Go\n ● MiniMax M3 (vibe) Vibe Gateway (Minimax)\n Connect provider ctrl+a Favorite ctrl+f\n ┃ Ask anything...",+ " Select model esc",+ " minimax m3",+ " MiniMax-M3 OpenCode Go",+ " ● MiniMax M3 (vibe) Vibe Gateway (Minimax)",+ " Connect provider ctrl+a Favorite ctrl+f",+ " ┃ Ask anything...",+ "MiniMax-M3",+ "OpenCode Go",+ "MiniMax M3 (vibe)",+ "Vibe Gateway (Minimax)",+ "no picker here",+ "reads the CURRENT picker, not an earlier one left in the scrollback",+ " Select model esc\n kimi\n Kimi K3 (2x usage) OpenCode Go\n Kimi K2.6 OpenCode Go\n Connect provider ctrl+a Favorite ctrl+f\n Select model esc\n kimi k3 opencode go\n Kimi K3 (2x usage) OpenCode Go\n Connect provider ctrl+a Favorite ctrl+f",+ " kimi",+ " Kimi K3 (2x usage) OpenCode Go",+ " Kimi K2.6 OpenCode Go",+ " kimi k3 opencode go",+ "Kimi K3 (2x usage)",+ "counts picker openings so a stale one cannot pass for a fresh one",+ " Select model esc\n kimi\n Select model esc\n kimi k3",+ " Select model esc",+ " kimi",+ " kimi k3",+ "nothing",+ "tells two same-named models apart by provider",+ " Select model esc\n minimax m3\n MiniMax-M3 OpenCode Go\n ● MiniMax M3 (vibe) Vibe Gateway (Minimax)\n Connect provider ctrl+a",+ " Select model esc",+ " Connect provider ctrl+a",+ "resolves the footer back to a catalog id, longest model name first",+ "┃ Build · MiniMax M3 (vibe) Vibe Gateway (Minimax)",+ "┃ Build · Ling-3.0-flash Free OpenCode Zen",+ "┃ Build · MiMo V2.5 Pro OpenCode Go",+ "┃ Ask anything...",+ "keeps the reasoning level out of the model it searches for",+ "┃ Build · Ling-3.0-flash Free OpenCode Zen · high",+ "keeps the project path in the next terminal column out of the model",+ "┃ Build auto · Muse Spark 1.3 Free OpenCode Zen /private/tmp/harness-agent-switch-e2e",+ "Muse Spark 1.3 Free OpenCode Zen",+ "reads model and level apart, from a real footer",+ "┃ Build · Ox Alpha Free (Unlimited) OpenCode Zen · high",+ "Ox Alpha Free (Unlimited) OpenCode Zen",+ "high",+ "MiniMax M3 (vibe) Vibe Gateway (Minimax)",+ "┃ Build · Some Model Provider · 2 files",+ "still names the model when the catalog does not list it"+ ],+ "engines/pi/runtimeProfile.spec.ts": [+ "vitest",+ "./runtimeProfile.js",+ "provider model context max-out thinking images\nvibe minimax/minimax-m3 500K 65.5K yes no \nopenai gpt-5.6 400K 100K no yes ",+ "provider model context max-out thinking images",+ "vibe minimax/minimax-m3 500K 65.5K yes no ",+ "openai gpt-5.6 400K 100K no yes ",+ "pi model catalog",+ "reads provider, model and the thinking column",+ "vibe/minimax/minimax-m3",+ "vibe",+ "minimax/minimax-m3",+ "openai/gpt-5.6",+ "openai",+ "gpt-5.6",+ "skips the header and any short or noisy line",+ "provider model context max-out thinking images",+ " Warning: tmux extended-keys is off.",+ "pi footer + thinking ladder",+ "reads model and thinking level from the idle footer",+ "/private/tmp/rp-probe/pi\n0.0%/500k (auto) minimax/minimax-m3 • high",+ "/private/tmp/rp-probe/pi",+ "0.0%/500k (auto) minimax/minimax-m3 • high",+ "high",+ "refuses a footer whose level is not on the ladder",+ "0.0%/500k (auto) minimax/minimax-m3 • nonsense",+ "nothing here",+ "counts arrow steps along the ladder, and refuses to guess off it",+ "medium",+ "off",+ "max",+ "auto",+ "reads the level pi marks as current in the Thinking Level list",+ "Thinking Level\nSelect reasoning depth for thinking-capable models\n off No reasoning\n low Light reasoning (~2k tokens)\n→ medium Moderate reasoning (~8k tokens)\n high Deep reasoning (~16k tokens)",+ "Thinking Level",+ "Select reasoning depth for thinking-capable models",+ " off No reasoning",+ " low Light reasoning (~2k tokens)",+ "→ medium Moderate reasoning (~8k tokens)",+ " high Deep reasoning (~16k tokens)",+ "no selection marker here"+ ],+ "lib/runtimeProfile.spec.ts": [+ "fs/promises",+ "path",+ "vitest",+ "./registry.js",+ "./runtimeProfile.js",+ "engine",+ "session:1",+ "/tmp/session.jsonl",+ "tmp",+ "/tmp",+ "tmux",+ "tmux\u0000%1",+ "codex",+ "0.144.5",+ "cursor",+ "2026.07.20-8cc9c0b",+ "2.1.212",+ "RuntimeProfileManager",+ "keeps agents that have not bound a session yet out of one another state",+ "opencode",+ "claude",+ " ┃ Build · Big Pickle OpenCode Zen",+ "gpt-5.6-terra high ·",+ "gpt-5.6-terra",+ "high",+ "takes Codex Max and Ultra where its catalog lists them",+ "gpt-6.1-sol",+ "ultra",+ "low",+ "medium",+ "xhigh",+ "max",+ "gpt-6-luna",+ "gpt-5.6-sol",+ "gpt-5.4",+ "turbo",+ "__fixtures__",+ "codex-home-0.160",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-6.1-sol\",\"reasoning_effort\":\"ultra\"}}",+ "turn_context",+ "gpt-6.1-sol@max",+ "gpt-6.1-sol@ultra",+ "gpt-6-astra@ultra",+ "gpt-6-luna@max",+ "gpt-6-luna@ultra",+ "gpt-5.5@max",+ "limits Codex Max and Ultra to GPT-5.6 models when there is no catalog to ask",+ "codex-auto-review",+ "gpt-5.5",+ "gpt-5.3-codex-spark",+ "round trips opaque session-scoped profiles",+ "provider/model:v2",+ "runtime-v1:session%3A1:codex:gpt-5.6-sol@ultra",+ "runtime-v1:%ZZ:codex:model@high",+ "hermes",+ "commandcode",+ "devin",+ "muse",+ "amp",+ "kilo",+ "grok",+ "runtime-v1:cursor-1:cursor:gpt-5.6-sol@none",+ "none",+ "parses Cursor catalog variants without hardcoding the account model list",+ "Available models\n\nauto - Auto (current, default)\ngpt-5.6-sol-none - GPT-5.6 Sol 1M None\ngpt-5.6-sol-extra-high-fast - GPT-5.6 Sol Extra High Fast\nclaude-opus-4-8-thinking-high - Opus 4.8 1M Thinking\ngpt-5.3-codex-low - Codex 5.3 Low\ngpt-5.3-codex - Codex 5.3\nTip: ignored",+ "Available models",+ "auto - Auto (current, default)",+ "gpt-5.6-sol-none - GPT-5.6 Sol 1M None",+ "gpt-5.6-sol-extra-high-fast - GPT-5.6 Sol Extra High Fast",+ "claude-opus-4-8-thinking-high - Opus 4.8 1M Thinking",+ "gpt-5.3-codex-low - Codex 5.3 Low",+ "gpt-5.3-codex - Codex 5.3",+ "Tip: ignored",+ "auto",+ "gpt-5.6-sol-none",+ "gpt-5.6-sol-extra-high-fast",+ "gpt-5.6-sol-fast",+ "claude-opus-4-8-thinking-high",+ "claude-opus-4-8-thinking",+ "gpt-5.3-codex-low",+ "gpt-5.3-codex",+ "offers no switching outside Claude and Codex",+ "is display-only through an OpenRouter gateway, but still names the model it runs",+ "ori",+ "{\"type\":\"assistant\",\"message\":{\"model\":\"anthropic/claude-sonnet-4.6\"}}",+ "assistant",+ "anthropic/claude-sonnet-4.6",+ "switches Codex from 0.144 upward, not only the two releases first driven by hand",+ "0.144.0",+ "0.145.0",+ "0.146.0",+ "0.160.0",+ "0.161.2",+ "1.0.0",+ "0.143.9",+ "0.99.0",+ "not a version",+ "knows Codex 0.160 Persistent effort, from the rollout, the pane and the catalog",+ "{\"type\":\"event_msg\",\"payload\":{\"type\":\"thread_settings_applied\",\"thread_settings\":{\"model\":\"gpt-5.5\",\"reasoning_effort\":\"persistent\"}}}",+ "event_msg",+ "thread_settings_applied",+ "persistent",+ "› \ngpt-6-luna high ·",+ "› \ngpt-6-luna persistent · Context 100% left",+ "codex-home-",+ "models_cache.json",+ "{\"models\":[{\"slug\":\"gpt-5.5\",\"display_name\":\"GPT-5.5\",\"visibility\":\"list\",\"default_reasoning_level\":\"medium\",\"supported_reasoning_levels\":[{\"effort\":\"medium\"},{\"effort\":\"persistent\"}]}]}",+ "GPT-5.5",+ "list",+ "GPT-5.5 / Persistent",+ "reads no Codex catalog where there is none, or none that parses",+ "null",+ "surfaces a Cursor model from the transcript even before any effort is known",+ "{\"model\":\"gpt-5.6-sol\"}",+ "names an OpenCode model the catalog does not list, with its reasoning level",+ "┃ Build · Ox Alpha Free (Unlimited) OpenCode Zen · high",+ "Ox Alpha Free (Unlimited) OpenCode Zen",+ "observes Grok model metadata and its live footer effort",+ "{\"params\":{\"update\":{\"_meta\":{\"modelId\":\"grok-4.5\"}}}}",+ "grok-4.5",+ "Grok 4.5 (medium) · always-approve",+ "observes Cursor Auto model and effort from the idle footer with context usage",+ "previous output\n→ Add a follow-up\n\nAuto · 12.7% Run Everything\n~/demo · main",+ "previous output",+ "→ Add a follow-up",+ "Auto · 12.7% Run Everything",+ "~/demo · main",+ "observes Cursor native-default models from usage and No Thinking footers",+ "→ Add a follow-up\n\nHaiku 4.5 · 12.8% Run Everything\n~/demo · main",+ "Haiku 4.5 · 12.8% Run Everything",+ "haiku-4.5",+ "→ Add a follow-up\nSonnet 4.5 No Thinking",+ "sonnet-4.5",+ "keeps synthetic Cursor routing details out of the public runtime profile",+ "→ Add a follow-up\n\nComposer 2.5 · 15.7% Run Everything\n~/demo · main",+ "Composer 2.5 · 15.7% Run Everything",+ "composer-2.5",+ "→ Add a follow-up\nComposer 2.5 1M Thinking Fast High",+ "composer-2.5-1m-thinking-fast",+ "observes Claude model from JSONL and effort from the live pane",+ "{\"type\":\"assistant\",\"message\":{\"model\":\"claude-opus-4-8\"}}",+ "claude-opus-4-8",+ "Opus 4.8 (1M context) with high effort\n❯ ",+ "opus",+ "ignores Claude synthetic error models without losing the observed model",+ "{\"type\":\"assistant\",\"message\":{\"model\":\"<synthetic>\",\"content\":\"Quota exceeded\"}}",+ "<synthetic>",+ "Quota exceeded",+ "Opus 4.8 with high effort\n❯ ",+ "hydrates Claude effort from effective settings and backfills the transcript CLI version",+ "machine-runtime-",+ ".claude",+ "settings.local.json",+ "{\"effortLevel\":\"low\"}",+ "{\"type\":\"assistant\",\"version\":\"2.1.212\",\"message\":{\"model\":\"claude-opus-4-8\"}}",+ "keeps supported Claude effort on a local model change and falls back to auto otherwise",+ "{\"message\":{\"content\":[{\"text\":\"Set model to Sonnet 5\"}]}}",+ "Set model to Sonnet 5",+ "sonnet",+ "{\"message\":{\"content\":[{\"text\":\"Set model to Haiku 4.5\"}]}}",+ "Set model to Haiku 4.5",+ "haiku",+ "keeps Claude effort across a switch to a new family version and to a 1M-context variant",+ "Opus 5",+ "Opus 5 (1M context)",+ "Opus 4.8 (1M context)",+ "Fable 5 (1M context)",+ "observes an Opus 5 pane status line (model + effort)",+ "Opus 5 (1M context) with high effort\n❯ ",+ "publishes Claude aliases in native picker order without provider-model duplicates",+ "default",+ "fable",+ "ultracode",+ "2.1.208",+ "observes Claude ultracode effort from JSONL and the live footer",+ "{\"type\":\"user\",\"message\":{\"content\":\"<local-command-stdout>Set effort level to ultracode (this session only): xhigh + dynamic workflow orchestration</local-command-stdout>\"}}",+ "user",+ "<local-command-stdout>Set effort level to ultracode (this session only): xhigh + dynamic workflow orchestration</local-command-stdout>",+ "old output\n──────────────── ultracode ─\n❯\n────────────────",+ "observes Codex model, effort, and plan mode from rollout settings",+ "{\"type\":\"session_meta\",\"payload\":{\"cli_version\":\"0.144.5\"}}",+ "session_meta",+ "{\"type\":\"event_msg\",\"payload\":{\"type\":\"thread_settings_applied\",\"thread_settings\":{\"model\":\"gpt-5.6-sol\",\"reasoning_effort\":\"high\",\"collaboration_mode\":{\"mode\":\"plan\"}}}}",+ "plan",+ "observes Codex ultra effort from rollout and pane state",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-5.6-sol\",\"reasoning_effort\":\"ultra\"}}",+ "› \ngpt-5.6-sol ultra ·",+ "RuntimeProfileManager.transcriptFields",+ "names the fields a Codex record sets, through the same reader as ingest",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-6\",\"reasoning_effort\":\"high\",\"collaboration_mode\":{\"mode\":\"plan\"}}}",+ "gpt-6",+ "model",+ "effort",+ "mode",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-6\",\"collaboration_mode\":{\"mode\":\"default\"}}}",+ "{\"type\":\"event_msg\",\"payload\":{\"type\":\"thread_settings_applied\",\"thread_settings\":{\"model\":\"gpt-6\",\"reasoning_effort\":\"low\"}}}",+ "{\"type\":\"session_meta\",\"payload\":{\"cli_version\":\"0.159.0\"}}",+ "0.159.0",+ "{\"type\":\"event_msg\",\"payload\":{\"type\":\"user_message\",\"message\":\"hi\"}}",+ "user_message",+ "names the fields a Claude record sets",+ "{\"type\":\"assistant\",\"version\":\"2.1.212\",\"message\":{\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[]}}",+ "claude-opus-5-5",+ "{\"type\":\"assistant\",\"version\":\"2.1.212\",\"message\":{\"role\":\"assistant\",\"model\":\"<synthetic>\",\"content\":[]}}",+ "{\"type\":\"user\",\"message\":{\"role\":\"user\",\"content\":\"<local-command-stdout>Set effort level to high</local-command-stdout>\"}}",+ "Set effort level to high",+ "{\"type\":\"user\",\"message\":{\"role\":\"user\",\"content\":\"plain\"}}",+ "plain",+ "leaves the session, its controls and its state untouched",+ "{\"type\":\"assistant\",\"message\":{\"model\":\"claude-opus-5-5\"}}",+ "{\"type\":\"assistant\",\"version\":\"9.9.9\",\"message\":{\"model\":\"claude-fable-5-1\"}}",+ "9.9.9",+ "claude-fable-5-1",+ "answers nothing for other engines or a record that is not an object",+ "{\"params\":{\"update\":{\"_meta\":{\"modelId\":\"grok-5\"}}}}",+ "grok-5",+ "not json",+ "[1]",+ "RuntimeProfileManager.beginHydrate",+ "changes nothing the session shows until commit, then shows the staged state",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-5\",\"reasoning_effort\":\"low\"}}",+ "gpt-5",+ "reads Claude records too, and keeps an unbound session out of the shared state",+ "{\"type\":\"assistant\",\"version\":\"2.1.270\",\"message\":{\"model\":\"claude-opus-5-5\"}}",+ "2.1.270"+ ],+ "lib/runtimeProfileController.spec.ts": [+ "node:fs/promises",+ "node:os",+ "node:path",+ "vitest",+ "../engines/codex/modelPicker.js",+ "./registry.js",+ "./runtimeProfile.js",+ "./runtimeProfileController.js",+ "./__fixtures__/rewindPickers.js",+ "./__fixtures__/takeoverScreens.js",+ "./__fixtures__/codexModelPickers.js",+ "__fixtures__",+ "codex-home-0.160",+ "codex-home-",+ "models_cache.json",+ "2026-10-05T09:00:00Z",+ "0.160.0",+ "claude",+ "codex",+ "cursor",+ "opencode",+ "/tmp/s1.jsonl",+ "tmp",+ "/tmp",+ "tmux",+ "tmux\u0000%1",+ "0.144.5",+ "2026.07.20-8cc9c0b",+ "1.18.31",+ "2.1.212",+ "runtime pane parsing",+ "distinguishes dim placeholders from real drafts",+ "\u001b[1m›\u001b[0m \u001b[2mWrite tests\u001b[0m",+ "\u001b[1m›\u001b[0m write tests",+ "\u001b[39m❯ \u001b[2mAsk about the codebase\u001b[0m",+ "\u001b[39m❯ Ask about the codebase",+ "\u001b[48;2;21;21;21m \u001b[2m→ \u001b[0;7mP\u001b[0;2mlan, search, build anything\u001b[0m",+ "reads Codex browsing its transcript as a modal, at every width, with or without a draft dimmed under it",+ "\u001b[2m\u001b[1m›\u001b[0m\u001b[2m \u001b[2mAsk Codex to do anything\u001b[0m",+ "\u001b[2m · \u001b[0m",+ "\u001b[36mBrowsing transcript\u001b[0m\u001b[2m · \u001b[0m↑↓/jk\u001b[2m scroll\u001b[0m\u001b[2m · \u001b[0m←→/hl\u001b[2m prompts\u001b[0m\u001b[2m · \u001b[0mctrl + t\u001b[2m details\u001b[0m\u001b[2m · \u001b[0m↵\u001b[2m rewind\u001b[0m\u001b[2m · \u001b[0mesc\u001b[2m back\u001b[0m",+ "\u001b[36mBrowsing\u001b[0m\u001b[2m · \u001b[0m↵\u001b[2m rewind\u001b[0m\u001b[2m · \u001b[0mesc\u001b[2m back\u001b[0m",+ "\u001b[36mBrowsing\u001b[0m\u001b[2m · \u001b[0mesc",+ "\u001b[36mBrowsing\u001b[0m",+ "\u001b[39m❯ \u001b[2mAsk about the codebase\u001b[0m\n Browsing · esc",+ " Browsing transcript · as before\n\u001b[2m\u001b[1m›\u001b[0m\u001b[2m \u001b[2mAsk Codex to do anything\u001b[0m\n\n gpt-5.6-sol default · /tmp/project",+ "reads Claude Code's Rewind menu as a modal, in each of its views, and as closed once its prompt is back",+ "rewind",+ " fix the login bug",+ " Rewind",+ "finds Codex browsing its transcript in both its screen modes",+ "reads the engines' own screens that take the composer's place as dialogs, so no work is typed into them",+ "search",+ "transcript",+ "update",+ "trust",+ "tells an approval prompt and a menu from the MCP boot notice, which takes typing and is no modal for a message",+ " Bash command\n printf hi\n Do you want to proceed?\n ❯ 1. Yes\n 2. No",+ "permission",+ "Select Model and Effort\n› 1. gpt-5.6-sol (current)",+ "menu",+ "reads hermes, which italicises its placeholder instead of dimming it",+ "❯ \u001b[3m\u001b[38;5;136mAsk anything, or type / for commands…\u001b[0m",+ "hermes",+ "❯ what changed in this repo",+ "reads opencode past the status strip its own gutter runs through",+ " ▣ Build · DeepSeek-V4-Flash-0731 · 6.0s",+ " ┃ Build · DeepSeek-V4-Flash-0731 autonomous.ai",+ " ╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",+ " /Users/example/Downloads/20260907",+ " what changed in",+ " this repo",+ " ┃\n ┃ fix the parser",+ " ┃",+ " ┃ fix the parser",+ " LSP là gì thế",+ "answer text",+ "reads opencode past a card floating over its composer",+ "\u001b[48;2;10;10;10m",+ "\u001b[48;2;30;30;30m",+ "\u001b[48;2;20;20;20m",+ "\u001b[38;2;92;156;245m",+ "\u001b[38;2;255;255;255m",+ "Connect provider /connect",+ " Build · Big Pickle OpenCode Zen",+ " \u001b[38;2;92;156;245m╹\u001b[38;2;30;30;30m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",+ " what changed in this repo",+ "reads OpenCode's grey placeholder as a placeholder, not a draft",+ "\u001b[38;2;128;128;128m",+ " \u001b[38;2;92;156;245m┃\u001b[38;2;255;255;255m\u001b[48;2;30;30;30m \u001b[2m\u001b[1m›\u001b[0m\u001b[2m \u001b[2mAsk Codex to do anything\u001b[0m\u001b[38;2;255;255;255m \u001b[48;2;10;10;10m\n \u001b[38;2;92;156;245m┃\u001b[38;2;255;255;255m\u001b[48;2;30;30;30m \u001b[38;2;92;156;245mBuild\u001b[38;2;255;255;255m \u001b[38;2;128;128;128m·\u001b[38;2;255;255;255m Big Pickle\u001b[48;2;10;10;10m\n \u001b[38;2;92;156;245m╹\u001b[38;2;30;30;30m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",+ " \u001b[38;2;92;156;245m┃\u001b[38;2;255;255;255m\u001b[48;2;30;30;30m \u001b[2m\u001b[1m›\u001b[0m\u001b[2m \u001b[2mAsk Codex to do anything\u001b[0m\u001b[38;2;255;255;255m \u001b[48;2;10;10;10m",+ " \u001b[38;2;92;156;245m┃\u001b[38;2;255;255;255m\u001b[48;2;30;30;30m \u001b[38;2;92;156;245mBuild\u001b[38;2;255;255;255m \u001b[38;2;128;128;128m·\u001b[38;2;255;255;255m Big Pickle\u001b[48;2;10;10;10m",+ " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n \u001b[38;2;240;246;252m❯ hi\u001b[39m\n ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n ● Hi! What would you like to work on?\n \u001b[38;2;145;152;161m~/Downloads/20260907\u001b[39m\n\u001b[38;2;129;139;152m╻\u001b[38;2;20;27;34m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n\u001b[38;2;129;139;152m┃\u001b[39m\u001b[48;2;20;27;34m\u001b[38;2;128;128;128mAsk anything… \"What is the tech stack of this project?\"\n\u001b[38;2;129;139;152m\u001b[49m╹\u001b[38;2;20;27;34m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n\u001b[39m ← open sidebar · / commands · ? help · tab next tab",+ "\u001b[38;2;128;128;128mAsk anything… \"What is the tech stack of this project?\"",+ " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n \u001b[38;2;240;246;252m❯ hi\u001b[39m\n ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n ● Hi! What would you like to work on?\n \u001b[38;2;145;152;161m~/Downloads/20260907\u001b[39m\n\u001b[38;2;129;139;152m╻\u001b[38;2;20;27;34m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n\u001b[38;2;129;139;152m┃\u001b[39m\u001b[48;2;20;27;34m\u001b[38;2;255;255;255mswitch me please\n\u001b[38;2;129;139;152m\u001b[49m╹\u001b[38;2;20;27;34m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n\u001b[39m ← open sidebar · / commands · ? help · tab next tab",+ "\u001b[38;2;255;255;255mswitch me please",+ " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n \u001b[38;2;240;246;252m❯ hi\u001b[39m\n ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n ● Hi! What would you like to work on?\n \u001b[38;2;145;152;161m~/Downloads/20260907\u001b[39m\n\u001b[38;2;129;139;152m╻\u001b[38;2;20;27;34m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n\u001b[38;2;129;139;152m┃\u001b[39m\u001b[48;2;20;27;34m\u001b[38;2;255;255;255mfix the parser\u001b[38;2;128;128;128m ⏎ send\n\u001b[38;2;129;139;152m\u001b[49m╹\u001b[38;2;20;27;34m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n\u001b[39m ← open sidebar · / commands · ? help · tab next tab",+ "\u001b[38;2;255;255;255mfix the parser\u001b[38;2;128;128;128m ⏎ send",+ "reads copilot, whose composer carries no marker while its sent messages do",+ " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n \u001b[38;2;240;246;252m❯ hi\u001b[39m\n ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n ● Hi! What would you like to work on?\n \u001b[38;2;145;152;161m~/Downloads/20260907\u001b[39m\n\u001b[38;2;129;139;152m╻\u001b[38;2;20;27;34m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n\u001b[38;2;129;139;152m┃\u001b[39m\u001b[48;2;20;27;34m\u001b[2m\u001b[1m›\u001b[0m\u001b[2m \u001b[2mAsk Codex to do anything\u001b[0m\n\u001b[38;2;129;139;152m\u001b[49m╹\u001b[38;2;20;27;34m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n\u001b[39m ← open sidebar · / commands · ? help · tab next tab",+ " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",+ " \u001b[38;2;240;246;252m❯ hi\u001b[39m",+ " ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",+ " ● Hi! What would you like to work on?",+ " \u001b[38;2;145;152;161m~/Downloads/20260907\u001b[39m",+ "\u001b[38;2;129;139;152m╻\u001b[38;2;20;27;34m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",+ "\u001b[38;2;129;139;152m┃\u001b[39m\u001b[48;2;20;27;34m\u001b[2m\u001b[1m›\u001b[0m\u001b[2m \u001b[2mAsk Codex to do anything\u001b[0m",+ "\u001b[38;2;129;139;152m\u001b[49m╹\u001b[38;2;20;27;34m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",+ "\u001b[39m ← open sidebar · / commands · ? help · tab next tab",+ "copilot",+ " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n \u001b[38;2;240;246;252m❯ hi\u001b[39m\n ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n ● Hi! What would you like to work on?\n \u001b[38;2;145;152;161m~/Downloads/20260907\u001b[39m\n\u001b[38;2;129;139;152m╻\u001b[38;2;20;27;34m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n\u001b[38;2;129;139;152m┃\u001b[39m\u001b[48;2;20;27;34m\n\u001b[38;2;129;139;152m\u001b[49m╹\u001b[38;2;20;27;34m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n\u001b[39m ← open sidebar · / commands · ? help · tab next tab",+ " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n \u001b[38;2;240;246;252m❯ hi\u001b[39m\n ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n ● Hi! What would you like to work on?\n \u001b[38;2;145;152;161m~/Downloads/20260907\u001b[39m\n\u001b[38;2;129;139;152m╻\u001b[38;2;20;27;34m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\n\u001b[38;2;129;139;152m┃\u001b[39m\u001b[48;2;20;27;34m fix the parser\n\u001b[38;2;129;139;152m\u001b[49m╹\u001b[38;2;20;27;34m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n\u001b[39m ← open sidebar · / commands · ? help · tab next tab",+ " fix the parser",+ "│ Do you want to allow this access?\n│ ❯ 1. Yes\n│ 2. No, and tell Copilot what to do differently (Esc to stop)",+ "│ Do you want to allow this access?",+ "│ ❯ 1. Yes",+ "│ 2. No, and tell Copilot what to do differently (Esc to stop)",+ "reads grok past the right-hand edge of its own composer box",+ " ╭────────────────────────────────────────────────────────────╮",+ " ╭────────────────────────────────────────────────────────────",+ " ╭",+ "────────────────────────────────────────────────────────────",+ " │ ",+ " ╰",+ " Grok 4.6 (xhigh) ─╯",+ " Shift+Tab:mode │ Ctrl+x:shortcuts",+ "grok",+ "❯ fix the parser",+ "❯ a very long message",+ " that wrapped down",+ "❯ what is an LSP",+ "\n Select Model and Effort",+ " │ ❯ fix the parser",+ "does not read a truecolor foreground as a dim placeholder",+ "\u001b[39m❯ \u001b[38;2;255;170;0mfix the parser\u001b[0m",+ "reads devin and pi panes, whose composers look nothing like the others",+ "\u001b[2m\u001b[1m›\u001b[0m\u001b[2m \u001b[2mAsk Codex to do anything\u001b[0m\n────────────────────────────\nSWE-1.6 Slow See all keyboard shortcuts: /shortcuts",+ "────────────────────────────",+ "SWE-1.6 Slow See all keyboard shortcuts: /shortcuts",+ "devin",+ "\u001b[39m❭ \u001b[2mAsk Devin to build features\u001b[0m\n────────────────────────────\nSWE-1.6 Slow See all keyboard shortcuts: /shortcuts",+ "\u001b[39m❭ \u001b[2mAsk Devin to build features\u001b[0m",+ "\u001b[39m❭ fix the parser\n────────────────────────────\nSWE-1.6 Slow See all keyboard shortcuts: /shortcuts",+ "\u001b[39m❭ fix the parser",+ "────────────────────────────\n\n────────────────────────────\n/private/tmp/rp-probe/pi\n0.0%/500k (auto) minimax/minimax-m3 • high",+ "/private/tmp/rp-probe/pi",+ "0.0%/500k (auto) minimax/minimax-m3 • high",+ "\n/model something\n",+ "Thinking Level\nSelect reasoning depth for thinking-capable models\n→ medium Moderate reasoning (~8k tokens)\n Enter to select · Esc to go back",+ "Thinking Level",+ "Select reasoning depth for thinking-capable models",+ "→ medium Moderate reasoning (~8k tokens)",+ " Enter to select · Esc to go back",+ "───────────────────────────────────────────\n\n───────────────────────────────────────────\n~/KloveY/sandbox (main)\n↑5.4k ↓292 1.5%/200k (auto) Auto",+ "───────────────────────────────────────────",+ "~/KloveY/sandbox (main)",+ "↑5.4k ↓292 1.5%/200k (auto) Auto",+ "Type to search\n───────────────────────────────────────────\n\n───────────────────────────────────────────\n~/KloveY/sandbox (main)\n↑5.4k ↓292 1.5%/200k (auto) Auto",+ "ignores picker and Plan mode text left above the latest prompt",+ "Select Model and Effort\nPlan mode\n› old\ncompleted\n› \ngpt-5.6-sol high ·",+ "parses the version-gated Codex picker rows",+ "Select Model\nPick a quick auto mode or browse all models.\n 1. codex-auto-review Balanced agentic coding model for everyday work.\n› 2. All models (current) Choose a specific model and reasoning level",+ "Select Model",+ "Pick a quick auto mode or browse all models.",+ " 1. codex-auto-review Balanced agentic coding model for everyday work.",+ "› 2. All models (current) Choose a specific model and reasoning level",+ "quick",+ "codex-auto-review",+ "All models",+ "Select Model and Effort\n 1. gpt-5.6-sol (default) Latest frontier model.\n 2. gpt-5.6-terra\n› 3. gpt-5.6-luna (current) Fast model.",+ "gpt-5.6-sol",+ "gpt-5.6-terra",+ "gpt-5.6-luna",+ "Select Reasoning Level for gpt-5.6-sol\n 1. Low\n 2. High (default)\n 3. Extra high\n 4. More reasoning options",+ "xhigh",+ "Advanced Reasoning\n› 1. Max (current) Higher usage\n 2. Ultra Highest usage",+ "max",+ "ultra",+ "treats both Codex model picker generations as active dialogs",+ "Select Model\nPick a quick auto mode or browse all models.\n› 2. All models (current)",+ "does not reuse picker rows left before a newer composer prompt",+ "Select Model and Effort\n 1. gpt-old\n› 1. gpt-old\n› \ngpt-current high ·",+ "parses the gated Cursor picker and parameter rows by meaning",+ " Available models Max mode: OFF\n Filter:\n Auto\n → GPT-5.6 Sol 272K Medium (Tab to modify)\n Type to filter • Enter to select • Tab to edit",+ " Available models Max mode: OFF",+ " Filter:",+ " Auto",+ " → GPT-5.6 Sol 272K Medium (Tab to modify)",+ " Type to filter • Enter to select • Tab to edit",+ "GPT-5.6 Sol",+ " GPT-5.6 Sol — Edit Parameters\n Context\n → ● 272K ✓\n ○ 1M\n Reasoning\n ○ None\n ● Medium ✓\n ○ Extra High\n ◯ Fast",+ " GPT-5.6 Sol — Edit Parameters",+ " Context",+ " → ● 272K ✓",+ " ○ 1M",+ " Reasoning",+ " ○ None",+ " ● Medium ✓",+ " ○ Extra High",+ " ◯ Fast",+ "context",+ "272k",+ "reasoning",+ "none",+ "medium",+ "fast",+ "true",+ "RuntimeProfileController",+ "cancels the original conversation transaction after the registry row is rebound in place",+ "Sonnet 5 with low effort\n❯ ",+ "opus",+ "high",+ "cancelControl",+ "finishControl",+ "replacement",+ "BUSY",+ "sets Claude model and effort only after transcript confirmations",+ "Opus 4.8 with high effort\n❯ ",+ "/model ",+ "{\"type\":\"assistant\",\"message\":{\"content\":[{\"type\":\"text\",\"text\":\"Set model to Opus 4.8\"}]}}",+ "assistant",+ "text",+ "Set model to Opus 4.8",+ "{\"type\":\"assistant\",\"message\":{\"content\":[{\"type\":\"text\",\"text\":\"Set effort level to high\"}]}}",+ "Set effort level to high",+ "/model opus",+ "/effort high",+ "does not reset unchanged auto effort after switching from Haiku to Sonnet",+ "{\"type\":\"user\",\"message\":{\"content\":\"<local-command-stdout>Set model to Haiku 4.5</local-command-stdout>\"}}",+ "user",+ "<local-command-stdout>Set model to Haiku 4.5</local-command-stdout>",+ "haiku",+ "auto",+ "Set model to \u001b[1mSonnet 5\u001b[22m and saved as your default for new sessions",+ "Effort level set to auto",+ "sonnet",+ "/model sonnet",+ "sets Claude ultracode effort through its native command value",+ "Sonnet 5 with high effort\n❯ ",+ "Set model to Sonnet 5 and saved as your default for new sessions",+ "Set effort level to ultracode (this session only): xhigh + dynamic workflow orchestration",+ "ultracode",+ "/effort ultracode",+ "does not touch tmux when the requested profile is already current",+ "rejects remote Codex changes while the native session is in Plan mode",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-5.6-sol\",\"reasoning_effort\":\"high\",\"collaboration_mode\":{\"mode\":\"plan\"}}}",+ "turn_context",+ "plan",+ "low",+ "modelsForSession",+ "GPT-5.6-Sol / Low",+ "› \ngpt-5.6-sol high ·",+ "PLAN_SCOPE_AMBIGUOUS",+ "selects Codex Ultra through the Advanced Reasoning submenu",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-5.6-sol\",\"reasoning_effort\":\"high\"}}",+ "GPT-5.6-Sol / Ultra",+ "idle",+ "models",+ "efforts",+ "advanced",+ "Select Model and Effort\n 1. gpt-5.6-sol (current)",+ "Select Reasoning Level for gpt-5.6-sol\n 5. More reasoning options",+ "Advanced Reasoning\n 1. Max\n 2. Ultra",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-5.6-sol\",\"reasoning_effort\":\"ultra\"}}",+ "selects an explicit Codex model through the 0.145 All models pre-menu",+ "0.145.0",+ "GPT-5.6-Terra / Low",+ "Select Model\nPick a quick auto mode or browse all models.\n 1. codex-auto-review\n› 2. All models (current)",+ "Select Model and Effort\n 1. gpt-5.6-sol (current)\n 2. gpt-5.6-terra",+ "Select Reasoning Level for gpt-5.6-terra\n 1. Low\n 2. High (default)",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"gpt-5.6-terra\",\"reasoning_effort\":\"low\"}}",+ "selects a Codex quick profile directly from the 0.145 pre-menu",+ "GPT-5.6-Terra / High",+ "Select Reasoning Level for codex-auto-review\n 1. Low\n 2. Medium (default)\n 3. High",+ "{\"type\":\"turn_context\",\"payload\":{\"model\":\"codex-auto-review\",\"reasoning_effort\":\"high\"}}",+ "Codex 0.160",+ "event_msg",+ "thread_settings_applied",+ "default",+ "Select Reasoning Level for GPT-5.5",+ "/model",+ "Escape",+ "switches the effort by the display-named rows, to the new Persistent",+ "utf8",+ "gpt-5.5",+ "persistent",+ "Continue working until put to sleep",+ "reaches a model whose name has a space through All models",+ "codex-auto-fast",+ "Auto Fast",+ "list",+ "us.openai.gpt-5.6-luna",+ "GPT-5.6 Luna",+ "applies a quick preset with one press, and presses nothing for an effort it cannot give",+ "no row may be pressed",+ "EFFORT_UNSUPPORTED",+ "presses the row the list shows once Codex has refreshed it, not the row it first drew",+ "gpt-6-luna",+ "GPT-6-Luna",+ "a reasoning screen",+ "stops when the reasoning picker that opens names another model than the row pressed",+ "MODEL_UNAVAILABLE",+ "presses nothing for a model the list does not show exactly",+ "gpt-7",+ "GPT-7 / High",+ "codexCatalog",+ "offers an account held to the reserve model nothing else, and changes the reserve effort",+ "gpt-reserve",+ "Luna Reserve / High",+ "reaches Max through Advanced Reasoning, from a picker that opened on a reasoning screen",+ "GPT-5.6-Sol",+ "reaches Ultra on a GPT-6 model, as Codex catalog lists it there, and refuses Max where it does not",+ "gpt-6.1-sol",+ "GPT-6.1-Sol",+ "no key may be pressed",+ "presses nothing on a list that never reads the same twice",+ "takes the next switch after a refused one, when the app names the agent",+ "confirms a model the catalog does not describe that applied its one effort at once",+ "GPT-6-Luna / Auto",+ " Select Model and Effort\n\n› 1. gpt-6-luna Fast and affordable model for easier tasks.",+ "refuses to drive an engine the owner made view-only",+ "claude-4.5-sonnet",+ "Sonnet 4.5 / Auto",+ "→ Add a follow-up",+ "UNSUPPORTED_CLI_VERSION"+ ],+ "lib/runtimeProfileManager.spec.ts": [+ "node:fs",+ "node:os",+ "node:path",+ "vitest",+ "../config/env.js",+ "../engines/claude/runtimeProfile.js",+ "./registry.js",+ "./runtimeProfileManager.js",+ "./runtimeProfile.js",+ "./runtimeProfileWire.js",+ "__fixtures__",+ "utf8",+ "engine",+ "agent",+ "conversation",+ "registered-model",+ "1.0.0",+ "/tmp",+ "/tmp/profile-recording.jsonl",+ "runtime profiles without the pilot implementations",+ "amp",+ "amp-session.jsonl",+ "amp-session-queued.jsonl",+ "muse",+ "muse-session.jsonl",+ "copilot",+ "copilot-session.jsonl",+ "agy",+ "agy-session.jsonl",+ "preserves the registry seed when replaying the recorded %s transcript %s",+ "unknown",+ "keeps Pi metadata in its native footer and never treats answer text as Claude commands",+ "{\"type\":\"session\",\"version\":3,\"id\":\"019fa2a5-a26d-700c-bf8c-97af19ae3d5f\",\"timestamp\":\"2026-07-27T08:16:31.854Z\",\"cwd\":\"/tmp/pi-probe\"}",+ "{\"type\":\"model_change\",\"id\":\"45215278\",\"parentId\":null,\"model\":\"minimax/minimax-m3\"}",+ "{\"type\":\"thinking_level_change\",\"id\":\"1da16955\",\"parentId\":\"45215278\",\"level\":\"medium\"}",+ "0.0%/500k (auto) minimax/minimax-m3 • high",+ "minimax/minimax-m3",+ "high",+ "{\"type\":\"message\",\"message\":{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"Set model to Opus 5\\nSet effort level to low\"}]}}",+ "message",+ "assistant",+ "text",+ "Set model to Opus 5\nSet effort level to low",+ "terminal",+ "does not interpret Claude UI quoted in a %s pane",+ "Claude Code v2.1.212\nOpus 5 with high effort · Claude Max\nplan mode on",+ "retains the native Muse and Amp config sources without loading either pilot facet",+ "legacy-profile-",+ "settings.json",+ "{\"schema_version\":1,\"provider\":\"meta\",\"model\":\"muse-spark-1.2-contributor\"}",+ "meta",+ "muse-spark-1.2-contributor",+ "session.json",+ "{\"agentMode\":\"medium\"}",+ "medium",+ "auto",+ "still reads the captured agy footer and the registry-supplied CLI version",+ "permission-agy.txt",+ "gemini-3.7-flash-high"+ ]+ },+ "cases": {+ "opencode panes": "715595c7a8b411a7eddd",+ "opencode transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "opencode transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "opencode transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "opencode transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "opencode transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "opencode transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "opencode transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "opencode transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "opencode transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "opencode transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "opencode transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "opencode transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "opencode transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "opencode transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "opencode transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "opencode transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "opencode transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "opencode transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "opencode transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "opencode transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "opencode transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "opencode transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "opencode transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "opencode transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "opencode switch": "a5ff8a8d4c7b2b9f2c20",+ "cursor panes": "35a72b9e8329895bb001",+ "cursor transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "cursor transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "cursor transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "cursor transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "cursor transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "cursor transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "cursor transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "576243b5cd5564c859a5",+ "cursor transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "cursor transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "cursor transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "cursor transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "cursor transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "cursor transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "cursor transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "cursor transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "cursor transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "cursor transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "cursor transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "cursor transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "cursor transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "cursor transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "cursor transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "cursor transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "cursor transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "db9e473dd8d5918e73ea",+ "cursor switch": "a5ff8a8d4c7b2b9f2c20",+ "kilo panes": "67c55990c7776c6d6175",+ "kilo transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "kilo transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "kilo transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "kilo transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "kilo transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "kilo transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "kilo transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "kilo transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "kilo transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "kilo transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "kilo transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "kilo transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "kilo transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "kilo transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "kilo transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "kilo transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "kilo transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "kilo transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "kilo transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "kilo transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "kilo transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "kilo transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "kilo transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "kilo transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "kilo switch": "a5ff8a8d4c7b2b9f2c20",+ "devin panes": "67c55990c7776c6d6175",+ "devin transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "devin transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "devin transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "devin transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "devin transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "devin transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "devin transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "devin transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "devin transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "devin transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "devin transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "devin transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "devin transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "devin transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "devin transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "devin transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "devin transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "devin transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "devin transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "devin transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "devin transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "devin transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "devin transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "devin transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "devin switch": "a5ff8a8d4c7b2b9f2c20",+ "hermes panes": "401aff6dcd9ec2246c45",+ "hermes transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "hermes transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "hermes transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "hermes transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "hermes transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "hermes transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "hermes transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "hermes transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "hermes transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "hermes transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "hermes transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "hermes transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "hermes transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "hermes transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "hermes transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "hermes transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "hermes transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "hermes transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "hermes transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "hermes transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "hermes transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "hermes transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "hermes transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "hermes transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "hermes switch": "a5ff8a8d4c7b2b9f2c20",+ "amp panes": "67c55990c7776c6d6175",+ "amp transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "amp transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "amp transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "amp transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "amp transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "amp transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "amp transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "amp transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "amp transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "amp transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "amp transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "amp transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "amp transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "amp transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "amp transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "amp transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "amp transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "amp transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "amp transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "amp transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "amp transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "amp transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "amp transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "amp transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "amp switch": "a5ff8a8d4c7b2b9f2c20",+ "agy panes": "4a7692c7072a9c921556",+ "agy transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "agy transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "agy transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "agy transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "agy transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "agy transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "agy transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "agy transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "agy transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "agy transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "agy transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "agy transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "agy transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "agy transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "agy transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "agy transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "agy transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "agy transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "agy transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "agy transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "agy transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "agy transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "agy transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "agy transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "agy switch": "a5ff8a8d4c7b2b9f2c20",+ "grok panes": "81052bb6d505e26eb159",+ "grok transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "grok transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "grok transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "grok transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "grok transcript: lib/__fixtures__/grok-session.jsonl": "4fc7bc3b2c82635c2877",+ "grok transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "grok transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "grok transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "grok transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "grok transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "grok transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "grok transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "grok transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "grok transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "grok transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "grok transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "grok transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "grok transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "grok transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "grok transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "grok transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "grok transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "grok transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "grok transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "grok switch": "a5ff8a8d4c7b2b9f2c20",+ "copilot panes": "67c55990c7776c6d6175",+ "copilot transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "copilot transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "copilot transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "copilot transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "copilot transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "copilot transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "copilot transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "copilot transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "copilot transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "copilot transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "copilot transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "copilot transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "copilot transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "copilot transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "copilot transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "copilot transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "copilot transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "copilot transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "copilot transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "copilot transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "copilot transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "copilot transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "copilot transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "copilot transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "copilot switch": "a5ff8a8d4c7b2b9f2c20",+ "commandcode panes": "906036a2d7daf69b5f32",+ "commandcode transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "commandcode transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "commandcode transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "commandcode transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "commandcode transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "commandcode transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "commandcode transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "commandcode transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "commandcode transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "commandcode transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "commandcode transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "commandcode transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "commandcode transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "commandcode transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "commandcode transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "commandcode transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "commandcode transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "commandcode transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "commandcode transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "commandcode transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "commandcode transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "commandcode transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "commandcode transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "commandcode transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "6cfd51fd6186b776feb1",+ "commandcode switch": "a5ff8a8d4c7b2b9f2c20",+ "muse panes": "67c55990c7776c6d6175",+ "muse transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "muse transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "muse transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "muse transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "muse transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "muse transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "muse transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "muse transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "muse transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "muse transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "muse transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "muse transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "muse transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "muse transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "muse transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "muse transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "muse transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "muse transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "muse transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "muse transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "muse transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "muse transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "muse transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "muse transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "muse switch": "a5ff8a8d4c7b2b9f2c20",+ "pi panes": "bdc86b6f3641eff1e841",+ "pi transcript: lib/__fixtures__/agy-session.jsonl": "75fb94294849f1378a16",+ "pi transcript: lib/__fixtures__/amp-session-queued.jsonl": "570c99b3f3956b025567",+ "pi transcript: lib/__fixtures__/amp-session.jsonl": "9c9cec21f716a0927c48",+ "pi transcript: lib/__fixtures__/copilot-session.jsonl": "e71ccc4f73a3a35f2342",+ "pi transcript: lib/__fixtures__/grok-session.jsonl": "a92a0693f213db9f6a8c",+ "pi transcript: lib/__fixtures__/muse-session.jsonl": "f1e4f1aa37524b715f55",+ "pi transcript: lib/__fixtures__/transcript-async-subagents.jsonl": "9fd9952e2b117d7c128c",+ "pi transcript: engines/commandcode/normalizer.spec.ts#7b77773a0ceb": "9c9cec21f716a0927c48",+ "pi transcript: engines/copilot/normalizer.spec.ts#1dd90312ac7b": "01a89b866f339f9ca63f",+ "pi transcript: engines/copilot/normalizer.spec.ts#4baead2f03ac": "01a89b866f339f9ca63f",+ "pi transcript: engines/copilot/normalizer.spec.ts#923be793a482": "5d31a84d7ddfe6ef9069",+ "pi transcript: engines/copilot/normalizer.spec.ts#95d75cb4c027": "01a89b866f339f9ca63f",+ "pi transcript: engines/copilot/normalizer.spec.ts#cae75cef097a": "5d31a84d7ddfe6ef9069",+ "pi transcript: engines/cursor/normalizer.spec.ts#558da181d3c4": "5d31a84d7ddfe6ef9069",+ "pi transcript: engines/cursor/normalizer.spec.ts#6ed461f35f5c": "5d31a84d7ddfe6ef9069",+ "pi transcript: engines/cursor/normalizer.spec.ts#81d8549ffc71": "570c99b3f3956b025567",+ "pi transcript: engines/cursor/normalizer.spec.ts#8cf6e475d0ee": "01a89b866f339f9ca63f",+ "pi transcript: engines/cursor/normalizer.spec.ts#efdfd2e099d2": "d2cf164f30627514aae7",+ "pi transcript: engines/cursor/normalizer.spec.ts#f051300db4a8": "01a89b866f339f9ca63f",+ "pi transcript: engines/muse/normalizer.spec.ts#9a14cf11619e": "01a89b866f339f9ca63f",+ "pi transcript: engines/muse/normalizer.spec.ts#a2c3f58d3c15": "7e7c685f1f1e2e94a0d6",+ "pi transcript: engines/muse/normalizer.spec.ts#c7fde11095ca": "7e7c685f1f1e2e94a0d6",+ "pi transcript: engines/muse/normalizer.spec.ts#cdc1c45e4378": "01a89b866f339f9ca63f",+ "pi transcript: engines/pi/normalizer.spec.ts#74a8b245d519": "9c9cec21f716a0927c48",+ "pi switch": "a5ff8a8d4c7b2b9f2c20",+ "hermes config": "07a06bd5eafee1d69eba",+ "muse config": "616c142cf5e37f99e56a",+ "amp config": "6b6419ef529e39732cb3",+ "commandcode config": "09f0ea0fcad2465bec98",+ "opencode catalog #0: none": "f1caf45cac5732aea084",+ "opencode catalog #1: a9127f3d3436": "f1caf45cac5732aea084",+ "opencode catalog #2: 9dc81d7015f7": "f1caf45cac5732aea084",+ "opencode catalog #3: 3ca75971a59a": "240624caaa84dd8ddbb0",+ "opencode catalog #4: af35442306f2": "feb10aa7135c23fdae06",+ "opencode catalog #5: 5e91873c26c8": "f1caf45cac5732aea084",+ "opencode catalog #6: e464eeda1e88": "f1caf45cac5732aea084",+ "opencode catalog #7: ab1fa7b43c9d": "b6ff046077aa0c98932a",+ "opencode catalog #8: 70447c28da6e": "dcf649a670006dfc7019",+ "opencode catalog #9: 18df74c506a5": "e4f9a113d631ccd6268a",+ "opencode catalog #10: 07c1b76ac1b9": "f1caf45cac5732aea084",+ "opencode catalog #11: 24f6dc36d511": "f1caf45cac5732aea084",+ "opencode catalog #12: 497721d6085f": "f1caf45cac5732aea084",+ "opencode catalog #13: a74d74b3376d": "f1caf45cac5732aea084",+ "opencode catalog #14: cd666eb3eaa4": "f1caf45cac5732aea084",+ "opencode catalog #15: 4dfcc3faaa73": "f1caf45cac5732aea084",+ "opencode catalog #16: aaa05c7f5080": "f1caf45cac5732aea084",+ "opencode catalog #17: cec0e1133bc0": "f1caf45cac5732aea084",+ "opencode catalog #18: 599b786bd7ed": "f1caf45cac5732aea084",+ "opencode catalog #19: 8b2ac620d45f": "f1caf45cac5732aea084",+ "opencode catalog #20: 98fb1af1fcc5": "f1caf45cac5732aea084",+ "opencode catalog #21: 2bcd226f745d": "f1caf45cac5732aea084",+ "opencode catalog #22: 14badd721bdc": "f1caf45cac5732aea084",+ "opencode catalog #23: ac72b9b986af": "f1caf45cac5732aea084",+ "opencode catalog #24: e98ede245ced": "f1caf45cac5732aea084",+ "opencode catalog #25: 3d926aebef00": "f1caf45cac5732aea084",+ "opencode catalog #26: f393907d5564": "f1caf45cac5732aea084",+ "opencode catalog #27: da2589934f38": "f1caf45cac5732aea084",+ "opencode catalog #28: 0b7e86f9fe4c": "f1caf45cac5732aea084",+ "opencode catalog #29: 275655bb86ec": "f1caf45cac5732aea084",+ "opencode catalog #30: e2cfe562584a": "f1caf45cac5732aea084",+ "opencode catalog #31: 8d33cf60f8dc": "f1caf45cac5732aea084",+ "opencode catalog #32: d29a11edd77e": "f1caf45cac5732aea084",+ "opencode catalog #33: a4ec9d0d5be6": "f1caf45cac5732aea084",+ "opencode catalog #34: 09280ce46d00": "f1caf45cac5732aea084",+ "opencode catalog #35: 4c5897c05408": "f1caf45cac5732aea084",+ "opencode catalog #36: 6da54d290750": "f1caf45cac5732aea084",+ "opencode catalog #37: 20136d66f9d1": "f1caf45cac5732aea084",+ "opencode catalog #38: 34a99f51bff1": "f1caf45cac5732aea084",+ "opencode catalog #39: 502b4381624d": "f1caf45cac5732aea084",+ "opencode catalog #40: 1785cfc3bc6a": "f1caf45cac5732aea084",+ "opencode catalog #41: 1a8ae42835d0": "f1caf45cac5732aea084",+ "opencode catalog #42: 54bb0cff4e42": "f1caf45cac5732aea084",+ "opencode catalog #43: 37480dc3c2c6": "f1caf45cac5732aea084",+ "opencode catalog #44: 85fe24b925d0": "f1caf45cac5732aea084",+ "opencode catalog #45: a6f7a38d1b06": "f1caf45cac5732aea084",+ "opencode catalog #46: 166ea69e59c9": "f1caf45cac5732aea084",+ "opencode catalog #47: f788d4cb5099": "f1caf45cac5732aea084",+ "opencode catalog #48: 504a6423077c": "f1caf45cac5732aea084",+ "opencode catalog #49: cc555c4ea057": "f1caf45cac5732aea084",+ "opencode catalog #50: 8151df0b67f1": "f1caf45cac5732aea084",+ "opencode catalog #51: 7085cdab03d9": "f1caf45cac5732aea084",+ "opencode catalog #52: f834f9827ded": "f1caf45cac5732aea084",+ "opencode catalog #53: 3b82cc411e1a": "f1caf45cac5732aea084",+ "opencode catalog #54: 4210f80b11b6": "f1caf45cac5732aea084",+ "opencode catalog #55: 9fb54ddb86e1": "f1caf45cac5732aea084",+ "opencode catalog #56: 31f96e1023a8": "f1caf45cac5732aea084",+ "opencode catalog #57: bfb3dbf7248b": "f1caf45cac5732aea084",+ "opencode catalog #58: 6ef7c9b15ecd": "f1caf45cac5732aea084",+ "opencode catalog #59: 18a412fd9946": "f1caf45cac5732aea084",+ "opencode catalog #60: eafc8eeb2d21": "f1caf45cac5732aea084",+ "opencode catalog #61: 06c3290ea296": "f1caf45cac5732aea084",+ "kilo catalog #0: none": "d72a6f9257784cd5846e",+ "kilo catalog #1: a9127f3d3436": "d72a6f9257784cd5846e",+ "kilo catalog #2: 9dc81d7015f7": "d72a6f9257784cd5846e",+ "kilo catalog #3: 8e64ab9b3cf3": "7498e64e6cb17c758c53",+ "kilo catalog #4: 5d2d110ad364": "d72a6f9257784cd5846e",+ "kilo catalog #5: cc4e4f9ef25d": "d72a6f9257784cd5846e",+ "kilo catalog #6: 71471e75af36": "d72a6f9257784cd5846e",+ "kilo catalog #7: 88317abf6446": "43bd4177fbd9d2a59642",+ "kilo catalog #8: 20a5969db624": "d72a6f9257784cd5846e",+ "kilo catalog #9: 5f215627e9e5": "3799527ab8d899122bc1",+ "kilo catalog #10: bb46b6413cd4": "d72a6f9257784cd5846e",+ "kilo catalog #11: a22fafe52dff": "d72a6f9257784cd5846e",+ "kilo catalog #12: ff7d98129188": "d72a6f9257784cd5846e",+ "kilo catalog #13: 73826cb735f4": "d72a6f9257784cd5846e",+ "kilo catalog #14: 54c5ccf0f305": "d72a6f9257784cd5846e",+ "kilo catalog #15: 7105be09d96d": "d14858603532b3f4d227",+ "kilo catalog #16: 981e3709404f": "d72a6f9257784cd5846e",+ "kilo catalog #17: d826294d0e4d": "d72a6f9257784cd5846e",+ "kilo catalog #18: 69712c9ec779": "d72a6f9257784cd5846e",+ "kilo catalog #19: 55909c6a5741": "d72a6f9257784cd5846e",+ "kilo catalog #20: 0dba14a2b72c": "d72a6f9257784cd5846e",+ "kilo catalog #21: eb9e2b194112": "d72a6f9257784cd5846e",+ "kilo catalog #22: b9c3abf46277": "d72a6f9257784cd5846e",+ "kilo catalog #23: f2a17d17c34e": "d72a6f9257784cd5846e",+ "kilo catalog #24: 4816152504aa": "d72a6f9257784cd5846e",+ "kilo catalog #25: 024b8c2dd6f8": "d72a6f9257784cd5846e",+ "kilo catalog #26: 09ead4122e7a": "d72a6f9257784cd5846e",+ "kilo catalog #27: f75a25a20382": "d72a6f9257784cd5846e",+ "kilo catalog #28: 90cbc29cc39b": "d72a6f9257784cd5846e",+ "devin catalog #0: none": "58a0b9952f0c049cf72d",+ "devin catalog #1: a9127f3d3436": "58a0b9952f0c049cf72d",+ "devin catalog #2: 9dc81d7015f7": "58a0b9952f0c049cf72d",+ "devin catalog #3: 0d68184f68be": "fda72e03c54fbeef0ba3",+ "devin catalog #4: bb1d98f795e7": "58a0b9952f0c049cf72d",+ "devin catalog #5: 0c9bc7946c95": "58a0b9952f0c049cf72d",+ "devin catalog #6: 605ff0af6756": "58a0b9952f0c049cf72d",+ "devin catalog #7: 5e0c67437214": "58a0b9952f0c049cf72d",+ "devin catalog #8: b8e8e79b4db5": "58a0b9952f0c049cf72d",+ "devin catalog #9: 252fe135d639": "58a0b9952f0c049cf72d",+ "devin catalog #10: a209df2dea9d": "58a0b9952f0c049cf72d",+ "devin catalog #11: 7e6ca1dc0de7": "58a0b9952f0c049cf72d",+ "devin catalog #12: d52baccd23aa": "58a0b9952f0c049cf72d",+ "devin catalog #13: 4aaf3391f36b": "58a0b9952f0c049cf72d",+ "devin catalog #14: ec82fbbd320a": "58a0b9952f0c049cf72d",+ "devin catalog #15: 39e0b133fb6e": "58a0b9952f0c049cf72d",+ "devin catalog #16: 4972401dfe20": "58a0b9952f0c049cf72d",+ "devin catalog #17: d056acb41cd2": "58a0b9952f0c049cf72d",+ "devin catalog #18: 283313ec6b69": "58a0b9952f0c049cf72d",+ "devin catalog #19: 936d15a8886c": "58a0b9952f0c049cf72d",+ "devin catalog #20: f9ef6eedd766": "58a0b9952f0c049cf72d",+ "devin catalog #21: c082456a7766": "58a0b9952f0c049cf72d",+ "devin catalog #22: 371a79515fde": "58a0b9952f0c049cf72d",+ "devin catalog #23: 07188ebfe7ba": "58a0b9952f0c049cf72d",+ "devin catalog #24: 9baf3a40312f": "58a0b9952f0c049cf72d",+ "devin catalog #25: 15bf34219c9a": "58a0b9952f0c049cf72d",+ "devin catalog #26: 419255f2bb4c": "58a0b9952f0c049cf72d",+ "devin catalog #27: ebb1258c0a2b": "58a0b9952f0c049cf72d",+ "devin catalog #28: 6c1ff09db3a7": "58a0b9952f0c049cf72d",+ "devin catalog #29: 0027ea12aff3": "58a0b9952f0c049cf72d",+ "devin catalog #30: f72476691458": "58a0b9952f0c049cf72d",+ "devin catalog #31: 929260ad9b9e": "58a0b9952f0c049cf72d",+ "devin catalog #32: 7d5829c9c24f": "58a0b9952f0c049cf72d",+ "devin catalog #33: 9542d5c077c2": "58a0b9952f0c049cf72d",+ "devin catalog #34: 289eac6022ce": "58a0b9952f0c049cf72d",+ "devin catalog #35: 8ef10a97e929": "58a0b9952f0c049cf72d",+ "devin catalog #36: f85b0f43cace": "58a0b9952f0c049cf72d",+ "devin catalog #37: bc70bf4216e8": "58a0b9952f0c049cf72d",+ "devin catalog #38: 9ddb68d04a4b": "58a0b9952f0c049cf72d",+ "devin catalog #39: 38baac3648ee": "58a0b9952f0c049cf72d",+ "devin catalog #40: b57defad0e0d": "58a0b9952f0c049cf72d",+ "devin catalog #41: 0a117fbd4504": "58a0b9952f0c049cf72d",+ "devin catalog #42: 1e2b7ce7b26a": "58a0b9952f0c049cf72d",+ "devin catalog #43: 99957c974877": "58a0b9952f0c049cf72d",+ "devin catalog #44: bae5a6a47ead": "58a0b9952f0c049cf72d",+ "devin catalog #45: f14f50c1eaf3": "58a0b9952f0c049cf72d",+ "devin catalog #46: 098c0b63f0c9": "58a0b9952f0c049cf72d",+ "devin catalog #47: 140bedbf9c3f": "58a0b9952f0c049cf72d",+ "devin catalog #48: 4c15583ff6e2": "58a0b9952f0c049cf72d",+ "devin catalog #49: 9b90a0fb005f": "58a0b9952f0c049cf72d",+ "devin catalog #50: 865c31db24a5": "58a0b9952f0c049cf72d",+ "devin catalog #51: ae09fbf0fd13": "58a0b9952f0c049cf72d",+ "devin catalog #52: 0f5cfd8f1c89": "58a0b9952f0c049cf72d",+ "devin catalog #53: c402b73eed9b": "58a0b9952f0c049cf72d",+ "devin catalog #54: f859b7053858": "58a0b9952f0c049cf72d",+ "devin catalog #55: d87cf10cdb1f": "58a0b9952f0c049cf72d",+ "devin catalog #56: 5e41d7544923": "58a0b9952f0c049cf72d",+ "devin catalog #57: e92b1350c234": "58a0b9952f0c049cf72d",+ "devin catalog #58: ba691ba042bc": "58a0b9952f0c049cf72d",+ "devin catalog #59: d47e47f54bc8": "58a0b9952f0c049cf72d",+ "devin catalog #60: ed4914f4916b": "58a0b9952f0c049cf72d",+ "devin catalog #61: 0d0dfc4c948c": "58a0b9952f0c049cf72d",+ "devin catalog #62: 2d53e773eaf6": "58a0b9952f0c049cf72d",+ "devin catalog #63: 7196bdd54cd4": "58a0b9952f0c049cf72d",+ "devin catalog #64: c6fe94fac0d2": "58a0b9952f0c049cf72d",+ "devin catalog #65: 5d29af46db9b": "58a0b9952f0c049cf72d",+ "devin catalog #66: b77c5f88cc87": "58a0b9952f0c049cf72d",+ "devin catalog #67: 6b58fb0044a1": "58a0b9952f0c049cf72d",+ "devin catalog #68: 00ef2939aef4": "58a0b9952f0c049cf72d",+ "devin catalog #69: 4b9daa88fb60": "58a0b9952f0c049cf72d",+ "devin catalog #70: 0411d371da68": "58a0b9952f0c049cf72d",+ "devin catalog #71: ec55c34403a8": "58a0b9952f0c049cf72d",+ "devin catalog #72: ca3fc697952b": "58a0b9952f0c049cf72d",+ "devin catalog #73: fefa18225691": "58a0b9952f0c049cf72d",+ "devin catalog #74: 0b1f4ef1e3d6": "58a0b9952f0c049cf72d"+ }+}diff --git a/cli/src/engines/agy/inProcess.ts b/cli/src/engines/agy/inProcess.tsindex c6655e473..fc5374a28 100644--- a/cli/src/engines/agy/inProcess.ts+++ b/cli/src/engines/agy/inProcess.ts@@ -1,7 +1,7 @@/*** agy's code the core runs in its own process, loaded only once one of agy's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { AgyNormalizer, agyMessagesToEvents, lastAgyTurnText } from './normalizer.js'-export { agyPaneIdle } from './runtimeProfile.js'+export { agyPaneIdle, parseAgyFooterProfile } from './runtimeProfile.js'diff --git a/cli/src/engines/amp/inProcess.ts b/cli/src/engines/amp/inProcess.tsindex f28243eff..d35a88f54 100644--- a/cli/src/engines/amp/inProcess.ts+++ b/cli/src/engines/amp/inProcess.ts@@ -1,7 +1,8 @@/*** Amp's code the core runs in its own process, loaded only once one of Amp's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { AmpNormalizer, ampMessagesToEvents, lastAmpTurnText } from './normalizer.js'export { ampThreadToEvents, readAmpThread } from './threadExport.js'+export { parseAmpSession } from './runtimeProfile.js'diff --git a/cli/src/engines/commandcode/inProcess.ts b/cli/src/engines/commandcode/inProcess.tsindex 71dadffe0..f5bd40376 100644--- a/cli/src/engines/commandcode/inProcess.ts+++ b/cli/src/engines/commandcode/inProcess.ts@@ -1,6 +1,7 @@/*** Command Code's code the core runs in its own process, loaded only once one of Command Code's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { CommandCodeNormalizer, commandCodeRunError, commandCodeRunErrorSummary, commandcodeMessagesToEvents, lastCommandCodeTurnText, windowCommandCodeLines } from './normalizer.js'+export { COMMANDCODE_EFFORT_LEVELS, COMMANDCODE_EFFORTS, commandcodeBannerModel, countCommandcodeRefusals, parseCommandcodeModelsOutput } from './runtimeProfile.js'diff --git a/cli/src/engines/devin/inProcess.ts b/cli/src/engines/devin/inProcess.tsindex c8251bb7a..de7b2cb0d 100644--- a/cli/src/engines/devin/inProcess.ts+++ b/cli/src/engines/devin/inProcess.ts@@ -1,7 +1,8 @@/*** Devin's code the core runs in its own process, loaded only once one of Devin's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { DevinReader, readDevinMessages } from './reader.js'export { devinMessagesToEvents, lastDevinTurnText, windowDevinMessages } from './normalizer.js'+export { DEVIN_EFFORTS, devinFooterModel, devinModelCommandResult, parseDevinModelsOutput } from './runtimeProfile.js'diff --git a/cli/src/engines/grok/inProcess.ts b/cli/src/engines/grok/inProcess.tsindex 2d07e5177..23034562c 100644--- a/cli/src/engines/grok/inProcess.ts+++ b/cli/src/engines/grok/inProcess.ts@@ -1,6 +1,7 @@/*** Grok's code the core runs in its own process, loaded only once one of Grok's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { GrokNormalizer, grokMessagesToEvents, lastGrokTurnText } from './normalizer.js'+export { parseGrokFooterProfile } from './runtimeProfile.js'diff --git a/cli/src/engines/hermes/inProcess.ts b/cli/src/engines/hermes/inProcess.tsindex fd368ff7a..b10bf4427 100644--- a/cli/src/engines/hermes/inProcess.ts+++ b/cli/src/engines/hermes/inProcess.ts@@ -1,7 +1,8 @@/*** Hermes's code the core runs in its own process, loaded only once one of Hermes's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { HermesReader, readHermesMessages } from './reader.js'export { hermesMessagesToEvents, lastHermesTurnText, windowHermesMessages } from './normalizer.js'+export { HERMES_EFFORTS, hermesStatusModel, parseHermesConfig, parseHermesModelsCache, parseHermesPickerPage } from './runtimeProfile.js'diff --git a/cli/src/engines/kilo/inProcess.ts b/cli/src/engines/kilo/inProcess.tsindex 14ef037bc..95320c076 100644--- a/cli/src/engines/kilo/inProcess.ts+++ b/cli/src/engines/kilo/inProcess.ts@@ -1,7 +1,8 @@/*** Kilo's code the core runs in its own process, loaded only once one of Kilo's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { KiloReader, readKiloMessages } from './reader.js'export { kiloMessagesToEvents, lastKiloTurnText, windowKiloMessages } from './normalizer.js'+export { kiloFooterModelId, parseKiloModelsOutput } from './runtimeProfile.js'diff --git a/cli/src/engines/muse/inProcess.ts b/cli/src/engines/muse/inProcess.tsindex ab9d3a714..215fe8687 100644--- a/cli/src/engines/muse/inProcess.ts+++ b/cli/src/engines/muse/inProcess.ts@@ -1,6 +1,7 @@/*** Muse's code the core runs in its own process, loaded only once one of Muse's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { MuseNormalizer, lastMuseTurnText, museMessagesToEvents } from './normalizer.js'+export { parseMuseSettings } from './runtimeProfile.js'diff --git a/cli/src/engines/opencode/inProcess.ts b/cli/src/engines/opencode/inProcess.tsindex 9ab70dee6..db27f26dd 100644--- a/cli/src/engines/opencode/inProcess.ts+++ b/cli/src/engines/opencode/inProcess.ts@@ -1,7 +1,8 @@/*** OpenCode's code the core runs in its own process, loaded only once one of OpenCode's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { OpencodeReader, readOpencodeMessages } from './reader.js'export { lastOpencodeTurnText, opencodeMessagesToEvents, windowOpencodeMessages } from './normalizer.js'+export { countOpencodePickers, opencodeFooterModelId, opencodeRowMatches, opencodeRowNamesModel, parseOpencodeFooter, parseOpencodeModelsOutput, parseOpencodePickerRows } from './runtimeProfile.js'diff --git a/cli/src/engines/otherRuntime.golden.spec.ts b/cli/src/engines/otherRuntime.golden.spec.tsnew file mode 100644index 000000000..305101c80--- /dev/null+++ b/cli/src/engines/otherRuntime.golden.spec.ts@@ -0,0 +1,248 @@+/**+ * What the core reads of the twelve other engines' model and effort, and what a switch of theirs does, recorded+ * from main before their runtime-profile parsers left the core's static imports+ * (docs/design/2026-10-08-other-engines-out-of-core.md, (o4)). Through the core's own entries, wired as core/main.ts+ * wires them for an engine no worker serves (`new LegacyRuntimeProfileManager(() => undefined)`):+ *+ * - every pane through `ingestPane`, for every engine, from a fresh session: what it reports changed and the state;+ * - every transcript through `hydrate`, and line by line through `ingest` and `transcriptFields`;+ * - every config file a config-reading engine (Hermes, Muse, Amp, Command Code) reads, through `ingestConfig`;+ * - the catalogs OpenCode, Kilo and Devin warm on attach, from each output their specs hold, and every pane of+ * theirs read against the catalog;+ * - a switch (`RuntimeProfileController.setProfile`): whether it may be driven, what it offers, and what it does,+ * keys included.+ *+ * The inputs are the repository's: the pane fixtures, the transcripts the transcripts golden froze, and the+ * strings the runtime-profile specs write out (testing/specLiterals.ts), copied into the golden. Nothing of the+ * host is in it: the clock, platform, HOME, every engine home and the engines' binaries (scripts of the test's own,+ * first on PATH) are pinned, and no size depends on the temporary folder.+ *+ * `RECORD_OTHER_ENGINES_GOLDEN=1` writes the fixture. Record it again only for a change meant to alter what the+ * core reads of these engines' profiles, and say so in that change.+ */+import { createHash } from 'node:crypto'+import { chmodSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs'+import { tmpdir } from 'node:os'+import { join } from 'node:path'+import { fileURLToPath } from 'node:url'+import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'+import type { RegisteredSession } from '../lib/registry.js'+import { specStrings } from '../testing/specLiterals.js'+import * as takeoverScreens from '../lib/__fixtures__/takeoverScreens.js'+import * as rewindPickers from '../lib/__fixtures__/rewindPickers.js'++const SRC = fileURLToPath(new URL('..', import.meta.url))+const GOLDEN = fileURLToPath(new URL('./__fixtures__/other-runtime.golden.json', import.meta.url))+const TRANSCRIPTS = fileURLToPath(new URL('./__fixtures__/other-transcripts.golden.json', import.meta.url))+const RECORD = process.env.RECORD_OTHER_ENGINES_GOLDEN === '1'+const ENGINES = ['opencode', 'cursor', 'kilo', 'devin', 'hermes', 'amp', 'agy', 'grok', 'copilot', 'commandcode', 'muse', 'pi'] as const+type Engine = (typeof ENGINES)[number]+const SPEC_FILES = [+ ...['agy', 'commandcode', 'devin', 'grok', 'hermes', 'kilo', 'opencode', 'pi'].map((e) => `engines/${e}/runtimeProfile.spec.ts`),+ 'lib/runtimeProfile.spec.ts', 'lib/runtimeProfileController.spec.ts', 'lib/runtimeProfileManager.spec.ts',+]+const NOW = Date.parse('2026-10-08T12:00:00.000Z')+const fixturesDir = join(SRC, 'lib', '__fixtures__')++interface Golden {+ /** The strings the specs write out, as taken when recorded, by file. */+ strings: Record<string, string[]>+ /** Per case: a hash of everything it produced. */+ cases: Record<string, string>+}++const sha = (value: unknown): string => createHash('sha256').update(typeof value === 'string' ? value : JSON.stringify(value)).digest('hex')++let root = ''+const sessionOf = (engine: string, id = 'golden'): RegisteredSession => ({+ agentId: `agent-${engine}-${id}`, sessionId: `session-${engine}-${id}`, engine, active: true, registeredAt: NOW - 60_000, boundAt: NOW - 60_000,+ touchedAt: NOW - 30_000, transcriptPath: null, projectDir: 'golden', cwd: '/work/golden', runtimes: [], processIdentity: null, model: null,+ cliVersion: null,+} as unknown as RegisteredSession)++/** The pane fixtures, and the screens the fixture modules build. */+function fixturePanes(): string[] {+ return [+ ...readdirSync(fixturesDir).filter((name) => /^(permission|question)-[\w-]+\.txt$/.test(name)).sort().map((name) => readFileSync(join(fixturesDir, name), 'utf8')),+ ...[takeoverScreens, rewindPickers].flatMap((values) => Object.entries(values).sort(([a], [b]) => a.localeCompare(b))+ .map(([, value]) => value).filter((value): value is string => typeof value === 'string')),+ ]+}++type Manager = InstanceType<Awaited<ReturnType<typeof loadCore>>['LegacyRuntimeProfileManager']>+async function loadCore() {+ const { LegacyRuntimeProfileManager } = await import('../lib/runtimeProfileManager.js')+ const { RuntimeProfileController } = await import('../lib/runtimeControl.js')+ const { encodeRuntimeProfile } = await import('../engines/kit/runtime.js')+ return { LegacyRuntimeProfileManager, RuntimeProfileController, encodeRuntimeProfile }+}+let core: Awaited<ReturnType<typeof loadCore>>+const manager = (): Manager => new core.LegacyRuntimeProfileManager(() => undefined)+const stateOf = (m: Manager, s: RegisteredSession) => ({ state: m.getState(s.sessionId), selected: m.selectedModel(s) })++let golden: Golden+const recorded: Golden = { strings: {}, cases: {} }+function check(key: string, produced: unknown): void {+ const hash = sha(JSON.stringify(produced).split(root).join('<root>')).slice(0, 20)+ recorded.cases[key] = hash+ if (!RECORD) expect({ key, hash }).toEqual({ key, hash: golden.cases[key] })+}++/** Every pane, for `engine`, each read by a fresh session: what it reports changed, and the state after it. */+function readPanes(engine: Engine, panes: string[], m: Manager = manager()): unknown[] {+ return panes.map((pane, i) => {+ const s = sessionOf(engine, `pane-${i}`)+ return [m.ingestPane(s, pane, true), stateOf(m, s)]+ })+}++/** The engines' own programs, as the catalogs run them: each prints what the case puts in its output file. */+function binaries(): void {+ const bin = join(root, 'bin')+ mkdirSync(bin, { recursive: true })+ for (const name of ['opencode', 'kilo', 'devin', 'pi', 'commandcode', 'agent', 'hermes']) {+ const out = join(root, 'out', name)+ writeFileSync(join(bin, name), `#!/bin/sh\nif [ -f ${JSON.stringify(out)} ]; then cat ${JSON.stringify(out)}; else exit 1; fi\n`)+ chmodSync(join(bin, name), 0o755)+ }+ mkdirSync(join(root, 'out'), { recursive: true })+}+const output = (name: string, text: string | null): void => {+ const file = join(root, 'out', name)+ if (text === null) rmSync(file, { force: true }); else writeFileSync(file, text)+}++const platform = Object.getOwnPropertyDescriptor(process, 'platform')!+const saved: Record<string, string | undefined> = {}+let panes: string[] = []+let strings: Record<string, string[]> = {}+let transcripts: Array<{ id: string; lines: string[] }> = []++beforeAll(async () => {+ root = realpathSync(mkdtempSync(join(tmpdir(), 'other-runtime-golden-')))+ Object.defineProperty(process, 'platform', { ...platform, value: 'linux' })+ vi.useFakeTimers({ toFake: ['Date'], now: NOW })+ binaries()+ const home = join(root, 'home')+ const env: Record<string, string | undefined> = {+ HOME: home, XDG_CONFIG_HOME: join(home, '.config'), XDG_DATA_HOME: join(home, '.local', 'share'), ADAPTER_DATA_DIR: join(root, 'data'),+ HERMES_HOME: join(home, '.hermes'), COMMANDCODE_HOME: join(home, '.commandcode'), MUSE_CONFIG_DIR: undefined, AMP_STATE_DIR: undefined,+ OPENCODE_PATH: join(root, 'bin', 'opencode'), KILO_PATH: join(root, 'bin', 'kilo'), CURSOR_HOME: join(home, '.cursor'), DEVIN_HOME: undefined,+ PATH: `${join(root, 'bin')}:/usr/bin:/bin`, TZ: 'UTC',+ }+ for (const [name, value] of Object.entries(env)) {+ saved[name] = process.env[name]+ if (value === undefined) delete process.env[name]; else process.env[name] = value+ }+ for (const dir of ['data', join('home', '.hermes'), join('home', '.commandcode'), join('home', '.config', 'muse'), join('home', '.local', 'share', 'amp')]) mkdirSync(join(root, dir), { recursive: true })+ vi.resetModules()+ core = await loadCore()+ // As a session entering the registry does (engines/inProcess.ts `preloadEngine`): its engine's code is loaded+ // before any pane or line of it is read.+ const { loadEngine } = await import('./inProcess.js')+ for (const engine of ENGINES) await loadEngine(engine)+ golden = RECORD ? { strings: {}, cases: {} } : JSON.parse(readFileSync(GOLDEN, 'utf8')) as Golden+ strings = RECORD ? Object.fromEntries(SPEC_FILES.map((file) => [file, specStrings(join(SRC, file))])) : golden.strings+ recorded.strings = strings+ panes = [...new Set([...fixturePanes(), ...Object.values(strings).flat()])]+ // The transcripts the transcripts golden froze: its spec transcripts are in it, its fixtures are files.+ const frozen = JSON.parse(readFileSync(TRANSCRIPTS, 'utf8')) as { transcripts: Array<{ id: string; lines?: string[] }> }+ transcripts = frozen.transcripts.map(({ id, lines }) => ({+ id, lines: lines ?? readFileSync(join(SRC, id), 'utf8').split('\n').filter((line) => line.trim()),+ }))+})++afterAll(() => {+ vi.useRealTimers()+ Object.defineProperty(process, 'platform', platform)+ for (const [name, value] of Object.entries(saved)) if (value === undefined) delete process.env[name]; else process.env[name] = value+ if (root) rmSync(root, { recursive: true, force: true })+ if (RECORD) writeFileSync(GOLDEN, JSON.stringify(recorded, null, 1) + '\n')+})++/** Let a read the manager started and did not wait for (Command Code's config, after a model change) finish. */+// Only Date is faked, so this waits in real time, and what the read stamps is still the pinned clock.+const settle = () => new Promise<void>((resolve) => setTimeout(resolve, 30))++describe('the other engines\' runtime profiles, through the core', () => {+ it('has inputs', () => {+ expect(panes.length).toBeGreaterThan(500)+ expect(transcripts.length).toBeGreaterThan(20)+ })++ for (const engine of ENGINES) {+ it(`${engine}: every pane, every transcript, and a switch`, async () => {+ check(`${engine} panes`, readPanes(engine, panes))+ for (const transcript of transcripts) {+ const m = manager()+ const s = sessionOf(engine, 'hydrated')+ m.hydrate(s, transcript.lines)+ const hydrated = stateOf(m, s)+ const live = sessionOf(engine, 'live')+ const lines = transcript.lines.map((line) => [m.ingest(live, line, true), m.transcriptFields(live, line)])+ await settle()+ check(`${engine} transcript: ${transcript.id}`, { hydrated, lines, live: stateOf(m, live) })+ }+ // A switch: whether it may be driven, what is offered, and what a request does, every key included.+ const m = manager()+ const s = sessionOf(engine, 'switch')+ const keys: unknown[] = []+ const controller = new core.RuntimeProfileController({+ modelControlFor: () => undefined,+ readScreen: async () => null,+ manager: m as never,+ getSession: () => s,+ validateRuntime: async () => true,+ capture: async () => '',+ sendText: async (target, text) => { keys.push(['text', target, text]); return true },+ sendLiteral: async (target, text) => { keys.push(['literal', target, text]); return true },+ sendKey: async (target, key) => { keys.push(['key', target, key]); return true },+ acquireInput: () => () => {},+ })+ const target = core.encodeRuntimeProfile({ sessionId: s.agentId, engine, model: 'golden-model', effort: 'high' })+ const outcome = await controller.setProfile(s.agentId, target).then(() => 'switched', (error: { code?: string }) => error.code ?? String(error))+ check(`${engine} switch`, { supports: await m.supportsControl(s), offered: await m.modelsForSession(s), outcome, keys })+ }, 120_000)+ }++ it('reads each config file the config engines keep, as each spec writes one', async () => {+ const files: Record<string, (text: string) => string> = {+ hermes: () => join(root, 'home', '.hermes', 'config.yaml'),+ muse: () => join(root, 'home', '.config', 'muse', 'settings.json'),+ amp: () => join(root, 'home', '.local', 'share', 'amp', 'session.json'),+ commandcode: () => join(root, 'home', '.commandcode', 'config.json'),+ }+ const contents = [...new Set(Object.values(strings).flat())]+ for (const [engine, file] of Object.entries(files)) {+ const results: unknown[] = []+ for (const text of [null, ...contents]) {+ const path = file(text ?? '')+ if (text === null) rmSync(path, { force: true }); else writeFileSync(path, text)+ const m = manager()+ const s = sessionOf(engine, 'config')+ results.push([await m.ingestConfig(s, true), stateOf(m, s)])+ }+ rmSync(file(''), { force: true })+ check(`${engine} config`, results)+ }+ }, 120_000)++ it('resolves OpenCode\'s, Kilo\'s and Devin\'s panes against the catalog each output of theirs warms', async () => {+ const own: Record<string, string> = { opencode: 'engines/opencode/runtimeProfile.spec.ts', kilo: 'engines/kilo/runtimeProfile.spec.ts', devin: 'engines/devin/runtimeProfile.spec.ts' }+ for (const [engine, file] of Object.entries(own)) {+ const theirs = [...fixturePanes(), ...strings[file]!]+ for (const [i, catalog] of [null, ...strings[file]!].entries()) {+ output(engine, catalog)+ const m = manager()+ const warmed = await m.ingestConfig(sessionOf(engine, 'warm'), true)+ check(`${engine} catalog #${i}: ${catalog === null ? 'none' : sha(catalog).slice(0, 12)}`, { warmed, panes: readPanes(engine as Engine, theirs, m) })+ }+ output(engine, null)+ }+ }, 120_000)++ it('has a recorded outcome for every case, and no other', () => {+ if (RECORD) return+ expect(Object.keys(recorded.cases).sort()).toEqual(Object.keys(golden.cases).sort())+ })+})diff --git a/cli/src/engines/pi/inProcess.ts b/cli/src/engines/pi/inProcess.tsindex da2fbbe1d..284fb0a32 100644--- a/cli/src/engines/pi/inProcess.ts+++ b/cli/src/engines/pi/inProcess.ts@@ -1,6 +1,7 @@/*** Pi's code the core runs in its own process, loaded only once one of Pi's sessions needs it* (engines/inProcess.ts; docs/design/2026-10-08-other-engines-out-of-core.md). It re-exports, and holds no code of- * its own: what the core calls is the engine's own, unchanged.+ * its own: what the core calls is the engine's own, unchanged: its transcripts' readers, and its runtime profile's.*/export { PiNormalizer, lastPiTurnText, piMessagesToEvents, windowPiLines } from './normalizer.js'+export { PI_EFFORTS, PI_THINKING_LEVELS, parsePiFooterProfile, parsePiModelsOutput, parsePiThinkingSelection, piThinkingSteps } from './runtimeProfile.js'diff --git a/cli/src/leanEntry.spec.ts b/cli/src/leanEntry.spec.tsindex 3aa6fe8df..addf490c8 100644--- a/cli/src/leanEntry.spec.ts+++ b/cli/src/leanEntry.spec.ts@@ -90,11 +90,13 @@ describe('the lean bundle a release carries', () => {it.each([// Each a string its module alone holds: lib/questionPane.ts's, lib/hooks.ts's (its Amp plugin's), Amp's thread// export's (engines/amp/threadExport.ts), and the name the bundle keeps for Cursor's sub-agents' reader- // (engines/cursor/subagent.ts), which the core's own files only call.+ // (engines/cursor/subagent.ts) and Devin's switch reader (engines/devin/runtimeProfile.ts), which the core's+ // own files only call.['pane readers', 'Native screen reader must be injected'],['hook installers', 'Mirrors this Amp thread to the machine adapter'],['own code: Amp\'s', 'AMP_DISABLE_PLUGINS'],['own code: Cursor\'s', '"loadCursorReplayTaskLinks"'],+ ['runtime profiles: Devin\'s', '"devinModelCommandResult"'],])('leaves the other engines\' %s out of the core until it needs them', (_, marker) => {// engines/inProcess.ts imports them (docs/design/2026-10-08-other-engines-out-of-core.md): a file of the// core's own, which Node reads only then.diff --git a/cli/src/lib/runtimeControl.ts b/cli/src/lib/runtimeControl.tsindex 57e0f15f2..bc69ac6ec 100644--- a/cli/src/lib/runtimeControl.ts+++ b/cli/src/lib/runtimeControl.ts@@ -6,18 +6,8 @@ import { stripAnsi } from '../engines/kit/pane.js'export type { PaneInspection, PaneTakeover } from '../engines/facets/screen.js'import { parseRuntimeProfile } from './runtimeProfileWire.js'import type { RegisteredSession } from './registry.js'-import { devinModelCommandResult } from '../engines/devin/runtimeProfile.js'-import { countCommandcodeRefusals } from '../engines/commandcode/runtimeProfile.js'-import { parseHermesPickerPage } from '../engines/hermes/runtimeProfile.js'-import { parsePiFooterProfile, parsePiThinkingSelection, piThinkingSteps } from '../engines/pi/runtimeProfile.js'-import {- countOpencodePickers,- opencodeRowMatches,- opencodeRowNamesModel,- parseOpencodePickerRows,- type OpencodeModelTarget,- type OpencodePickerRow,-} from '../engines/opencode/runtimeProfile.js'+import type { OpencodeModelTarget, OpencodePickerRow } from '../engines/opencode/runtimeProfile.js'+import { engineNow, isOtherEngine, loadEngine, type InProcessModules, type OtherEngine } from '../engines/inProcess.js'import {type CursorModelTarget,type RuntimeProfile,@@ -125,6 +115,11 @@ function sleep(ms: number): Promise<void> {export class RuntimeProfileController {constructor(private readonly deps: RuntimeProfileControllerDeps) {}+ /** An engine's own code for its pane driver: loaded before the driver runs (`setProfile` refuses without it). */+ private engine<Name extends OtherEngine>(name: Name): InProcessModules[Name] {+ return engineNow(name, 'a switch was driven')!+ }+async setProfile(sessionId: string, encoded: unknown): Promise<void> {const registeredSession = this.deps.getSession(sessionId)if (!registeredSession) throw new RuntimeProfileControlError('AGENT_NOT_FOUND')@@ -153,6 +148,9 @@ export class RuntimeProfileController {throw new RuntimeProfileControlError(sameModel ? 'EFFORT_UNSUPPORTED' : 'MODEL_UNAVAILABLE')}await native?.validate({ stage: 'scope', target, state: observed })+ // The other engines' pane drivers read the pane with their engine's own code, loaded in this process: without+ // it the switch is refused before any key is sent.+ if (!native && isOtherEngine(session.engine) && !await loadEngine(session.engine)) throw new RuntimeProfileControlError('UNSUPPORTED_CLI_VERSION')const release = this.deps.acquireInput(session.agentId)if (!release) throw new RuntimeProfileControlError('BUSY')let controlStarted = false@@ -234,11 +232,11 @@ export class RuntimeProfileController {}const answered = await this.waitPane(session.agentId,- (value) => devinModelCommandResult(stripAnsi(value)) !== null,+ (value) => this.engine('devin').devinModelCommandResult(stripAnsi(value)) !== null,COMMAND_CONFIRM_MS,)if (!answered) throw new RuntimeProfileControlError('CONFIRM_TIMEOUT')- if (devinModelCommandResult(stripAnsi(answered)) === 'unavailable') {+ if (this.engine('devin').devinModelCommandResult(stripAnsi(answered)) === 'unavailable') {throw new RuntimeProfileControlError('MODEL_UNAVAILABLE')}// The acknowledgement line is not the state — the footer is, and only `ingestPane` reads it. Nothing@@ -299,12 +297,13 @@ export class RuntimeProfileController {// firing them blind is what an open-loop drive looks like, and it is exactly how this went wrong: a// stale first read sent the cursor to `off` and committed it. Re-reading also means a ladder that// scrolls, clamps at an end, or gains a level cannot desynchronise the walk.- let selection = parsePiThinkingSelection(stripAnsi(ladder))- if (!selection || piThinkingSteps(selection, effort) === null) {+ const pi = this.engine('pi')+ let selection = pi.parsePiThinkingSelection(stripAnsi(ladder))+ if (!selection || pi.piThinkingSteps(selection, effort) === null) {throw new RuntimeProfileControlError('EFFORT_UNSUPPORTED')}for (let guard = 0; selection !== effort && guard < PI_LADDER_MAX_STEPS; guard++) {- const steps = piThinkingSteps(selection as string, effort)+ const steps = pi.piThinkingSteps(selection as string, effort)if (steps === null || steps === 0) breakif (!await this.deps.sendKey(session.agentId, steps > 0 ? 'Down' : 'Up')) {throw new RuntimeProfileControlError('TMUX_FAILED')@@ -312,14 +311,14 @@ export class RuntimeProfileController {const moved = await this.waitPane(session.agentId,(value) => {- const next = parsePiThinkingSelection(stripAnsi(value))+ const next = pi.parsePiThinkingSelection(stripAnsi(value))return !!next && next !== selection},PICKER_STEP_MS,)// No movement means the cursor is pinned at an end of the ladder — pressing on cannot reach it.if (!moved) throw new RuntimeProfileControlError('EFFORT_UNSUPPORTED')- selection = parsePiThinkingSelection(stripAnsi(moved))+ selection = pi.parsePiThinkingSelection(stripAnsi(moved))}if (selection !== effort) throw new RuntimeProfileControlError('EFFORT_UNSUPPORTED')await this.deps.sendKey(session.agentId, 'Enter')@@ -369,9 +368,10 @@ export class RuntimeProfileController {* two do, the list does not narrow and this refuses rather than guessing.*/private async driveOpencodePicker(session: RegisteredSession, entry: OpencodeModelTarget): Promise<void> {- if (await this.pickOpencodeRow(session, entry, entry.filter, opencodeRowMatches)) return+ const opencode = this.engine('opencode')+ if (await this.pickOpencodeRow(session, entry, entry.filter, opencode.opencodeRowMatches)) returnif (entry.modelFilter === entry.filter) throw new RuntimeProfileControlError('MODEL_UNAVAILABLE')- if (!await this.pickOpencodeRow(session, entry, entry.modelFilter, opencodeRowNamesModel)) {+ if (!await this.pickOpencodeRow(session, entry, entry.modelFilter, opencode.opencodeRowNamesModel)) {throw new RuntimeProfileControlError('MODEL_UNAVAILABLE')}}@@ -391,13 +391,14 @@ export class RuntimeProfileController {// "Is a picker open?" cannot be asked of a capture that carries scrollback — an EARLIER picker is// still up there, so the check passes before this one opens and the filter would be typed into the// composer and submitted as a message. Count the openings instead and wait for one more.- const before = countOpencodePickers(stripAnsi(await this.deps.capture(session.agentId, 100) ?? ''))+ const opencode = this.engine('opencode')+ const before = opencode.countOpencodePickers(stripAnsi(await this.deps.capture(session.agentId, 100) ?? ''))if (!await this.deps.sendText(session.agentId, '/models')) {throw new RuntimeProfileControlError('TMUX_FAILED')}if (!await this.waitPane(session.agentId,- (v) => countOpencodePickers(stripAnsi(v)) > before,+ (v) => opencode.countOpencodePickers(stripAnsi(v)) > before,PICKER_OPEN_MS,)) {throw new RuntimeProfileControlError('CONFIRM_TIMEOUT')@@ -407,10 +408,10 @@ export class RuntimeProfileController {}const narrowed = await this.waitPane(session.agentId,- (v) => (parseOpencodePickerRows(stripAnsi(v)) ?? []).length === 1,+ (v) => (opencode.parseOpencodePickerRows(stripAnsi(v)) ?? []).length === 1,PICKER_STEP_MS,)- const rows = narrowed ? parseOpencodePickerRows(stripAnsi(narrowed)) ?? [] : []+ const rows = narrowed ? opencode.parseOpencodePickerRows(stripAnsi(narrowed)) ?? [] : []if (rows.length !== 1 || !matches(entry, rows[0])) {// Leave the pane as it was found. A picker left open with a dead filter in it swallows whatever// the user types next, and the retry below would type its filter on top of this one.@@ -456,7 +457,8 @@ export class RuntimeProfileController {// Success prints NOTHING and a refusal prints one line, so both have to be watched at once — and the// refusal has to be a NEW one. Matching the text anywhere in the capture reported failure in 25ms off// a refusal still sitting in the scrollback from an earlier model, while the level had in fact applied.- const refusalsBefore = countCommandcodeRefusals(stripAnsi(await this.deps.capture(session.agentId, 100) ?? ''))+ const commandcode = this.engine('commandcode')+ const refusalsBefore = commandcode.countCommandcodeRefusals(stripAnsi(await this.deps.capture(session.agentId, 100) ?? ''))if (!await this.deps.sendText(session.agentId, `/effort ${target.effort}`)) {throw new RuntimeProfileControlError('TMUX_FAILED')}@@ -466,7 +468,7 @@ export class RuntimeProfileController {await this.deps.manager.ingestConfig(session, true).catch(() => false)if (this.deps.manager.selectedModel(session) === target.id) returnconst capture = stripAnsi(await this.deps.capture(session.agentId, 100) ?? '')- if (countCommandcodeRefusals(capture) > refusalsBefore) {+ if (commandcode.countCommandcodeRefusals(capture) > refusalsBefore) {throw new RuntimeProfileControlError('EFFORT_UNSUPPORTED')}await sleep(150)@@ -491,7 +493,7 @@ export class RuntimeProfileController {}const opened = await this.waitPane(session.agentId,- (v) => !!parseHermesPickerPage(stripAnsi(v)),+ (v) => !!this.engine('hermes').parseHermesPickerPage(stripAnsi(v)),PICKER_OPEN_MS,)if (!opened) throw new RuntimeProfileControlError('CONFIRM_TIMEOUT')@@ -501,7 +503,7 @@ export class RuntimeProfileController {await this.walkHermesPage(session, (row) => hermesProviderMatches(row, entry.provider))if (!await this.waitPane(session.agentId,- (v) => (parseHermesPickerPage(stripAnsi(v))?.rows ?? []).some((row) => row === entry.id),+ (v) => (this.engine('hermes').parseHermesPickerPage(stripAnsi(v))?.rows ?? []).some((row) => row === entry.id),PICKER_OPEN_MS,)) {throw new RuntimeProfileControlError('MODEL_UNAVAILABLE')@@ -521,7 +523,7 @@ export class RuntimeProfileController {): Promise<void> {for (let guard = 0; guard < HERMES_PAGE_MAX_STEPS; guard++) {const capture = await this.deps.capture(session.agentId, 100)- const page = capture ? parseHermesPickerPage(stripAnsi(capture)) : null+ const page = capture ? this.engine('hermes').parseHermesPickerPage(stripAnsi(capture)) : nullif (!page || !page.selected) throw new RuntimeProfileControlError('TMUX_FAILED')if (wanted(page.selected)) {if (!await this.deps.sendKey(session.agentId, 'Enter')) {@@ -536,7 +538,7 @@ export class RuntimeProfileController {throw new RuntimeProfileControlError('TMUX_FAILED')}const moved = await this.waitPane(session.agentId, (v) => {- const next = parseHermesPickerPage(stripAnsi(v))+ const next = this.engine('hermes').parseHermesPickerPage(stripAnsi(v))return !!next?.selected && next.selected !== page.selected}, PICKER_STEP_MS)if (!moved) throw new RuntimeProfileControlError('MODEL_UNAVAILABLE')diff --git a/cli/src/lib/runtimeProfile.spec.ts b/cli/src/lib/runtimeProfile.spec.tsindex c63dc5067..28ad3f09d 100644--- a/cli/src/lib/runtimeProfile.spec.ts+++ b/cli/src/lib/runtimeProfile.spec.ts@@ -1,8 +1,9 @@import { mkdtemp, mkdir, rm, writeFile } from 'fs/promises'import { tmpdir } from 'os'import { join } from 'path'-import { afterEach, describe, expect, it } from 'vitest'+import { afterEach, beforeAll, describe, expect, it } from 'vitest'import type { RegisteredSession } from './registry.js'+import { loadEngine, OTHER_ENGINES } from '../engines/inProcess.js'import {codexEffortAllowed,encodeRuntimeProfile,@@ -30,6 +31,10 @@ function session(engine: RegisteredSession['engine']): RegisteredSession {}}+// The other engines' profile readers load as one of their sessions enters the registry (engines/inProcess.ts+// `preloadEngine`): before any pane of theirs is read, as here.+beforeAll(async () => { for (const engine of OTHER_ENGINES) await loadEngine(engine) })+describe('RuntimeProfileManager', () => {it('keeps agents that have not bound a session yet out of one another state', () => {// An agent awaiting its first bind carries `sessionId: ''`, which is not an identity: keyed on it,diff --git a/cli/src/lib/runtimeProfileController.spec.ts b/cli/src/lib/runtimeProfileController.spec.tsindex 66d46b7b1..ad39131c7 100644--- a/cli/src/lib/runtimeProfileController.spec.ts+++ b/cli/src/lib/runtimeProfileController.spec.ts@@ -4,6 +4,14 @@ import { join } from 'node:path'import { afterEach, describe, expect, it, vi } from 'vitest'import { codexEffortRows, parseCodexPicker } from '../engines/codex/modelPicker.js'import type { RegisteredSession } from './registry.js'+import { loadEngine } from '../engines/inProcess.js'++// The other engines' pane drivers read with their engine's own code, loaded in this process; a test may say it+// could not be.+vi.mock('../engines/inProcess.js', async (real) => {+ const actual = await real<typeof import('../engines/inProcess.js')>()+ return { ...actual, loadEngine: vi.fn(actual.loadEngine) }+})import { encodeRuntimeProfile, parseRuntimeProfile, RuntimeProfileManager } from './runtimeProfile.js'import {inspectRuntimePane,@@ -1033,4 +1041,26 @@ describe('RuntimeProfileController', () => {expect(sendKey).not.toHaveBeenCalled()expect(sendText).not.toHaveBeenCalled()})++ it('refuses a switch of another engine whose code could not be loaded, before any key or the input lock', async () => {+ // Behind the gate above today; were it to open again, a driver must not press keys it cannot read the+ // answer to.+ const value = session('opencode')+ const manager = new RuntimeProfileManager()+ manager.hydrate(value, [])+ const target = encodeRuntimeProfile({ sessionId: 'h1', engine: 'opencode', model: 'vibe/minimax-m3', effort: 'auto' })+ vi.spyOn(manager, 'supportsControl').mockReturnValue(true)+ vi.spyOn(manager, 'modelsForSession').mockResolvedValue([{ id: target, displayName: 'MiniMax M3' }])+ vi.mocked(loadEngine).mockResolvedValueOnce(null as never)+ const sendKey = vi.fn().mockResolvedValue(true)+ const acquireInput = vi.fn(() => () => undefined)+ const controller = new RuntimeProfileController({+ manager, getSession: () => value, validateRuntime: async () => true, capture: async () => '',+ sendText: vi.fn().mockResolvedValue(true), sendKey, sendLiteral: vi.fn().mockResolvedValue(true), acquireInput,+ })+ await expect(controller.setProfile('s1', target)).rejects.toMatchObject({ code: 'UNSUPPORTED_CLI_VERSION' })+ expect(loadEngine).toHaveBeenCalledWith('opencode')+ expect(acquireInput).not.toHaveBeenCalled()+ expect(sendKey).not.toHaveBeenCalled()+ })})diff --git a/cli/src/lib/runtimeProfileManager.spec.ts b/cli/src/lib/runtimeProfileManager.spec.tsindex 17bacbf36..d741e0a38 100644--- a/cli/src/lib/runtimeProfileManager.spec.ts+++ b/cli/src/lib/runtimeProfileManager.spec.ts@@ -1,13 +1,20 @@import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'import { tmpdir } from 'node:os'import { join } from 'node:path'-import { afterEach, describe, expect, it, vi } from 'vitest'+import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest'import { env } from '../config/env.js'import { runtime as claudeRuntime } from '../engines/claude/runtimeProfile.js'import type { RegisteredSession } from './registry.js'import { LegacyRuntimeProfileManager } from './runtimeProfileManager.js'import { RuntimeProfileManager } from './runtimeProfile.js'import { parseRuntimeProfile } from './runtimeProfileWire.js'+import { engineNow, loadEngine, OTHER_ENGINES } from '../engines/inProcess.js'++// A test may say an engine's code could not be loaded.+vi.mock('../engines/inProcess.js', async (real) => {+ const actual = await real<typeof import('../engines/inProcess.js')>()+ return { ...actual, engineNow: vi.fn(actual.engineNow), loadEngine: vi.fn(actual.loadEngine) }+})const fixture = (name: string): string => readFileSync(join(import.meta.dirname, '__fixtures__', name), 'utf8')const session = (engine: RegisteredSession['engine']): RegisteredSession => ({@@ -15,6 +22,32 @@ const session = (engine: RegisteredSession['engine']): RegisteredSession => ({cwd: '/tmp', transcriptPath: '/tmp/profile-recording.jsonl',} as RegisteredSession)afterEach(() => { vi.restoreAllMocks(); vi.useRealTimers() })+// The other engines' profile readers load as one of their sessions enters the registry (engines/inProcess.ts+// `preloadEngine`): before any pane of theirs is read, as here.+beforeAll(async () => { for (const engine of OTHER_ENGINES) await loadEngine(engine) })++describe('another engine whose code could not be loaded', () => {+ it('reads nothing of its panes, config files or catalog, and leaves its chips as they were', async () => {+ const manager = new LegacyRuntimeProfileManager(() => undefined)+ vi.mocked(engineNow).mockReturnValue(null)+ vi.mocked(loadEngine).mockResolvedValue(null as never)+ try {+ for (const engine of ['devin', 'hermes', 'commandcode', 'opencode', 'kilo', 'pi', 'grok', 'agy'] as const) {+ const agent = { ...session(engine), sessionId: `${engine}-s` }+ expect(manager.ingestPane(agent, 'any pane', true), engine).toBe(false)+ expect(manager.getState(agent.sessionId), engine).toMatchObject({ model: null, effort: null })+ }+ for (const engine of ['hermes', 'muse', 'amp'] as const) {+ expect(await manager.ingestConfig({ ...session(engine), sessionId: `${engine}-c` }, true), engine).toBe(false)+ }+ expect(await manager.opencodeCatalog()).toEqual([])+ expect(await manager.kiloCatalog()).toEqual([])+ } finally {+ vi.mocked(engineNow).mockReset()+ vi.mocked(loadEngine).mockReset()+ }+ })+})describe('runtime profiles without the pilot implementations', () => {it.each([diff --git a/cli/src/lib/runtimeProfileManager.ts b/cli/src/lib/runtimeProfileManager.tsindex 4067e8325..44f404d3e 100644--- a/cli/src/lib/runtimeProfileManager.ts+++ b/cli/src/lib/runtimeProfileManager.ts@@ -5,49 +5,18 @@ import { join } from 'path'import { execFile } from 'child_process'import { promisify } from 'util'import { env } from '../config/env.js'-import { parseMuseSettings } from '../engines/muse/runtimeProfile.js'-import { parseAmpSession } from '../engines/amp/runtimeProfile.js'import type { AgentEngine } from '../engines/types.js'import type { RegisteredSession } from './registry.js'-import {- DEVIN_EFFORTS,- devinFooterModel,- parseDevinModelsOutput,- type DevinModelTarget,-} from '../engines/devin/runtimeProfile.js'-import {- HERMES_EFFORTS,- hermesStatusModel,- parseHermesConfig,- parseHermesModelsCache,- type HermesModelTarget,-} from '../engines/hermes/runtimeProfile.js'-import {- COMMANDCODE_EFFORTS,- commandcodeBannerModel,- COMMANDCODE_EFFORT_LEVELS,- parseCommandcodeModelsOutput,- type CommandcodeModelTarget,-} from '../engines/commandcode/runtimeProfile.js'-import {- opencodeFooterModelId,- parseOpencodeFooter,- parseOpencodeModelsOutput,- type OpencodeModelTarget,-} from '../engines/opencode/runtimeProfile.js'-import {- kiloFooterModelId,- parseKiloModelsOutput,- type KiloModelTarget,-} from '../engines/kilo/runtimeProfile.js'-import {- PI_EFFORTS,- PI_THINKING_LEVELS,- parsePiFooterProfile,- parsePiModelsOutput,-} from '../engines/pi/runtimeProfile.js'-import { parseGrokFooterProfile } from '../engines/grok/runtimeProfile.js'-import { parseAgyFooterProfile } from '../engines/agy/runtimeProfile.js'+import type { DevinModelTarget } from '../engines/devin/runtimeProfile.js'+import type { HermesModelTarget } from '../engines/hermes/runtimeProfile.js'+import type { CommandcodeModelTarget } from '../engines/commandcode/runtimeProfile.js'+import type { OpencodeModelTarget } from '../engines/opencode/runtimeProfile.js'+import type { KiloModelTarget } from '../engines/kilo/runtimeProfile.js'+import type { parsePiModelsOutput } from '../engines/pi/runtimeProfile.js'+// The other engines' readers of their own profiles are their own code, loaded in this process as one of their+// sessions enters the registry (engines/inProcess.ts): a pane read takes them as loaded, a config or catalog read+// waits for them, and without them the chip keeps its last values.+import { engineNow, loadEngine } from '../engines/inProcess.js'import type { RuntimeFor } from '../engines/facets/runtime.js'import type { RuntimeProfile, RuntimeModelOption, RuntimeState, RuntimeField, RuntimeControl, RuntimeCatalogModel } from '../engines/facets/runtime.js'export type { RuntimeProfile, RuntimeModelOption, RuntimeState, RuntimeField } from '../engines/facets/runtime.js'@@ -460,7 +429,9 @@ export class LegacyRuntimeProfileManager {const state = this.state(session.sessionId)// This agent's OWN home: `hermes -p <name>` keeps its model and effort in the profile's// config.yaml, and reading the default one reported the wrong model on every profile agent.- const parsed = parseHermesConfig(await readText(join(session.hermesHome || env.HERMES_HOME, 'config.yaml')))+ const hermes = await loadEngine('hermes')+ if (!hermes) return false+ const parsed = hermes.parseHermesConfig(await readText(join(session.hermesHome || env.HERMES_HOME, 'config.yaml')))if (parsed.model) state.model = parsed.model.slice(parsed.model.lastIndexOf('/') + 1)state.effort = parsed.effort ?? 'auto'state.observedAt = Date.now()@@ -478,7 +449,9 @@ export class LegacyRuntimeProfileManager {// absence of the key means the CLI default, which its own --help documents as `high`.const before = this.selectedModel(session)const state = this.state(session.sessionId)- const parsed = parseMuseSettings(await readText(join(env.MUSE_CONFIG_DIR, 'settings.json')))+ const muse = await loadEngine('muse')+ if (!muse) return false+ const parsed = muse.parseMuseSettings(await readText(join(env.MUSE_CONFIG_DIR, 'settings.json')))if (parsed.model) state.model = parsed.modelstate.effort = parsed.effort ?? 'auto'state.observedAt = Date.now()@@ -494,7 +467,9 @@ export class LegacyRuntimeProfileManager {// second axis to report. `~/.local/share/amp/session.json` is the only local place it is written.const before = this.selectedModel(session)const state = this.state(session.sessionId)- const parsed = parseAmpSession(await readText(join(env.AMP_STATE_DIR, 'session.json')))+ const amp = await loadEngine('amp')+ if (!amp) return false+ const parsed = amp.parseAmpSession(await readText(join(env.AMP_STATE_DIR, 'session.json')))if (parsed.mode) state.model = parsed.modestate.effort = 'auto'state.observedAt = Date.now()@@ -596,7 +571,7 @@ export class LegacyRuntimeProfileManager {// Devin writes no transcript unless the user passes `--export`, so the footer's bottom-left cell is// the only per-session record of the running model. It is a DISPLAY name (`SWE-1.6 Slow`); the// catalog resolves it back to a model key so the chip and the picker agree.- const label = devinFooterModel(paneText)+ const label = engineNow('devin', 'its pane was read')?.devinFooterModel(paneText)const model = label ? this.devinModelKeyForLabel(session.sessionId, label) : nullif (model) {state.model = model.modelKey@@ -607,7 +582,7 @@ export class LegacyRuntimeProfileManager {} else if (session.engine === 'hermes') {// `⚕ minimax-m3 │ ctx --` — the status line is how a switch is seen immediately; config.yaml is// rewritten too, but the poll that reads it runs on its own schedule.- const model = hermesStatusModel(paneText)+ const model = engineNow('hermes', 'its pane was read')?.hermesStatusModel(paneText)if (model && model !== state.model) {state.model = modelstate.observedAt = Date.now()@@ -616,7 +591,7 @@ export class LegacyRuntimeProfileManager {// `/model` reprints the session banner (`# models: kimi-k2.6 · taste-1`) with the new model. The// transcript would say the same thing, but only after the NEXT turn runs — too late to confirm a// switch, and long enough for the chip to look stuck.- const model = commandcodeBannerModel(paneText)+ const model = engineNow('commandcode', 'its pane was read')?.commandcodeBannerModel(paneText)if (model && model !== state.model) {state.model = modelstate.observedAt = Date.now()@@ -634,8 +609,9 @@ export class LegacyRuntimeProfileManager {// case: with no provider connected OpenCode runs a built-in free model that `opencode models`// never prints, so insisting on a catalog match left the chips blank on a freshly opened agent// — showing nothing about a model the terminal was naming two lines below.- const footer = parseOpencodeFooter(paneText)- const id = opencodeFooterModelId(paneText, this.opencodeCatalogCache?.entries ?? [])+ const opencode = engineNow('opencode', 'its pane was read')+ const footer = opencode?.parseOpencodeFooter(paneText)+ const id = opencode?.opencodeFooterModelId(paneText, this.opencodeCatalogCache?.entries ?? [])const model = id ?? footer?.target ?? nullif (model) {// 'auto' remains the default: early builds had no reasoning axis at all, and inventing a@@ -649,7 +625,7 @@ export class LegacyRuntimeProfileManager {} else if (session.engine === 'kilo') {// Kilo names the model in its composer footer too, but the line is shaped differently enough that// its resolver had to be rewritten rather than renamed — see engines/kilo/runtimeProfile.ts.- const id = kiloFooterModelId(paneText, this.kiloCatalogCache?.entries ?? [])+ const id = engineNow('kilo', 'its pane was read')?.kiloFooterModelId(paneText, this.kiloCatalogCache?.entries ?? [])if (id) {state.model = idstate.effort = 'auto'@@ -658,7 +634,7 @@ export class LegacyRuntimeProfileManager {}} else if (session.engine === 'pi') {// Pi puts both axes in one footer cell: `minimax/minimax-m3 • high`.- const footer = parsePiFooterProfile(paneText)+ const footer = engineNow('pi', 'its pane was read')?.parsePiFooterProfile(paneText)if (footer) {state.model = footer.modelstate.effort = footer.effort@@ -666,7 +642,7 @@ export class LegacyRuntimeProfileManager {this.confirmObserved(session.sessionId, footer.model, footer.effort)}} else if (session.engine === 'grok') {- const footer = parseGrokFooterProfile(paneText)+ const footer = engineNow('grok', 'its pane was read')?.parseGrokFooterProfile(paneText)if (footer) {state.model = footer.modelstate.effort = footer.effort@@ -675,7 +651,7 @@ export class LegacyRuntimeProfileManager {} else if (session.engine === 'agy') {// agy's transcript never names the model, so the pane footer is the only continuous source; the// hook payload's `modelName` seeds it at session start.- const footer = parseAgyFooterProfile(paneText)+ const footer = engineNow('agy', 'its pane was read')?.parseAgyFooterProfile(paneText)if (footer) {state.model = footer.modelstate.effort = footer.effort@@ -1014,6 +990,8 @@ export class LegacyRuntimeProfileManager {* ACTUALLY running is pinned to the front so trimming can never hide it.*/private async devinModels(session: RegisteredSession): Promise<RuntimeModelOption[]> {+ const devin = await loadEngine('devin')+ if (!devin) return []const entries = await this.devinCatalog()const targets = new Map<string, DevinModelTarget>()const state = this.states.get(session.sessionId)@@ -1026,7 +1004,7 @@ export class LegacyRuntimeProfileManager {const seen = new Set<string>()for (const entry of ordered) {if (output.length >= CATALOG_LIMIT) break- if (!DEVIN_EFFORTS.has(entry.effort)) continue+ if (!devin.DEVIN_EFFORTS.has(entry.effort)) continueconst id = encodeRuntimeProfile({sessionId: session.agentId,engine: 'devin',@@ -1043,6 +1021,9 @@ export class LegacyRuntimeProfileManager {}private async devinCatalog(): Promise<DevinModelTarget[]> {+ // Its output is read with the engine's own code: without it there is no catalog, and nothing is run.+ const devin = await loadEngine('devin')+ if (!devin) return []const key = env.DEVIN_HOMEif (this.devinCatalogCache?.key === key && this.devinCatalogCache.expiresAt > Date.now()) {return this.devinCatalogCache.entries@@ -1054,7 +1035,7 @@ export class LegacyRuntimeProfileManager {timeout: 10_000,maxBuffer: 1024 * 1024,})- entries = parseDevinModelsOutput(result.stdout)+ entries = devin.parseDevinModelsOutput(result.stdout)} catch (err) {console.warn('[runtime-profile] Devin model catalog failed:', err instanceof Error ? err.message : err)}@@ -1068,18 +1049,20 @@ export class LegacyRuntimeProfileManager {* the table (the state fallback) still gets its own row so the chip never goes blank.*/private async piModels(session: RegisteredSession): Promise<RuntimeModelOption[]> {+ const pi = await loadEngine('pi')+ if (!pi) return []const entries = await this.piCatalog()const output: RuntimeModelOption[] = []const seen = new Set<string>()for (const entry of entries) {addOption(output, seen, session, entry.model, 'auto', entry.model)if (!entry.thinking) continue- for (const level of PI_THINKING_LEVELS) addOption(output, seen, session, entry.model, level, entry.model)+ for (const level of pi.PI_THINKING_LEVELS) addOption(output, seen, session, entry.model, level, entry.model)}const state = this.states.get(session.sessionId)if (entries.length && state?.model) {addOption(output, seen, session, state.model, 'auto', state.model)- if (state.effort && PI_EFFORTS.has(state.effort)) {+ if (state.effort && pi.PI_EFFORTS.has(state.effort)) {addOption(output, seen, session, state.model, state.effort, state.model)}}@@ -1098,12 +1081,14 @@ export class LegacyRuntimeProfileManager {* the chip names it truthfully; it just cannot be picked.*/private async hermesModels(session: RegisteredSession): Promise<RuntimeModelOption[]> {+ const hermes = await loadEngine('hermes')+ if (!hermes) return []const entries = await this.hermesCatalog(session.hermesHome || env.HERMES_HOME)const state = this.states.get(session.sessionId)const targets = new Map<string, HermesModelTarget>()const output: RuntimeModelOption[] = []const seen = new Set<string>()- const effort = state?.effort && HERMES_EFFORTS.has(state.effort) ? state.effort : 'auto'+ const effort = state?.effort && hermes.HERMES_EFFORTS.has(state.effort) ? state.effort : 'auto'const add = (entry: HermesModelTarget): void => {const short = entry.id.slice(entry.id.lastIndexOf('/') + 1)const id = encodeRuntimeProfile({@@ -1131,8 +1116,10 @@ export class LegacyRuntimeProfileManager {// key was already right and only the path it read was not.const cached = this.hermesCatalogCache.get(home)if (cached && cached.expiresAt > Date.now()) return cached.entries+ const hermes = await loadEngine('hermes')+ if (!hermes) return []const cache = await readJson(join(home, 'provider_models_cache.json'))- const entries = parseHermesModelsCache(cache)+ const entries = hermes.parseHermesModelsCache(cache)this.hermesCatalogCache.set(home, { entries, expiresAt: Date.now() + CATALOG_TTL_MS })return entries}@@ -1148,6 +1135,8 @@ export class LegacyRuntimeProfileManager {* (see COMMANDCODE_EFFORT_LEVELS).*/private async commandcodeModels(session: RegisteredSession): Promise<RuntimeModelOption[]> {+ const commandcode = await loadEngine('commandcode')+ if (!commandcode) return []const entries = await this.commandcodeCatalog()const targets = new Map<string, CommandcodeModelTarget>()const output: RuntimeModelOption[] = []@@ -1163,7 +1152,7 @@ export class LegacyRuntimeProfileManager {}for (const entry of entries) {add(entry, 'auto')- for (const level of COMMANDCODE_EFFORT_LEVELS) add(entry, level)+ for (const level of commandcode.COMMANDCODE_EFFORT_LEVELS) add(entry, level)}const state = this.states.get(session.sessionId)// `entries.length` guards the fallback: a model row is worth adding when the catalogue is readable but@@ -1172,13 +1161,16 @@ export class LegacyRuntimeProfileManager {if (entries.length && state?.model && !entries.some((entry) => entry.shortId === state.model)) {const own: CommandcodeModelTarget = { id: state.model, shortId: state.model, section: '', isDefault: false }add(own, 'auto')- if (state.effort && COMMANDCODE_EFFORTS.has(state.effort)) add(own, state.effort)+ if (state.effort && commandcode.COMMANDCODE_EFFORTS.has(state.effort)) add(own, state.effort)}this.commandcodeTargets.set(session.sessionId, targets)return output}private async commandcodeCatalog(): Promise<CommandcodeModelTarget[]> {+ // Its output is read with the engine's own code: without it there is no catalog, and nothing is run.+ const commandcode = await loadEngine('commandcode')+ if (!commandcode) return []const key = env.COMMANDCODE_HOMEif (this.commandcodeCatalogCache?.key === key && this.commandcodeCatalogCache.expiresAt > Date.now()) {return this.commandcodeCatalogCache.entries@@ -1188,7 +1180,7 @@ export class LegacyRuntimeProfileManager {const result = await execFileAsync('commandcode', ['--list-models'], {env: process.env, timeout: 15_000, maxBuffer: 1024 * 1024,})- entries = parseCommandcodeModelsOutput(result.stdout)+ entries = commandcode.parseCommandcodeModelsOutput(result.stdout)} catch (err) {console.warn('[runtime-profile] Command Code model catalog failed:', err instanceof Error ? err.message : err)}@@ -1221,6 +1213,9 @@ export class LegacyRuntimeProfileManager {}async opencodeCatalog(): Promise<OpencodeModelTarget[]> {+ // Its output is read with the engine's own code: without it there is no catalog, and nothing is run.+ const opencode = await loadEngine('opencode')+ if (!opencode) return []const key = env.OPENCODE_DATA_DIRif (this.opencodeCatalogCache?.key === key && this.opencodeCatalogCache.expiresAt > Date.now()) {return this.opencodeCatalogCache.entries@@ -1230,7 +1225,7 @@ export class LegacyRuntimeProfileManager {const result = await execFileAsync(opencodeBin(), ['models'], {env: process.env, timeout: 10_000, maxBuffer: 1024 * 1024,})- entries = parseOpencodeModelsOutput(result.stdout)+ entries = opencode.parseOpencodeModelsOutput(result.stdout)} catch (err) {console.warn('[runtime-profile] OpenCode model catalog failed:', err instanceof Error ? err.message : err)}@@ -1255,6 +1250,9 @@ export class LegacyRuntimeProfileManager {}async kiloCatalog(): Promise<KiloModelTarget[]> {+ // Its output is read with the engine's own code: without it there is no catalog, and nothing is run.+ const kilo = await loadEngine('kilo')+ if (!kilo) return []const key = env.KILO_DATA_DIRif (this.kiloCatalogCache?.key === key && this.kiloCatalogCache.expiresAt > Date.now()) {return this.kiloCatalogCache.entries@@ -1267,7 +1265,7 @@ export class LegacyRuntimeProfileManager {const result = await execFileAsync(env.KILO_PATH || 'kilo', ['models'], {env: process.env, timeout: 10_000, maxBuffer: 1024 * 1024,})- entries = parseKiloModelsOutput(result.stdout)+ entries = kilo.parseKiloModelsOutput(result.stdout)} catch (err) {console.warn('[runtime-profile] Kilo model catalog failed:', err instanceof Error ? err.message : err)}@@ -1276,6 +1274,9 @@ export class LegacyRuntimeProfileManager {}private async piCatalog(): Promise<ReturnType<typeof parsePiModelsOutput>> {+ // Its output is read with the engine's own code: without it there is no catalog, and nothing is run.+ const pi = await loadEngine('pi')+ if (!pi) return []const key = env.PI_HOMEif (this.piCatalogCache?.key === key && this.piCatalogCache.expiresAt > Date.now()) {return this.piCatalogCache.entries@@ -1287,7 +1288,7 @@ export class LegacyRuntimeProfileManager {timeout: 10_000,maxBuffer: 1024 * 1024,})- entries = parsePiModelsOutput(result.stdout)+ entries = pi.parsePiModelsOutput(result.stdout)} catch (err) {console.warn('[runtime-profile] Pi model catalog failed:', err instanceof Error ? err.message : err)}diff --git a/cli/src/testing/specLiterals.ts b/cli/src/testing/specLiterals.tsnew file mode 100644index 000000000..342b46d90--- /dev/null+++ b/cli/src/testing/specLiterals.ts@@ -0,0 +1,126 @@+/**+ * The strings a spec writes out, evaluated without running it: literals, templates over the file's constants,+ * `[...].join('\n')`, stringified object literals (`JSON.stringify({...})` or a one-expression alias of it) and the+ * file's one-expression helpers (`footer('x')`). A golden uses them as the inputs the repository already has, and+ * copies what it took, so that a later edit of a spec does not move it. An expression that cannot be evaluated+ * whole is left out.+ */+import { readFileSync } from 'node:fs'+import ts from 'typescript'++const NONE = Symbol('none')+type Env = Map<string, unknown>++/** Every string value the file's expressions evaluate to, in order of first appearance, once each. */+export function specStrings(path: string, minLength = 3): string[] {+ const source = ts.createSourceFile(path, readFileSync(path, 'utf8'), ts.ScriptTarget.Latest, true)+ const constants: Env = new Map()+ const helpers = new Map<string, ts.ArrowFunction>()+ const lookup = (name: string, env: Env): unknown => env.has(name) ? env.get(name) : constants.has(name) ? constants.get(name) : NONE+ const evaluate = (node: ts.Node, env: Env = new Map(), depth = 0): unknown => {+ if (depth > 20) return NONE+ const again = (child: ts.Node): unknown => evaluate(child, env, depth + 1)+ if (ts.isParenthesizedExpression(node) || ts.isAsExpression(node) || ts.isSatisfiesExpression(node)) return again(node.expression)+ if (ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node)) return node.text+ if (ts.isNumericLiteral(node)) return Number(node.text)+ if (ts.isPrefixUnaryExpression(node) && node.operator === ts.SyntaxKind.MinusToken && ts.isNumericLiteral(node.operand)) return -Number(node.operand.text)+ if (node.kind === ts.SyntaxKind.TrueKeyword) return true+ if (node.kind === ts.SyntaxKind.FalseKeyword) return false+ if (node.kind === ts.SyntaxKind.NullKeyword) return null+ if (ts.isIdentifier(node)) return node.text === 'undefined' ? undefined : lookup(node.text, env)+ if (ts.isBinaryExpression(node) && node.operatorToken.kind === ts.SyntaxKind.PlusToken) {+ const left = again(node.left), right = again(node.right)+ return typeof left === 'string' && (typeof right === 'string' || typeof right === 'number') ? left + String(right) : NONE+ }+ if (ts.isTemplateExpression(node)) {+ let out = node.head.text+ for (const span of node.templateSpans) {+ const value = again(span.expression)+ if (typeof value !== 'string' && typeof value !== 'number') return NONE+ out += String(value) + span.literal.text+ }+ return out+ }+ if (ts.isArrayLiteralExpression(node)) {+ const values: unknown[] = []+ for (const element of node.elements) {+ if (ts.isSpreadElement(element)) {+ const spread = again(element.expression)+ if (!Array.isArray(spread)) return NONE+ values.push(...spread)+ } else {+ const value = again(element)+ if (value === NONE) return NONE+ values.push(value)+ }+ }+ return values+ }+ if (ts.isObjectLiteralExpression(node)) {+ const out: Record<string, unknown> = {}+ for (const property of node.properties) {+ if (ts.isPropertyAssignment(property) && (ts.isIdentifier(property.name) || ts.isStringLiteral(property.name) || ts.isNumericLiteral(property.name))) {+ const value = again(property.initializer)+ if (value === NONE) return NONE+ out[property.name.text] = value+ } else if (ts.isShorthandPropertyAssignment(property)) {+ const value = lookup(property.name.text, env)+ if (value === NONE) return NONE+ out[property.name.text] = value+ } else if (ts.isSpreadAssignment(property)) {+ const value = again(property.expression)+ if (!value || typeof value !== 'object' || Array.isArray(value)) return NONE+ Object.assign(out, value)+ } else return NONE+ }+ return out+ }+ if (ts.isCallExpression(node)) {+ const args = node.arguments.map((arg) => ts.isSpreadElement(arg) ? NONE : again(arg))+ if (args.includes(NONE)) return NONE+ if (ts.isPropertyAccessExpression(node.expression) && node.expression.name.text === 'join' && args.length <= 1) {+ const list = again(node.expression.expression)+ const separator = args.length ? args[0] : ','+ return Array.isArray(list) && typeof separator === 'string' && list.every((item) => typeof item === 'string' || typeof item === 'number')+ ? list.join(separator) : NONE+ }+ if (ts.isPropertyAccessExpression(node.expression) && node.expression.name.text === 'repeat' && args.length === 1) {+ const value = again(node.expression.expression)+ return typeof value === 'string' && typeof args[0] === 'number' && args[0] >= 0 && args[0] <= 1000 ? value.repeat(args[0]) : NONE+ }+ const callee = node.expression.getText()+ if (callee === 'JSON.stringify' && args.length === 1) return JSON.stringify(args[0])+ const helper = helpers.get(callee)+ if (!helper || ts.isBlock(helper.body)) return NONE+ const scope: Env = new Map()+ helper.parameters.forEach((parameter, i) => {+ if (!ts.isIdentifier(parameter.name)) return+ if (parameter.dotDotDotToken) scope.set(parameter.name.text, args.slice(i))+ else scope.set(parameter.name.text, i < args.length ? args[i] : parameter.initializer ? evaluate(parameter.initializer, scope, depth + 1) : undefined)+ })+ return evaluate(helper.body, scope, depth + 1)+ }+ return NONE+ }+ const declare = (node: ts.Node): void => {+ if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name) && node.initializer) {+ if (ts.isArrowFunction(node.initializer)) helpers.set(node.name.text, node.initializer)+ else if (!constants.has(node.name.text)) {+ const value = evaluate(node.initializer)+ if (value !== NONE) constants.set(node.name.text, value)+ }+ }+ ts.forEachChild(node, declare)+ }+ declare(source)+ const found = new Set<string>()+ const visit = (node: ts.Node): void => {+ if (ts.isExpression(node) && !ts.isIdentifier(node)) {+ const value = evaluate(node)+ if (typeof value === 'string' && value.length >= minLength) found.add(value)+ }+ ts.forEachChild(node, visit)+ }+ visit(source)+ return [...found]+}