Splitting large cli.py into smaller mixin modules
Cluster 116911. Data as of
Nothing open on GitHub. Fix merged in #117688 on 21 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #117688. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #117642. That is separate from the fix event. - Still open
- Nothing open on GitHub.
A bug report and two refactoring efforts focused on breaking up an oversized cli.py file by moving behavior into topical mixin sibling modules. The work tracks line-count reduction across incremental refactoring steps.
Open issues0
Open PRs0
Fixes on record
-
#117642 refactor(cli): HermesCLI init and TUI run-loop phases move into mixin siblings, cli.py 4,835 -> 3,959 lines (#116911)
files:
cli.py,hermes_cli/AGENTS.md,hermes_cli/cli_init_mixin.py,hermes_cli/cli_tui_runtime_mixin.py,tests/agent/test_grid_sweep_cli_tui_stream_diagnostics.py,tests/agent/test_org_skill_namespace.py,tests/hermes_state/test_hermes_state_ids.py -
#117688 refactor(cli): cli.py module-level helper clusters move into topical siblings; cli.py lands under 2,000 lines (#116911)
files:
cli.py,hermes_cli/AGENTS.md,hermes_cli/cli_auto_maintenance.py,hermes_cli/cli_config_load.py,hermes_cli/cli_render.py,hermes_cli/cli_shutdown.py,hermes_cli/cli_single_query.py,hermes_cli/cli_terminal_input.py,tests/agent/test_auxiliary_config_bridge.py,tests/hermes_cli/test_bracketed_paste_timeout.py,tests/hermes_cli/test_cli_quiet_stdout_leak.py
Closed issues · 1
- Closed#116911[Bug]: cli.py 4,823-line god-file — behavior must move to hermes_cli/cli_*_mixin siblings
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.67: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the Lab