-
Notifications
You must be signed in to change notification settings - Fork 0
Home
bobum edited this page Nov 28, 2025
·
1 revision
Work Distribution Refactor
- Fix work distribution: agents as concurrency dial, one task per work item - Database agents = persona templates + concurrency limit - Each work item gets its own CrewAI agent instance + worktree
- Implement concurrency limiting based on agent count - 2 agents = max 2 work items running concurrently - As one completes, next queued item starts
- Remove monitor agent running alongside dev agents - Currently wasteful (burns tokens watching) - Move merge logic to post-completion phase
Post-Completion Merge Phase
- Add post-completion merge phase: mechanical merge first - After all dev work completes, try git merge (no AI) - Free and fast for clean merges
- Add Resolver Agent for conflict resolution - Only spin up if mechanical merge fails - AI understands code semantics to resolve conflicts
- Add automatic PR creation via gh CLI - After successful merge, create GitHub PR - Include summary of all changes from all work items
Telemetry Improvements
- Fix telemetry: pipe CrewAI logs to TelemetryCollector.process_log_line() - Currently process_log_line() exists but never called - Need to connect CrewAI stdout to telemetry collector
- Add LiteLLM callbacks for accurate token usage tracking - CrewAI uses LiteLLM which supports callbacks - Hook in to capture actual input/output tokens per agent
- Instrument git tools to report operations to telemetry - When agent commits/branches, report to telemetry - Real-time git activity in dashboard
UI Improvements
- Show completed work item results in UI - Display commits made (messages, file counts) - Show branch name and link - Files changed summary - Render in work item card on team detail page