[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.
| } | ||
|
|
||
| newConfig.slashCommands.push(initSlashCommand); | ||
| newConfig.slashCommands.push(guideSlashCommand); |
There was a problem hiding this comment.
P2: Built-in /guide is appended without duplicate-name guarding, allowing silent collisions with user-defined /guide slash commands.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At core/config/profile/doLoadConfig.ts, line 193:
<comment>Built-in `/guide` is appended without duplicate-name guarding, allowing silent collisions with user-defined `/guide` slash commands.</comment>
<file context>
@@ -189,6 +190,7 @@ export default async function doLoadConfig(options: {
}
newConfig.slashCommands.push(initSlashCommand);
+ newConfig.slashCommands.push(guideSlashCommand);
const proxyContextProvider = newConfig.contextProviders?.find(
</file context>
| newConfig.slashCommands.push(guideSlashCommand); | |
| if (!newConfig.slashCommands.some((cmd) => cmd.name === guideSlashCommand.name)) { | |
| newConfig.slashCommands.push(guideSlashCommand); | |
| } |
💡 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". |
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 a built-in
/guideslash command available in the IDE andcnto turn rough ideas into a structured implementation brief and plan. The command is now registered as a default system command and is covered by docs and tests./guidein IDE andcn; asks focused questions, then outputs a spec, 3–6 step plan, and a starter prompt.init; added toSYSTEM_SLASH_COMMANDSwith a handler that accepts optional idea text./guideexample; JSON reference documents the command./guidehandling in CLI and config loader.Written for commit a7db9ed. Summary will update on new commits.