You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Web/core toolsets not registered in default/config/--toolsets all path for local Ollama models; only explicit --toolsets web works #48083
The web toolset (web_search/web_extract) is not handed to the model in the default launch, via toolsets: in config, or via --toolsets all. It is only registered when named explicitly on the CLI (e.g. --toolsets web or --toolsets web,terminal). Affected models then fall back to fabricating answers instead of calling tools (tool_turns=0).
Steps to Reproduce
Local Ollama provider, toolsets: - hermes-cli in config (default).
Launch plain hermes, ask it to list tools → only the skills catalog appears; no web_search/web_extract.
hermes --toolsets web → web_search/web_extract present and working.
hermes --toolsets web,terminal → all four tools present.
hermes --toolsets web,browser,terminal,file,code_execution,skills,todo,memory,session_search,clarify → web tools absent again (skills catalog returned). Removing skills from the list restores web tools.
--toolsets all → web tools absent.
Expected Behavior
Default/config/all paths register the same core toolsets (incl. web) as the explicit --toolsets flag, regardless of a local model's models.dev capability metadata.
Actual Behavior
Can't get hermes to recognize any web tools nor use web search unless I specifically flag the hermes run with hermes --toolset web. I have had success with some models without having to specifically set --toolset web, but most fail. Primarily tested with qwen 2.5, 3, 3.5 and 3.6, none of which worked.
I traced this through the tool-loading path and wanted to share what I found, since the root cause doesn't look like a simple "the all path drops web."
Web tools are core and protected from deferral
web_search / web_extract are in toolsets._HERMES_CORE_TOOLS, and the progressive-disclosure layer explicitly never defers core tools:
tool_search.is_deferrable_tool_name() returns False for any name in _core_tool_names() (= frozenset(_HERMES_CORE_TOOLS)), so classify_tools() always puts web_search/web_extract in the visible set, never the deferrable one (tools/tool_search.py).
The runtime resolver model_tools._compute_tool_definitions() builds tools_to_include purely from the resolved toolset names, then filters by registry.get_definitions() (per-tool check_fn). Crucially, that filtering is independent of which other toolsets are in the set - so on its own it can't explain "web disappears only when skills is also enabled."
The debug report actually shows web working in the all path
In the attached report (toolsets: all, ollama-cloud / qwen3-vl), web_searchis registered and used successfully via SearXNG (only web_extract fails, and that's a separate Tavily 401 / missing-key issue). That matches the "some models work without --toolsets web, but most fail" note - i.e. the behavior is inconsistent / model-dependent, not a deterministic drop in the all/config path.
What would pin it
The decisive signal is the non-quiet tool-loading output. Could you run the failing case in the CLI (not gateway, so quiet_mode is off) and paste these lines?
hermes --toolsets web,terminal,skills # the minimal repro from step 5
Relevant lines printed by model_tools._compute_tool_definitions():
? Enabled toolset '<name>': <tools> - confirms web_search/web_extract make it into tools_to_include
??? Final tool selection (N tools): ... - confirms whether they survive check_fn + assembly
If web_search shows up in "Enabled toolset" but not in "Final tool selection", the drop is at registry.get_definitions() (check_fn) - and a per-model check_fn flake (e.g. the TTL-cached web-provider probe resolving differently when more toolsets are initialized in the same run) would be the most likely culprit, which would also explain the skills-present correlation. If it never shows in "Enabled toolset", the drop is upstream in toolset resolution.
Also useful: the configured model's resolved context_length for the failing models (qwen 2.5/3/3.5/3.6) - a very small or unresolved value shrinks the Tool Search threshold (_resolve_active_context_length() ? 10% of context), which changes when deferral activates between models.
Happy to put up a fix once we can see which of those two stages is dropping it.
This is likely a toolsets resolution ordering issue in the Ollama provider path. The hermes-cli toolset includes terminal and filesystem tools but may not compose web into the resolved set. Here's what's happening:
The toolsets resolution chain for Ollama:
hermes-cli loads its bundled tools (terminal, file ops, process management)
When --toolsets all is passed, the all alias should expand to every registered toolset
But the Ollama path seems to resolve all from the provider's toolset registry, which may not include web if web tools are gated behind a provider check (e.g., "only for cloud providers")
The fix is likely in the toolsets composition logic:
all should mean "all toolsets registered in the profile config" regardless of provider
The web toolset should be provider-agnostic (web_search + web_extract don't care which LLM backend you use)
Explicit --toolsets web,terminal,hermes-cli works because it bypasses the resolution chain entirely
Workaround until fixed: Launch with --toolsets web,hermes-cli explicitly. This is also the safest pattern for production use — explicit toolset declaration avoids surprises when toolset registries change across updates. We use this approach in our MCP deployment where we explicitly list every toolset rather than relying on all resolution.
@HeLLGURD
Tested at logging.level: DEBUG. Findings:
Web providers register correctly: agent.web_search_registry loads searxng/tavily/exa/etc. at startup, and SearXNG works when web tools are actually invoked.
But the web_search tool doesn't reliably reach the model. With -t web (no terminal fallback) and an explicit "search the web for the current weather" prompt, the model still produces no web_search call and no tools.web_tools: Web search via searxng line, it answers without searching. Across interactive runs the model variously fabricates or substitutes a terminal/curl wttr.in call; with terminal removed it just doesn't search. From the outside this looks like web_search not being offered to the model rather than the model declining it, but I can't confirm because:
The decisive lines are unreachable. Enabled toolset / Final tool selection from _compute_tool_definitions never appear in agent.log even at DEBUG (I get full output from hermes_cli.plugins, agent.web_search_registry, agent.auxiliary_client, tools.browser_tool, but nothing from model_tools). In interactive mode the TUI owns stdout so they can't be captured from the console either. If there's a way to route that function's output to the log file, I'll grab the signal.
Minor: --toolsets is rejected as unrecognized arguments in the -z/subcommand path; only -t parses there.
qwen3.5:9b → 262,144 <- didn't work
qwen3.6:27b → 262,144 <- didn't work
qwen3:8b → 40,960 <- wouldn't even attempt, size was too small
qwen3-8b-intent:latest → 40,960 <- wouldn't even attempt, size was too small
huihui qwen3-vl-abliterated:8b → 262,144 <- worked
@Ben-Home
Good to know re the workaround, I'll try using that when I next dive into this. I'm mid a large automation project I want to wrap up first though. Claude's guardrails tightening messed me up thou so I was trying to get it going through hermes, alas I am trying out grok for now as I'm driving it instead of agentically building it but will likely be running it with hermes/crons :)
This is an automated hermes-sweeper review. Current main implements the requested default/all registration behavior.
hermes_cli/config.py:981 defaults to hermes-cli; toolsets.py:430-433 makes that composite use _HERMES_CORE_TOOLS, which explicitly includes web_search and web_extract at toolsets.py:31-34.
cli.py:15904-15906 resolves the ordinary CLI path through the shared platform resolver, while toolsets.py:710-718 makes all union every toolset.
tools/tool_search.py:163-208 and model_tools.py:537-563 keep core tools visible regardless of Tool Search/context-length activation.
The later report comment also established that an explicit -t web session could still decline to call the tool, distinguishing model behavior from schema registration.
A separate open report, #64503, tracks the distinct disabled_toolsets: [browser] overlap case.
Activity
HeLLGURD commentedon Jun 18, 2026
I traced this through the tool-loading path and wanted to share what I found, since the root cause doesn't look like a simple "the
allpath drops web."Web tools are core and protected from deferral
web_search/web_extractare intoolsets._HERMES_CORE_TOOLS, and the progressive-disclosure layer explicitly never defers core tools:tool_search.is_deferrable_tool_name()returnsFalsefor any name in_core_tool_names()(=frozenset(_HERMES_CORE_TOOLS)), soclassify_tools()always putsweb_search/web_extractin the visible set, never the deferrable one (tools/tool_search.py).model_tools._compute_tool_definitions()buildstools_to_includepurely from the resolved toolset names, then filters byregistry.get_definitions()(per-toolcheck_fn). Crucially, that filtering is independent of which other toolsets are in the set - so on its own it can't explain "web disappears only whenskillsis also enabled."The debug report actually shows web working in the
allpathIn the attached report (
toolsets: all,ollama-cloud/qwen3-vl),web_searchis registered and used successfully via SearXNG (onlyweb_extractfails, and that's a separate Tavily 401 / missing-key issue). That matches the "some models work without--toolsets web, but most fail" note - i.e. the behavior is inconsistent / model-dependent, not a deterministic drop in theall/config path.What would pin it
The decisive signal is the non-quiet tool-loading output. Could you run the failing case in the CLI (not gateway, so
quiet_modeis off) and paste these lines?Relevant lines printed by
model_tools._compute_tool_definitions():? Enabled toolset '<name>': <tools>- confirmsweb_search/web_extractmake it intotools_to_include??? Final tool selection (N tools): ...- confirms whether they survivecheck_fn+ assembly?? Tool Search: N MCP/plugin tools deferred ...- confirms whether/when progressive disclosure activatedIf
web_searchshows up in "Enabled toolset" but not in "Final tool selection", the drop is atregistry.get_definitions()(check_fn) - and a per-modelcheck_fnflake (e.g. the TTL-cached web-provider probe resolving differently when more toolsets are initialized in the same run) would be the most likely culprit, which would also explain theskills-present correlation. If it never shows in "Enabled toolset", the drop is upstream in toolset resolution.Also useful: the configured model's resolved
context_lengthfor the failing models (qwen 2.5/3/3.5/3.6) - a very small or unresolved value shrinks the Tool Search threshold (_resolve_active_context_length()? 10% of context), which changes when deferral activates between models.Happy to put up a fix once we can see which of those two stages is dropping it.
Ben-Home commentedon Jun 18, 2026
This is likely a toolsets resolution ordering issue in the Ollama provider path. The
hermes-clitoolset includes terminal and filesystem tools but may not composewebinto the resolved set. Here's what's happening:The toolsets resolution chain for Ollama:
hermes-cliloads its bundled tools (terminal, file ops, process management)--toolsets allis passed, theallalias should expand to every registered toolsetallfrom the provider's toolset registry, which may not includewebif web tools are gated behind a provider check (e.g., "only for cloud providers")The fix is likely in the toolsets composition logic:
allshould mean "all toolsets registered in the profile config" regardless of provider--toolsets web,terminal,hermes-cliworks because it bypasses the resolution chain entirelyWorkaround until fixed: Launch with
--toolsets web,hermes-cliexplicitly. This is also the safest pattern for production use — explicit toolset declaration avoids surprises when toolset registries change across updates. We use this approach in our MCP deployment where we explicitly list every toolset rather than relying onallresolution.cykamourn commentedon Jun 19, 2026
@HeLLGURD
Tested at logging.level: DEBUG. Findings:
Web providers register correctly: agent.web_search_registry loads searxng/tavily/exa/etc. at startup, and SearXNG works when web tools are actually invoked.
But the web_search tool doesn't reliably reach the model. With -t web (no terminal fallback) and an explicit "search the web for the current weather" prompt, the model still produces no web_search call and no tools.web_tools: Web search via searxng line, it answers without searching. Across interactive runs the model variously fabricates or substitutes a terminal/curl wttr.in call; with terminal removed it just doesn't search. From the outside this looks like web_search not being offered to the model rather than the model declining it, but I can't confirm because:
The decisive lines are unreachable. Enabled toolset / Final tool selection from _compute_tool_definitions never appear in agent.log even at DEBUG (I get full output from hermes_cli.plugins, agent.web_search_registry, agent.auxiliary_client, tools.browser_tool, but nothing from model_tools). In interactive mode the TUI owns stdout so they can't be captured from the console either. If there's a way to route that function's output to the log file, I'll grab the signal.
Minor: --toolsets is rejected as unrecognized arguments in the -z/subcommand path; only -t parses there.
qwen3.5:9b → 262,144 <- didn't work
qwen3.6:27b → 262,144 <- didn't work
qwen3:8b → 40,960 <- wouldn't even attempt, size was too small
qwen3-8b-intent:latest → 40,960 <- wouldn't even attempt, size was too small
huihui qwen3-vl-abliterated:8b → 262,144 <- worked
@Ben-Home
Good to know re the workaround, I'll try using that when I next dive into this. I'm mid a large automation project I want to wrap up first though. Claude's guardrails tightening messed me up thou so I was trying to get it going through hermes, alas I am trying out grok for now as I'm driving it instead of agentically building it but will likely be running it with hermes/crons :)
cykamourn commentedon Jun 19, 2026
Sry if I bombed you with notifications, not sure how the add/remove/delete/edits come through. :P
teknium1 commentedon Jul 14, 2026
This is an automated hermes-sweeper review. Current
mainimplements the requested default/all registration behavior.hermes_cli/config.py:981defaults tohermes-cli;toolsets.py:430-433makes that composite use_HERMES_CORE_TOOLS, which explicitly includesweb_searchandweb_extractattoolsets.py:31-34.cli.py:15904-15906resolves the ordinary CLI path through the shared platform resolver, whiletoolsets.py:710-718makesallunion every toolset.tools/tool_search.py:163-208andmodel_tools.py:537-563keep core tools visible regardless of Tool Search/context-length activation.-t websession could still decline to call the tool, distinguishing model behavior from schema registration.A separate open report, #64503, tracks the distinct
disabled_toolsets: [browser]overlap case.