Skip to content

fix(kanban): enable kanban tools for profiles with kanban in toolsets config#18991

Closed
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/18968-kanban-toolsets-config
Closed

fix(kanban): enable kanban tools for profiles with kanban in toolsets config#18991
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/18968-kanban-toolsets-config

Conversation

@shellybotmoyer

Copy link
Copy Markdown
Contributor

Fix

_check_kanban_mode() now also returns True when the current profile has kanban in its toolsets config, not just when HERMES_KANBAN_TASK is set in the environment.

Problem

The _check_kanban_mode() gating function only checked os.environ.get("HERMES_KANBAN_TASK"), which is only set by the kanban dispatcher when spawning a worker process. This meant:

  • Orchestrator profiles with kanban in their toolsets config saw zero kanban tools
  • The agent would hallucinate task creation because SOUL.md instructs it to use kanban tools that don't exist in its schema
  • Only dispatched workers (with the env var set) could use kanban tools

Fix

Extended _check_kanban_mode() to also check load_config() for "kanban" in the current profile's toolsets list. Uses the same mtime-cached load_config() that other check_fn functions use, so this is cheap on repeated calls.

The existing env-var check is preserved as the first (faster) path, so there's no performance regression for dispatched workers.

Testing

  • Workers with HERMES_KANBAN_TASK set → still get all kanban tools (env var check runs first)
  • Profiles with toolsets: [kanban, ...] → now get all kanban tools
  • Profiles without kanban in toolsets and no env var → still see zero kanban tools

Fixes #18968

… config

_check_kanban_mode() now also returns True when the current profile has kanban in its toolsets config, not just when HERMES_KANBAN_TASK is set. This allows orchestrator profiles to use kanban tools without being dispatched workers.

Fixes NousResearch#18968
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/tools Tool registry, model_tools, toolsets labels May 2, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #18968 (issue this fixes), and competing PRs #18970 and #18971 which address the same bug.

1 similar comment
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #18968 (issue this fixes), and competing PRs #18970 and #18971 which address the same bug.

@teknium1

teknium1 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Closing as duplicate of #18970 (and #18971, also yours). Same fix shape. Merged #19606 which used @pdonizete's commit — they submitted first and authored the underlying issue. Thanks for the contribution.

@teknium1 teknium1 closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Kanban tools not visible to orchestrator profiles with kanban toolset enabled

3 participants