Skip to content

[Bug]: Web/core toolsets not registered in default/config/--toolsets all path for local Ollama models; only explicit --toolsets web works #48083

Closed as not planned

Description

@cykamourn

Bug Description

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

  1. Local Ollama provider, toolsets: - hermes-cli in config (default).
  2. Launch plain hermes, ask it to list tools → only the skills catalog appears; no web_search/web_extract.
  3. hermes --toolsets web → web_search/web_extract present and working.
  4. hermes --toolsets web,terminal → all four tools present.
  5. 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.
  6. --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.

Affected Component

Tools (terminal, file ops, web, code execution, etc.), Skills (skill loading, skill hub, skill guard), Configuration (config.yaml, .env, hermes setup), CLI (interactive chat)

Messaging Platform (if gateway-related)

No response

Debug Report

Report       https://paste.rs/fzZ51
  agent.log    https://dpaste.com/9XHQR48YC
  desktop.log  https://paste.rs/hPXx6

Operating System

Pop!_OS 24.04 LTS

Python Version

3.11.15

Hermes Version

0.16.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    comp/toolsTool registry, model_tools, toolsets
    comp/cliCLI entry point, hermes_cli/, setup wizard
    tool/webWeb search and extraction
    P2Medium — degraded but workaround exists
    on Jun 17, 2026
  2. HeLLGURD commented on Jun 18, 2026

    @HeLLGURD

    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_search is 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
    • ?? Tool Search: N MCP/plugin tools deferred ... - confirms whether/when progressive disclosure activated

    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.

  3. Ben-Home commented on Jun 18, 2026

    @Ben-Home

    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:

    1. hermes-cli loads its bundled tools (terminal, file ops, process management)
    2. When --toolsets all is passed, the all alias should expand to every registered toolset
    3. 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.

  4. cykamourn commented on Jun 19, 2026

    @cykamourn
    Author

    @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 :)

  5. cykamourn commented on Jun 19, 2026

    @cykamourn
    Author

    Sry if I bombed you with notifications, not sure how the add/remove/delete/edits come through. :P

  6. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cliCLI entry point, hermes_cli/, setup wizardcomp/toolsTool registry, model_tools, toolsetsprovider/ollamaOllama / local modelssweeper:implemented-on-mainSweeper: behavior already present on current maintool/webWeb search and extractiontype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions