r/GithubCopilot • • 22d ago

Discussions GitHub's own docs: switching models mid-session throws away your prompt cache, and cached tokens are typically billed at 10% of normal. Where do you draw the line?

12 Upvotes

Quick summary of what GitHub's "Optimize AI usage" guide says about the prompt cache, because it changes how the model picker is worth using:

- Cached input tokens are typically billed at 10% of the normal input price.

- Switching models mid-session invalidates the cache. A different model can't reuse another model's cache, so the next request rebuilds it and is billed as fresh input.

- Changing the reasoning level, context size, or the set of enabled tools/MCP servers does the same.

- Auto only switches at natural cache boundaries: a new session, or after /compact.

So a mid-session switch has a price, and GitHub's own routing is built to avoid it.

That is the cost side. The handoff side is a different question: when you do switch, the new model only knows what you carry across. A summary? A notes file? Nothing?

Answer whichever you have an opinion on:

  1. Do you ever switch mid-session, and for what? (The guide suggests reasoning models for architecture and hard debugging, mid-tier models once the plan is clear.)
  2. Do you switch at /compact or a new session instead?
  3. What do you carry over?

If you have compared your AI usage page before and after a switch, I would like to see the numbers.


r/GithubCopilot • • 22d ago

General Hey champs need help with antigravity

Thumbnail reddit.com
0 Upvotes

r/GithubCopilot • • 23d ago

GitHub Copilot Team Replied Fusion is a joke, credits drain

Thumbnail
gallery
50 Upvotes

I’m a Github Copilot+ subscriber. Suddenly 90% of credits were used in 2 days, normally. The purpose of Fusion is to choose the right model. My work is web development where I've created contact forms, article listings and similar tasks. Not too complex?
If Fusion decides to use the best and most expensive model for this, it's a false claim to say that it uses less tokens. It says on the Copilot Fusion web "It delivered that result at about half the average API cost per task, using about half as many tokens and taking about 40% less time per task."
Sorry but this is just a false claim. Do you agree or is it my fault to not have chosen a lighter model?

Update: I’m a Github Copilot Pro+ subscriber


r/GithubCopilot • • 23d ago

Help/Doubt ❓ How can I search GitHub Copilot Desktop chat history for sessions containing both specific text and an image?

2 Upvotes

I use the GitHub Copilot Desktop application on Windows and have many chat sessions. How can I search for past chat sessions in the GitHub Copilot Desktop app that contain an image (any image) and a given string? E.g., how can I find the chat session that contains the string "hello world" as well as at least one image?


r/GithubCopilot • • 23d ago

News 📰 Master Local AI and Docker: The Ultimate Technical Resource Hub for LLM Pipelines

Post image
0 Upvotes

r/GithubCopilot • • 23d ago

Help/Doubt ❓ Managed Setting not pushing to clients

2 Upvotes

Hi all,

Has anybody ever seen a problem with the enterprise managed settings not propagating down to random clients?

For a working client, if I navigate to Vs Code > Output > Github Copilot Chat, I can find, for example, the telemetry settings I've applied being logged, so I know that's working.

For a client not working, their corresponding VS Code Github Copilot Chat output shows no such entry, subsequently this user's (and several other's) metrics are not being captured, even after logging off and on. They can otherwise log into GitHub Chat on VS Code and run AI prompts just fine.

Theres nothing native on Github Enterprise portol for me to track it, and official Github Copilot support are useless, so I'm not entirely sure where else to turn with this. So frustrating.


r/GithubCopilot • • 23d ago

Help/Doubt ❓ Will local AI keep getting cheaper, or will increasing demand cancel out the progress in hardware?

5 Upvotes

I've been thinking about something and would be interested to hear the opinions of people working in the AI and hardware industry.

We have Moore's Law, which basically states that computing power (or transistor density) roughly doubles every two years. On top of that, AI hardware and models are becoming increasingly efficient.

My question is: will this eventually make running powerful AI models locally significantly cheaper and more accessible, or will the increasing demand for AI simply cancel out those gains?

I imagine that as local AI becomes more capable, demand will also increase massively. Not just from individuals, but from companies as well.

For example, I recently saw that Revolut has apparently moved its engineering team towards local AI models and is paying only around 10% of what it previously spent on Anthropic.

If more companies start doing this, demand for GPUs, memory and other hardware could increase dramatically.

So where does this leave us in 5-10 years?

  • Will hardware improvements and better model efficiency consistently outpace demand, making local AI increasingly affordable?
  • Or will demand for compute keep prices relatively high, despite the technological improvements?
  • Could we eventually reach a point where running models locally is significantly cheaper than using cloud-based AI services for most coding and everyday tasks?

I'm particularly interested in hearing from people working in hardware, AI infrastructure or the semiconductor industry.

What's your take on this?


r/GithubCopilot • • 23d ago

Solved ✅ GitHub Copilot not saving recent chat history

3 Upvotes

Any workarounds/fixes for this ? I have the latest version installed

Update:

Ok I think deleting old chats may have fixed this


r/GithubCopilot • • 23d ago

Help/Doubt ❓ Usar sub agentes en chat gpt

1 Upvotes

Hola, actualmente tengo chat gpt plus y lo uso para programar, pero, quisiera saber si se puede usar agentes como se usa en claude code para que cada uno haga un trabajo en especifico y tambien gastar menos tokens. Tambien quisiera saber si existe algo como claude code pero que sea open source o gratis y poder usarlo en la terminal (No tener claude gratis y eso, sino agregar IAs a la terminal y etc).
Que me recomiendan, estuve buscando pero no encontre algo convincente.


r/GithubCopilot • • 24d ago

Discussions Thoughts on Github Copilot Fusion

53 Upvotes

I've been working with Copilot Fusion over the past week and also shared it with my dev team. Our experience with it has been rather disappointing.

First of all, the way we first need to select between Fusion Standard, High and Max feels kind of counterintuitive to Fusion's original goal. I thought the whole point to Fusion was that it should be smart enough to figure out what model it should be using for a given task, in order to optimize token usage. This shifts that decision back to the user, which I imagine was done because of... its token usage. Our dev team so far has actually been burning AI credits faster with Fusion.

I noticed it's fond of switching to Opus 5.5 in both Max and High, reasons a long time and quickly burns credits even with the 30% discount. So in that sense it does reach frontier model quality since, well, it uses frontier models most of the time. Fusion Standard is the only one that's really usable for me as it usually sticks to GPT-6.1 Sol, so at least for this month it's basically a discount on that model. But there as well it doesn't seem particularly intelligent in deciding what model to use, the choices feel random.

For these reasons this isn't something I find worth using past this month's discount. It doesn't feel like it's more efficient in token usage, which was supposed to be the main draw. Maybe if we could have more control over its model selection behavior, it might be more interesting. As it stands it misses the mark for us.


r/GithubCopilot • • 24d ago

General Credentials in Context

5 Upvotes

Should I be concerned that Github Copilot will add any credentials to the context and send it to the model? Are there any other areas when using GHCP where I should be concerned about credential exposure?

If so, what are best practices for securing credentials when using Github copilot in VScode?


r/GithubCopilot • • 24d ago

Help/Doubt ❓ Sandbox mode configuration

2 Upvotes

Hi! I am investigating how we can provide a basic setup which we can versioncontrol with sandbox settings for the copilot cli so that we all in our team gets the same basic hardening. Have looked everywhere but this seems really impossible without enterprise solutions. What paths can we go to try to solve this issue?


r/GithubCopilot • • 24d ago

Discussions Digital identity is shifting: How to own and govern your AI twin

Thumbnail interconnectd.com
0 Upvotes

r/GithubCopilot • • 24d ago

General I built an AI multi-agent framework to automate software development. The agents needed permission to remove the permission system.

Post image
1 Upvotes

I'm building PROTHEUSAI, a reusable engineering framework where AI agents work as a software development team.

The idea was simple:

  • Architect designs.
  • Developer codes.
  • Quality reviews.
  • An orchestrator coordinates everything.
  • The human supervises.

My AI architecture advisor (ChatGPT) convinced me we needed rigorous Quality Gates, independent reviewers, identity evidence, context isolation, and formal approvals.

Fair enough. Quality matters.

Then things got interesting.

We reached our third experimental appointment-calendar app.

Architect designed it. Quality found bugs. Architect fixed them. Quality reviewed again.

Everything was going reasonably well.

Except the framework refused to let the agents continue because we couldn't formally certify the reviewer's context isolation (I1/G1).

So we designed a governance reform to eliminate that unnecessary requirement for experimental projects.

Quality reviewed the reform.

PASS.

Then the orchestrator announced:

"The implementation of the reform is BLOCKED because Gate 1 requires I1/G1 certification."

Read that again.

We couldn't remove the isolation requirement because removing it required satisfying the isolation requirement.

I asked ChatGPT what we'd created.

It admitted we'd essentially built a government bureaucracy for AI agents.

All I wanted was autonomous software development.

Instead, I had invented an organization where three AI agents needed special authorization to put a div on a page.

We're fixing it now.

Next priorities: fewer tokens, more working code, fewer interplanetary permission slips.

Lesson learned: Your AI engineering framework should make software development easier, not require a NASA certification before Developer can touch the keyboard.

Anyone else accidentally built more governance than software?


r/GithubCopilot • • 24d ago

GitHub Copilot Team Replied GitHub CoPilot in VSCode. Token use went crazy today

10 Upvotes

So I hate monthly quotas. I can use about 4% a workday and not run out. Today I started at 6% and ended at 29%. I keep everything at just “Auto” and “Balanced”, so it should be efficient and give me a 10% token/credit discount.

Didn't do anything crazy or change to an expensive model. I find it a bit nuts that I can’t even tell WHY it’s taking some much of my quota compared to a normal day for me... Seems to me that something changed on the backend, but it’s all F’ing magic…. ☹️

Mostly just venting, but wondered if this is something others have experienced today..?

Grrr.


r/GithubCopilot • • 24d ago

Help/Doubt ❓ Copilot Pro - what’s it good for?

8 Upvotes

I’ve been using VS Code + Claude Max 5x for coding for several months, plus ChatGPT Plus for adversarial reviews. (Retired Sr. Staff Software Engineer from the Dark Ages of the 1980s-1990s, so AI-assisted, not clueless “vibe coding”.)

I got Copilot Pro for GitHub-related reasons.

I’ve tried “Copilot” a dozen times over the last year and it’s so pathetically inept and embarrassing - how could Microsoft stand to put their name on it?! - that I’ve been straight-up afraid to let “GitHub Copilot” near my repo.

So is there anything useful I dare try with “Copilot Pro”? Or is it just money flushed down the drain.

Or have I succumbed to Microsoft’s gratuitously-confusing “slap Copilot on everything” insanity and none of these are related? (I lived through the same thing when MS slapped “Active” on everything in the ActiveX days.)


r/GithubCopilot • • 24d ago

General My org just banned using any AI platform and i need to use copilot in my work how can i do it without getting caught as they maintained the restrictions on all the laptops and bank related users

Thumbnail reddit.com
0 Upvotes

r/GithubCopilot • • 24d ago

Help/Doubt ❓ How to disable worktrees?

5 Upvotes

Lately noticing CP keeps creating a worktree in my local repo instead of using the current branch. I have to prompt it every time to not do that. Can this be disabled in cp settings?


r/GithubCopilot • • 25d ago

Help/Doubt ❓ What's the best bang for the creds ?

4 Upvotes

So, what do you use ? for a simple task. The thing you know how to do it, but too tedious to do it manually. Last time I use luna (the cheapest model). I have to go back and forth to tell him what to do. There is no initiative. She just give up. Something like gpt4.1 0x back in the good old days.


r/GithubCopilot • • 25d ago

Help/Doubt ❓ Is there an official API to programmatically retrieve Copilot Business AI Credits usage and monthly limit?

6 Upvotes

Hi everyone. I use GitHub Copilot Business with a seat managed by my enterprise. In VS Code, the “Monthly limit” panel shows AI Credit usage—for example, 935 / 5,000 AI credits—and the date the limit resets.

I’d like to display those same live values in a small native macOS app. I’m specifically interested in the “Monthly limit” for AI Credits, not premium requests, model usage, or context-window usage.

I checked the official documentation:

I haven’t tried undocumented endpoints or inspected network traffic. I attempted a preliminary macOS Accessibility check of the UI, but macOS denied the required permission. No data was read, and I didn’t change any settings.

Is there an official API or supported interface for retrieving these fields? If you’ve found a way to access them, what source and Copilot license type did you use (Business, Enterprise, or Individual)? I’m especially interested in whether it works with an enterprise-managed Business seat.


r/GithubCopilot • • 25d ago

General Copilot agent mode keeps pinning vulnerable package versions, so I built an MCP server + hook that checks them before install (VS Code, open source)

Thumbnail
gallery
5 Upvotes

Does this happen to you? Copilot in agent mode writes the package.json, you push, and Dependabot opens a pile of alerts for the versions it just picked. It's 2026, the agent writing the code and the tool flagging it live on the same platform, and they still don't talk before the install.

The version comes from the model's memory, or from a docs tool that returns documentation and never checks the version against advisories.

Why I built it. I measured how often this happens. The benchmark ran on Claude Code (Sonnet 5.5, Opus 5.5, Haiku 5.5; Copilot can run the same models), 12 tasks, two runs each, every project audited with npm audit / pip-audit:

- No tools: 40% to 42% of direct dependencies pinned had a known advisory, about 30 alerts per project.

- Docs for the current release only: 0.3 to 3.5 alerts per project.

- pinright: 0 vulnerable direct pins for all three models, with fewer tokens than the docs-only setup.

I have not benchmarked Copilot agent mode itself yet. If someone wants to try it and share numbers, I'd like to see them.

How it works in VS Code.

- MCP server: check-packages checks the whole dependency list in one call against OSV and deps.dev (advisories, malware records, lookalike names, versions that do not exist) and returns the version to use. get-docs serves docs from the package at the version you pin, so agent mode writes code for the right major.

- Hook: for the times agent mode skips the tools, a pre-install hook reads the install command or the manifest write before it runs and denies a vulnerable pin with the version to use.

- Lockfile audit: pinright audit, with SARIF output and a GitHub Action, so it fits next to code scanning.

Setup: npx -y pinright init (detects VS Code and configures the MCP server and the hook), or the "Install in VS Code" button on the site.

Built with Claude Code in TypeScript. Local, no account, no telemetry, MIT.

Site: https://pinright.dev

Repo: https://github.com/Hiper-AI/pinright

Feedback on the VS Code setup and false positives from the hook are welcome :))


r/GithubCopilot • • 25d ago

Showcase ✨ WPF/Net4.8 + CoPilot = BatteryBuddy (including learnings, agent mds and token reduction)

Thumbnail
gallery
1 Upvotes

Howdy,

Intro

I was tired of tracking my devices' battery status manually, so I built a very customizable app for that with CoPilot. You can find it here -> https://github.com/Dergln/BatteryBuddy-Public

You can find it in a more "about the thing" post here https://www.reddit.com/r/VibeCodeDevs/s/9qhmZhDaMH

For this topic I'll focus more on the experience and provide agent insights.
Maybe it's useful for some of you and you can improve your setup with it.

In total it cost me ~8.000 credits, but at least 1/3 of that has gone into the experiments ^^

---

TL;DR

Use RTK, use Ollama for translation offloading if you have the VRAM (gemma4:e4b main languages / quick and qwen3.6:27b for quality work).

Provide AI with proper guidelines to you, your environment (GitHub, branches, local directories, agent files for self organization, etc.) and what the app goals are. Rather invest 15-60 minutes into a proper setup instead of trying to fix stupid stuff that only ever came up because you didn't prepare anything and just YOLO'd an application with dumb prompts. That would cost you 200x the tokens... and be very annoying.

The machine needs to be TOLD many things, assume that there is the typical dev in front of you that doesn't understand why 10 second load times are a bad thing. And that it's not ok to simply turn of TLS to fix the performance issues!111 😂🤠

---

Human learnings

As usual, getting the icons and sound that make the app feel right *to you* are probably to be gained by manual search. The AI is good in using what internal things it has, but that's not really "pretty" imo. Or cool, even - things need to look a bit quirky sometimes!

When reporting bugs to it, do explain in detail what is wrong, and what you think could fix it - or if you want it to make suggestions before starting to fix anything.

Train it to question your input as well: E.g. when implementing the disability compatibility, I thought it had forgotten a few tab indexes for proper "tab through items" behaviour. Looks like these tools use tab and arrow keys so it did the right thing, but instantly went and tried to find a bug in the code when I said "why thing not highlight when tabbing".

I of course stopped it and we quickly found out everything is ok as is, but always remember that it behaves like someone that has been beaten for 20 years. It tries to please first, and only when that fails starts to properly use facts and speak with the user (you).

Give it a bunch of screenshots for colors that are off and all that stuff. Yes it costs a bit more than just using words (it has to OCR the thing), but quality input = quality output. It saves so much time/effort on working on the actual issue, that this little additional cost up front is irrelevant.

In general, it is pretty damn good in articulating itself and understanding what you want by now though. That might be based on it being given a very technical input and not only "makke gud abb nau" 😋 but you can experiment with that yourself.

---

General behaviour

If you have been around in tech for a while, you know what is good and what is not, and so you must instruct the thing with it.

In turn, if you miss that knowledge - LET THE MACHINE KNOW and tell it to prompt you for things. Or to dumb them down - I have programming experience, but it only goes so deep.

There's no shame in that, but if you work WITH the AI that means playing with an open hand and letting it know, so it can properly adjust its behaviour to accommodate a proper input/output procedure. If you don't tell it things, *you* are the reason for failure - PEBKAC!!

---

Learnings in general

I did a rather extensive initial setup and experimentation, both with agent config (preparing "the dev team") as well as Token saving (Ollama experimentation).

You don't have to go through all that, use my aggregated/summarized results and go from there (or pick what looks good to you).

---

The agent was explicitly told it is allowed to self-organize with the MD files, without removing it's core rules of course. That's why you basically see no changes/bloat in the original agents.md file, only in the subset.

---

Agent MD setup

I started with a root [ai projects] folders where I set the VSCode workspace to, so approval are managed easy while otherwise keeping some boundary in the FS given this root is seperated from other data.

General advice for MD files: Loading stuff/context constantly uses up tokens, so keep it sane. Enough to noticeably improve your outcome, but don't use up 160 pages in MD files.

agents.md

In this [ai projects] root I put the agents.md (generic "will always be loaded" master file).
This is kept rather basic. It should only contain indications to the additional agent orchestration files, and some generic guidelines.

Here's where it's told to value quality over speed, I align my technical level with what it can expect from me, and how it should interpret my input.

I tell it to become schizophrenic because it should automatically challenge itself on every step as to automatically prevent flawed thinking - I don't want to micromanage this thing!!

For my setup I want to work with a multi-branch internal dev repo, and one public repo. Per project.
Yet keep the agent config centralized of course, because why forget what we learned.
You do you! Adjust this if desired.

I do have a 16GB VRAM 9070XT (that I am USING, Mr. Ram Altman...), so why not make use of that and offload what's possible to it. More on that below.

CoderTeam.md

How the schizophrenic behaviour should play out.

Essentially I gave it a bunch of starter roles for a dev team (never having worked in one 😅😂) and it added a few more. Created a few review groups, so it only calls on personalities relevant to the current task.

I let it manage my whole GitHub repo, that's why there is...

GitHub behavior.md

Private repo - branches dev -> test -> main.
Dev is for AI's internal explorative development.
Test is for... well, testing freshly built stuff. It is for quick human QA and validity feedback, not day-long evaluation.
Main is for the final bug-free™ version used for early production validation.

Public repo - no branches.
If the early production validation went fine, we simply get the last state from main to public.

It handles all the Git things (pull, merge, idc - for me it's version and issue management as a service 🤠) and also writes the descriptions to all the things there. I only finetune the documentation here and there (e.g. give folks a visual thing for the initial readme file/project frontpage etc.).

If you want to play by the same rules - you can configure AutoApproval in VSCode for only the Github commands like this:

"chat.tools.global.autoApprove": false,
    "chat.tools.terminal.enableAutoApprove": true,
    "chat.tools.terminal.autoApprove": {
        "/^(?:rtk\\s+)?(?:git|gh)\\b/": true
    }

Otherwise you will be prompted for *every single GH action*. Urghhh. And a generic AutoApproval for all the things is a bit much. This would include breaking out of the workspace, for example!

Token Optimization.md

I tried handing over programming work to Ollama with over 10 different models, even specialized ones to fit quality models like Qwen3:27b into my 16GB VRAM.

None provided CoPilot's current models (autoselect, usually medium or high models so that currently means Opus/Sonnet 5.5 or Astra/Luna 6) with enough quality to justify externalizing that work.

Do note this only makes sense if there's actual context saved - and the handovers do add to that, as do any bugs that would have never been created in the first place by a smarter model!!

So for externalizing coding as a service even further away from me, CoPilot to Ollama... the result was "nay".

But for translations - yup. Savings aren't making big bank, but they exist and add up over time / any future projects. So if you have the VRAM available, use it.

You can find specific models for your VRAM size on Ollama's website. VSCode will simply connect to the localhost service on your PC then :)

For my 16GB card I found a combination of gemma4:e4b and qwen3.6:27b to be the best. Adjust given your VRAM size.

Lessons Learned.md

Who doesn't like the kind of meetings/workshops.

Good thing you don't have to deal with that at all!

It's just a dumping ground for the AI where it can self-manage.

It can note stuff like "Powershell crashes when I do this" in there, so new prompts don't repeat old mistakes.

----

Token reduction

Do use RTK https://github.com/rtk-ai/rtk to automatically reduce token usage in the background. Ultra quick to install. No quality loss.

Offloading like with Ollama helps. Maybe you can even offload programming with newer models, or if you have 24/48GB VRAM (in THIS economy? 🤠).

----

Hope this helps some of you who are just starting out / allows for some selective picking for the more advanced guys.

Cheers 🍻

----

Files


r/GithubCopilot • • 25d ago

Solved ✅ Custom model, user budget

0 Upvotes

GH supports adding custom models to an org, though it's only in public preview. We're thinking about adding bedrock.

How does that work with user budgets? Does it integrate with the gh user budgets somehow (via token count or whatever) or do I need to handle that in aws myself?


r/GithubCopilot • • 26d ago

Help/Doubt ❓ Got GitHub Copilot through the Student Pack for my STEM thesis, but I know 0 about dev tools, is it worth it and how should I start?

4 Upvotes

Hey everyone,

I recently got approved for the GitHub Student Developer Pack, which includes free access to GitHub Copilot. I’m currently working on my STEM thesis and figure this might be a great opportunity to speed up my workflow, but I'm feeling a bit lost.

Full disclosure: I know virtually nothing about GitHub, GitHub Copilot, or command-line coding tools like Claude Code. All of my AI experience so far is strictly with browser-based LLMs (like ChatGPT or Claude web chats) for asking questions or writing snippets.

Since my thesis involves some coding/data analysis, I’d love to get some input from people who use it:

  1. Is GitHub Copilot actually worth integrating for academic/STEM research work?
  2. How can I realistically use it to help with thesis coding or data processing?
  3. Where should I even start as a complete beginner to GitHub and IDE tools?
  4. How can I get a better worflow/Is it even worth?

If you have any tips, beginner workflows, or recommended setups (i´m currently using vscode and stm32ide), I’d really appreciate your guidance! Thanks in advance!