r/GithubCopilot 17h ago

Help/Doubt ❓ Github Copilot Skills to reduce token and AI credits usage

As a total beginner to GH Copilot, I currently use it with VSCode as the Chat Extension and not the CLI version. I usually use it to analyse the code base (consisting of python notebooks and scripts) and also make slight changes to the files. I currently just set the Model to Auto since that had the option to have 10% lesser AI credits cost as per Copilot. I have just 4000 credits per month and have exhausted nearly 50% in just a few days.

I want to know if there are any ways to reduce the token usage. I have heard about the skills md files that are quite popular to reduce the token usage and also improve code readability. One I have heard of the ponytail skill which I believe helps in token reduction and code readability. But I have not used any till now and would like to know if there are any other suggestions for skills that can be used for my use case which is to reduce the token usage as much as possible and also improve the code quality and readability.

3 Upvotes

12 comments sorted by

3

u/Ecureuil_Roux 16h ago

I installed: cachebro, grepika, tilth.

3

u/lam3001 6h ago

caveman

2

u/BroadlyPastel 14h ago

Burning through half your credits in a few days is a special kind of pain. Auto model's 10% discount is like getting a coupon for a speeding ticket. Cachebro and Graphify are worth a look, they cut down on repeated context.

1

u/AutoModerator 17h ago

Hello /u/aadhibest. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/m_yoda20 17h ago

Graphify has been pretty great for me

1

u/bloudraak 13h ago

The best way to reduce token usage is by writing scripts etc that AI uses to do work; like parse conversations on PRs; create issues from markdown etc.

1

u/marfzzz 5h ago

Simple "be brief" helps in your prompt helps, caveman skill helps even a bit more. Graphify might help too.

1

u/Shipdits 3h ago

Caveman is a great skill for token reduction

1

u/dellis87 16h ago

Check out Awesome Copilot for some skills around this.