github / github/copilot-cli

Allow to set a token limit for a task

Open
#3,012 0 comments 2 reactions 0 assignees View on GitHub
area:configuration area:sessions
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

Currently each request consumes a certain predicable amount of premium requests - this will change soon and make it completely unpredictable, a task might accidently eat up thwo whole budget for a month.

### Proposed solution

With the upcoming https://github.blog/news-insights/company-news/github-copilot-is-moving-to-usage-based-billing/ it becomes completely unpredictable how much costs a request possibly consumes.

It would therefore be good to set a limit per session / request. If the limit is approached, copilot should ask for confirmation what to do that could be:

1. Complete as soon as possible with what was already accomplished
2. Continue with an increased budget
3. ....

### Example prompts or workflows

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating task and session request handling in the CLI, then clarify how a token limit and confirmation choices should work. Done means the limit is enforced for a request or session and the proposed budget responses are covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.