feat(subagents): add subagents system#3098
Open
brianjlandau wants to merge 26 commits into
Open
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the Contributor License Agreement (CLA) and hereby sign the CLA. |
…ator Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
… enum Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…late Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…beling Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ML key to disallowedTools Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…anslation Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…events Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…and async runtime IO Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
… in coordinator Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…urn aborts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
why subagents? is it useful for coding? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a full subagents system to Crush — discoverable, configurable child agents that the coordinator can dispatch via the
agenttool.name,description,model,provider,effort,color,permissionMode,tools,disallowedTools,skills,mcp_servers) discovered from configurable pathssubagent_typeenum built from active agents; builds each subagent with its own model/prompt/memory/permissions at dispatch timeskills:frontmatter suppresses full skill discovery; absentskills:keeps full accessauto(deterministic hash); used in running-status panel and modallow/medium/hightranslated to provider-specific thinking budgetsdefaultandbypassPermissions(auto-approves the sub-session)ctrl+xin help barresolveModelByIDresults memoized per(modelID, provider)and cleared on config reloadValidateoverlaps reportedTest plan
CGO_ENABLED=0 GOEXPERIMENT=greenteagc go build ./...CGO_ENABLED=0 GOEXPERIMENT=greenteagc go test ./internal/subagents/... ./internal/agent/....mdsubagent file in the discovery path — verify it appears in Library tab (Ctrl+X); also test@-mention completion in the editoragenttool enummodel:— verify parent agent gets a readable tool-error, not a crashctrl+x subagents; press Ctrl+G → binding in full help🤖 Generated with Claude Code