# NousResearch/hermes-agent · Claude CLI token rotation causes premature credential failure

## Open now

- 1 issue, 2 PRs open on GitHub.
- #105797: \[Bug\]: borrowed claude_code Anthropic credential declared unrecoverable within 1.4 s when the claude CLI rotates its token; worker pinned to fallback for the rest of the run
- PR #105815: fix(auth): wait for Claude Code token rotation
- PR #112619: fix(auth): wait for claude CLI token rotation before benching a claude_code credential

A bug where borrowed Claude Code credentials are marked unrecoverable too quickly when the Claude CLI rotates its token, along with fixes that add a wait period before penalizing the credential.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #105797: \[Bug\]: borrowed claude_code Anthropic credential declared unrecoverable within 1.4 s when the claude CLI rotates its token; worker pinned to fallback for the rest of the run

## Prior & competing PRs

- **#105815: fix(auth): wait for Claude Code token rotation**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/credential_pool.py`, `tests/agent/test_credential_pool_anthropic_refresh_race.py`
- **#112619: fix(auth): wait for claude CLI token rotation before benching a claude_code credential**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#105815`, `#105797`
  - files: `agent/agent_runtime_helpers.py`, `agent/conversation_loop.py`, `agent/credential_pool.py`, `tests/agent/test_credential_pool_claude_code_rotation_wait.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
