# NousResearch/hermes-agent · Anthropic client reuse across LLM calls

## Open now

- Nothing open on GitHub.

These items concern a performance issue where the Anthropic HTTP client (including TCP and TLS connections) was being rebuilt on every LLM call rather than reused. The cluster focuses on identifying and addressing this unnecessary per-call client reconstruction.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #86764. Verify it addresses your case.
- **Recommended:** read PR #86764 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## 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.

## Closed / duplicate issues

- #77142: Anthropic-wire request client rebuilt (fresh TCP+TLS) on every LLM call instead of reused

## Prior & competing PRs

- **#86764: perf: salvage query/serialization cluster — session-search I/O, adaptive hydration, Anthropic client reuse, parallel model fetches**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_runtime_helpers.py`, `agent/tool_executor.py`, `contributors/emails/[redacted:email]`, `hermes_cli/model_switch.py`, `hermes_cli/models.py`, `hermes_state_search.py`, `run_agent.py`, `tests/agent/test_anthropic_request_client_reuse.py`, `tests/hermes_cli/test_model_cache_parallel_prefetch.py`, `tests/run_agent/test_token_persistence_non_cli.py`, `tests/test_hermes_state.py`, `tests/tools/test_session_search.py`, `tools/session_search_tool.py`, `website/docs/user-guide/sessions.md`
- **#77144: perf(run-agent): reuse Anthropic request-local client instead of rebuilding per call**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#86764`

## Fix status

- Merged to main in PR #86764 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-15`.
- Subsystem: `agent`
