Agents window: Allow customization of branch name prefix for worktree branches

Open
#321,685 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
git, typescript

Research direction

No file or test is named in the issue. Start by reproducing the Agents window's Worktree isolation flow and tracing where its branch name is created; done means the branch prefix can be customized and the resulting worktree branches honor that setting.

Written by the indexing model from the issue text.

Description

Description

Steps to reproduce:

  1. Open VS Code
  2. Open Agents window
  3. Begin a new session by selecting Worktree isolation (via the dropdown to the bottom right of the Copilot new session dialog), entering a prompt, and submitting the prompt.

Expected behavior:
Copilot honors instructions in my AGENTS.md file for how new branches should be named (e.g. by prefixing branches with the name of the current user, like <username>/<topic>).

Actual behavior:
Every branch created by the Agents window in Worktree isolation mode begins with agents/<topic>. Copilot tells me that this prefix is hardcoded in VS code.

Issue Details
Item Value
Issue Category Feature Request
Target Visual Studio Code
VS Code Version Code 1.125.0 (93cfdd489c3b228840d0f86ec77c3636277c93ea, 2026-06-15T22:24:03Z)
OS Version Windows_NT x64 10.0.26200
System Info
Item Value
VS Code Version Code 1.125.0 (93cfdd489c3b228840d0f86ec77c3636277c93ea, 2026-06-15T22:24:03Z)
OS Version Windows_NT x64 10.0.26200
CPUs Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (16 x 2793)
GPU Status 2d_canvas: unavailable_software
GPU0: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VENDOR=Microsoft, DRIVER_VERSION=10.0.26100.8521 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg)
Memory (System) 63.95GB (31.07GB free)
Process Argv --crash-reporter-id cd95bdca-5aaa-4872-ba05-5ead9e9dc573
Screen Reader no
VM 0%
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.125.0 Chrome/148.0.7778.97 Electron/42.2.0 Safari/537.36
Installation pure true
Extensions (11)
Name Identifier Author Version
Markdown Preview Mermaid Support bierner.markdown-mermaid bierner 1.32.1
Mermaid Markdown Syntax Highlighting bpruitt-goddard.mermaid-markdown-syntax-highlighting bpruitt-goddard 1.8.1
The Pattern Language (TPL) cdpautsch.tpl cdpautsch 1.0.1
ESLint dbaeumer.vscode-eslint dbaeumer 3.0.24
HTML CSS Support ecmel.vscode-html-css ecmel 2.0.14
Prettier - Code formatter esbenp.prettier-vscode esbenp 12.4.0
Jupyter Keymap ms-toolsai.jupyter-keymap ms-toolsai 1.1.2
Remote Development ms-vscode-remote.vscode-remote-extensionpack ms-vscode-remote 0.26.0
Language Support for Java(TM) by Red Hat redhat.java redhat 1.54.0
XML redhat.vscode-xml redhat 0.29.3
[Kuskus] Kusto Syntax Highlighting rosshamish.kuskus-kusto-syntax-highlighting rosshamish 2.0.8

Theme extensions: 9

A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
471b6256:31240254
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
b6b4d950:31327385
6abeh943:31336334
envsdeactivate2:31505458
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cmp-cht-elara-310:31518259
metis_rerank_treatment1:31422731
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_c:31478207
hmra_i5g22:-9
7df3h592:31512476
pro_large_t:31499376
cp_cls_t_1082:31516087
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_c_632:31524806
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
2cfga817_c:31522397
g4a0e106:31529594
prpt_srch:31518468
jbcp_cls_pctr_t:31531130
61138546:31518536
3f904173:31522231
cp_intellij_c_nes:31533503
jf4hg949:31526829
nes-curr-leftover-1000:31530976
h561g132:31533256
sessions_5:31532894
Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.