TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Copilot Internals

358 pointsby jjwisemanover 2 years ago

11 comments

gavinrayover 2 years ago
I stumbled upon this repo by accident a few days ago when its source code appeared to contain the only usage the term &quot;GH_COPILOT_TOKEN&quot; in any repo on Github:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;search?q=GH_COPILOT_TOKEN&amp;type=code">https:&#x2F;&#x2F;github.com&#x2F;search?q=GH_COPILOT_TOKEN&amp;type=code</a><p>(My Copilot was broken and this was in the error output I was seeing, see: <a href="https:&#x2F;&#x2F;github.com&#x2F;community&#x2F;community&#x2F;discussions&#x2F;41878">https:&#x2F;&#x2F;github.com&#x2F;community&#x2F;community&#x2F;discussions&#x2F;41878</a>)<p>What I found there was some truly impressive reverse-engineering work by a single individual. I really like the &quot;JOURNAL&quot; daily-diary they kept of progress and random thoughts so you could see the progression day-by-day.<p>--------<p>One thing I found interesting: The author says that it queries only the 20 recently most opened files of the same language.<p>But in an AMA, I asked about how much &quot;context&quot; Copilot has available, and one of the devs says it can, for example, read header files that pair with C&#x2F;C++ files that are open in separate tabs:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;orgs&#x2F;community&#x2F;discussions&#x2F;29932#discussioncomment-3473154">https:&#x2F;&#x2F;github.com&#x2F;orgs&#x2F;community&#x2F;discussions&#x2F;29932#discussi...</a><p><pre><code> &gt; &quot;I assume Copilot uses the contents of the current project (IE, all files) as contextual information to offer suggestions. Is this the case?&quot; &gt; &quot;Yes, copilot looks at what we call &quot;related tabs&quot;, for example .c files are often paired with .h files, so copilot considers the contents of other tabs open in the editor to try to feed a more complete prompt to the model.&quot;</code></pre>
评论 #34049952 未加载
thakkarparth007over 2 years ago
Heh this blew up here :D Didn&#x27;t know till a friend told me about it.<p>I&#x27;d love to know if you guys have any specific questions about copilot&#x27;s internals that I can try to answer by staring at the code or if you have any feedback for the tool&#x2F;post!
评论 #34047416 未加载
评论 #34050853 未加载
abraxasover 2 years ago
Honestly I get more value out of ChatGPT than I do from Copilot even though both generate the wrong stuff now and then. But I like to describe the desired functionality by writing in plain English than trying to goad copilot in the right direction by coming up with method and variable names that copilot will &quot;like&quot;
评论 #34049103 未加载
评论 #34049054 未加载
peaslockover 2 years ago
Amazing if this is only a 12B model. If this already increases coding productivity by up to 50% (depending on kind of work), imagine what a 1T model will be capable of! I do wonder if some programmers at FAANG are already having access to a way more powerful coding assistants, and whether they code much at all at this point, or only make high level code specifications and then fix up the automatically generated code.
评论 #34042228 未加载
评论 #34044767 未加载
评论 #34041761 未加载
评论 #34045374 未加载
评论 #34041744 未加载
评论 #34041791 未加载
oefrhaover 2 years ago
One problem I’ve always had with Copilot is that it tends to introduce extra parentheses and braces. Say I already have a pair of braces for a function body, and Copilot decides to write the whole function, it will write everything including the closing brace, leaving me with an extra and a syntax error to fix. It really shouldn’t be that hard to tell I already have a closing brace, especially when they’re already considering the suffix.
评论 #34059935 未加载
modelessover 2 years ago
Free idea for GitHub: a huge bit of missing context for the model right now is the last few edits made by the user. If you move your cursor to a different part of a long file, Copilot immediately forgets about that part of the file. If it knew the last few edits you did then it would be able to make much more intelligent suggestions based on the task you&#x27;re working on, rather than just current cursor position.
评论 #34045190 未加载
评论 #34044018 未加载
评论 #34046035 未加载
vbezhenarover 2 years ago
My biggest issue with Copilot is that it only wants to add code.<p>That&#x27;s useful but I edit code a lot. And if I have 10 similar lines and made one edit, it&#x27;d be very convenient for Copilot to suggest edit following line or even lines.
评论 #34043659 未加载
评论 #34044045 未加载
melonyover 2 years ago
Why does “cushman-ml” suggest a 12B model instead of the 175B model?
评论 #34041831 未加载
评论 #34044802 未加载
albertzeyerover 2 years ago
This is about the VSCode extension, which is obfuscated (maybe compiled) JS.<p>The plugin for IntelliJ (PyCharm etc), is this written in Java? Reverse compiling this might give some additional insights.
评论 #34044661 未加载
bluelightning2kover 2 years ago
Just wanted to say great job on the analysis and explanation!
评论 #34046964 未加载
dj_mc_merlinover 2 years ago
Huh, was this post revitalized? I remember seeing it (and upvoting it) in &#x2F;new yesterday, but it didn&#x27;t reach critical mass for the front page. Seems to be gone now.
评论 #34096832 未加载