Skip to content

Show remaining turns to execution subagents - #332704

Merged
Bhavya U (bhavyaus) merged 1 commit into
microsoft:mainfrom
piyushmadan:piyushmadan/minimal_execution_subagent_turn_countdown
Sep 1, 2026
Merged

Bhavya U (bhavyaus) merged 1 commit into
microsoft:mainfrom
piyushmadan:piyushmadan/minimal_execution_subagent_turn_countdown

Conversation

@piyushmadan

@piyushmadan Piyush Madan (piyushmadan) commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • tell the execution subagent its remaining configured iteration budget on every request
  • tell it to stop calling tools and return <final_answer> when one iteration remains

Scope

One existing execution-subagent prompt file: 4 additions and 5 removals.

The prompt already receives maxExecutionTurns and the completed tool-call rounds, so this does not add settings, feature flags, evaluation plumbing, model-selection changes, or new abstractions.

Validation

  • tsc --noEmit --project tsconfig.json
  • extension compile and VSIX package
  • treatment VSIX SHA-256: fee800cee6e8c59ccfbbfcf5f218de141074b9f1539b2915f29ff37ee949e4f5
  • four MSBench canaries passed with exact parent and child models and zero fallback
  • control child requests contained 0 countdown warnings
  • treatment child requests contained a countdown on every request, including a complete 10 → 1 sequence

Canaries:

  • control TerminalBench2.1: 2026082630511001
  • treatment TerminalBench2.1: 2026082630523092
  • control SWE-bench C#: 2026082630534178
  • treatment SWE-bench C#: 2026082630545601

Full paired eight-arm matrix (execution_subagent_turn_warning_minimal_v1):

  • 932/932 CES trials completed; zero CES failures
  • raw child requests: control 0/6,801 countdowns; treatment 6,192/6,192
  • countdown sequence violations: zero
  • parent tool results: control 103/1,842 empty; treatment 0/1,886
  • paired instances: 81 empty only under control, 0 only under treatment, 0 under both
  • exact parent/child models and installed VSIX hashes matched in every observed artifact
  • benchmark pass-rate deltas were mixed (-1.70, -0.39, +0.58, +1.32 pp), so no benchmark-score improvement is claimed

Two treatment trials lacked output ZIPs even though CES reported them complete; they are excluded from artifact-level comparison rather than counted as benchmark failures.

Full sanitized report and trace proof:
https://github.com/argos-gh/memory-bank/blob/piyushmadan/c4/aug24-week/execution_subagent_countdown_offline_eval/docs/minimal-final-report.md

Cross-model merge-confidence matrix (gpt-5.6-luna, gemini-3.5-flash):

  • 932/932 CES trials completed; zero CES failures or missing output archives
  • raw child requests: control 0/6,819 countdowns; treatment 7,397/7,397
  • no paired instance became empty only under treatment
  • Luna empty parent results stayed 0 → 0
  • Gemini empty parent results improved 72 → 1
  • pass-rate deltas: Luna Terminal +9.28 pp, Luna SWE -2.92 pp, Gemini Terminal +12.05 pp, Gemini SWE +0.15 pp
  • Luna SWE was the only negative delta; paired exact McNemar p=0.424, providing no evidence of a statistically significant regression
  • combined output-token deltas were mixed: Luna -7.4%/+6.1%, Gemini +8.3%/-1.0% for Terminal/SWE

Full Luna/Gemini regression report:
https://github.com/argos-gh/memory-bank/blob/piyushmadan/c4/aug24-week/execution_subagent_countdown_offline_eval/docs/luna-gemini-regression.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 62f6758b-a71d-4533-8f3d-9028975772bf
Copilot AI balanced review requested due to automatic review settings August 26, 2026 08:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds iteration-budget guidance to execution-subagent prompts.

Changes:

  • Reports remaining iterations on every request.
  • Directs the subagent to return <final_answer> without tools on its final iteration.
Show a summary per file
File Description
extensions/copilot/src/extension/prompts/node/agent/executionSubagentPrompt.tsx Adds and displays the remaining-turn countdown.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced
@bhavyaus
Bhavya U (bhavyaus) merged commit ab4e1af into microsoft:main Sep 1, 2026
27 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 1, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

6 participants