From a67b6c62a9c2b018575d4b00e4813579cb61fb55 Mon Sep 17 00:00:00 2001 From: Andrey Avtomonov Date: Sat, 6 Jun 2026 22:40:40 +0200 Subject: [PATCH] chore(setup): update llm preset guidance --- .../cli/src/context/ingest/local-bundle-runtime.ts | 4 ++-- .../context/ingest/local-bundle-runtime.test.ts | 4 ++-- packages/cli/test/ingest.test.ts | 6 ++---- scripts/codex-backend-live-smoke.mjs | 13 +++++++++---- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/packages/cli/src/context/ingest/local-bundle-runtime.ts b/packages/cli/src/context/ingest/local-bundle-runtime.ts index 9d6aba95..e1d96b9e 100644 --- a/packages/cli/src/context/ingest/local-bundle-runtime.ts +++ b/packages/cli/src/context/ingest/local-bundle-runtime.ts @@ -614,8 +614,8 @@ function localIngestLlmProviderGuardMessage(projectDir: string): string { 'ktx ingest requires llm.provider.backend: anthropic, vertex, gateway, claude-code, or codex, or an injected agentRunner.', 'Configure a local Claude Code/Codex session or API-backed LLM, then rerun ingest:', ` ktx setup --project-dir ${projectDir} --llm-backend claude-code --no-input`, - ` ktx setup --project-dir ${projectDir} --llm-backend codex --llm-model gpt-5.5 --no-input`, - ` ktx setup --project-dir ${projectDir} --llm-backend anthropic --anthropic-api-key-env ANTHROPIC_API_KEY --llm-model claude-sonnet-4-6 --no-input`, + ` ktx setup --project-dir ${projectDir} --llm-backend codex --no-input`, + ` ktx setup --project-dir ${projectDir} --llm-backend anthropic --anthropic-api-key-env ANTHROPIC_API_KEY --no-input`, ].join('\n'); } diff --git a/packages/cli/test/context/ingest/local-bundle-runtime.test.ts b/packages/cli/test/context/ingest/local-bundle-runtime.test.ts index 9d1ec9b4..1ff53470 100644 --- a/packages/cli/test/context/ingest/local-bundle-runtime.test.ts +++ b/packages/cli/test/context/ingest/local-bundle-runtime.test.ts @@ -80,8 +80,8 @@ describe('createLocalBundleIngestRuntime', () => { 'ktx ingest requires llm.provider.backend: anthropic, vertex, gateway, claude-code, or codex, or an injected agentRunner.', 'Configure a local Claude Code/Codex session or API-backed LLM, then rerun ingest:', ` ktx setup --project-dir ${project.projectDir} --llm-backend claude-code --no-input`, - ` ktx setup --project-dir ${project.projectDir} --llm-backend codex --llm-model gpt-5.5 --no-input`, - ` ktx setup --project-dir ${project.projectDir} --llm-backend anthropic --anthropic-api-key-env ANTHROPIC_API_KEY --llm-model claude-sonnet-4-6 --no-input`, + ` ktx setup --project-dir ${project.projectDir} --llm-backend codex --no-input`, + ` ktx setup --project-dir ${project.projectDir} --llm-backend anthropic --anthropic-api-key-env ANTHROPIC_API_KEY --no-input`, ].join('\n'), ); }); diff --git a/packages/cli/test/ingest.test.ts b/packages/cli/test/ingest.test.ts index 4fc47d0c..33048802 100644 --- a/packages/cli/test/ingest.test.ts +++ b/packages/cli/test/ingest.test.ts @@ -341,11 +341,9 @@ describe('runKtxIngest', () => { ); expect(runIo.stderr()).toContain('Configure a local Claude Code/Codex session or API-backed LLM, then rerun ingest:'); expect(runIo.stderr()).toContain(`ktx setup --project-dir ${projectDir} --llm-backend claude-code --no-input`); + expect(runIo.stderr()).toContain(`ktx setup --project-dir ${projectDir} --llm-backend codex --no-input`); expect(runIo.stderr()).toContain( - `ktx setup --project-dir ${projectDir} --llm-backend codex --llm-model gpt-5.5 --no-input`, - ); - expect(runIo.stderr()).toContain( - `ktx setup --project-dir ${projectDir} --llm-backend anthropic --anthropic-api-key-env ANTHROPIC_API_KEY --llm-model claude-sonnet-4-6 --no-input`, + `ktx setup --project-dir ${projectDir} --llm-backend anthropic --anthropic-api-key-env ANTHROPIC_API_KEY --no-input`, ); }); diff --git a/scripts/codex-backend-live-smoke.mjs b/scripts/codex-backend-live-smoke.mjs index 7793fefc..0d25a10a 100644 --- a/scripts/codex-backend-live-smoke.mjs +++ b/scripts/codex-backend-live-smoke.mjs @@ -68,8 +68,6 @@ async function runSetupSmoke(projectDir) { projectDir, '--llm-backend', 'codex', - '--llm-model', - 'gpt-5.3-codex', '--no-input', '--yes', '--skip-databases', @@ -79,7 +77,7 @@ async function runSetupSmoke(projectDir) { { timeoutMs: 600_000 }, ); requireSuccess('ktx setup codex backend', result); - if (!result.stdout.includes('LLM ready: yes (codex, gpt-5.3-codex)')) { + if (!result.stdout.includes('LLM ready: yes (codex, gpt-5.5)')) { throw new Error(`setup did not report Codex LLM readiness\nstdout:\n${result.stdout}`); } } @@ -91,7 +89,14 @@ async function runRuntimeSmoke(projectDir) { const { z } = await import(zodUrl); const runtime = new CodexKtxLlmRuntime({ projectDir, - modelSlots: { default: 'gpt-5.3-codex' }, + modelSlots: { + default: 'gpt-5.5', + triage: 'gpt-5.5', + candidateExtraction: 'gpt-5.5', + curator: 'gpt-5.5', + reconcile: 'gpt-5.5', + repair: 'gpt-5.5', + }, }); const text = await runtime.generateText({