feat(quota): Phase-1 scaffold — multi-account Claude limits + registry#1
Merged
Conversation
Web deep-research + exhaustive 12-repo prior-art survey → hexa-native `quota` plugin. Phase 1 (read-only, verified live): - /quota slash + `quota` tool + quota_summary + `wilson quota` CLI (g10, _cmd_quota mirrors _cmd_inbox; core owns argv dispatch, not a g8 patch). - Reads current account (~/.claude.json oauthAccount), access token (linux file ∨ mac keychain), LIVE 5h/7d via the OAuth usage endpoint (curl through exec_with_status; g2/g4). wilson-owned account registry. - Opt-in (not in _bundle, g9): `wilson build --with quota`. - Phase-3 (live cred switch + seamless --resume failover) contracted fail-loud (g3); clean-room recipe locked in RESEARCH.md §c3. - Agent SDK monthly credit: honest not_implemented stub (post-2026-06-15 source unknown — no fakery, n16). ToS: the 2026 OpenClaw ban was reinstated/restructured (metered Agent SDK credit eff. 2026-06-15), not abolished — RESEARCH §D, @f f1 rescoped. Verified: `wilson build --with quota` OK (30 plugins) · `wilson test` 23/23 · loader taxonomy clean · `wilson quota status` live against the real account. Prior-art cloned out-of-tree (~/core/reference/), GPL-3 cux study-only. Session log: docs/sessions/2026-05-16-quota-plugin-scaffold.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Web deep-research + exhaustive 12-repo prior-art survey → hexa-native
quotaplugin (Phase 1, read-only, verified live)./quotaslash +quotatool +quota_summary+wilson quotaCLI (g10;_cmd_quotamirrors_cmd_inbox— core owns argv dispatch, not a g8 plugin-patch)~/.claude.jsonoauthAccount), token (linux file ∨ mac keychain), LIVE 5h/7d via the OAuth usage endpoint (curl throughexec_with_status; g2/g4). wilson-owned account registry._bundle, g9):wilson build --with quota--resumefailover) contracted fail-loud (g3); clean-room recipe locked inRESEARCH.md §c3not_implementedstub (post-2026-06-15 source unknown — no fakery, n16)ToS
The 2026 OpenClaw ban was reinstated/restructured (metered Agent SDK credit eff. 2026-06-15), not abolished —
RESEARCH §D,@F f1rescoped.Verification
wilson build --with quotaOK (30 plugins) ·wilson test23/23 · loader taxonomy clean ·wilson quota statuslive against the real account~/core/reference/), GPL-3cuxstudy-onlydocs/sessions/2026-05-16-quota-plugin-scaffold.md🤖 Generated with Claude Code