GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: switch mode tool by Leka74 · Pull Request #7626 · anomalyco/opencode

Conversation

@Leka74

@Leka74 Leka74 commented Jan 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a new modeswitch tool which allows the LLM to request the mode to be changed. So instead of the user having to switch to the build mode manually and ask the LLM to continue with the implementation, the LLM will request that itself and if approved, it will start implementing the plan.

image image

How did you verify your code works?

Tested it locally through the TUI and Desktop app.

Closes #7627

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jenslys, trollfalgar, nielpattin, and Raviguntakala reacted with thumbs up emoji
All reactions
  • 👍 4 reactions
@github-actions github-actions Bot added the needs:issue label Jan 10, 2026
@github-actions

github-actions Bot commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

The searches show PR #7626 (the current PR) but no other duplicate or related PRs that are addressing the same "switch mode tool" feature.

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the needs:issue label Jan 10, 2026
@Leka74
feat: switch mode tool
b83faf2
allow llm after finishing planning to request the mode to be switched to
`build` so they can implement it.
@Leka74
Leka74 force-pushed the feat/mode-switch-tool branch from b2ba623 to b83faf2 Compare January 10, 2026 19:34
@Leka74
Leka74 requested a review from adamdotdevin as a code owner January 10, 2026 19:34
@niallobrien

niallobrien commented Jan 10, 2026

Copy link
Copy Markdown

+1 for this - I currently have the model asking me if it should switch from plan to build mode, which I approve, but then it just implements the code changes in plan mode (I have a different model selected for build mode).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kdcokenny

kdcokenny commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

+1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@KibbeWater

KibbeWater commented Jan 12, 2026

Copy link
Copy Markdown

I'm unsure if this would be the right way of going about it. I may be a little CC pilled but I feel like they nailed the entire plan mode thing where you get a plan, review it, accept/reject and it auto-switches on accept and I believe it should be a behavior that should be replicated in OC aswell. I believe a feature like this would come bundled in another PR with other plan mode improvements instead of being a standalone thing as I think there are gonna be a lot of things that would have to work together which this would kind of "lock down". Just my two cents on the topic though

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kdcokenny

kdcokenny commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

I'm unsure if this would be the right way of going about it. I may be a little CC pilled but I feel like they nailed the entire plan mode thing where you get a plan, review it, accept/reject and it auto-switches on accept and I believe it should be a behavior that should be replicated in OC aswell. I believe a feature like this would come bundled in another PR with other plan mode improvements instead of being a standalone thing as I think there are gonna be a lot of things that would have to work together which this would kind of "lock down". Just my two cents on the topic though

I'm thinking that something like this can already be done using plugins setting the tool to an "ask" mode

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Leka74

Leka74 commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

has been implemented in #8281 so will close it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Leka74 Leka74 closed this Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]: switch mode tool

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@Leka74 @niallobrien @kdcokenny @KibbeWater
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.