Conversation
Add an explicit plan mode that forces Haze to plan and stop before implementing, complementing the existing natural-language intent classifier (smart routing still applies when the mode is off). Activation: - /plan slash command toggles the mode on/off - Shift+Tab toggles it from the input window Visual feedback: - Input window border and prompt marker switch to cyan (#22d3ee) - A "PLAN MODE" label identifies the active mode - System message confirms each toggle Implementation: - forceIntent param on createSessionGoal forces 'plan' intent - forcePlanOnly flag on runAgentTurn ORs into likelyPlanOnlyRequest - accentColor + onTogglePlanMode props on TextInput - cyan/deepCyan theme tokens - /plan registered in command help and input suggestions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A new plan mode that lets you explicitly tell Haze to plan its approach and stop before writing any code.
Why
Haze already has smart routing — it detects plan-only requests from the wording ("just plan X", "outline a fix for Y") and holds off on implementing. But that's implicit: with ambiguous wording, Haze may start editing when you only wanted a plan. Plan mode makes the intent explicit and guaranteed, on your terms instead of the classifier's guess.
How to use it
/plan, or press Shift+Tab in the input box, to toggle it on/off.Notes
main.🤖 Generated with Claude Code