Skip to content

Add support for enabling experimental plan mode via config file#143

Open
ariane-emory wants to merge 6 commits intodevfrom
feat/configurable-new-plan-mode
Open

Add support for enabling experimental plan mode via config file#143
ariane-emory wants to merge 6 commits intodevfrom
feat/configurable-new-plan-mode

Conversation

@ariane-emory
Copy link
Owner

Allow experimental plan mode to be enabled by setting experimental.plan_mode to true in the configuration file, as an alternative to the OPENCODE_EXPERIMENTAL_PLAN_MODE environment variable.

Environment variables (OPENCODE_EXPERIMENTAL or OPENCODE_EXPERIMENTAL_PLAN_MODE) take precedence over the config file value.

Changes:

  • Add plan_mode property to experimental config schema
  • Cache loaded config for synchronous flag access
  • Convert OPENCODE_EXPERIMENTAL_PLAN_MODE flag to dynamic getter that checks env vars then config

What does this PR do?

How did you verify your code works?

Allow enabling experimental plan mode via config file using
experimental.plan_mode property, equivalent to setting
OPENCODE_EXPERIMENTAL_PLAN_MODE environment variable.

The environment variable takes precedence if both are set.
@ariane-emory ariane-emory force-pushed the feat/configurable-new-plan-mode branch from 5918ea6 to dae84b5 Compare January 31, 2026 05:43
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.

1 participant