Skip to content

Enforceable task budgets and clearer usage controls in Codex #45536

Open

Description

@mschilingno

What variant of Codex are you using?

Codex Desktop app on Windows

What feature would you like to see?

Feature request: Enforceable task budgets and clearer usage controls in Codex

The problem

As a paying Codex user, I need better control over how much of my allowance a task consumes, especially when using Astra.

I use Codex for substantial, ongoing personal projects. I have invested time in explicit efficiency instructions and reusable workflows intended to prevent repeated reading, redundant checks, oversized outputs, and unnecessary work. However, Codex does not consistently follow those instructions.

When that happens, I pay twice: the unwanted work consumes my allowance, and identifying and correcting it consumes additional usage and my time. Asking the assistant to follow instructions more carefully does not provide a dependable spending control.

I have also seen other users report unexpectedly high Astra usage. Those reports do not establish a shared cause, but they reinforce the need for clearer visibility and controls.

Requested features

  1. Enforceable per-task budgets
    Let me limit the allowance a task may consume. Enforce that limit in the application, with a clean checkpoint and a request for approval before further work.

  2. An estimate before expensive work
    Show an approximate usage range before starting a substantial task. Clearly identify uncertainty and warn me if the task is exceeding the estimate.

  3. Live, understandable usage reporting
    Show how much allowance the current task has consumed, alongside the remaining short-term and weekly allowance. Explain how reported token usage relates to subscription limits.

  4. Visibility into avoidable work
    Provide a concise breakdown of usage associated with reasoning, tools, subagents, and retries. Make repeated operations visible so users can understand where their allowance went.

  5. Application-enforced efficiency and scope controls
    Offer controls for limiting retries, repeated retrieval, subagent activity, and expansion beyond the requested task. These controls should remain effective throughout long tasks and context compaction.

  6. Cost-aware model choices
    Before starting, help users judge whether a less expensive model is suitable. Ask before switching to a model that would consume allowance faster.

Expected result

I should be able to authorize a task with a clear budget, see its usage as it runs, and trust that Codex will stop before exceeding that budget without approval.

I understand that difficult tasks can require substantial computation and that estimates cannot be exact. The request is for predictable controls, transparent accounting, and protection against avoidable consumption.

Efficiency should be a dependable product feature, not something users must repeatedly persuade the assistant to practice.

Additional information

No response

Activity

  1. added
    enhancement
    on Sep 14, 2026
  2. added
    app
    rate-limits
    on Sep 14, 2026
  3. mschilingno commented on Sep 15, 2026

    @mschilingno
    Author
  4. marketinglior-pixel commented on Sep 15, 2026

    @marketinglior-pixel

    Yeah. "Asking the assistant to follow instructions more carefully does not provide a dependable spending control" is the whole problem in one sentence.

    Weekly and 5-hour windows are real, but they're clock-scoped. One task can still chew through a window (or two consecutive ones) while the account meter looks fine until it's suddenly empty. Prompt efficiency is advisory; it doesn't enforce a number on this job.

    What you're asking in (1) feels right to me: a budget on the task, checked in the app before the next call, then a checkpoint and explicit approval if you want more. I've been poking at the same shape outside Codex with a shared task_ref and a preflight that can return approved: false so your code decides what happens next. Not perfect, but at least the ceiling isn't hoping the model remembers.

    Curious whether you'd keep one budget ID across compaction / long sessions, or reset when context folds.

  5. LuckyDay1221 commented on Nov 16, 2026

    @LuckyDay1221

    Adding one concrete UX requirement to this proposal: per-thread allowance budgets expressed as a percentage of the account's 5-hour and/or weekly quota, rather than only token or monetary estimates.

    User scenario: Several Codex conversations are running concurrently. A user may assign a low-priority thread a 10% cap and a critical thread a 30% cap of the full allowance for the relevant quota window. Each task's cap should be separately configurable and visible.

    Proposed behavior

    • Enforce each cap at the application/runtime level before additional model requests, counting the root task, subagents, retries, and compaction against the same task budget. A prompt instruction is not sufficient.
    • Pause and checkpoint a task at its cap; let the user explicitly raise the cap or resume after a budget/window change. Never reset a task's spent budget silently during context compaction.
    • Show task usage alongside account-wide 5-hour and weekly remaining allowances, using authoritative allowance accounting where available. If exact percentage attribution is unavailable, label estimates clearly rather than presenting a false hard guarantee.
    • Coordinate simultaneous tasks so they cannot independently consume what appears to be the same remaining allowance.

    Acceptance criterion: With multiple active threads, a 10%-capped task cannot start further unapproved model work once its task allowance is exhausted, while other threads retain access to their own authorized budgets.

    Related but separate account-wide safety floor: #57406. This proposal does not request additional quota or bypass any platform limit.

  6. bellowsai commented on Nov 16, 2026

    @bellowsai

    Disclosure: I'm Rob, and I built this.

    The core of this request, a per-task budget the application enforces with a checkpoint and a request for approval, is what Bellows does for Codex. Bellows is a free desktop app that runs Codex through its own app-server, so every command and edit still asks you first.

    • Cap each session at a number of tokens, minutes of work, or both. Bellows counts Codex's tokens from its live usage updates as the turn runs, so a task that balloons is caught in the middle, not at the end.
    • At 80% you get a notice and a desktop notification.
    • At the cap the turn stops and Bellows asks: Continue gives the session the same again and carries on; Stop here keeps it waiting. That decision is enforced by the app, not left to the model's instructions.
    • Live usage while it works: a line under the running turn counts up the time and tokens so far, and Session report shows every turn's time and tokens in one table, so you can see which part of a task used the allowance.
    • Every restore point is kept. Each message you send records one, so a stopped task leaves your files as they are, and you can rewind to any earlier message.

    Guide: https://bellowsai.app/guides/cap-coding-agent-spend-per-session?utm_source=github&utm_medium=reply

    Give it a run on one of your long projects and tell me what you'd want next. We act fast on feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancementrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions