Skip to content

[codex] Clarify Anthropic extra-usage exhaustion errors#6498

Draft
HiddenPuppy wants to merge 1 commit into
NousResearch:mainfrom
HiddenPuppy:codex/fix-anthropic-extra-usage-guidance
Draft

[codex] Clarify Anthropic extra-usage exhaustion errors#6498
HiddenPuppy wants to merge 1 commit into
NousResearch:mainfrom
HiddenPuppy:codex/fix-anthropic-extra-usage-guidance

Conversation

@HiddenPuppy

Copy link
Copy Markdown
Contributor

Summary

  • detect Anthropic's "You're out of extra usage" API error separately from generic non-retryable 400s
  • surface clearer guidance that this is a third-party/Hermes API usage limit, not something restart or re-login usually fixes
  • return actionable next steps to CLI and gateway users, and cover the behavior with a regression test

Root Cause

Hermes treated Anthropic's extra-usage exhaustion response like any other non-retryable client error. The request failure itself was correct, but the messaging was too generic, which made a usage-limit state look like a broken login or Hermes bug.

Validation

  • ran pytest -n 0 tests/run_agent/test_anthropic_error_handling.py
  • result: 9 passed in 90.30s
  • ran pytest -n 0 tests/run_agent/test_long_context_tier_429.py
  • result: 15 passed in 0.14s

Fixes #6475

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent loop, run_agent.py, prompt builder provider/anthropic Anthropic native Messages API labels Apr 30, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #11736, #13170 — same Anthropic 'out of extra usage' classification issue.

1 similar comment
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #11736, #13170 — same Anthropic 'out of extra usage' classification issue.

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

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists provider/anthropic Anthropic native Messages API type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic Claude subscription auth returns 'You're out of extra usage' in Hermes even after restart/re-login

3 participants