# NousResearch/hermes-agent · MCP/TUI startup memory reduction efforts

## Open now

- Nothing open on GitHub.

A cluster of issues and pull requests focused on diagnosing and reducing high resident memory usage at startup, particularly from MCP server initialization and related allocator behavior. Approaches include lazy startup, schema caching, allocator trimming, and telemetry.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #77511. Verify it addresses your case.
- **Recommended:** read PR #77511 (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.50`: 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

- #53415: Desktop TUI Gateway Python process resident memory ~1GB on startup (state.db 469MB + pymalloc)

## Prior & competing PRs

- **#76905: feat(mem): config-driven allocator trim with telemetry (#66355 salvage)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/run.py`, `hermes_cli/config_defaults.py`, `hermes_cli/mem_trim.py`, `run_agent.py`, `tests/gateway/test_memory_trim_housekeeping.py`, `tests/hermes_cli/test_mem_trim.py`, `tests/test_tui_gateway_server.py`, `tui_gateway/server.py`, `tui_gateway/slash_worker.py`
- **#77511: perf(mcp): lazy server startup from fingerprint-keyed schema cache (#56832 extract-salvage)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_mcp_lazy_start.py`, `tests/tools/test_mcp_schema_cache.py`, `tools/mcp_schema_cache.py`, `tools/mcp_tool.py`
- **#56832: perf(dashboard): reduce idle memory from MCP startup**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#76905`, `#77511`

## Fix status

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