# NousResearch/hermes-agent · cost accounting, UI, and misc fixes

## Open now

- 2 issues, 2 PRs open on GitHub.
- #9402: feat(pricing): reconcile estimated provider costs into actual_cost_usd and prefer actual in /insights
- #47283: Gateway: provider-reported cost accounting (estimate → actual)
- PR #9419: feat: persist actual per-call cost for OpenRouter responses
- PR #49577: fix(state): enable FTS search for read-only SessionDB (#49554)

Several distinct themes: switching the TUI to a native terminal UI with Ink as fallback, reconciling estimated vs. actual provider-reported costs in pricing and insights, and a couple of unrelated bug fixes around session search and state.

## TL;DR

- 7 member(s): 2 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 3 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.26`: 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

- #9402: feat(pricing): reconcile estimated provider costs into actual_cost_usd and prefer actual in /insights
- #47283: Gateway: provider-reported cost accounting (estimate → actual)

## Prior & competing PRs

- **#47286: gateway: provider-reported cost accounting (estimate → actual)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#1`, `#4`, `#1`, `#1`, `#2`, `#4`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#9419: feat: persist actual per-call cost for OpenRouter responses**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `677680034ae50dc9c271a665bd6fc26673ec1093`, `fd2a35b1691138b79b606e7961d3c78f7019722b`
  - files: `agent/insights.py`, `agent/usage_pricing.py`, `run_agent.py`, `tests/agent/test_insights.py`, `tests/agent/test_usage_pricing.py`, `tests/run_agent/test_token_persistence_non_cli.py`
- **#42922: feat(tui): native OpenTUI terminal UI — the new default (Ink kept as fallback)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#47281`, `#47286`, `#47283`, `#47287`, `#47284`, `#47288`, `#47285`, `#47282`
- **#49577: fix(state): enable FTS search for read-only SessionDB (#49554)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/agent_runtime_helpers.py`, `agent/tool_executor.py`, `hermes_state.py`, `tests/run_agent/test_token_persistence_non_cli.py`, `tests/test_session_db_readonly_fts_probe.py`
- **#60819: fix(agent): forward profile param in session_search handler calls**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `a9838c21007`, `57197cd48d8`, `#60789`

## Fix status

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