-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The docs show you can show/hide tools from primary agents using the tools config:
It would be useful to have similar control over which subagents a primary agent can invoke.
Proposed Solution
Add a subagents config option to control subagent visibility per primary agent:
{
"agent": {
"build": {
"subagents": {
"general": true,
"code-reviewer": false
}
}
}
}Use Case
I have certain primary agents with varying presets, e.g.
orchestratororchestrator-sloworchestrator-fast
These primary agents follow a loop, which calls underlying subagents. These subagents are specific to their orchestrator modes, and should not be invoked anywhere else.
However, by default, all subagents are available to all modes.
This has resulted in some cases of:
- An orchestrator mode calling the wrong subagent (rare)
- Regular build/plan agents calling the subagents made for orchestrator (e.g. when being asked to make a code edit).
A filter would prevent this from happening.
arsham, lcswillems and segfly
Metadata
Metadata
Assignees
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussion
{ "agent": { "plan": { "tools": { "write": false, "bash": false } } } }