ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
> Generated by super-planner. Source: roadmap.md (phase 11). > Last updated: 2026-05-21 after council-plan (GPT-5.5 + Claude Opus 4.6; > Codex returned a network error — 2-agent council) and structural > revision: per-session ownership mirroring clientTools/. No > provider-wide controller.
Status: done. Implemented and merged via PR #318113. The original `reloadPlugins`-as-hot-swap design was abandoned during council review — the SDK's Query.reloadPlugins() is parameterless and cannot change the plugin URI set after startup. Any client-pushed customization change therefore triggers a yield-restart through the same rematerializer path used for client-tool changes; Query.reloadPlugins() is no longer called from production. See Decisions for the revised contract.
Wire customizations (skills + plugins) end-to-end for the Claude provider so the workbench can sync, enable, and toggle customizations against a live Claude session with the same IAgent surface CopilotAgent already implements. The session must accept the synced plugin paths at startup and pick up any later add / remove / toggle / nonce-bump via a yield-restart before the next turn. Customization state lives on the session, mirroring how client tools are held.
In scope
TODO: Phase 11 throws in ClaudeAgent.setClientCustomizations and ClaudeAgent.setCustomizationEnabled.onDidCustomizationsChange, getCustomizations(), getSessionCustomizations(session).plugins input on IBuildOptionsInput so buildOptions() projects it into Options.plugins.customizations/ folder parallel to clientTools/.send() pre-flight via the existing rebindForRestart() path. (Original plan called for Query.reloadPlugins(); see Decisions.)ClaudeSdkCustomizationBundler.sendMessage is visible on the next yield boundary, never mutating the current turn.Out of scope
IAgent API shape changes — the protocol surface is fixed.ClaudePluginController class. Per the session-owned-state intent, each session is responsible for its own customizations, mirroring how SessionClientToolsDiff works for client tools.initializationResult() as a probe for available_plugins — useful diagnostic, not required for correctness; defer.SessionDiscoveredEntry pattern). Future phase.reloadPlugins contract; the yield boundary is the only safe point.SessionClientToolsDiff + ClaudeAgentSession.rebindForClientTools() + ClaudeSdkPipeline.rebindForRestart()) is the structural reference for both the per-session ownership pattern AND the restart fallback path.ClaudeAgentSession.materialize(ctx); the session is the natural owner of per-session customization state and the place to drain pending reloads.IAgentPluginManager DI singleton exists at src/vs/platform/agentHost/common/agentPluginManager.ts and ships syncCustomizations(clientId, customizations, progress?). Injected into the session via DI (not the agent), same way IClaudeAgentSdkService is injected into the session today.Query.reloadPlugins(), Query.supportedCommands(), and Options.plugins are available on the pinned @anthropic-ai/claude-agent-sdk version.launch (Playwright/CDP), code-oss-logs, chat-customizations-editor.Mirror the clientTools/ pattern exactly. Add a sibling customizations/ folder under node/claude/ containing two collaborators — SessionClientCustomizationsDiff (parallel to SessionClientToolsDiff) and ClaudeSdkCustomizationBundler (server-side discovery projection) — plus the projectSessionCustomizations pure function that merges both tiers. SessionClientCustomizationsDiff lives on ClaudeAgentSession and owns: the session's synced ISyncedCustomization[] snapshot, the per-URI enablement map, the resolved enabled local plugin paths, and a dirty reload flag. ClaudeAgent becomes a thin dispatcher: setClientCustomizations looks up the session and calls session.adoptClientCustomizations(synced); setCustomizationEnabled walks _sessions and calls session.setClientCustomizationEnabled(uri, enabled) on each. The session does the real work — update its own state, flip its dirty bit, and fire its onDidCustomizationsChange event. claudeSdkOptions.buildOptions gains a plugins field; the session passes its own resolved paths into materialize and the rematerializer via customizationsDiff.consume()
1. Add `SessionCustomizationsDiff` collaborator under a new `customizations/` folder. Mirrors clientTools/claudeSessionClientToolsModel.ts shape. Owns: syncedCustomizations: readonly ISyncedCustomization[], enablement: Map<string, boolean> (per-session), resolveEnabledPluginPaths(): readonly URI[] (derived view used at materialize/reload), consume(): readonly URI[] (clears dirty + returns current paths), and onDidChange: Event<void> fired on any state mutation.
src/vs/platform/agentHost/node/claude/customizations/claudeSessionCustomizationsModel.ts (new)2. Add `plugins` field to `IBuildOptionsInput` and project to `Options.plugins`. Update materialize + rematerializer call sites in the session to pass session.customizationsDiff.consume() so plugins are baked into SDK options on both fresh startup and yield-restart.
src/vs/platform/agentHost/node/claude/claudeSdkOptions.ts, src/vs/platform/agentHost/node/claude/claudeAgentSession.tsbuildOptions returns Options.plugins as Record<name, { type: 'local', path }>; empty omits the field; both materialize and the rematerializer closure pass the current snapshot.3. Add the SDK-resolved snapshot helper on the pipeline. Narrow public method snapshotResolvedCustomizations(): Promise<{commands, agents, mcpServers}> that reads the live Query's supportedCommands / supportedAgents / mcpServerStatus in parallel. Used by getSessionCustomizations to surface the server-side tier; not used to drive the dirty bit. (Original plan also called for a reloadPluginsAndSnapshot helper; cut after council review proved reloadPlugins couldn't change the plugin set.)
src/vs/platform/agentHost/node/claude/claudeSdkPipeline.tsQuery verifies the snapshot returns the three SDK fields verbatim.4. Wire customizations onto the session. Inject IAgentPluginManager into ClaudeAgentSession via DI (same pattern as IClaudeAgentSdkService after Phase 10.5). Add public methods:
setClientCustomizations(clientId, customizations, progress?): Promise<ISyncedCustomization[]> — calls pluginManager.syncCustomizations, updates customizationsDiff.syncedCustomizations, returns the synced set.setCustomizationEnabled(uri, enabled): void — flips the per-session enablement bit; the diff recomputes enabled paths and flips dirty.getCustomizations(): readonly ISyncedCustomization[] — returns customizationsDiff.syncedCustomizations.onDidCustomizationsChange: Event<void> — forwards customizationsDiff.onDidChange.src/vs/platform/agentHost/node/claude/claudeAgentSession.ts5. `ClaudeAgent` becomes a thin dispatcher. Replace the four customization stubs with one-line delegations:
setClientCustomizations(session, clientId, customizations) looks up the session via _findAnySession(id), constructs a progress callback that forwards each item via _onDidSessionProgress.fire(SessionCustomizationUpdated), and awaits session.setClientCustomizations(clientId, customizations, progress).setCustomizationEnabled(uri, enabled) walks _sessions.values() and calls entry.session.setCustomizationEnabled(uri, enabled).getCustomizations() aggregates the union of session.getCustomizations() across _sessions.values(), deduped by URI.getSessionCustomizations(session) returns _findAnySession(id)?.getCustomizations() ?? [] (works for provisional sessions since the diff exists from createProvisional onward).onDidCustomizationsChange is an aggregated event fired when any session's onDidCustomizationsChange fires (subscribed via the existing entry.addDisposable(...) pattern that already wires per-session signals).src/vs/platform/agentHost/node/claude/claudeAgent.tsPhase 11 throws are gone.6. Drain pending plugin changes at `send()` pre-flight. Inside ClaudeAgentSession.send(), AFTER the existing toolDiff.hasDifference check, collapse to if (toolDiff.hasDifference || clientCustomizationsDiff.hasDifference) await rebindForRestart(). The rematerializer reads clientCustomizationsDiff.consume() while building the new Options, so the new plugin URI set lands in Options.plugins of the rebuilt Query. (Original plan called for reloadPlugins-then-compare-tools-then-maybe-restart; abandoned because Query.reloadPlugins() is parameterless and cannot change the plugin URI set.)
src/vs/platform/agentHost/node/claude/claudeAgentSession.tsrebindForRestart and one new sdk.startup on the next send(); mid-turn writes don't drain into the in-flight turn.7. Tests.
src/vs/platform/agentHost/test/node/customizations/ (new folder mirroring source layout), src/vs/platform/agentHost/test/node/claudeAgent.test.ts (new describe block), src/vs/platform/agentHost/test/node/claudeSdkOptions.test.ts (plugins field).setClientCustomizations action publishing, sequencer serialisation, rebind-on-customization-dirty, provisional-session resolution, mid-turn race, swallowed-SDK-snapshot fallback; bundler tests cover write layout / nonce stability / name sanitisation / namespacing / delete-on-change; options test confirms plugins projection.| Path | Change | Notes | |------|--------|-------| | src/vs/platform/agentHost/node/claude/customizations/claudeSessionCustomizationsModel.ts | create | Per-session synced + enablement state, parallel to clientTools/claudeSessionClientToolsModel.ts | | src/vs/platform/agentHost/node/claude/claudeAgentSession.ts | modify | Inject IAgentPluginManager; own customizationsDiff; implement setClientCustomizations / setCustomizationEnabled / getCustomizations / onDidCustomizationsChange; drain pending reload at send() pre-flight; pass plugins into materialize/rematerializer | | src/vs/platform/agentHost/node/claude/claudeAgent.ts | modify | Replace Phase 11 throws with thin delegations to the session; aggregate outbound surface | | src/vs/platform/agentHost/node/claude/claudeSdkOptions.ts | modify | IBuildOptionsInput.plugins; project to Options.plugins | | src/vs/platform/agentHost/node/claude/claudeSdkPipeline.ts | modify | Public snapshotResolvedCustomizations() reading the live Query's commands / agents / MCP servers in parallel | | src/vs/platform/agentHost/test/node/customizations/claudeSessionCustomizationsModel.test.ts | create | Model unit tests | | src/vs/platform/agentHost/test/node/claudeAgent.test.ts | modify | setClientCustomizations
ClaudeAgentSession via SessionCustomizationsDiff. No provider-wide controller class. Mirrors how client tools are held on the session. Each session is responsible for its own customizations, matching the new architectural direction._sessions. The agent never holds customization state itself.src/vs/platform/agentHost/node/claude/customizations/ folder parallels the existing clientTools/ folder. One file (claudeSessionCustomizationsModel.ts); add more as needs emerge.Query.reloadPlugins() in @anthropic-ai/claude-agent-sdk is parameterless and only re-reads from the plugin URI set captured into Options.plugins at startup. Any add / remove / toggle / nonce-bump therefore requires a full SDK rebuild via rebindForRestart(). The single dirty bit + single send() pre-flight branch is the simpler model that this constraint forces. reloadPlugins may return as a narrow optimisation for content-only nonce-bumps in a future phase if profiling shows it matters.customizationsDiff exists from ClaudeAgentSession.createProvisional()claudeSdkPipeline.snapshotResolvedCustomizations() and tolerating a thrown rejection in getSessionCustomizations (warn-log and fall through to the client-only projection).setClientCustomizations through the per-session sequencer in ClaudeAgent, AND by reading plugin paths from clientCustomizationsDiff.consume() inside buildOptions call sites rather than capturing them earlier.setCustomizationEnabled(uri, enabled), which the agent fans out to all _sessions../scripts/test.sh --runGlob "**/agentHost/test/**/*.test.js"onDidChange, nonce-bump and metadata changes flip dirty, enabledPluginPaths derivation, consume() clears dirty.plugins non-empty -> Options.plugins projection; empty -> field omitted.snapshotResolvedCustomizations returns the three SDK fields verbatim.safeName sanitisation / working-directory namespacing / delete-on-change.adoptClientCustomizations then setClientCustomizationEnabled then read-back via getClientCustomizations; mid-turn toggle does not mutate in-flight turn; send() pre-flight rebinds when dirty; swallowed-SDK-snapshot fallback in getSessionCustomizations.setClientCustomizations forwards progress as SessionCustomizationUpdated actions and runs inside the per-session sequencer; setCustomizationEnabled fans out to all _sessions.launch — Playwright/CDP automation of ./scripts/code.sh --agents.code-oss-logs — read agenthost.log and per-session log.chat-customizations-editor — domain expert on the customizations editor surface. 1. Launch Code OSS with --agents; open a Claude session under Local Agent Host. 2. From the chat-customizations editor, add a customization with a simple skill plugin; send a turn that uses the skill; confirm via code-oss-logs that agenthost.log shows [Claude] session ...: enableFileCheckpointing=true isResume=false followed by a successful turn that references the plugin. 3. Disable the same customization; send another turn; confirm logs show [Claude] session ...: resume rebuild (any plugin-set change is a yield-restart — there is no reloadPlugins fast path). 4. Add a second customization; send a turn; confirm logs show another resume rebuild and that the new plugin is in Options.plugins. 5. Confirm dirty bit clears between turns (no spurious second rebind) and no Claude subprocess leaks (ps aux | grep claude | grep -v grep).
launch skill cannot reliably drive (Monaco-focus issues seen in Phase 10.5 E2E), document manual click-through with screenshots into /tmp/code-oss-screenshots/<timestamp>/ and confirm each scenario above.None.
./roadmap.md (Phase 11)./CONTEXT.md §M6 (Customizations cluster), §M11 (hot-swap / defer-and-coalesce / restart-required taxonomy)./phase10.5-plan.md (per-session ownership pattern + yield-restart primitive)extensions/copilot/src/extension/chatSessions/claude/node/claudeCodeAgent.ts — _pendingPluginReload, _toolsMatch, _setCustomizations, _loadPlugins, _destroyAndRecreateQuerysrc/vs/platform/agentHost/node/copilot/copilotAgent.ts lines 311, 315, 998, 1026 (note: Copilot uses a provider-wide PluginController; Claude deliberately diverges to per-session ownership)launch, code-oss-logs, chat-customizations-editorsend()rebindForRestart()_sessionSequencersetClientCustomizationsAgentSideEffectssendMessagesrc/vs/platform/agentHost/test/node/claudeSdkOptions.test.tspluginsOptions.pluginssrc/vs/platform/agentHost/test/node/claudeSdkPipeline.test.tssnapshotResolvedCustomizationsgetCustomizations()setClientCustomizationssetCustomizationEnabledisPipelineReadysend() pre-flight, which already runs under the per-session sequencer. Rapid toggles coalesce naturally — only the final enablement state matters at the next send.snapshotResolvedCustomizations provides the same info on demand from the live Query. Deferred as a diagnostic.sendMessage is in flight does NOT mutate the current turn. The sync writes plugin files to disk and updates the session's diff; the toggle flips the session's enablement bit and dirty flag. The current turn keeps running with whatever plugin set the SDK already has. The next send() pre-flight observes the dirty bit and performs reload (or restart). Matches CONTEXT.md §M11's "no mid-turn mutation path" invariant.