This website requires JavaScript.
9dab23c5a6
refactor(cli): simplify hermes_cli/commands.py registry, gateway collectors and completer
Teknium
2026-09-02 10:23:06 -07:00
150ee2a35d
refactor(cli): simplify CLI mixins (billing, agent-setup, commands) — dedupe helpers, dispatch tables, god-method splits
Teknium
2026-09-02 12:59:17 -07:00
ab2fb71b23
refactor(cli): drop 18 update_cmd lazy re-exports with zero references outside update_cmd itself
Teknium
2026-09-02 12:13:53 -07:00
5c125d3bf6
refactor(cli): lift cmd_gui's install+build+stage/swap region into _build_desktop_app; drop 2 unused imports
Teknium
2026-09-02 12:10:58 -07:00
64f301dfc0
refactor(cli): dedupe the 3x --oneshot dispatch block and chat-arg defaults into helpers
Teknium
2026-09-02 11:58:59 -07:00
ed8aa5e3e4
refactor(cli): move session browse/status/relative-time helpers from main.py into sessions_cmd.py
Teknium
2026-09-02 11:51:27 -07:00
277d51bbc9
refactor(cli): route select_provider_and_model flows through a _PROVIDER_MODEL_FLOWS table
Teknium
2026-09-02 11:48:08 -07:00
853646f143
refactor(cli): move cmd_profile to hermes_cli/profile_cmd.py as a PROFILE_ACTIONS dispatch table
Teknium
2026-09-02 11:44:42 -07:00
41b658d2b4
refactor(cli): unify duplicate reasoning-effort config helpers into hermes_cli.setup
Teknium
2026-09-02 11:41:55 -07:00
060039d169
refactor(cli): split main() into _build_cli_parser/_parse_cli_args/_default_to_chat helpers
Teknium
2026-09-02 11:39:56 -07:00
b81ab901f3
refactor(cli): extract the last 16 inline parser groups from main() into hermes_cli/subcommands/
Teknium
2026-09-02 11:37:06 -07:00
3e38ef2126
refactor(cli): drop unused browser_connect imports; unify Alt+Enter/Ctrl+J newline handlers; collapse 8 trivial if/else forms
Teknium
2026-09-02 12:00:17 -07:00
0ccf6714be
refactor(cli): drop zero-ref startup-fast wrappers and _build_provider_choices from main.py
Teknium
2026-09-02 08:07:32 -07:00
57b2dfdf0e
refactor(cli): decompose HermesCLI.run() (3433 -> 384 LOC) into _tui_* methods
Teknium
2026-09-02 12:00:16 -07:00
0227cf7d9c
refactor(cli): unify the 3 copies of the TUI panel helpers into module-level functions
Teknium
2026-09-02 11:18:54 -07:00
9d745e3162
refactor(cli): replace the 93-branch slash-command if/elif chain with convention-based dispatch
Teknium
2026-09-02 12:00:15 -07:00
276685766e
refactor(run_agent): repoint file-mutation helper test imports to agent.tool_dispatch_helpers
Teknium
2026-09-02 12:50:28 -07:00
0ab2e9672c
refactor(run_agent): extract VisionMessagePrepMixin and ReasoningParamsMixin
Teknium
2026-09-02 12:37:50 -07:00
9576b49c0b
refactor(run_agent): extract TurnFacadeMixin (run_conversation/chat admission wrapper)
Teknium
2026-09-02 12:24:55 -07:00
f0526e6d74
refactor(run_agent): extract CompressionFacadeMixin; collapse 10 more lazy forwarders
Teknium
2026-09-02 12:20:47 -07:00
53161ba6f4
refactor(run_agent): unify _emit_status/_emit_warning and _buffer_status/_buffer_vprint pairs
Teknium
2026-09-02 12:13:36 -07:00
45e88aff38
refactor(run_agent): re-wrap comment blocks left with dangling fragments
Teknium
2026-09-02 12:12:24 -07:00
1e778ae7c6
refactor(run_agent): re-wrap compacted docstrings, restore lost issue-ref rationale
Teknium
2026-09-02 12:11:33 -07:00
e564e60a3d
refactor(run_agent): extract SessionPersistenceMixin (agent/session_persistence.py); _DB_PERSISTED_MARKER sourced from context_compressor
Teknium
2026-09-02 12:10:19 -07:00
81abe4799a
refactor(run_agent): extract InterruptControl/TurnExplainers/ActivityTracking/RateLimitCredits mixins
Teknium
2026-09-02 12:03:37 -07:00
ce6b4d1e16
refactor(run_agent): extract ApiErrorSummaryMixin (agent/api_error_summary.py)
Teknium
2026-09-02 11:53:31 -07:00
d69afde2d3
refactor(run_agent): drop unused logger in api_request_hooks
Teknium
2026-09-02 11:52:31 -07:00
64cc8cf0d3
refactor(run_agent): extract ApiRequestHooksMixin (agent/api_request_hooks.py)
Teknium
2026-09-02 11:52:14 -07:00
c274125690
refactor(run_agent): extract StreamDeliveryMixin and StatusOutputMixin
Teknium
2026-09-02 11:49:40 -07:00
fd54e7faec
refactor(run_agent): extract ClientLifecycleMixin (agent/client_lifecycle.py) + agent/lazy_forward.py
Teknium
2026-09-02 11:44:35 -07:00
5423336e8c
refactor(run_agent): collapse 39 lazy forwarder methods into _forward() descriptors; __init__ forwards via locals()
Teknium
2026-09-02 11:35:11 -07:00
1c21f09558
refactor(run_agent): route default-header chain -> _ROUTE_DEFAULT_HEADERS dispatch table
Teknium
2026-09-02 11:24:19 -07:00
7048763e99
refactor(run_agent): unify non-vision message preprocessors, drop dead forwarders
Teknium
2026-09-02 11:18:45 -07:00
30e060211c
refactor(run_agent): compact verbose comments and docstrings in AIAgent facade
Teknium
2026-09-02 09:20:49 -07:00
c5452be851
refactor(agent): tests — drop unused imports in test_model_tools
Teknium
2026-09-02 13:00:31 -07:00
bdf9ebf92c
refactor(agent): model_tools — lift _active_model_config out of _resolve_active_context_length
Teknium
2026-09-02 12:58:41 -07:00
531eb9b561
refactor(agent): model_tools — _CallIds dataclass carries tool-call identity through guards, execution and hooks
Teknium
2026-09-02 12:57:39 -07:00
7afd702505
refactor(agent): toolsets — flatten get_toolset alias branch, extract _plugin_platform_bundle, share _display_alias
Teknium
2026-09-02 12:53:13 -07:00
57615ca981
refactor(agent): toolsets — derive coding and hermes-api-server tool lists from core via _core_without
Teknium
2026-09-02 12:51:56 -07:00
d533aaaf2d
refactor(agent): model_tools — split get_tool_definitions memo key into _tool_defs_cache_key; single return path
Teknium
2026-09-02 12:50:55 -07:00
aab7a9b9b0
refactor(agent): model_tools — extract _execute_tool and _apply_transform_tool_result_hook; handle_function_call is now a linear pipeline
Teknium
2026-09-02 12:48:18 -07:00
2c783c8782
refactor(agent): model_tools — extract _pre_dispatch_guards (plugin pre_tool_call + ACP edit approval) from handle_function_call
Teknium
2026-09-02 12:47:27 -07:00
fcb5c64101
refactor(agent): model_tools — extract argument type coercion into tools/arg_coercion.py (re-exported; logger name preserved)
Teknium
2026-09-02 12:43:13 -07:00
73163e3acb
refactor(agent): model_tools — extract _dispatch_bridge_tool from handle_function_call; pin bridge dispatch with tests
Teknium
2026-09-02 12:40:59 -07:00
4666479e70
refactor(agent): model_tools — toolset enable/disable via one _apply_toolset_selection; dynamic schema rewrites as a dispatch table
Teknium
2026-09-02 12:37:52 -07:00
cf1ecfde1d
refactor(agent): toolsets — build TOOLSETS via _ts/_bundle helpers; share _CODING_TOOLS with hermes-acp
Teknium
2026-09-02 12:34:20 -07:00
6f9af97117
refactor(agent): toolsets — drop __main__ demo and test-only resolve_multiple_toolsets
Teknium
2026-09-02 12:29:47 -07:00
b3e41128ff
refactor(agent): share predicates, truncation and the timeout ladder
Teknium
2026-09-02 13:25:16 -07:00
16308d32b9
refactor(agent): model_tools — compact handle_function_call (shared _emit for post_tool_call, single dispatch closure) and coercion/context-gate docs
Teknium
2026-09-02 09:20:50 -07:00
b2717f4f4c
refactor(agent): restore rationale comments lost in the docstring compaction
Teknium
2026-09-02 13:25:15 -07:00
2cc0d85bdc
refactor(agent): model_tools — shared _find_tool/_drop_tool for dynamic-schema rewrites; compact async-bridge and cache docs
Teknium
2026-09-02 08:11:41 -07:00
ea090ccb62
refactor(agent): unify durable-state helpers, session reset and tail-cut walks
Teknium
2026-09-02 13:25:15 -07:00
7c780631f9
refactor(agent): compact toolsets.py helpers — shared registry accessor, unified alias display-name walk, tightened docs
Teknium
2026-09-02 08:06:32 -07:00
4a64d42f9b
refactor(agent): extract micro-compaction into agent/micro_compaction.py
Teknium
2026-09-02 13:25:15 -07:00
64576a34f8
refactor(agent): decompose _generate_summary and the compress() abort path
Teknium
2026-09-02 13:25:15 -07:00
8b84f8debe
refactor(agent): dispatch-table the tool-result summarizer
Teknium
2026-09-02 13:25:15 -07:00
cfb234c54c
refactor(agent): extract _scan_window_handoffs from compress(); drop unused imports
Teknium
2026-09-02 13:25:15 -07:00
3a2eceabc8
refactor(agent/compression): remove dead memory-containment helpers; fold codex skip-log ladder
Teknium
2026-09-02 13:18:05 -07:00
12be763de0
refactor(agent): compact context_compressor comments/docstrings to invariants
Teknium
2026-09-02 13:25:14 -07:00
7e3cef7d87
refactor(agent/compression): extract candidate rejection ladder from compress_context
Teknium
2026-09-02 13:13:56 -07:00
0ea4c7963a
refactor(agent/compression): extract post-commit boundary tail of compress_context
Teknium
2026-09-02 13:10:42 -07:00
01d16451f7
refactor(agent/compression): extract commit-phase helpers out of compress_context
Teknium
2026-09-02 13:07:11 -07:00
cbd709124f
refactor(agent/compression): extract pre-summary phases of compress_context
Teknium
2026-09-02 12:57:29 -07:00
42c41dfcff
refactor(agent/compression): extract lease acquisition and lifecycle out of compress_context
Teknium
2026-09-02 12:52:13 -07:00
852f2a02d8
refactor(agent/compression): unify repeated abort-path snippets in compress_context
Teknium
2026-09-02 12:34:09 -07:00
682d48c48a
refactor(agent/compression): compact comments and docstrings in conversation_compression (AST-identical)
Teknium
2026-09-02 09:20:48 -07:00
3e8977086f
refactor(agent): compact Anthropic stream + retry-loop rationale comments/docstrings (AST-identical)
Teknium
2026-09-02 12:58:22 -07:00
9aee90335b
refactor(agent): compact Bedrock and chat_completions stream-loop rationale comments (AST-identical)
Teknium
2026-09-02 12:57:27 -07:00
d224e22507
refactor(agent): compact non-streaming call-path rationale comments/docstrings to their invariants (AST-identical)
Teknium
2026-09-02 12:55:35 -07:00
89a5ce12dd
refactor(agent): build_api_kwargs — shared chat kwargs for profile/legacy paths; xAI tool_search alias rewrite helper
Teknium
2026-09-02 12:49:44 -07:00
c5c6d7e566
refactor(agent): lift non-streaming stale/codex watchdog resolution into _resolve_nonstream_watchdogs
Teknium
2026-09-02 12:44:47 -07:00
3c80d4fe77
refactor(agent): compact build_assistant_message rationale comments to their invariants
Teknium
2026-09-02 12:42:35 -07:00
24b6b0e439
refactor(agent): compact streaming-path rationale comments to their invariants; drop no-op stale-kill if/else
Teknium
2026-09-02 12:40:44 -07:00
0e1875e859
refactor(agent): try_activate_fallback — lift api_mode hint/resolution and credential-pool rebinding into helpers
Teknium
2026-09-02 12:37:20 -07:00
3f497cf3f8
refactor(agent): interruptible_api_call — shared watchdog abort + post-kill worker wait helpers
Teknium
2026-09-02 12:29:14 -07:00
3e2ab5b382
refactor(agent): shared relay stream identity/metadata builders for the three streaming wires
Teknium
2026-09-02 12:25:49 -07:00
ce9efccbaa
refactor(agent): extract _ToolCallAccumulator from the chat_completions stream loop
Teknium
2026-09-02 12:23:18 -07:00
2d93a8b127
refactor(agent): share SSE connection-drop phrase check and codex silent-hang hint lookup
Teknium
2026-09-02 12:18:53 -07:00
3dc2403c45
refactor(agent): handle_max_iterations — single per-wire summary attempt with one retry pass; drop dead summary_request literal
Teknium
2026-09-02 12:17:45 -07:00
e5e491ef5a
refactor(agent): unify per-request client registry into _RequestClientRegistry (streaming + non-streaming)
Teknium
2026-09-02 12:13:36 -07:00
ce276cd864
refactor(agent): decompose interruptible_streaming_api_call into _StreamingCall + per-wire branch functions
Teknium
2026-09-02 12:10:48 -07:00
695f7da3cf
refactor(agent): error_classifier — rule-table verdicts, shared match helpers, compacted pattern rationale (2244 -> 1357 LOC)
Teknium
2026-09-02 09:20:48 -07:00
0edb835abb
refactor(prompt_builder): structural simplification with byte-identical prompt output
Teknium
2026-09-02 12:43:11 -07:00
4e65d089c0
refactor(agent): simplify moa_loop — dataclass accounting, extracted create() helpers, relay dispatch table, compacted docstrings
Teknium
2026-09-02 10:41:42 -07:00
76062b1d6b
refactor(agent): decompose init_agent into ordered phase helpers
Teknium
2026-09-02 12:00:05 -07:00
eb67765c58
refactor(agent): agent_runtime_helpers — drop dead predicates, dedupe runtime restore/switch/recovery, compact narratives
Teknium
2026-09-02 13:05:39 -07:00
4dcbbc84ab
refactor(agent): table-driven inline tool executors shared by both tool paths; dedupe tool_executor
Teknium
2026-09-02 13:05:39 -07:00
68be67e0d0
refactor(agent): error_classifier — unify billing/rate-limit/overflow verdict helpers, drop dead _THINKING_SIG_PATTERNS, compact incident narratives
Teknium
2026-09-02 13:05:39 -07:00
064bcaf3c1
refactor(cron): compact scheduler_provider and small cron modules
Teknium
2026-09-02 12:15:37 -07:00
3d3d2c89f5
refactor(cli): table-drive setup.py wizard sections; drop dead helpers
Teknium
2026-09-02 13:18:13 -07:00
5212a3077d
refactor(cli): dedupe model_setup_flows boilerplate
Teknium
2026-09-02 13:18:13 -07:00
8a0843db6f
Merge pull request #101581 from kshitijk4poor/chore/author-map-w3-salvages
kshitij
2026-09-03 01:59:02 +05:30
568b16122d
fix(gateway): finish the media-cache offload sweep (teams NameError, buzz, photon)
kshitijk4poor
2026-09-03 01:37:50 +05:30
cb0b66c161
perf(gateway): offload inbound media cache writes
fangliquanflq
2026-08-24 23:08:35 +08:00
a3d33fe22f
fix(copilot): single-flight the token exchange and close abandoned responses
kshitijk4poor
2026-09-03 01:40:49 +05:30
ff0afff0e4
fix(server): move blocking credential-pool calls off the event loop
peetteerr
2026-08-22 07:42:45 +08:00
2b4e70ec07
refactor(cli): use the router's run_in_threadpool alias; offload profile model write
kshitijk4poor
2026-09-03 01:42:05 +05:30
beb2e91d04
test(cli): cover the profiles router off-loop sweep
briandevans
2026-08-12 00:33:33 -07:00
34a8e1dc50
fix(cli): run profile document I/O off the dashboard event loop
briandevans
2026-08-12 00:33:23 -07:00
63d42cd0e2
fix(cli): run profile rename and active-profile state off the event loop
briandevans
2026-08-12 00:30:58 -07:00