[codex] feat(slash): add guide mode#12027
Conversation
There was a problem hiding this comment.
1 issue found across 9 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="core/config/profile/doLoadConfig.ts">
<violation number="1" location="core/config/profile/doLoadConfig.ts:193">
P2: Built-in `/guide` is appended without duplicate-name guarding, allowing silent collisions with user-defined `/guide` slash commands.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
💡 Codex Reviewcontinue/core/llm/llms/Ollama.ts Lines 514 to 515 in a7db9ed The new condition now attaches continue/core/config/ConfigHandler.ts Lines 639 to 640 in a7db9ed Calling ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
3816797 to
cbf4a23
Compare
Summary
/guideslash command for Continue IDE experiences that turns rough ideas into structured implementation briefs/guidehandling to Continue CLI so the feature works across interfaces instead of only in the GUI flowWhy
Continue already has slash commands for specific workflows like onboarding a codebase, but there is no built-in workflow for helping a user clarify a vague project idea before implementation. This PR adds a lightweight Guide Mode that asks discovery questions, then helps the user arrive at a clearer project spec, implementation plan, and starter prompt.
User Impact
Users can now start with
/guideand a rough idea such asbuild a portfolio site for junior developers, then let Continue refine that into something concrete before jumping into code. The command is available in both the IDE experience andcn.Validation
npm test -- src/slashCommands.test.ts src/commands/commands.integration.test.tsinextensions/clinpm run vitest -- config/profile/doLoadConfig.vitest.tsincorenpm run lintinextensions/cli(passes with 2 pre-existing warnings)git diff --checkCloses #10340
Summary by cubic
Add Guide Mode via
/guidein the IDE andcnto turn rough ideas into a structured brief and plan. Also gate Ollama tools to supported templates, avoid global path side effects for local profiles, and add OpenRouter headers for proper attribution.New Features
/guidein IDE andcn; asks focused questions, then outputs a spec, 3–6 step plan, and a starter prompt.SYSTEM_SLASH_COMMANDSwith optional idea input./guideCLI example; JSON reference documents the command. Tests cover command registration and/guidehandling.Bug Fixes
toolswhen the model template advertises support; tests verify gating.sourceFilewhen provided and does not call the global config path; unit test added.OPENROUTER_HEADERSfrom@continuedev/openai-adapterswith updated header names for attribution and categorization.doLoadConfigtests to avoidPackageIdentifier.fileUrinarrowing assumptions.Written for commit 61cf4a3. Summary will update on new commits.