feat: add feature-lead engine#2
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
- Add Task, CoderOutput, FeatureLeadResult types and FeatureLeadRunner interface to orchestrator package - Add Option/WithFeatureLeadRunner functional option to Orchestrator (backward-compatible change to New signature) - Add optional Step 5 in Orchestrator.Run invoking FeatureLeadRunner for each FeatureLead; results stored in Result.FeatureLeadResults - New featurelead package: Engine implements FeatureLeadRunner with a two-step workflow (task breakdown + per-task coder agent) - Tests for featurelead package including orchestrator integration test - main.go: --task-breaker-agent and --coder-agent flags wire up the feature-lead engine when both are supplied Co-authored-by: iamangus <13301891+iamangus@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add feature lead engine for orchestrator integration
feat: add feature-lead engine
Mar 16, 2026
… code-mcp via HTTP; add monitorOrchBranch background goroutine for PR description updates and promotion
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.
Adds the feature-lead engine — a two-step agentic workflow invoked by the orchestrator for each
FeatureLeadit produces. The engine breaks a feature into discrete tasks via a task-breaker agent, then drives a coder agent to implement each task against the feature's resolved contracts.New types in
orchestratorTask— discrete implementable unit (name, description, acceptance criteria, files)CoderOutput— coder agent response tied to a taskFeatureLeadResult— aggregated result per lead (tasks + coder outputs)FeatureLeadRunnerinterface — decouples the orchestrator from the engine implementation;featureleadimportsorchestrator, not the reverseorchestrator.New— functional options (backward-compatible)Result.FeatureLeadResults(omitempty) is populated only when a runner is configured.New
featureleadpackageEngineimplementsFeatureLeadRunnerwith two steps:FeatureLeadJSON into[]TaskRequiredContractsandProvidedContractsmain.goTwo new optional flags —
--task-breaker-agentand--coder-agent— must be supplied together. When present, afeaturelead.Engineis wired into the orchestrator.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.