Subagent consuming large tokens
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Type: Bug
I have an orchestrator agent that calls another agent like git branch creation, azure devops task creation etc. I see the first call by the orchestrator agent consumed ~8k tokens, however, the subagent AI LLM call of git branch creation and azure devops task creation agent consumed ~20k tokens each.
When I checked the logs, it is not showing any large context/content being sent to the AI LLM for processing, instead it was merely 1000 words in total. It is happening for all the sub agent call made.
I am using Claude Haiku 4.5 model for all the agents.
Let me know if any more info is needed.
VS Code version: Code 1.135.0 (08d4889f9ec4a1685d257b9b95de036c8e1ce1e5, 2026-08-25T14:26:52Z)
OS version: Windows_NT x64 10.0.26200
Modes:
System Info
|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1805)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x9a49 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.7084 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8972
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.40GB (0.86GB free)|
|Process Argv|--folder-uri file:///c%3A/JTS-Code-Repository/.github --crash-reporter-id e9af3ff4-eb2d-447f-90a0-5254c9b5a5c0|
|Screen Reader|no|
|VM|0%|
Extensions (49)
Name|Identifier|Author|Version
---|---|---|---
Angular Files|alexiv.vscode-angular2-files|alexiv|1.6.4
Angular Language Service|angular.ng-template|Angular|22.1.0
Path Intellisense|christian-kohler.path-intellisense|christian-kohler|2.10.0
markdownlint|davidanson.vscode-markdownlint|DavidAnson|0.62.1
ESLint|dbaeumer.vscode-eslint|dbaeumer|3.0.34
GitLens — Git supercharged|eamodio.gitlens|eamodio|19.0.1
HTML CSS Support|ecmel.vscode-html-css|ecmel|2.0.14
EditorConfig|editorconfig.editorconfig|EditorConfig|0.18.2
Prettier - Code formatter|esbenp.prettier-vscode|esbenp|12.4.0
GitHub Repositories|github.remotehub|GitHub|0.64.0
Test Explorer UI|hbenl.vscode-test-explorer|hbenl|2.22.1
REST Client|humao.rest-client|humao|0.25.1
PlantUML|jebbs.plantuml|jebbs|2.18.1
Angular Essentials (Version 22)|johnpapa.angular-essentials|johnpapa|22.0.1
Angular Snippets (Version 22)|johnpapa.angular2|johnpapa|22.0.0
Peacock|johnpapa.vscode-peacock|johnpapa|4.3.4
Inline Parameters for VSCode|liamhammett.inline-parameters|liamhammett|0.2.1
JSON to TS|mariusalchimavicius.json-to-ts|MariusAlchimavicius|1.8.0
Rainbow CSV|mechatroner.rainbow-csv|mechatroner|3.24.1
GitHub Copilot for Azure|ms-azuretools.vscode-azure-github-copilot|ms-azuretools|1.0.231
Azure MCP Server|ms-azuretools.vscode-azure-mcp-server|ms-azuretools|2.0.46
Azure Resources|ms-azuretools.vscode-azureresourcegroups|ms-azuretools|0.12.7
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.5.0
Docker|ms-azuretools.vscode-docker|ms-azuretools|2.0.0
C# Dev Kit|ms-dotnettools.csdevkit|ms-dotnettools|3.20.199
C#|ms-dotnettools.csharp|ms-dotnettools|2.140.9
.NET Install Tool|ms-dotnettools.vscode-dotnet-runtime|ms-dotnettools|3.1.0
Microsoft Edge Tools for VS Code|ms-edgedevtools.vscode-edge-devtools|ms-edgedevtools|2.1.10
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.3.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.466.0
WSL|ms-vscode-remote.remote-wsl|ms-vscode-remote|0.104.3
Azure Repos|ms-vscode.azure-repos|ms-vscode|0.40.0
Azure CLI Tools|ms-vscode.azurecli|ms-vscode|0.6.0
PowerShell|ms-vscode.powershell|ms-vscode|2025.4.0
Remote Repositories|ms-vscode.remote-repositories|ms-vscode|0.42.0
Test Adapter Converter|ms-vscode.test-adapter-converter|ms-vscode|0.2.1
Visual Studio Keymap|ms-vscode.vs-keybindings|ms-vscode|0.2.1
Chat Customizations Evaluations|ms-vscode.vscode-chat-customizations-evaluations|ms-vscode|1.0.8
VS Code Speech|ms-vscode.vscode-speech|ms-vscode|0.16.0
Fix JSON|oliversturm.fix-json|oliversturm|0.2.0
Material Icon Theme|pkief.material-icon-theme|PKief|5.38.1
Paste JSON as Code|quicktype.quicktype|quicktype|23.0.170
JSON Validate|rioj7.vscode-json-validate|rioj7|1.5.0
Auto Import|steoates.autoimport|steoates|1.5.4
Angular spec generator|thorstenrintelen.angular-spec-generator|ThorstenRintelen|3.0.0
Error Lens|usernamehw.errorlens|usernamehw|3.28.0
A/B Experiments
```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
diffpatch-lysithea-0014-prod-ctrl:31574142
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
46204921:31447328
capico_a_098a3278:31555650
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
h08i8180:31475369
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
ahp-both-windows:31556933
sessions_5:31532894
ihg5j128:31534457
f412h606:31551416
9gg7f176:31542112
enable_editor_pane_layout:31569726
allow-none:31555437
36h42362:31564511
c7c27ce7:31554789
1h923230:31564177
0dg73464:31554319
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
vrbsty_fls:31561059
session-archive:31558132
5b8j3302:31564601
mangle-name-treatment:31572634
lunaclean:31573760
multiv2:31574985
permission_prompt_control:1332567
ccr_pr_nudge_adoption:1319471
vsc_wsm_t:1340632
eh853263:1355661
auto_mode_control:1359303
```
Contributor guide
Assessment
This issue has not been assessed yet.