-
Notifications
You must be signed in to change notification settings - Fork 2
Write custom CoordinatorStrategy for code review routing #16
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
What
Create a custom CoordinatorStrategy that routes code review tasks to the most appropriate reviewer agent based on programming language, diff complexity, and reviewer expertise.
Why
The examples/custom-coordinator-strategy/ currently has a healthcare example. A code review routing strategy would be relatable to most developers and demonstrate the Coordinator pattern in a familiar domain.
How
- Subclass
DefaultCoordinatorStrategy(seesdk/python/jamjet/coordinator/default_strategy.py) - Override
score()to weight language expertise and diff complexity - Create mock agents (e.g., python-reviewer, rust-reviewer, frontend-reviewer)
- Add as
examples/code-review-routing/main.py
Key Concepts
from jamjet.coordinator import DefaultCoordinatorStrategy, DimensionScores
class CodeReviewStrategy(DefaultCoordinatorStrategy):
async def score(self, task, candidates, weights, context):
# Weight language match heavily
# Consider diff size for latency estimation
...Resources
examples/custom-coordinator-strategy/main.py— healthcare strategy examplesdk/python/jamjet/coordinator/strategy.py— base class and types
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed