# NousResearch/hermes-agent · Session database construction and logging enhancements

## Open now

- 1 issue, 2 PRs open on GitHub.
- #20268: \[Feature\]: Centralize SessionDB construction for future backend extension
- PR #20267: feat(session-log): mirror token usage and cost counters into session JSON (#20253)
- PR #20283: feat(hermes_state): add create_session_db() factory boundary

These items relate to centralizing how session database objects are constructed and extending session logs to capture token usage and cost data. The work appears focused on improving session management infrastructure and observability.

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

- #20268: \[Feature\]: Centralize SessionDB construction for future backend extension

## Prior & competing PRs

- **#20267: feat(session-log): mirror token usage and cost counters into session JSON (#20253)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `eeb747de25b0e3909bfeda7f2bbd5fadc1e3c790`, `#20253`
  - files: `run_agent.py`, `tests/run_agent/test_run_agent.py`
- **#20283: feat(hermes_state): add create_session_db() factory boundary**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `cli.py`, `hermes_state.py`, `tests/hermes_state/test_resolve_resume_session_id.py`

## Fix status

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