Commit Graph

  • 7a9e36f226 refactor(agent/coding_context,context_breakdown,context_engine): compact prose, unify helpers, table dispatch (1423->1059 LOC) Teknium 2026-09-02 18:49:57 -07:00
  • 22df91d65d refactor(agent): model_metadata — table-drive server-type waterfall, unify cache-drop logging, compact tables/signatures Teknium 2026-09-02 18:49:56 -07:00
  • 761cff3221 refactor(agent/turn): working-state carriers subclass their Verdict (drop duplicate field copies) Teknium 2026-09-02 18:49:52 -07:00
  • c68b56c97f refactor(gateway/platforms): qqbot AST-neutral layout packing (closers, hanging arg lists) Teknium 2026-09-02 18:49:43 -07:00
  • 7199cfc927 refactor(gateway): join implicit string concatenations in run.py Teknium 2026-09-02 18:49:35 -07:00
  • 18e73f891e refactor(agent/transports): trim narrative docstrings/comments in codex, chat_completions, app-server session (WHYs kept) Teknium 2026-09-02 18:49:33 -07:00
  • eac3b11dde refactor(agent/error_classifier,display): compact WHY comments to 1-3 lines, collapse guard ladders and small wrappers Teknium 2026-09-02 18:49:20 -07:00
  • 745de4c832 refactor(gateway/platforms): simplify helpers.py (strip rules table, unified mention compiler, chunker cleanups), media_cache.py, _http_client_limits.py, __init__.py Teknium 2026-09-02 18:49:12 -07:00
  • b66776d594 refactor(agent/tool_executor): split executor god functions into phase helpers; unify observe/commit and start-gate handling Teknium 2026-09-02 18:49:11 -07:00
  • 511c7fb9b7 refactor(state): compact common preview/lineage helpers and comments Teknium 2026-09-02 18:49:10 -07:00
  • 200f63ef1e refactor(agent/turn_recovery): lift per-provider 401 credential refresh into _refresh_credentials_after_401 Teknium 2026-09-02 18:49:06 -07:00
  • 52d36c9091 refactor(agent/turn_usage): early no-usage return, MoA fold helper, single cost-delta computation Teknium 2026-09-02 18:49:05 -07:00
  • 0e9d46511a refactor(agent/conversation_compression): lift image-shrink nested helpers, lease lock-API resolution, rotation state carry-over, durable cooldown rollback Teknium 2026-09-02 18:49:03 -07:00
  • c1a6f2829f refactor(gateway/platforms): signal_rate_limit.py — _refill reuses _projected_tokens, compact docstrings Teknium 2026-09-02 18:49:03 -07:00
  • 03f00ec3cf refactor(agent/lsp): inline win-shim/sync-kind helpers, unify reply path in _dispatch_request, compact manager signatures Teknium 2026-09-02 18:48:50 -07:00
  • 226c765709 refactor(agent/tool_guardrails): verdict-message table, single decision builder, loop-cap dispatch table Teknium 2026-09-02 18:48:49 -07:00
  • f00024ecc8 refactor(agent/context_compressor): lift static-fallback helpers to module level, extract anchor collection Teknium 2026-09-02 18:48:29 -07:00
  • 3780201f3e refactor(agent/E_session): AST-identical hugging pass 2 Teknium 2026-09-02 18:48:22 -07:00
  • 79c704f34f refactor(agent): monitoring/iron_proxy third pass — gateway.status dispatch helper, SDK symbol table by module, compact comments and inner blanks Teknium 2026-09-02 18:48:19 -07:00
  • 7a08103c14 refactor(agent/auxiliary_client): split recovery ladder into rung helpers, unify call_llm twins Teknium 2026-09-02 18:47:58 -07:00
  • e0693c4d3e refactor(agent/codex*,bedrock_adapter): drop intra-function blank lines (AST-identical, -117 LOC) Teknium 2026-09-02 18:47:54 -07:00
  • 7b6ec94ec1 refactor(gateway/platforms): compact qqbot adapter — fold reconnect/ready/ws-close helpers, dedupe token/gateway fetch + http-client guard, collapse dm/group ACL ladders, magic-byte table, tighter layouts Teknium 2026-09-02 18:47:51 -07:00
  • 0e3d11241b refactor(gateway): run_shutdown — _StopContext carrier for stop() phases, unified helpers for send-result/api-hook/resume-pending/json-counts/watcher-env, split Windows restart watcher Teknium 2026-09-02 18:47:49 -07:00
  • 1c55eefec1 refactor(agent/trace_upload): collapse block building and token lookup Teknium 2026-09-02 18:46:43 -07:00
  • 83d61e0840 refactor(gateway): run_turn hygiene attempt carrier owns history; inline runtime key tables Teknium 2026-09-02 18:45:45 -07:00
  • 6da196e39a refactor(hermes_state_search): env_float threshold, collapse rebuild-status/teardown guards, compact docstrings Teknium 2026-09-02 18:45:38 -07:00
  • 83168ff4e4 refactor(agent/context_compressor): split _prune_old_tool_results into boundary/dedupe/demote/pressure helpers Teknium 2026-09-02 18:45:36 -07:00
  • 1d378664cb refactor(agent/turn_tool_round,turn_stop_gates,turn_tool_validation,turn_final_response): dedupe nudge/error-result/partial-exit blocks, drop dead verdict scaffolding Teknium 2026-09-02 18:45:32 -07:00
  • 36c7c998e0 refactor(gateway): run_startup — AST-neutral bracket packing Teknium 2026-09-02 18:45:30 -07:00
  • d10256f366 refactor(gateway): pack compound-statement headers in hosted-room modules (AST-neutral) Teknium 2026-09-02 18:45:26 -07:00
  • 498c7a1c08 refactor(agent/turn): AST-neutral packing of multi-line string literals Teknium 2026-09-02 18:45:24 -07:00
  • be8c0fd302 refactor(gateway): compact slash_commands one-off handlers; dict tables for /footer,/approve,/deny; unify diff/cwd/executor helpers Teknium 2026-09-02 18:45:20 -07:00
  • de570c0099 refactor(agent/chat_completion_helpers): compact _StreamingCall comments/docstrings and fold single-use locals Teknium 2026-09-02 18:45:17 -07:00
  • 8c9c7a041a refactor(cli): extract git worktree machinery into hermes_cli/worktree_ops.py (cli re-exports) Teknium 2026-09-02 18:44:44 -07:00
  • 3f73e6ab4d refactor(batch_runner): table-drive runner fields, banner helper, reasoning-turn predicate Teknium 2026-09-02 18:44:40 -07:00
  • e527b0699d refactor(state): extract error types/classifiers to hermes_state_errors and the live-DB guard to hermes_state_guard Teknium 2026-09-02 18:44:39 -07:00
  • 28a974aef5 refactor(agent): pack multi-line calls/signatures in r3-06-C files (AST-identical) Teknium 2026-09-02 18:44:36 -07:00
  • 3e72baaaa3 refactor(gateway/platforms): bluebubbles.py — webhook token/chat-resolution helpers, ok-response helper, precompiled regexes, layout hug Teknium 2026-09-02 18:44:18 -07:00
  • d45621c032 refactor(agent): model_metadata — extract get_model_context_length phases, unify probe memo/blackhole/ollama helpers Teknium 2026-09-02 18:43:54 -07:00
  • a166aa73bb refactor(gateway/platforms): split _handle_runs, unify run teardown/terminal-event helpers, dedupe room-grant target checks and idempotency txn Teknium 2026-09-02 18:43:40 -07:00
  • 6bcad19d1d refactor(agent/agent_runtime_helpers): split anthropic_prompt_cache_policy (MoA + custom-route gate helpers) Teknium 2026-09-02 18:43:18 -07:00
  • b8bc47032b refactor(state): compact common lock helpers (shared lock-file rewrite, merged holder-record parse) Teknium 2026-09-02 18:43:04 -07:00
  • 6e304e6d7e refactor(agent): prompt_builder — compact imports/constant tables, tighten skills-index helpers, absorb paragraph-break literals (AST-identical text) Teknium 2026-09-02 18:42:45 -07:00
  • 351d0444dc refactor(agent/conversation_loop): collapse boolean ladders, unify context-engine hook gate and tool-call copy-on-write Teknium 2026-09-02 18:42:39 -07:00
  • e50afc20bb refactor(agent/turn_api_error): _is_local_validation_error predicate, _RETRYABLE_CLIENT_REASONS table, _fallback_break helper, verdict passthrough; trim turn_loop_errors/turn_retry_state Teknium 2026-09-02 18:42:15 -07:00
  • eba201ff6e refactor(agent/background_review): split _run_review_in_thread into fork/summary phases, extract fork kwargs and action-line helpers Teknium 2026-09-02 18:41:26 -07:00
  • 940681711e refactor(delegate): progress relay — tighter identity/relay/normalize paths Teknium 2026-09-02 18:41:25 -07:00
  • bfc48f8089 refactor(gateway/platforms): openai routes — _ResponsesStream state object, shared finish/route/spawn helpers (1409 -> 1081 LOC) Teknium 2026-09-02 18:41:00 -07:00
  • e27609e18e refactor(agent/thinking_timeout_guidance,reactions,reasoning_summaries): compact docstrings, merged guards Teknium 2026-09-02 18:40:40 -07:00
  • 863fc9afa8 refactor(agent/turn): lift hook-firing, MoA context/prepare, empty-retry and terminal-empty phases into helpers Teknium 2026-09-02 18:40:01 -07:00
  • 5634e32005 refactor(agent/codex_runtime): extract _output_text_of, fold accumulator init/returns, tighten item payload helpers (-40 LOC) Teknium 2026-09-02 18:39:31 -07:00
  • 7b7d3bc188 refactor(agent/acp,credits,gemini): compact handlers, dispatch session/update sinks, tighten docstrings Teknium 2026-09-02 18:39:24 -07:00
  • 4405c6c639 refactor(gateway): unify run_config_loaders env/cfg readers, collapse busy-mode/channel-override duplicates Teknium 2026-09-02 18:39:14 -07:00
  • 2d52d645c3 refactor(agent/chat_completion_helpers): _stream_bedrock_converse -> _BedrockStream with phase methods Teknium 2026-09-02 18:39:10 -07:00
  • 7cf77374bf refactor(gateway): run_startup — connect-pending early returns, import tidy Teknium 2026-09-02 18:39:08 -07:00
  • 13a9574a6c refactor(gateway): strip orphaned section headers from GatewayRunner; group mixin tunables Teknium 2026-09-02 18:39:04 -07:00
  • 8c07b50f99 refactor(acp): unify permission awaiting (permissions.await_permission) across approval + edit-approval bridges Teknium 2026-09-02 18:38:36 -07:00
  • c50e14980f refactor(agent/terminal_env_*,transcription_*): compact ABC/registry docs, drop unused logger Teknium 2026-09-02 18:38:29 -07:00
  • 666b525e4d refactor(agent/agent_runtime_helpers): split restore_primary_runtime into gate/capabilities/pool-rebind helpers Teknium 2026-09-02 18:38:17 -07:00
  • 7589c93438 refactor(agent/shell_hooks): flatten log-call wrapping, invert prompt tail Teknium 2026-09-02 18:38:09 -07:00
  • 8f88c839a6 refactor(gateway): flatten shutdown_forensics/flush proc reads and payload recovery Teknium 2026-09-02 18:37:46 -07:00
  • 4bd0569264 refactor(agent/auxiliary_client): dedupe resolver/fallback region — shared classifier core, refresher dispatch, twin unification Teknium 2026-09-02 18:37:07 -07:00
  • 41ed65b67a refactor(agent/session_persistence): extract _session_log_entry, table reasoning row keys (key order preserved) Teknium 2026-09-02 18:36:38 -07:00
  • 817435564a refactor(gateway): pack run_turn REGION B bracket spans (AST-neutral) Teknium 2026-09-02 18:36:26 -07:00
  • 0e1e86bef4 refactor(agent/retry_utils,runtime_cwd,ssl_*): inline single-use helpers, reuse is_truthy_value, compact docs Teknium 2026-09-02 18:36:16 -07:00
  • 8206e42497 refactor(gateway): TurnRunner — unify thread→loop scheduling, split progress/agent-resolution god methods, dedupe result dicts (2402→1909 LOC) Teknium 2026-09-02 18:35:59 -07:00
  • 99beb63ce2 refactor(agent/usage_pricing): express the official-docs snapshot as per-provider rate rows; table-drive snapshot-provider routing Teknium 2026-09-02 18:35:48 -07:00
  • a560fd840c refactor(agent/relay): fold execute/execute_async invoke into _ManagedAttempt; stream() = ManagedLlmStream; codec tool normalizer table; plugin acquire preflight/activate split; pack call/signature spans Teknium 2026-09-02 18:35:48 -07:00
  • 5a3cbf51aa refactor(delegate): compact task validation + toolset resolution (inline MCP preservation, single strip) Teknium 2026-09-02 18:35:40 -07:00
  • 6fe8f9e76c refactor(agent/stream_diag,repetition_guard,thread_scoped_output,stream_single_writer): compact loops and docstrings Teknium 2026-09-02 18:35:30 -07:00
  • d61bafcbd1 refactor(agent/turn_context): per-turn reset as a data table, _str_attr route reads, compact TurnContext field docs Teknium 2026-09-02 18:35:16 -07:00
  • 771ed48bd8 refactor(agent/learning_graph): drop __main__ demo block, compact node/card literals; learning_mutations + learn_prompt docstring compaction Teknium 2026-09-02 18:35:14 -07:00
  • b45961212c refactor(run_agent): compact docstrings/comments, collapse remaining boolean ladders and redundant locals Teknium 2026-09-02 18:35:08 -07:00
  • 41da997a06 refactor(agent): prompt_builder — gate HUD sentences as a tuple, share remote-backend lead text, compact docstrings, reflow literals to 120 cols Teknium 2026-09-02 18:35:02 -07:00
  • deb5bdecd9 refactor(agent/bedrock_adapter): table-ize stale-error imports and context lengths, share discovery entry builder (-24 LOC) Teknium 2026-09-02 18:35:02 -07:00
  • 58774af519 refactor(gateway): run_startup — obligation adapter/owner-auth helpers, compact ledger paths Teknium 2026-09-02 18:34:58 -07:00
  • 71c6c62811 refactor(gateway): split _start_one_profile_adapters into config-load + duplicate-claim helpers; dedupe profile stamping Teknium 2026-09-02 18:34:54 -07:00
  • ebd1814862 refactor(agent): iron_proxy second pass — single-line diagnostics, alias-source lookup, suppress() Teknium 2026-09-02 18:34:52 -07:00
  • 92b835d0ff refactor(batch_runner): table-drive AIAgent passthrough config and CLI arg validation Teknium 2026-09-02 18:34:38 -07:00
  • 004cd68e20 refactor(agent/conversation_loop,deadline): extract bot-chat staleness + prompt persist helpers, unify guidance printing, compact deadline docstrings Teknium 2026-09-02 18:34:28 -07:00
  • 5a8fbbf16c refactor(cron): split scheduler.py into delivery/script/prompt/preflight modules Teknium 2026-09-02 18:34:26 -07:00
  • fdc6beefcd refactor(gateway): pack dict/list literal statements in hosted-room modules (AST-neutral) Teknium 2026-09-02 18:34:23 -07:00
  • 282688e37e refactor(agent/error_surface,i18n): fold layer resolution into helper, collapse guard ladders (strings untouched) Teknium 2026-09-02 18:34:22 -07:00
  • 2a660cb8fb refactor(hermes_state): reuse utils.safe_json_loads, one tolerant topic reader, one registry path resolver Teknium 2026-09-02 18:34:21 -07:00
  • 58c7789e36 refactor(agent/conversation_compression): extract summary phase of compress_context and the timeout wrapper's wait/cancel/unwind helpers Teknium 2026-09-02 18:33:49 -07:00
  • 608e8560fe refactor(agent/context_compressor): split compress() into phase helpers (494 -> ~130 LOC) Teknium 2026-09-02 18:33:40 -07:00
  • e5a71229c9 refactor(gateway): AST-neutral bracket packing in run.py Teknium 2026-09-02 18:33:17 -07:00
  • 5fa7066054 refactor(gateway): compact restart/drain/cache-pressure/monitor modules; extract hook-dir loader and capture-path indexer Teknium 2026-09-02 18:33:07 -07:00
  • 23ae37b4bc refactor(agent): plugin_llm/nous_rate_guard/moonshot_schema/provider_* — unify atomic write, compact docstrings, collapse defensive layers Teknium 2026-09-02 18:33:06 -07:00
  • ecbd2cc855 refactor(acp): extract commands.py (SlashCommandsMixin, /help../version handlers) out of server.py Teknium 2026-09-02 18:33:03 -07:00
  • 50556a4d86 refactor(gateway/platforms): webhook.py — route/skill/validation phase helpers, module-level Svix validator, shared timestamp-age check Teknium 2026-09-02 18:33:02 -07:00
  • 1a27739c3a refactor(agent/lsp): extract _apply_delta/_spawn_client, table-drive config overrides, compact client plumbing Teknium 2026-09-02 18:32:34 -07:00
  • 7baf030bbd refactor(agent/chat_completion_helpers): split build_api_kwargs per api_mode; lift build_assistant_message phases Teknium 2026-09-02 18:32:33 -07:00
  • 7c62fc26db refactor(agent/agent_runtime_helpers): split recover_with_credential_pool by failover reason + status->reason table Teknium 2026-09-02 18:32:30 -07:00
  • 052582de2d refactor(agent): compact monitoring/* and lsp/workspace — contextlib.suppress, shared platform error-code helper, nearest_root marker probe, docstring compaction Teknium 2026-09-02 18:32:02 -07:00
  • 2a71fd4e03 refactor(agent/replay_cleanup,trace_upload,transcript_repair,session_activity,trajectory): collapse duplicate branches, compact docstrings Teknium 2026-09-02 18:31:56 -07:00
  • bfb7ba20d2 refactor(agent/reasoning_effort,reasoning_timeouts): floor table keyed by seconds, compact clamp, docstrings Teknium 2026-09-02 18:31:56 -07:00
  • 92aaf61462 refactor(agent/redact.py): collapse single-use regex wrappers, fold prose comments, next()-based lookups Teknium 2026-09-02 18:31:51 -07:00
  • a7cc28e3dc refactor(agent/learning_graph_render): shared lerp/lead-in/visible-count helpers, inlined single-use branches Teknium 2026-09-02 18:31:40 -07:00
  • 372434b3b6 refactor(gateway): unify override/lease/eviction helpers in run_agent_cache (1162→1018 LOC); pack bracket spans Teknium 2026-09-02 18:31:29 -07:00