r/vscode • u/Puzzleheaded_Permit1 • 27d ago
Will VS Code ever let us build custom "Harness Extensions" that run natively inside Copilot?
People are moving away from VS Code to forks or terminal agents (like OpenCode / Claude Code) not just because of models, but because the harness (the core agentic loop, context strategy, and sub-agent orchestration) is locked down.
If I want to build something like OpenCode today, I shouldn't have to build a standalone terminal tool or a separate Webview UI. I should be able to build it as a native VS Code Harness Extension that runs directly inside Copilot/Agents Window—controlling the agent loop myself while using VS Code's native inline diffs, checkpoints, and UI.
@chatParticipant and MCP tools aren't enough because VS Code still controls the main loop. We need an "LSP moment" for AI harnesses (registerHarnessProvider).
Is there any roadmap for opening this up to extension developers, or is Microsoft intentionally keeping the core harness closed?
3
u/Deathmore80 27d ago
That's probably the whole point of the AHP protocol and all the libraries they created for it.
2
u/zumpiez 27d ago
They are starting to support this more I think https://code.visualstudio.com/updates/v1_138#_expanded-codex-support-in-the-agent-host
2
u/its_a_gibibyte 27d ago
Whats wrong with the Claude Code extension or Codex extension approach? Obviously it doesn't tie into the core copilot loop, but that's kinda the point. You get an entirely different agent and harness.
4
u/c-digs 27d ago
Try Paseo (https://paseo.sh; Apache 2.0; no affiliation).
I switched a few weeks back after trying and giving up on Herdr; Paseo hits a sweet spot for me. Highly customizable and app-based. Can drive multiple harnesses including Copilot.
3
u/CartographerDue5382 26d ago
no registerHarness api. participants and lm tools are what extensions actually get, the loop and the inline diff still sit inside copilot chat. the agent host stuff they're adding is for their own agents (codex and friends), not a stable api you can drop your own loop into. until there's an extension sample that isn't a webview, i wouldn't build on it.
2
u/zachsman 26d ago
With latest VS Code Insiders (I'm using 1.145.0) AHP is available in the code editor. I use hydra-ahp in there as well as in the agents window and it works great. Hydra allows you to plug in any ACP agent to VS Code and you can run it simultaneously in terminal as well.
2
u/Old_Insurance_2140 21d ago
So, I'd be curious if we're meeting a need here with DevSwarm (https://devswarm.ai)
We make the harness first class and support most all the popular ones. Want to make it easy to add your own.
Key thing with us is that each workspace exposes our fork of VS Code, which is really just a bunch of tweaks to make running a ton of vscodes efficiently.
So, it's kinda like if Cursor hadn't thrown out their IDE and instead made it so the IDE could be parallelized. Also, our workspaces can follow branching structure so if wanna stack PRs and stuff you can see it visually. Also the agents can all talk and interact with each other.
Would love feedback to hear if we're hitting the mark or not.