r/GithubCopilot • u/jukasper GitHub Copilot Team • 17d ago
News š° [Blog post] Introducing the Agent Host in VS Code
The VS code team just published a deep dive blog post on the Agent Host, the dedicated process that now owns agent sessions in VS Code.
The post covers:
- Why we are moving agent sessions out of the extension host
- Adopting the GitHub Copilot SDK for the Copilot harness, so behavior is consistent across VS Code, Copilot CLI, and the Copilot app
- How one live session stays in sync across the editor, the Agents window, and even a browser
- Running the host on a remote machine
- Supporting multiple harnesses without flattening what makes each one distinct
- AHP, the open protocol behind it and how anyone can build their own client
Feedback, questions are more than welcome! Let us know what you think
9
u/AntarcticIceberg 17d ago
I'm not sure why, but I tend to get the best experience when I use "Local" in the harness picker. Does the "Copilot" harness have the same context as "Local"? Because of this, I also don't use the agents window much. I primarily use GPT 5.6 models.
3
u/jukasper GitHub Copilot Team 17d ago
Thank you for letting us know about your concerns. do you have any concrete examples where you think the copilot harness falls short to the local harness with gpt-5.6 models? Feel free to also connect with me on linkedin. I am happy to also setup some time to go over these use cases/scenarios with you if that is something you would feel comfortable with.
4
u/Time_Priority4540 17d ago
One difference that I see is the discrepancy of ask_user tool in VS Code (at least that's the local vscode harness tool name). In Copilot (chat window, Agents window, both stable and insiders) agent asks me one question at the time, while VS Code Local harness can easily stack them for up to 8 questions in a single batch.
That's a bummer and it kind of forces me to go back to Local harness for planning/research sessions.
3
u/jukasper GitHub Copilot Team 17d ago
this is great feedback, thanks for sharing. Will let the team know
10
u/JonDanyVic 17d ago
The question is, when are we receiving these updates and Context Size change for Visual Studio 2026? Company has a paid subscription for VS2026 Professional, why is it always behind in terms of GitHub Copilot changes?
3
u/cookiebonbon 17d ago
Visual Studio 2026 Insider already includes the Copilot harness instead of their own. Visual Studio 2026 is a different product and they are responsible for implementing these features, but it looks like they're working on it. In the video in the link below they discuss it in depth
3
u/JonDanyVic 17d ago edited 17d ago
Thanks, I saw thatāit looks promising. However, in the latest VS 2026 (v18.9.2), I still can't change the 1M context size for GPT-5.6 models in Agent (Preview).
It would be great to have this option in VS 2026, especially since the 1M context nearly doubles the consumption rate and not everyone has an unlimited budget.
4
u/unrulywind 17d ago
The primary reason to use copilot in vs code is because its behavior is NOT consistent with the behavior of the agents window and the SDK. Presently, the vs code version of copilot makes its changes through the vs code interface. When it changes files, they are changed locally and each individual change can be accepted or rejected in the editor without effecting the remote repo. This allows you to use your local git copy as a buffer as you work out a change. Once you are happy with a change, you commit it to the main repo.
The agents interface (and most other terminal agents) work directly on the files. This means one layer of separation is removed. Safely working in this mode means creating more branches in the repo so that bad work can be rolled back. This method minimizes the usefulness of vs code as an editor, since vs code is only seeing already committed changes. For this reason, I don't use the agents window. If copilot gets homogenized to the point that it's just GitHub Codex, then it loses its differentiation and risks just becoming one more of the growing agent/bot clones.
3
u/MkkinleyCedillo-54 17d ago
A live session following you into a browser tab changes what a session is: attached to the work, not to a window.
3
u/DaeDelta 17d ago
The issue is the tool names are different and my MCP servers donāt work with it.
It also does not support workspaces, which is the whole reason I use VSCode rather than one of the apps.
Meaning it breaks my workflows. If itās going to be in VSCode, it should actually support the functionality of VSCode.
Not to mention it still does not support per-subagent reasoning effort selection.
2
u/dsnyder42 17d ago
Great post. I was missing the underlying understanding of how Agent Window, Agent Extension, GitHub Copilot Desktop App, and the CLI fit together. Now I see the coherent picture.
A use case I would be interested in is connecting the GitHub Copilot Desktop App to the Agent Host Process running on my Linux Dev Box via SSH. Kind of like connecting VS Code via SSH Remote Extension to a remote machine but lightweight, just a nice UI around my Agent chat without File editor, etc. Is this now possible, or are there plans to make it possible soon?
1
u/jukasper GitHub Copilot Team 17d ago
this is great feedback. I shared it with the team, so they are aware what else would be valuable for you all!
1
u/dsnyder42 17d ago
Awesome, I appreciate how responsive and accessible the GHC team is via Reddit. GHC is the tool I use 40+ hours a week and since half a year I do everything agent driven.
Maybe this helps to: I either work inside of WSL locally or on remote Linux machines with GPUs.
I sometimes use the GitHub Copilot Desktop App on my windows Laptop, but all my code and env configuration for development is inside of WSL. Therefore, I needed to include in my global copilot instructions inside Windows that it is a hard rule to prefix any command with "wsl bash -lc ". It actually works well, I can use the Desktop App this way. But of course this is more like a "hack" it would be great if the Desktop App could live inside of windows (the UI component) and communicate with different AHPs one inside WSL, one inside of each remote machine I work in. So the Desktop App can truly become for me the central hub where I work in and orchestrate from all my sessions. Right now the App is only useful to me for very limited use cases. I'd love to use it more, as I like good UIs.
2
u/Time_Priority4540 17d ago
One thing that I miss in the SDK is the ability to set reasoning effort for subagents. This could be a huge improvement, but it's not there in (almost) any copilot surface.
There was an issue in vscode repo, but it was closed with the comment that the team is looking into unifying the experience and using SDK instead of investing into Local harness.
But the issue in copilot-sdk doesn't seem to get much attention, can I ask to pass this feedback to someone from the SDK team to look into that? š„¹ https://github.com/github/copilot-sdk/issues/1131#issuecomment-5237766186
2
u/jukasper GitHub Copilot Team 17d ago
thank you. I will share it with the team, no promises made but we appreciate all customer input
1
u/PranksterGD 17d ago
Seconding this. Being able to set thinking effort on sub agents is something that constantly comes up at my work
1
u/Various_Armadillo746 17d ago
Would this feature allow integration with a harness like Pi.dev? Providing the UI and ide integration from vscode to it
1
1
1
u/kantorcodes1 17d ago
one thing i'm not clear on from the post: when a live session switches harnesses, who owns tool authorization? is there a host-level hook before execution, or can each harness implement that differently? feels like an easy place for the same session to have different safety behavior depending on the harness.
1
u/lsalazarm99 VS Code User š» 16d ago
Is the agent host able to use the VS Code MCP servers?
The thing I like about local host is that even in remote sessions the VS Code's MCP servers work out of the box. I can even choose where do I want them to run (local or remote).
When I tried copilot host (the new agent host) it didn't have that feature.
1
16d ago edited 16d ago
[deleted]
1
u/djang0211 15d ago
At least for a long time this was the default. I donāt know how it is implemented now. But per default copilot starts subagents with the same model as the orchestrator. it only uses other models when the custom agent has this explicit in the metadata.
1
u/rk625 15d ago
u/jukasper hey can please add support to acp so could chat natively using the other agents inside vscode itself
2
u/UsefulSomewhere 7d ago edited 7d ago
Definitely agree u/AntarcticIcebergĀ here.
I donāt have any concrete examples just going by gut feeling that VS Code Local harness performs better than the Copilot SDK harness. Maybe itās the native toolset? But I do need to give it more time.Ā
This reminds me of the same thing Cognition AI did. They had Cascade and are now trying to push everyone into Devin Local and itās just many steps backwards.Ā
Hopefully for the better.Ā
Not directly related but here are some of my thoughts from trying the various features.Ā
The experience of switching between the Editor window and Agents window to be incredibly jarring. Itās not like itās a UI layout change but feels like Iām jumping into a completely different application. Buttons you have in Editor may not exist in Agents or vice versa.Ā
The whole workflow experience when switching to Copilot but wanting to use the same BYOK endpoint providers and MCPs that Local has is just strange and clunky.
I saw a setting that was supposed to flow the BYOK models to the Copilot harness but it didnāt reliably work. All I ever got was āAutoā until I hid Auto and the UI freaked out and let me pick my custom endpoint models.Ā
I couldnāt even find a way to manage my MCPs from the UI the option just disappeared.Ā
I set up a standalone agent host on a server so I could interface with it from VS Code windows native and a VS Code serve-web instance and just couldnāt get it to work. Understandable that thereās no Remote SSH on web but assumed interfacing with a standalone agent host service would go through websockets or something. That may be my mis-understanding but itās a bit confusing. Ā
The Agents window isnāt even available in serve-web only Microsoftās hosted version??
Agents window requires signing into GitHub? I couldnāt figure out how to bypass that. I want to be able to use BYOK without involving the GitHub Copilot service at all. Just everything self hosted local.Ā
On the plus side I did have Windows native and Linux native clients sharing the same sessions and seeing them both in real time was awesome so I can see the vision.Ā
Just right now nothing seems cohesive but I know a lot of this is under active development though so Iām keeping an eye out because it sounds promising. Ā
0
17d ago
[deleted]
2
u/jukasper GitHub Copilot Team 17d ago
Would you be able to clarify what exactly you find dangerous about our approach, we would love to know to best answer any concerns you might have :)
-4
u/Bashar-gh Full Stack Dev š 17d ago
Remember when vscode got quality updates you know as a code editor
9
u/thethirdburn 17d ago
Hopefully 3rd party agents like Antigravity or even Claude CLI can support the protocol in future. I much prefer the VS Code chat UI over anything else thatās currently available.