claude-code - 💡(How to fix) Fix [FEATURE] Limit batch work to only use subscription tokens, and not extra tokens [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47012Fetched 2026-04-13 05:43:51
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
commented ×2labeled ×2cross-referenced ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When starting batch work I don't want them to only consume tokens from the subscription, and not any extra tokens purchased that I want to use only for interactive work.

This would work nicely together with https://github.com/anthropics/claude-code/issues/39234

Proposed Solution

Allow limiting batch work to only use subscription tokens,

  • globally for all batch work in the user settings
  • for a single batch job in the batch job command line

Alternative Solutions

No response

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

  1. I am working on a geometry package
  2. I have created a project plan with multiple work items that are relatively independent
  3. I also have work items that needs to be explored interactively before including in project plan (a pre-study)
  4. I want to start 2-3 batch jobs using at most 25% of the subscriptions tokens
  5. I use remaining 25% or 50% for interactive work
  6. If the interactive work needs more tokens, then I can purchase these knowing that the batch work will not use them

Additional Context

No response

extent analysis

TL;DR

Implement a feature to limit batch work to only use subscription tokens, configurable both globally and per batch job.

Guidance

  • Introduce a new setting in the user settings to control the token usage for batch work, allowing users to set a percentage of subscription tokens that can be used.
  • Add a command-line flag for batch jobs to override the global setting and specify the token usage for a specific job.
  • Consider implementing a token allocation system to ensure that batch work and interactive work use separate token pools.
  • Review the existing token management system to ensure it can handle the new feature without affecting the overall system performance.

Example

No code example is provided as the issue lacks specific technical details about the current implementation.

Notes

The proposed solution requires changes to the existing system, and its implementation may depend on the specific architecture and technology stack used. The feature's priority is marked as high, indicating its significant impact on productivity.

Recommendation

Apply a workaround by implementing a temporary solution, such as a script or a manual process, to limit token usage for batch work until the feature is fully implemented. This will allow users to better manage their token usage while the development team works on the permanent solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING