Skip to content
bobum edited this page Nov 28, 2025 · 1 revision

Work Distribution Refactor

  1. 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
  2. Implement concurrency limiting based on agent count - 2 agents = max 2 work items running concurrently - As one completes, next queued item starts
  3. Remove monitor agent running alongside dev agents - Currently wasteful (burns tokens watching) - Move merge logic to post-completion phase

Post-Completion Merge Phase

  1. Add post-completion merge phase: mechanical merge first - After all dev work completes, try git merge (no AI) - Free and fast for clean merges
  2. Add Resolver Agent for conflict resolution - Only spin up if mechanical merge fails - AI understands code semantics to resolve conflicts
  3. Add automatic PR creation via gh CLI - After successful merge, create GitHub PR - Include summary of all changes from all work items

Telemetry Improvements

  1. 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
  2. Add LiteLLM callbacks for accurate token usage tracking - CrewAI uses LiteLLM which supports callbacks - Hook in to capture actual input/output tokens per agent
  3. Instrument git tools to report operations to telemetry - When agent commits/branches, report to telemetry - Real-time git activity in dashboard

UI Improvements

  1. 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

Clone this wiki locally