jev-skill-suggestion: the default 800ms timeoutMs loses the second request on a large catalogue

Author: MAXxATTAXxCreated Sep 22, 2026Updated Sep 22, 2026

The jev-skill-suggestion mod defaults timeoutMs to 800, in .claude-plugin/plugin.json and as the number('timeoutMs', 800) fallback in hooks/jev-skill-suggestion.ts. The same budget is applied to both requests, through one Promise.race against $.clock.sleep(timeoutMs).

The two requests are not the same shape. The first sends one choice over the skill names and three gate nouls. The second reads the opening of each shortlisted skill's SKILL.md (excerptChars, 700 by default) and asks one noul per candidate, so at the default shortlist of 3 it carries three file bodies and four questions. Reading bodies is what makes it slow.

Measured on a 452-skill catalogue against OpenRouter's decisions API, with the shipped defaults:

[jev-skill-suggestion] rerank passed 800ms; no suggestion

at 802ms. The same prompt with timeoutMs raised to 2500 in pluginConfigs succeeds:

[jev-skill-suggestion] jev: rerank -> drawio:drawio (1.00) - fits drawio:drawio 0.97

So on a catalogue of this size the shipped default loses the second request, and the mod falls back to no suggestion on every prompt. It fails open, so nothing breaks, but the rerank never gets to run and the false-positive check it exists for never happens. The first request is unaffected.

Two options, and I do not have a strong view on which is right:

  • raise the default, which needs a number someone is happy to spend at prompt.submit
  • give the second request its own budget, since its cost scales with shortlist and excerptChars while the first request's does not

I have not opened a PR because the right number depends on what latency the maintainers consider acceptable before the turn starts. Happy to send one if there is a preference.

Source: davila7/claude-code-templates