Skip to content

fix(agentic): hide Task tool when no subagents are available#900

Merged
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/task-tool-contextual-availability
May 26, 2026
Merged

fix(agentic): hide Task tool when no subagents are available#900
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/task-tool-contextual-availability

Conversation

@bobleer
Copy link
Copy Markdown
Collaborator

@bobleer bobleer commented May 26, 2026

Summary

  • Hide the Task tool from the model tool manifest when no enabled subagents are available for the current session context.
  • Remove redundant subagent delegation guidance from agent prompts and Task tool descriptions, since unavailable Task tooling no longer needs prompt-level guardrails.
  • Add a unit test ensuring contextual tool manifests omit unavailable tools from model definitions.

Test plan

  • cargo test -p bitfun-agent-tools contextual_manifest_omits_unavailable
  • cargo test -p bitfun-core task_prompt_guidance

Contextually omit Task from the model tool manifest when no enabled
subagents exist, and remove now-redundant subagent delegation guidance
from agent prompts and Task tool descriptions.
@bobleer bobleer merged commit 848946a into GCWing:main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant