feature: add support for different agent modes #347

Closed
opened 2026-02-16 17:26:22 -05:00 by yindo · 3 comments
Owner

Originally created by @rahulmwd on GitHub (Jun 27, 2025).

Originally assigned to: @thdxr on GitHub.

It'd be great to have specific modes for different workflows like researching, planning, bugfixing etc. Each mode would have a preconfigured system prompt and output/action constraints. Users can toggle between different modes using a configurable keybinding and optionally specify a default model mapping for each mode via the config.

For example, a Plan mode would have its own system prompt asking the LLM to think and output a sequential plan for a user's prompt with constraints (either programmatic or just in the prompt) to prevent it from creating/editing any files. The user iterates with the LLM until the plan looks good before accepting it. Accepting would auto-compact the session, switch back the 'default' editing mode and map the plan into tasks for the agent to execute.

Originally created by @rahulmwd on GitHub (Jun 27, 2025). Originally assigned to: @thdxr on GitHub. It'd be great to have specific modes for different workflows like researching, planning, bugfixing etc. Each mode would have a preconfigured system prompt and output/action constraints. Users can toggle between different modes using a configurable keybinding and optionally specify a default model mapping for each mode via the config. For example, a Plan mode would have its own system prompt asking the LLM to think and output a sequential plan for a user's prompt with constraints (either programmatic or just in the prompt) to prevent it from creating/editing any files. The user iterates with the LLM until the plan looks good before accepting it. Accepting would auto-compact the session, switch back the 'default' editing mode and map the plan into tasks for the agent to execute.
yindo closed this issue 2026-02-16 17:26:22 -05:00
Author
Owner

@aspiers commented on GitHub (Jun 27, 2025):

+1 for this; Claude Code has a Plan mode, and I've seen several Youtubers say they find it useful.

@aspiers commented on GitHub (Jun 27, 2025): +1 for this; Claude Code has a [Plan mode](https://docs.anthropic.com/en/docs/claude-code/iam#permission-modes), and I've seen several Youtubers say they find it useful.
Author
Owner

@mpiannucci commented on GitHub (Jul 1, 2025):

Here is a session I was working on where i asked it to plan and it went ahead and just started coding: https://opencode.ai/s/OM5kBvJY . This is fine for this case but im missing Claude Code's plan mode feature where i know that CC will only plan and not edit anything so i can let it run without attention.

@mpiannucci commented on GitHub (Jul 1, 2025): Here is a session I was working on where i asked it to plan and it went ahead and just started coding: https://opencode.ai/s/OM5kBvJY . This is fine for this case but im missing Claude Code's plan mode feature where i know that CC will only plan and not edit anything so i can let it run without attention.
Author
Owner

@thdxr commented on GitHub (Jul 10, 2025):

released in v0.2.23

@thdxr commented on GitHub (Jul 10, 2025): released in v0.2.23
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#347