frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Copilot Chat in VS Code is now open source

https://github.com/microsoft/vscode-copilot-chat
145•ulugbekna•12h ago

Comments

hu3•5h ago
Quick, someone use AI to scan the codebase and explain the decision tree of Copilot Chat with regards how it handle prompts and responses.
dataviz1000•4h ago
I very much need to know this also. First, tools [0] and prompts [1]. I'll get back to you in a minute while I back trace the calling path. One thing to note is that they use .tsx for rendering the prompts and tool responses.

1. User selects ask or edit and AskAgentIntent.handleRequest or EditAgentIntent.handleRequest is called on character return.

2. DefaultIntentRequestHandler.getResult() -> createInstance(AskAgentIntentInvocation) -> getResult -> intent.invoke -> runWithToolCalling(intentInvocation) -> createInstance(DefaultToolCallingLoop) -> loop.onDidReceiveResponse -> emit _onDidReceiveResponse -> loop.run(this.stream, pauseCtrl) -> runOne() -> getAvailableTools -> createPromptContext -> buildPrompt2 -> buildPrompt -> [somewhere in here the correct tool gets called] -> responseProcessor.processResponse -> doProcessResponse -> applyDelta ->

[0] https://github.com/microsoft/vscode-copilot-chat/blob/main/s...

[1] https://github.com/microsoft/vscode-copilot-chat/blob/main/s...

[2] src/extension/intents/node/toolCallingLoop.ts

_boffin_•4h ago
Care to also check if they do prompt decomposition into multiple prompts?
dataviz1000•2h ago
You're asking if they break the user prompt into multiple chunks?

All I can find is counting number of tokens and trimming to make sure the current turn conversation fits. I can not find any chunking logic to make multiple requests. This logic exists in the classes that extend IIntentInvocation which as buildPrompt() method.

_boffin_•2h ago
I believe it's this paper, but... not certain: https://arxiv.org/abs/2210.02406

will update when i find more info.

chatmasta•1h ago
Something I’ve wanted to hack together for a while is a custom react-renderer and react-reconciler for prompt templating so that you can write prompts with JSX.

I haven’t really thought about it beyond “JSX is a templating language and templating helps with prompt building and declarative is better than spaghetti code like LangChain.” But there’s probably some kernel of coolness there.

BrentOzar•5h ago
I have a hard time getting excited about this when they have such an atrocious record of handling pull requests in VS Code already: https://github.com/microsoft/vscode/pulls
Alupis•5h ago
That's because it's Microsoft's Trademarked version of Open Source.

All the good FOSS vibes, without any of the hard FOSS work...

NewsaHackO•4h ago
I hate this analogy. Just because something is open source, doesn’t mean it is forced to commit or comment on every pull request which takes development time. If that notion really bothers you, you are free to fork VSCode and close all 600 pull requests on your fork.
Alupis•4h ago
It's a common theme across most (all?) Microsoft "Open Source" repos. They publish the codebase on Github (which implies a certain thing on it's own), but accept very little community input/contributions - if any.

These repo's will usually have half a dozen or more Microsoft Employees with "Project Manager" titles and the like - extremely "top heavy". All development, decision making, roadmap and more are done behind closed doors. PR's go dormant for months or years... Issues get some sort of cursory "thanks for the input" response from a PM... then crickets.

I'm not arguing all open source needs to be a community and accept contributions. But let's be honest - this is deliberate on Microsoft's part. They want the "good vibes" of being open source friendly - but corporate Microsoft still isn't ready to embrace open source. ie, it's fake open source.

almosthere•4h ago
f. o. r. k. everything costs money, waaaay more than a $5 buy me a coffee. Every PR MS closes costs them thousands of dollars.
cyral•3h ago
I've looked at a bunch of the popular JS libraries I depend on and they are all the same story, hundreds of open PRs. I think it's just difficult to review work from random people who may not be implementing changes the right way at all. Same with the project direction/roadmap, I'd say the majority of open source repos are like that. People will suggest ideas/direction all day and you can't listen to everyone.

Not sure for VSCode, but for .NET 9 they claim: "There were over 26,000 contributions from over 9,000 community members! "

__jonas•8m ago
Why is that bad? Seems like a perfectly valid approach for an Open Source project, SQLite is doing the same.
jemiluv8•3h ago
Agree. OSS is hard work and not obligatory.
msgodel•4h ago
It looks to me like they close nearly 30 PRs every day. That's kind of amazing.

I'm no fan of Microsoft but that's a massive maintenance burden. They must have multiple people working on this full time.

Alupis•4h ago
If you examine the merged PR's - the overwhelming majority are from Microsoft employees. Meanwhile, community contributions sit and rot.
jemiluv8•3h ago
I thought they just open sourced this? Was there enough time to start reviewing community contributions?
DidYaWipe•1h ago
Yet the Settings UI is still a nonsensical mess.
tomnipotent•4h ago
I'm not sure I see the problem. The number of merged PR's looks on the high side for a FOSS project.

https://github.com/microsoft/vscode/pulls?q=is%3Apr+is%3Aclo...

mirekrusin•5h ago
There are just two forms of code - public domain and private. It's just that some people don't see it yet.
xenophonf•4h ago
What is Copilot Chat but a front end to some Microsoft SaaS offering? There's nothing materially "open source" about that. All the important stuff is locked up behind the GitHub Copilot API. No one can customize the LLM design or training material. It certainly can't be self-hosted. This is just in-app advertising for yet another subscription service that sends your personal data to an amoral third party. There's no community, no public benefit, no commonwealth.
dawnofdusk•4h ago
I mean you're right it's just a front end. And front ends can be open sourced? Obviously this has some public value: other people don't have to build a frontend starting from zero.

I don't think it's well-aimed criticism to say that the LLM design/training material itself should have been made open source. Pretty much no one in the open source community would have the computational resources to actually do anything with this...

brahma-dev•4h ago
But they might have the computational resource to showcase how these companies are breaking the copyright law that they loved until recently.
jemiluv8•3h ago
They are not obligated to provide it even if people have the computational resources to operationalise it.
MangoCoffee•4h ago
Doesn't open source mean users get the source code?

I don't understand this criticism.

senko•3h ago
They get the source code to a client.

The criticism is that most of the value is (presumably) on the API service side.

https://gwern.net/complement

jemiluv8•3h ago
That is why people are comfortable open sourcing things like this. It is good publicity and they don't loose anything. On the other hand curious devs get to poke around and wonder how their copilot prompts were processed by the plugin. Or how it handles attaching files to context. And even what it sends in its payloads.

Of course most of the value is on the API service side. That holds true for most applications these days.

grg0•1h ago
No, that's source available. See the OSI definition for what 'open source' means. And this is precisely the issue with 'open source' vs 'free software'. Once you rewire your brain for the latter, it's very obvious why a project like this is simply open-washing for PR points.
jemiluv8•3h ago
I don't follow the criticism. It is built on very weak foundations. Open source is just that - open source. Whether it is useful to you or anyone at all is another matter.
tomalbrc•3h ago
It's white-washing through "Open Source". No one will benefit from this
jemiluv8•3h ago
Yet here we are, it is out there, some are already poking at how they render responses from their api. Trying to understand some of the technical choices they had to make. Someone has probably cloned this and started pluggin in their own api - or reverse engineering the various api calls.

In the end, the fact that it exists makes a difference. It won't be useful to all especially non-technical people who've never seen the nuts and bolts of a vscode extension.

unethical_ban•1h ago
It's an open source... API connector to a closed source product.

"Copilot chat" isn't open source. It's the service.

phillipcarter•1h ago
I beg to differ. All commercial SOTA models emit roughly the same quality of code and have roughly the same limitations and ability to remain coherent in the size of context passed to them.

As has always been the case, it's the mechanisms used to feed relevant contextual information and process results that sets one tool apart from another. Everyone can code up a small agent that calls in LLM in a loop and passes in file contents. As I'm sure you've noticed, this alone does not make for a good coding agent.

v5v3•3h ago
Tell me the competition is winning without telling me the competition is winning...
gatienboquet•2h ago
Here's the system Prompt Template they use : https://github.com/microsoft/vscode-copilot-chat/blob/4c72d6...
rob-olmos•2h ago
"- cursor position marked as ${CURSOR_TAG}: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on."

I was not aware that was a thing and useful to know. Thanks!

blitzar•1h ago
Isn't that needed for the tab completion?
mathgeek•1h ago
Interesting to hear how others use these tools. I often phrase things as “this line/method” which implies the tool knows where my cursor is.
user4673568345•2h ago
Copilot in vs code is kind of lackluster and really missing the sort of polish you’d expect from a company like Microsoft
DidYaWipe•1h ago
USED to expect from Microsoft.

Have you even used any of their products lately? Where "lately" = the last 15 years...

koolala•31m ago
Now I expect out-right malicious corruption.
revskill•2h ago
I wont trust microsoft nor google until the end if universe.

Show HN: I'm an airline pilot – I built interactive graphs/globes of my flights

https://jameshard.ing/pilot
944•jamesharding•10h ago•155 comments

Normalizing Flows Are Capable Generative Models

https://machinelearning.apple.com/research/normalizing-flows
44•danboarder•2h ago•2 comments

Learn OCaml – Exercises

https://ocaml-sf.org/learn-ocaml-public/#activity=exercises
37•smartmic•2h ago•4 comments

Structuring Arrays with Algebraic Shapes

https://dl.acm.org/doi/abs/10.1145/3736112.3736141
46•todsacerdoti•3h ago•3 comments

A Brief History of Children Sent Through the Mail

https://www.smithsonianmag.com/smart-news/brief-history-children-sent-through-mail-180959372/
64•m-hodges•3h ago•42 comments

SymbolicAI: A neuro-symbolic perspective on LLMs

https://github.com/ExtensityAI/symbolicai
64•futurisold•4h ago•17 comments

Qwen VLo: From "Understanding" the World to "Depicting" It

https://qwenlm.github.io/blog/qwen-vlo/
150•lnyan•8h ago•44 comments

10 Years of Pomological Watercolors

https://parkerhiggins.net/2025/04/10-years-of-pomological-watercolors/
155•fanf2•8h ago•26 comments

Transmitting data via ultrasound without any special equipment

https://halcy.de/blog/2025/06/27/transmitting-data-via-ultrasound-without-any-special-equipment/
77•todsacerdoti•6h ago•26 comments

bootc-image-builder: Build your entire OS from a Containerfile

https://github.com/osbuild/bootc-image-builder
9•twelvenmonkeys•3d ago•0 comments

Spark AI (YC W24) is hiring a full-stack engineer in SF (founding team)

https://www.ycombinator.com/companies/spark/jobs/kDeJlPK-software-engineer-full-stack-founding-team
1•juliawu•2h ago

nimbme – Nim bare-metal environment

https://github.com/mikra01/nimbme
29•michaelsbradley•4h ago•6 comments

James Webb Space Telescope Reveals Its First Direct Image of an Exoplanet

https://www.smithsonianmag.com/smart-news/james-webb-space-telescope-reveals-its-first-direct-image-discovery-of-an-exoplanet-180986886/
55•divbzero•5h ago•28 comments

The Journey of Bypassing Ubuntu's Unprivileged Namespace Restriction

https://u1f383.github.io/linux/2025/06/26/the-journey-of-bypassing-ubuntus-unprivileged-namespace-restriction.html
5•Bogdanp•1h ago•0 comments

Reinforcement learning, explained with a minimum of math and jargon

https://www.understandingai.org/p/reinforcement-learning-explained
14•JnBrymn•3d ago•0 comments

Show HN: Do you know RGB?

https://maxwellito.github.io/do-you-know-rgb/
54•maxwellito•3d ago•38 comments

Slightly better named character reference tokenization than Chrome, Safari, FF

https://www.ryanliptak.com/blog/better-named-character-reference-tokenization/
34•todsacerdoti•22h ago•7 comments

Weird Expressions in Rust

https://www.wakunguma.com/blog/rust-weird-expr
134•lukastyrychtr•8h ago•105 comments

A New Kind of Computer (April 2025)

https://lightmatter.co/blog/a-new-kind-of-computer/
30•gkolli•3d ago•15 comments

Glass nanostructures reflect nearly all visible light, challenging assumptions

https://phys.org/news/2025-06-glass-nanostructures-visible-photonics-assumptions.html
18•bookofjoe•3d ago•3 comments

Whitesmiths C compiler: One of the earliest commercial C compilers available

https://github.com/hansake/Whitesmiths-C-compiler
90•todsacerdoti•4d ago•23 comments

New Process Uses Microbes to Create Valuable Materials from Urine

https://newscenter.lbl.gov/2025/06/17/new-process-uses-microbes-to-create-valuable-materials-from-urine/
11•gmays•4h ago•3 comments

Project Vend: Can Claude run a small shop? (And why does that matter?)

https://www.anthropic.com/research/project-vend-1
165•gk1•7h ago•68 comments

Rust in the Linux kernel: part 2

https://lwn.net/SubscriberLink/1025232/fbb2d90d084368e3/
9•chmaynard•1h ago•0 comments

Parameterized types in C using the new tag compatibility rule

https://nullprogram.com/blog/2025/06/26/
123•ingve•17h ago•58 comments

PJ5 TTL CPU

https://pj5cpu.wordpress.com/
76•doener•16h ago•1 comments

US Supreme Court limits federal judges' power to block Trump orders

https://www.theguardian.com/us-news/2025/jun/27/trump-supreme-court-birthright-citizenship-scotus
267•leotravis10•5h ago•384 comments

Show HN: Sink – Sync any directory with any device on your local network

https://github.com/sirbread/sink
108•sirbread•17h ago•78 comments

Sailing the fjords like the Vikings yields unexpected insights

https://arstechnica.com/science/2025/06/this-archaeologist-built-a-replica-boat-to-sail-like-the-vikings/
133•pseudolus•4d ago•50 comments

Alternative Layout System

https://alternativelayoutsystem.com/scripts/#same-sizer
353•smartmic•1d ago•60 comments