Commit 101e36c
Fix orchestrator using SDK tools instead of @worker: dispatch
The orchestrator prompt had two issues causing it to use SDK tools
(task, grep, edit) directly instead of producing @worker: blocks:
1. Line 989 said 'If you can handle the request entirely yourself,
just respond normally without any @worker blocks' — giving the
model explicit permission to skip delegation.
2. The RoutingContext used tool-like language ('run git diff', 'build,
test, commit') that the model pattern-matched to its SDK tools.
Fix: Rewrite the planning prompt to say the orchestrator is a
DISPATCHER ONLY with no tools, and reword the RoutingContext to
describe the dispatch pattern without tool-like language.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 27fe315 commit 101e36c
2 files changed
Lines changed: 17 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
| 329 | + | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
993 | 995 | | |
994 | 996 | | |
995 | 997 | | |
996 | 998 | | |
997 | 999 | | |
998 | | - | |
999 | | - | |
| 1000 | + | |
| 1001 | + | |
1000 | 1002 | | |
1001 | 1003 | | |
1002 | 1004 | | |
| |||
0 commit comments