Skip to content

✨ Add Planning Mode support with /plan and /code commands#1

Closed
ixchio wants to merge 1 commit into
mainfrom
feat/planning-mode
Closed

✨ Add Planning Mode support with /plan and /code commands#1
ixchio wants to merge 1 commit into
mainfrom
feat/planning-mode

Conversation

@ixchio

@ixchio ixchio commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Hey! 👋

This adds Planning Mode to the CLI - now you can have the agent focus on planning before jumping into code.

The gist

Type /plan → agent plans instead of coding
Type /code → back to normal

In planning mode, the agent will ask questions, understand your requirements, and create a PLAN.md file - no code execution until you're ready.

Visual cues

When you're in planning mode:

  • 📋 Blue "Planning Mode" badge in the status line
  • 🔵 Input border turns blue (like the GUI)

Testing

All 1270 tests pass ✅


Closes OpenHands#613

Implements Planning Mode feature that allows users to switch between
planning-only mode and normal code execution mode via slash commands.

Changes:
- Add agent_mode reactive property to ConversationContainer ('plan' or 'code')
- Add /plan and /code slash commands to switch modes
- Add SetAgentMode message and handler in ConversationManager
- Add PLANNING_MODE_INSTRUCTIONS to guide agent behavior in plan mode
- Add blue mode indicator in WorkingStatusLine when in planning mode
- Add blue border color for InputField when in planning mode
- Update tests for new commands and add planning mode tests

In Planning Mode:
- Agent focuses on understanding requirements and asking questions
- Agent generates PLAN.md instead of executing code
- UI shows blue indicator and border to match GUI behavior

Closes OpenHands#613

Co-authored-by: openhands <openhands@all-hands.dev>
@maveilo

maveilo commented Mar 25, 2026

Copy link
Copy Markdown

@ixchio
Hi!
How did you manage to make OpenHands AI to create this PR automatically, without mentioning @OpenHands on github? I had some success on OpenHands#603 by mentioning their names.

@ixchio ixchio closed this Mar 25, 2026
@ixchio

ixchio commented Mar 25, 2026

Copy link
Copy Markdown
Owner Author

@ixchio Hi! How did you manage to make OpenHands AI to create this PR automatically, without mentioning @OpenHands on github? I had some success on OpenHands#603 by mentioning their names.

I ran it locally via the SDK and pushed the branch manually

@openhands-ai

openhands-ai Bot commented Mar 25, 2026

Copy link
Copy Markdown

I'm on it! ixchio can track my progress at all-hands.dev

@openhands-ai

openhands-ai Bot commented Mar 25, 2026

Copy link
Copy Markdown

Summary

The PR comment was a question from @maveilo asking how the PR was created automatically without mentioning @OpenHands on GitHub.

Answer: The PR author (@ixchio) already provided the answer: "I ran it locally via the SDK and pushed the branch manually."

This was simply a Q&A exchange about the development workflow - not a code change request. I verified:

No code changes were made because none were requested. The question has already been answered by the PR author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support Planning Mode in CLI

3 participants