Add opt-in concise hints for explicitly selected plugins (#57317)

## What changed

Add the `features.simplified_selection_hints` flag, disabled by default. When enabled, replace detailed plugin capability instructions with a concise developer message identifying the selected plugin and directing the model to use its available skills and tools.

Continue omitting hints for plugins without available capabilities and bounding hint length. Preserve the existing detailed instructions when the flag is disabled.

## Testing

Cover plugin refresh in an existing thread with the flag enabled and disabled. Verify that explicit skill prompts precede the simplified plugin hint and that the hint uses the developer role.

GitOrigin-RevId: 64fc3347bd49fffe675f343a4733ced1b4e5e88c
This commit is contained in:
Alex Daley
2026-10-27 00:52:31 +00:00
committed by copyberry
parent b01148de59
commit ce7adb6a31
10 changed files with 236 additions and 17 deletions
+8
View File
@@ -297,6 +297,8 @@ pub enum Feature {
RecommendedPlugins,
/// Enable plugins.
Plugins,
/// Use concise developer hints for explicitly selected plugins.
SimplifiedSelectionHints,
/// Discover selected-root plugin and skill manifests through one high-level exec-server RPC.
ExecutorCapabilityDiscovery,
/// Acquire V2 executor inventories without publishing or activating their capabilities.
@@ -1733,6 +1735,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::SimplifiedSelectionHints,
key: "simplified_selection_hints",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::ExecutorCapabilityDiscovery,
key: "executor_capability_discovery",