Skip to content

fix(honcho): auto-enable honcho toolset when configured - #4553

Closed
Bartok9 wants to merge 1 commit into
NousResearch:mainfrom
Bartok9:fix/honcho-toolset-auto-enable
Closed

fix(honcho): auto-enable honcho toolset when configured#4553
Bartok9 wants to merge 1 commit into
NousResearch:mainfrom
Bartok9:fix/honcho-toolset-auto-enable

Conversation

@Bartok9

@Bartok9 Bartok9 commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

When users have explicit platform_toolsets configured in config.yaml (created by running hermes tools), the Honcho tools (honcho_context, honcho_profile, honcho_search, honcho_conclude) were missing from the tool surface despite Honcho being active and context injection working correctly.

Root Cause

The honcho toolset is defined in toolsets.py but is not in CONFIGURABLE_TOOLSETS in hermes_cli/tools_config.py. When _get_platform_tools() resolves which toolsets to enable for a platform, it only considers CONFIGURABLE_TOOLSETS entries (plus plugin toolsets). Since honcho is not in either list, it was excluded from enabled_toolsets.

Fix

Auto-inject the honcho toolset in _get_platform_tools() when a valid Honcho config exists (enabled=True with api_key or base_url set), following the same pattern used for plugin toolsets.

Changes

  • Add honcho auto-enable check in _get_platform_tools() after plugin toolset handling
  • Add tests for:
    • Honcho auto-enabled when configured
    • Honcho NOT enabled when not configured (import fails)
    • Honcho NOT enabled when explicitly disabled

Testing

All new tests pass:

pytest tests/hermes_cli/test_tools_config.py -k honcho -xvs
======================== 3 passed, 3 warnings in 4.74s =========================

Fixes #4523

…#4523)

When users have explicit `platform_toolsets` configured in config.yaml
(created by running `hermes tools`), the Honcho tools were missing from
the tool surface despite Honcho being active and context injection working.

This happened because `honcho` is not in `CONFIGURABLE_TOOLSETS`, so it
was excluded when `_get_platform_tools()` resolved which toolsets to enable.

This fix adds logic to auto-inject the `honcho` toolset when a valid
HonchoClientConfig exists (enabled=True with api_key or base_url set),
following the same pattern used for plugin toolsets.

- Add honcho auto-enable check in `_get_platform_tools()`
- Add tests for honcho auto-enable behavior
- Ensure honcho is available on all platforms when configured

Fixes NousResearch#4523
@Bartok9

Bartok9 commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #14408 — rebased onto current main with full coverage.

@Bartok9 Bartok9 closed this Apr 23, 2026
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/tools Tool registry, model_tools, toolsets comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 23, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Superseded by #14408 (rebased version).

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

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/tools Tool registry, model_tools, toolsets P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(honcho): honcho toolset excluded from tool surface when platform_toolsets is configured

3 participants