github / github/copilot-cli

Allow disabling warning the model when AI credits are low

Open
#4,168 0 comments 0 reactions 0 assignees View on GitHub
area:configuration area:models
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the feature or problem you'd like to solve

I set `-max-ai-credits=30` and the model kept getting worried about using all the credits

### Proposed solution

Add an option to suppress whatever warnings are being injected to tell the model it is low on AI credits (or just remove it?).

### Example prompts or workflows

_No response_

### Additional context

I was testing with a local model, and passed `--max-ai-credits=30` (because 30 is the minimum value allowed). The model kept saying "The user is warning me there are only 30 AI credits left so I must be very efficient with my responses".

I can't tell exactly what text was being injected for the model (because when I exported the session there was no such text in there - presumably the export is not complete), but it was happening on every turn. For a local model the credits are not relevant, but even with a cloud model I think I would rather this information be hidden so it won't potentially taint how the model is working. If it runs out, I can `--resume` with another value.

Contributor guide

Open the contributing guide

Research direction

Start at the --max-ai-credits option handling and trace where low-credit warnings are added to the model context. The issue does not name a file or test, so first identify the warning-injection path and any related CLI tests; done means users can suppress these warnings while the existing credit limit and resume behavior still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
ai, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.