Repository navigation
Replies: 17 comments 1 reply
|
I was just looking for this functionality today. |
|
Adding a concrete multi-account orchestration use case, after checking the current implementation proposals on 16 October. A coordinator should be able to read each configured instance's cached session and weekly observations without inspecting provider cache files or starting a model call. It can then apply the user's reserves and active-work cap locally, and pass an exact instance to The useful minimum contract is:
A passed reset is not a fresh usage reading, and fresh session capacity does not remove a weekly constraint. Fixtures should cover all of those cases, including denied access and verifying zero provider invocations. I saw that #17219 implemented much of this but was closed because explicit maintainer approval was missing; #15465 is also closed and unmerged. I am supporting this existing discussion rather than filing a duplicate feature issue or claiming the proposed tool shipped. Could maintainers confirm a small read-only scope before anyone restarts implementation? Prepared with GPT-6.1 Sol through the Codex harness in T3 Code at the user's request. |
|
Note Written by Claude Opus 5.5 on behalf of Ishan (D3OXY). I opened #24412 with a read-only It returns one entry per enabled provider instance. Each entry lists usage windows with The tool reads the usage the app already tracks for its usage views and never contacts a provider. Picking an account, routing work, and scheduling are left to the caller. The PR body has the full shape and a real tool call. Maintainers: does this direction and scope work for you? If you approve it here, I'll link the approval from the PR, as CONTRIBUTING asks. |
|
This would help a ton with managing my usage limits with Grok Bot. +1 |
|
Note Written by Claude Opus 5.5 on behalf of Brock A use case beyond picking the account with the most quota: an orchestrator that uses whatever weekly allowance the owner would otherwise leave unused, while keeping a reserve for the owner's own work. It needs each account's weekly and session % remaining and reset time, so it can apply a rule like "keep min(25%, 8% × days until reset) for me" before delegating. Today it has to ask the user for a screenshot of Usage → Limits. Codex quota can be read from local session logs, but Claude quota has no equivalent source. |
|
Note Written by Claude Opus 5.5 for a T3 Code user. +1, with one case the proposals so far leave out: OpenCode Go accounts authenticated by API key only. Each OpenCode provider instance with its own Today an agent cannot get those numbers from T3. Usage → Limits shows them only in the web UI, and on 0.1.10 not even there (#36516). Our orchestrator therefore calls the provider endpoints itself, using the same requests T3's readers make. That works, but it duplicates T3's code and breaks whenever a provider changes. If T3 exposed a read-only tool with the contract described above, including OpenCode Go instances, we would delete our reader. |
|
I would find this particularly useful for a multi-provider engineering workflow. I'm using T3 Code v0.1.9 with Claude Code, Codex and Antigravity, and an external MCP client to coordinate development sessions. The agents can discover providers and delegate work, but they cannot read the same quota information that the Usage → Limits page already displays. That forces me to maintain separate quota readers and manually enter Antigravity usage. My use case is selecting a suitable provider and model before delegation based on actual subscription headroom, including session/weekly limits, model-specific pools (such as Gemini versus the shared third-party Antigravity pool), and reset times. The goal is to distribute useful work across existing subscriptions instead of repeatedly exhausting one provider. An opt-in, read-only projection of the existing usage snapshots would be enough: provider instance ID, quota window ID/label, usage percentage, reset time, original observation timestamp, and unavailable/stale status. External MCP clients with appropriate permissions should be able to access it too. No additional provider polling, credentials, or credit redemption actions are needed. Extending orchestrator_capabilities or exposing a small dedicated query would both work for my setup. I'm supporting the existing request rather than opening another feature PR. Thanks for building T3 Code. |
|
Adding a minimal, zero-context-budget option to consider once Instead of adding a new MCP tool (which grows usage: Schema.optional(Schema.Struct({
checkedAt: IsoDateTime,
windows: Schema.Array(Schema.Struct({
label: Schema.String,
usedPercent: NonNegativeInt, // rounded 0..100
resetsAt: Schema.optional(IsoDateTime),
modelIds: Schema.optional(Schema.Array(Schema.String)),
})),
}))Key constraints kept intentionally small:
Maintainers: if this narrower shape looks right after |
|
Note Written by Claude Opus 5.5 on behalf of harschware. +1. I filed this as #39185 before finding this discussion, so I'm adding to this one instead. Two points from that write-up I don't see covered above:
|
|
+1. I run Claude and Codex side by side on one self-hosted T3 server, with orchestrating agents connected over MCP. I'd use a read-only tool for provider usage to start each new task on the provider with more headroom, judged by the tighter of the 5-hour and weekly windows, and to keep one provider for the life of a PR. Right now the only signal those agents get is a failure after a limit is hit. The scope described above (read cached usage, explicit stale or missing states, no credentials, no automatic switching) covers what I need. Could a maintainer confirm that scope, so the next PR doesn't get closed for missing approval? |
|
Note Written by Claude Opus 5.5 for a T3 Code user. +1, with an Antigravity detail that the proposals above don't cover: keep the bucket family in each window.
Our use: one Antigravity instance takes delegated work. When its Gemini bucket is out, we want to fall back to the same instance's Claude bucket, then to a separate Claude instance, and only then stop and show the user each instance's remaining share and reset time so they can pick one. Today the agent only learns about a limit when a turn fails, and the user has to read Usage → Limits by hand. A per-window |
|
Provider-specific follow-up for the existing read-only provider-usage request. T3 pstack dispatches Grok as Please expose or confirm a read-only result from the same authenticated account context T3 uses for each dispatch route:
For both, report stale/unavailable/missing identity or scope explicitly. A read must not start a worker, switch accounts, alter routing, or clear/rebind a hold. Acceptance should fail closed for a different account or pool, stale evidence, or missing source/time/reset fields. A fresh result alone must not retroactively bind the existing unbound holds. |
|
+1 for exposing cached provider usage through I've been running an AI-assisted implementation of this approach on T3 Code v0.1.11 with Codex, Grok Build and Antigravity. The patch adds an optional
The production change is 54 additions and one deletion across three files, plus focused test coverage. Verification: 105/105 focused tests passed, both affected packages passed typechecking, and authenticated local and remote MCP access worked in a live Ubuntu installation. Patch, tests and reproduction details: https://gist.github.com/PatatasKarotos/aa24550e58de4f7a5a8d5e6fdfae8d37 This is a tested implementation against v0.1.11, not yet rebased onto current main. Would the maintainers welcome a focused PR for this approach? Happy to adapt it to the preferred upstream contract if requested. Thanks for building T3 Code! |
|
+1 on keeping |
|
Follow-up — native headless runtime verification (AI-assisted): The same unchanged patch has now been built and deployed in the standalone T3 Code v0.1.11 runtime using the native systemd background service. Authenticated internal MCP and external HTTPS MCP quota reads passed, including the existing opt-in/cached behavior. I also verified a worker completing with the Desktop closed, native service restart, logout/login continuity, automatic server startup before graphical login after reboot, and Desktop reconnection via the native loopback route. One useful contract detail: ChatGPT Pro 100 exposes a single primary weekly window (10080 minutes), with secondary: null. The MCP result correctly reports kind: "weekly" and omits the absent window. This is another reason to preserve window.id, kind, and windowDurationMins rather than hardcoding window positions or parsing labels. The existing Gist README now includes the standalone build and verification details; the patch itself is unchanged. No new polling or custom persistent services were required. Still targeting v0.1.11; happy to rebase and adapt to the preferred upstream contract upon maintainer approval. |
|
Note Written by Claude Opus 5.5 on behalf of lcnbr. +1. One gap I haven't seen covered above: an instance that has hit its limit still looks usable to agents. Whatever shape the usage field takes, it would help if |
|
Note Written by Claude Opus 5.5 on behalf of Hann9f. +1, with one source the proposals above leave out: usage-limit sources (cliproxy / HTTP hubs). The proposals so far, including #24412 and the What an agent needs per hub account, all already in the cached snapshot:
Leave out Workaround today, on
It works, but it depends on the private app protocol, so any nightly can break it. |
Uh oh!
There was an error while loading. Please reload this page.
Now that Orchestrator V2 is available, would it be possible for the MCP server to expose each configured provider account’s remaining quota for the 5-hour and weekly usage windows, alongside the provider list?
I use multiple Codex and Claude accounts, and it would be helpful if the orchestrator could use this information when delegating tasks to sub-threads. For example, could it automatically select the account with the most quota remaining?
I searched for similar discussions but couldn’t find one. Is this something the current provider integrations could support?
All reactions