-
Notifications
You must be signed in to change notification settings - Fork 2
feat: improved agent coordination and removal of '3 phases' guidance #129
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: main
Are you sure you want to change the base?
Conversation
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. Testing This Branch via MCPTo test the changes in this specific branch with an MCP client like Claude Desktop, use the following configuration: {
"mcpServers": {
"connector-builder-mcp-dev": {
"command": "uvx",
"args": ["--from", "git+https://github.com/airbytehq/connector-builder-mcp.git@aj/fix/better-agent-coordination", "connector-builder-mcp"]
}
}
} Testing This Branch via CLIYou can test this version of the MCP Server using the following CLI snippet: # Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/connector-builder-mcp.git@aj/fix/better-agent-coordination#egg=airbyte-connector-builder-mcp' --help PR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
📝 WalkthroughWalkthroughThis PR removes three phase-guidance markdown files and deletes Pydantic phase data models. It replaces explicit phase-oriented prompts with a stepwise narrated task approach via INTERNAL_MONOLOGUE_GUIDANCE and updates several docstrings to use job/task wording. No runtime control-flow or algorithmic behavior changes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant M as Manager Agent
participant D as Developer Agent
participant T as Tools (mark_job_success/failed)
note over M,D: INTERNAL_MONOLOGUE_GUIDANCE included in both prompts
U->>M: Start connector build request
M->>M: Break work into small steps and narrate plan
loop For each step
M->>D: Assign next task with context + narration cues
D->>D: Execute step and narrate progress
alt Success
D->>T: mark_job_success
T-->>D: Ack
D-->>M: Step results
else Failure/blocked
D->>T: mark_job_failed
T-->>D: Ack
D-->>M: Error/needs info
end
M->>M: Decide next step or finish
end
M-->>U: Build outcome and artifacts
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Comment |
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.
Pull Request Overview
This PR refactors the connector building system by removing the rigid "3 phases" approach and replacing it with a more flexible task-based workflow. The change aims to improve agent coordination by allowing for more adaptive and incremental development steps.
- Removed the entire phases.py module containing Phase1Data, Phase2Data, and Phase3Data models
- Updated documentation and prompts to use "job" and "task" terminology instead of "phase"
- Replaced structured phase guidance with flexible step-by-step instructions
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
connector_builder_agents/src/tools.py | Updated function docstrings to reference "job" instead of "phase" |
connector_builder_agents/src/run.py | Removed "3-phase" reference from function docstring |
connector_builder_agents/src/phases.py | Completely removed file containing phase data models |
connector_builder_agents/src/guidance.py | Replaced phase-based workflow with flexible task-based instructions |
connector_builder_agents/src/agents.py | Updated agent descriptions to remove phase references |
connector_builder_agents/prompts/phase-3-remaining-streams.md | Removed phase-specific prompt file |
connector_builder_agents/prompts/phase-2-pagination.md | Removed phase-specific prompt file |
connector_builder_agents/prompts/phase-1-stream-read.md | Removed phase-specific prompt file |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
/build-connector
✳️ Show/Hide Summary OutputEvaluation Run SummaryExperiment: RXhwZXJpbWVudDo1Mw== Run Date: 2025-10-12 05:04 UTC
Experiment Stats
Per-Connector ResultsComparing to prior experiment: RXhwZXJpbWVudDo0OA==
|
Method: full-text search for 'phase' and replace with new instructions everywhere.
Summary by CodeRabbit
Refactor
Documentation
Chores