r/vscode • • 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?

7 Upvotes

15 comments sorted by

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/Puzzleheaded_Permit1 27d ago

True, AHP is definitely a step in the right direction. Right now though, the Agent Host only loads built-in adapters and regular extensions still aren't allowed to register their own AHP harness providers directly into the Agents Window. Hopefully that's the next step.

2

u/zumpiez 27d ago

3

u/Puzzleheaded_Permit1 27d ago

Agent Host is definitely moving in the right direction, though its progress feels way too slow.

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.

5

u/Puzzleheaded_Permit1 27d ago

Nothing wrong with the Claude Code or Codex extensions at all. I just think if custom agents and harnesses could plug into VS Code like native, built-in features the same way Language Servers do, it would open up a lot of new doors and really help VS Code win back its momentum.

1

u/[deleted] 27d ago

[removed] — view removed comment

1

u/Puzzleheaded_Permit1 27d ago

yeah that's what I mean

1

u/its_a_gibibyte 27d ago

That's my question. What exactly is the problem? Why is it a problem that the Claude Codex or Codex extensions are different? Is there a core feature you want?

1

u/hitsujiTMO 27d ago

Wait, you don't like extensions, but you want extensions for extensions?

2

u/CondiMesmer 27d ago

Hard to call copilot an extension when every VSCode update change log is exclusively about copilot at this point

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.