Commit f50a99e
Search Subagent support (#2736)
* search subagent tool added
* cleaning up description of search subagent
* additional changes
* update linting issue
* Exit early on search subagent call
* search subagent tool added
* cleaning up description of search subagent
* additional changes
* update linting issue
* Add fixes for subagent
* describe read file tool in its prompt
* fixing copilot cli issues?
* resolve merge conflicts with main
* explicit any pt 2
* update explicit any to unknown
* demo
* updating prompt to include description
* fixing newline bug
* added correct input params for subagent
* update to add final turn warning injection
* code snippet hydration
* adding details to toolMetadata (untested)
* commented out until testing
* remove exit from main PR
* actuallly terminate loop
* end loop after round is added and run
* remove early exit handling
* add experiment flags
* update code to check for exp + auto mode
* update to only use gpt 5 mini for search subagent
* Update src/extension/prompts/node/agent/searchSubagentPrompt.tsx
Co-authored-by: Copilot <[email protected]>
* Update docs/tools.md
Co-authored-by: Copilot <[email protected]>
* Update package.nls.json
Co-authored-by: Copilot <[email protected]>
* update tests to handle new prompts
* Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
* deleting vestigial file
* fix merge conflict
* update to default to using the main agent model as fallback for subagent, rather than hardcoding gpt4.1
* remove extra whitespace
* remove runSubagent from package.json and update prompt for final snippet clarity
* reset default to false
* add clearer injection prompt
* updating to work with main branch changes
* rewrite search subagent to have its own tool calling loop file + ensure no nested loops with codebase
* remove copilot-added search subagent doc
* update toolResultMessage
* handle exp configuration for search subagent in the right place
* use searchSubagentLoop instead of subagentLoop
* update to be in line with main
* remove CCA agents
* Some minor cleanup
* Update import for ChatToolInvocationPart in SearchSubagentTool
* Replace inSubAgent flag with subAgentInvocationId for tool calling loop checks
---------
Co-authored-by: Anisha Agarwal <[email protected]>
Co-authored-by: Vritant Bhardwaj <[email protected]>
Co-authored-by: root <root@perflens-vm7.e4rbrboag42enkzhvodo1frcqh.xx.internal.cloudapp.net>
Co-authored-by: Anisha Agarwal <[email protected]>
Co-authored-by: Zhichao Li <[email protected]>
Co-authored-by: vritant24 <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: bhavyaus <[email protected]>1 parent 8365320 commit f50a99e
File tree
30 files changed
+461
-5
lines changed- src
- extension
- intents/node
- prompts/node/agent
- openai
- test/__snapshots__
- agentPrompts-claude-opus-4.5
- agentPrompts-claude-sonnet-4.5
- agentPrompts-default
- agentPrompts-gpt-4.1
- agentPrompts-gpt-5-mini
- agentPrompts-gpt-5.1
- agentPrompts-gpt-5
- prompt/node
- tools
- common
- node
- test
- platform/configuration/common
30 files changed
+461
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
167 | 201 | | |
168 | 202 | | |
169 | 203 | | |
| |||
1234 | 1268 | | |
1235 | 1269 | | |
1236 | 1270 | | |
1237 | | - | |
| 1271 | + | |
| 1272 | + | |
1238 | 1273 | | |
1239 | 1274 | | |
1240 | 1275 | | |
| |||
3921 | 3956 | | |
3922 | 3957 | | |
3923 | 3958 | | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
3924 | 3969 | | |
3925 | 3970 | | |
3926 | 3971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
381 | 386 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
Lines changed: 121 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments