Skip to content

perf(ttft): salvage easy-win startup optimizations from #3346#3395

Merged
teknium1 merged 4 commits intomainfrom
hermes/hermes-86f614ec
Mar 27, 2026
Merged

perf(ttft): salvage easy-win startup optimizations from #3346#3395
teknium1 merged 4 commits intomainfrom
hermes/hermes-86f614ec

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Summary

Salvages four low-risk, high-value PRs from the TTFT startup optimization investigation (#3346) by kshitijk4poor. Cherry-picked onto current main with authorship preserved.

Cherry-picked commits

PR Commit What it does
#3361 5bb3b306 Dedupe tool availability checks — shared check_fn functions called once instead of N times per get_definitions()
#3362 2077bda9 Short-circuit vision auto-resolution — try preferred provider first, avoid probing all backends (~3964ms → ~77ms)
#3363 449a9702 Lazy Claude Code version detection — defer claude --version subprocess to first Anthropic OAuth use, not import time
#3364 36481ec9 Reuse loaded toolsets for skills prompt — derive available toolsets from already-loaded tools instead of re-probing all check_fns

What was NOT included (needs more discussion)

Test results

6295 passed, 0 failed (full suite minus MCP).

Co-authored-by: kshitijk4poor 82637225+kshitijk4poor@users.noreply.github.com

@teknium1 teknium1 merged commit 5a1e2a3 into main Mar 27, 2026
4 checks passed
StreamOfRon pushed a commit to StreamOfRon/hermes-agent that referenced this pull request Mar 29, 2026
…3346 (NousResearch#3395)

* perf(ttft): dedupe shared tool availability checks

* perf(ttft): short-circuit vision auto-resolution

* perf(ttft): make Claude Code version detection lazy

* perf(ttft): reuse loaded toolsets for skills prompt

---------

Co-authored-by: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants