# NousResearch/hermes-agent · Refactor gateway run.py by extracting helper modules

## Open now

- 2 issues, 0 PRs open on GitHub.
- #54962: Extract Gateway Platform Routing from gateway/run.py
- #55138: Extract Gateway Platform Routing from gateway/run.py

The members all concern refactoring gateway/run.py by pulling code out into separate helpers, with titles mentioning platform routing and display/resolution helpers. Two titles are identical, and one references a larger effort (#54962); the details beyond the titles are not shown.

## TL;DR

- 4 member(s): 2 open issue(s), 0 closed issue(s), 0 open PR(s), 0 merged PR(s), 2 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.39`: 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

- #54962: Extract Gateway Platform Routing from gateway/run.py
- #55138: Extract Gateway Platform Routing from gateway/run.py

## Prior & competing PRs

- **#77376: refactor(gateway): extract platform routing helpers from run.py**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `2de837a3f482`, `#77376`, `#55138`, `#54962`, `#374151`
- **#77433: refactor(gateway): extract display/resolution helpers out of run.py (first slice of #54962)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `cecc6cb391`, `#77376`

## Fix status

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