Faster startup + HX_TRACE_STARTUP #140

Merged
hermes merged 1 commits from perf/startup into main 2026-10-08 16:54:59 +00:00
Collaborator

Startup latency, all in hx-cli main path:

  • catalog: providers fetched in parallel; any cached model list (even expired) is used at once, refreshed in a background task (stale-while-revalidate). Custom endpoint still fetched live.
  • MCP Hub::start runs concurrently with the catalog (was sequential); MCP connect timeout 30s -> 10s.
  • extensions start in parallel.
  • system prompt tail (skills, context files, memory) scanned once, reused by subagent roles (was 3 scans).
  • HX_TRACE_STARTUP=1 prints ms per phase (main, config, catalog, prompt, mcp, lens, ready) to measure further.
    tests/all.sh green, clippy clean. Not measured with real logins; use HX_TRACE_STARTUP=1 for numbers.
Startup latency, all in hx-cli main path: - catalog: providers fetched in parallel; any cached model list (even expired) is used at once, refreshed in a background task (stale-while-revalidate). Custom endpoint still fetched live. - MCP Hub::start runs concurrently with the catalog (was sequential); MCP connect timeout 30s -> 10s. - extensions start in parallel. - system prompt tail (skills, context files, memory) scanned once, reused by subagent roles (was 3 scans). - HX_TRACE_STARTUP=1 prints ms per phase (main, config, catalog, prompt, mcp, lens, ready) to measure further. tests/all.sh green, clippy clean. Not measured with real logins; use HX_TRACE_STARTUP=1 for numbers.
hermes added 1 commit 2026-10-08 16:54:22 +00:00
hermes merged commit 8ffb5de9e9 into main 2026-10-08 16:54:59 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#140