-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add 'subagents' command for configuring subagent-model assignments #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
feat: add 'subagents' command for configuring subagent-model assignments #710
Conversation
- Introduced a new command 'subagents' to allow users to configure subagent-model assignments via an interactive TUI. - Updated schema to include 'subagents' in the list of builtin command names. - Added a new template for the 'subagents' command detailing the two-step TUI flow for user interaction. - Enhanced the command definitions to support the new functionality. This addition enhances the user experience by providing a structured way to manage subagent configurations.
|
All contributors have signed the CLA. Thank you! ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
- Added a mandatory initial step to discover available models from OpenCode config files before displaying the UI. - Updated model selection step to show only models discovered in the initial step, dynamically numbered and grouped by provider for better readability. - Included handling for custom model input and improved messaging for cases with no configured providers. - Expanded the common models reference section for clearer descriptions of available models. These changes improve the user experience by ensuring that model selection is based on actual configurations, enhancing clarity and usability.
|
I have read the CLA Document and I hereby sign the CLA |
|
Hi! This screenshot seems to show the text overflowing the text box. Could that be resolved in any way? |
changes
Summary
/subagentscommand for interactive TUI-based subagent-model configurationMotivation
Previously, users had to manually edit
oh-my-opencode.jsonto change subagent model assignments. This was:The
/subagentscommand provides a user-friendly TUI that guides users through the configuration process.Changes
src/features/builtin-commands/templates/subagents.tssrc/features/builtin-commands/commands.tssubagentscommandsrc/features/builtin-commands/types.ts"subagents"toBuiltinCommandNamesrc/config/schema.ts"subagents"toBuiltinCommandNameSchemahow it works
Test plan
bun run typecheck- passesbun run build- compiles successfully/subagentsdisplays numbered list of all agentsexitcommand exits the TUIScreenshot
Testing
bun run typecheck bun testRelated Issues
Address issue #678