feat: add multi-agent support#842
Draft
abderrahime-elidrissi wants to merge 1 commit into
Draft
Conversation
98c43e6 to
7d48ecf
Compare
Contributor
|
this looks fun! |
Contributor
|
I'm happy to help unblock this, did you want to keep pushing it forward? |
Author
Hi @Connoropolous, |
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.
This pull request introduces a comprehensive team-based routing and multi-agent orchestration feature to the F1 platform, enabling advanced parallel development workflows for complex issues. The changes span configuration schemas, runtime logic, and prompt templates, and are validated by a detailed end-to-end test drive. The most notable enhancements include the addition of a
teamConfigsection for repository configuration, new schema types for routing and quality gates, a team-lead system prompt, and logic for detecting and processing team-labeled issues.Team Routing and Multi-Agent Configuration:
teamConfigsection in the repository configuration (server.ts,config-schemas.ts) to define routing rules, agent roles, execution patterns, model assignments, and quality gates for team-based workflows. This enables flexible mapping of issue labels and complexity to specific agent teams and execution strategies. [1] [2] [3]TeamConfig,RoutingRule,ModelByRole, andQualityGatesto support validation and type safety throughout the system. [1] [2] [3] [4]EdgeWorker and Team Routing Logic:
TeamRoutingEngineand logic inEdgeWorkerto detect team labels (both hardcoded and configured), enabling the selection of team-based procedures and bypassing standard AI routing when appropriate. [1] [2]Prompt and Agent Session Enhancements:
team-lead.md) that instructs the lead agent on decomposing work, spawning subagents, assigning models, and enforcing quality gates, tailored to the team configuration.CyrusAgentSessioninterface to include ateamRoutingfield, capturing the selected pattern, agents, model assignments, quality gates, and reasoning for traceability.Validation and Testing:
007-team-routing-validation.md) that walks through the full workflow, verifies correct routing and prompt assembly, and highlights a current blocker with the Claude SDK integration. The document includes recommendations for further improvements and next steps.Configuration Schema Updates:
teamlabel and prompt type, ensuring that team-based workflows can be configured and triggered via repository settings. [1] [2]These changes collectively enable robust, configurable, and testable team-based development workflows, laying the groundwork for advanced multi-agent collaboration in the F1 platform.