fix(cli): remove vestigial KILO_EXPERIMENTAL_PLAN_MODE flag - #14283
Merged
Merged
Conversation
Plan mode already runs unconditionally, so the flag only gated the Plan to Code handoff reminder. Keep the upstream default behavior: always append the saved plan file hint when switching from a planning agent to Code.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summary (commit 18c0384)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 18c0384)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (7 files)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
Append the CODE_SWITCH reminder only when entering the code agent from a planning agent (plan or architect). The broad non-plan check fired for read-only and other agents once the flag gate was removed.
marius-kilocode
enabled auto-merge
September 18, 2026 09:53
WebReflection
approved these changes
Sep 18, 2026
Contributor
|
@marius-kilocode I am afraid there are conflicts but otherwise looks good to me |
Collaborator
Author
…xperimental-plan-mode-flag # Conflicts: # packages/opencode/src/session/reminders.ts # packages/opencode/test/kilocode/reminders-separator.test.ts
This was referenced Sep 19, 2026
This was referenced Sep 21, 2026
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 Problem This Solves
KILO_EXPERIMENTAL_PLAN_MODEno longer gates plan mode. Plan mode is already the default:planning()andinsertPlanRemindersrun for theplanandarchitectagents unconditionally, andplan_exit/plan_enterare registered unconditionally. The flag only controlled the Plan to Code handoff reminder, so it looked like a feature switch while doing almost nothing.Why This Change Was Made
Upstream opencode enabled plan mode by default and removed its
OPENCODE_EXPERIMENTAL_PLAN_MODEflag (b2121c963fe, afec40e8dab). Kilo kept the flag through theKILO_rename. This removes the flag and the dead branch it guarded, keeping the upstream default behavior: when switching from a planning agent to Code, append theCODE_SWITCHreminder and, when the plan file exists, the saved plan path hint.User Impact
KILO_EXPERIMENTAL_PLAN_MODEis no longer read. Setting it has no effect.Evidence
bun test ./test/kilocode/reminders-separator.test.ts ./test/effect/runtime-flags.test.tsfrompackages/opencode: 41 pass, 0 fail.bun run typecheckfrompackages/opencode: exit 0.