Repository navigation
feat(cli): enable shared agent board via experimental env flag - #14013
Merged
Merged
Conversation
Kilo Swarm was gated only by the experimental.shared_agent_board config key. Add the KILO_EXPERIMENTAL_SHARED_AGENT_BOARD runtime flag, and the KILO_EXPERIMENTAL umbrella, as an additional enable path. Introduce a BoardEnabled.resolve helper so every gate site shares one rule: config true or flag true. An explicit config false does not disable the board when the flag is set.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (20 files)
Reviewed by grok-4.6 · Input: 234K · Output: 14.6K · Cached: 581.8K Review guidance: REVIEW.md from base branch |
marius-kilocode
enabled auto-merge
September 10, 2026 17:20
maxdata
self-requested a review
September 10, 2026 17:21
maxdata
approved these changes
Sep 10, 2026
This was referenced Sep 11, 2026
Le0xFF
pushed a commit
to Le0xFF/kilocode
that referenced
this pull request
Sep 18, 2026
Merge origin/main (3d04228, release v7.6.2) on top of the v7.6.0 sync: streaming frame-cadence perf, todo/bash/diff render perf, inline @model references (Kilo-Org#14006), question dialog keybindings, KILO_SWARM env flag (Kilo-Org#14013), exclude-permission-wait-duration, subagent avatar color scoping, release bumps to 7.6.2. Offline invariants kept: pruned packages stay deleted; providers hard-cut to local surface (no kilo-gateway/telemetry); ModelSelector gateway refs stripped with isAuto/isSmall/autoSummary stubbed off; telemetry feedback controls dropped from TranscriptRow; i18n locales take-ours + new model.group.auto/recommended keys added in all 21 locales. Board default: shared agent board stays OFF by default — no gateway dependency (local DB-backed), reachable via experimental.shared_agent_board config or KILO_EXPERIMENTAL_SHARED_AGENT_BOARD env flag only. Rejected online-only features: veil-intelligence cloud analytics hooks, profile-worktree-deletion-time (cloud profile worktree deletion), swarm endpoint calls.
Le0xFF
added a commit
to Le0xFF/kilocode
that referenced
this pull request
Sep 18, 2026
Merge origin/main (3d04228, release v7.6.2) on top of the v7.6.0 sync: streaming frame-cadence perf, todo/bash/diff render perf, inline @model references (Kilo-Org#14006), question dialog keybindings, KILO_SWARM env flag (Kilo-Org#14013), exclude-permission-wait-duration, subagent avatar color scoping, release bumps to 7.6.2. Offline invariants kept: pruned packages stay deleted; providers hard-cut to local surface (no kilo-gateway/telemetry); ModelSelector gateway refs stripped with isAuto/isSmall/autoSummary stubbed off; telemetry feedback controls dropped from TranscriptRow; i18n locales take-ours + new model.group.auto/recommended keys added in all 21 locales. Board default: shared agent board stays OFF by default — no gateway dependency (local DB-backed), reachable via experimental.shared_agent_board config or KILO_EXPERIMENTAL_SHARED_AGENT_BOARD env flag only. Rejected online-only features: veil-intelligence cloud analytics hooks, profile-worktree-deletion-time (cloud profile worktree deletion), swarm endpoint calls.
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 Swarm (the experimental shared agent board) could only be turned on through the
experimental.shared_agent_boardconfig key. Users who opt into experiments globally withKILO_EXPERIMENTAL=true, or who want to toggle the board through one environment variable, had no way to enable it without editing config.Why This Change Was Made
experimentalSharedAgentBoardto the central runtime flags withenabledByExperimental("KILO_EXPERIMENTAL_SHARED_AGENT_BOARD"), so the specific variable and theKILO_EXPERIMENTALumbrella both work.BoardEnabled.resolvehelper underpackages/opencode/src/kilocode/board/and route every existing gate (board tools, board notifier, agent permissions, tool registry, session tool notify wiring) through it, instead of scattering new|| flagchecks.trueor the flag istrue. An explicit configfalsedoes not disable the board when the flag is set, because the environment variable is an additional enable path. The config key remains the source of truth for an explicittrue.RuntimeFlagsservice must be threaded through, and those lines sit inside existingkilocode_changeregions.User Impact
Setting
KILO_EXPERIMENTAL_SHARED_AGENT_BOARD=true, or the umbrellaKILO_EXPERIMENTAL=true, enablesboard_readandboard_postwithout changing config. Existing config based enablement and the default disabled state are unchanged. Tool names, stored IDs, migrations, history, and permissions are untouched.Evidence
bun run typecheckfrompackages/opencode/: exit 0.bun test ./test/kilocode/board-enabled.test.ts ./test/kilocode/board-tools.test.ts ./test/kilocode/board-context.test.ts: 26 pass, 0 fail.bun test ./test/kilocode/tool-registry-indexing.test.ts ./test/kilocode/chart-tool-gating.test.ts ./test/kilocode/notebook-tools.test.ts ./test/kilocode/tool/memory-save.test.ts ./test/kilocode/tool/send-file.test.ts ./test/kilocode/system-prompt.test.ts: 71 pass, 0 fail.bun test ./test/kilocode/board-live.test.ts ./test/kilocode/server/board.test.ts ./test/kilocode/board/store.test.ts: 34 pass, 0 fail.bun test ./test/effect/runtime-flags.test.ts ./test/tool/registry.test.ts: 58 pass, 0 fail.bun run script/check-opencode-annotations.ts --worktree: all shared upstream changes are annotated withkilocode_changemarkers.Adds a patch changeset.