How shriyashish-mishra/who-broke-it works
Who Broke It? is a local-first coordination tool for engineering teams and AI agents. Users plan a repository into a task graph, start scoped work, declare intent, submit handoffs, and have the Judge verify completion; status and traceability views expose progress and impact. The graph also preserves documented capabilities for agent adapters, MCP, pull-request workflows, and git-based team sync. Relationships below are grounded in the README and the supplied source index; unsampled implementation details are not inferred.
Main entry points: engine.go Coordination engine · main.go CLI commands · replicate.go Git state replication · render.go Terminal views
Components 21
User interfaces
- CLI commands
cmd/wbi/main.go - MCP server
internal/mcp/mcp.go - Terminal views
internal/render/render.go - Dashboard
internal/dashboard/dashboard.go
Planning and policy
- Repository planner
internal/planner/planner.go - Constitution rules
internal/rules/rules.go - Task graph logic
internal/graph/graph.go
Task coordination
- Coordination engine
internal/engine/engine.go - Intent conflicts
internal/intent/intent.go - Agent adapters
internal/engine/adapters.go
Verification and insight
- Handoff and Judge
internal/engine/judge.go - Status and drift
internal/engine/insight.go - Blast radius
internal/blast/blast.go - Code dependency scan
internal/codegraph/codegraph.go - Pull request workflow
internal/engine/pr.go
State and sync
- Project records
internal/store/store.go - Local runtime state
internal/state/state.go - Git state replication
internal/replicate/replicate.go - Git operations
internal/gitx/gitx.go
Other components
- Engineer or agent
- Git remote
Connections 30
- Engineer or agent → CLI commands: runs commands
README.md - Engineer or agent → MCP server: uses tools
README.md - CLI commands → Coordination engine: dispatches commands
cmd/wbi/main.go - CLI commands → MCP server: starts server
cmd/wbi/main.go - CLI commands → Terminal views: formats results
cmd/wbi/main.go - CLI commands → Dashboard: serves dashboard
cmd/wbi/main.go - MCP server → Coordination engine: invokes operations
internal/mcp/mcp.go - Coordination engine → Repository planner: creates plans
- Repository planner → Task graph logic: builds dependencies
internal/planner/planner.go - Coordination engine → Task graph logic: evaluates dependencies
internal/engine/engine.go - Coordination engine → Intent conflicts: checks declarations
internal/engine/engine.go - Coordination engine → Constitution rules: loads task rules
internal/engine/engine.go - Coordination engine → Agent adapters: configures agents
README.md - Coordination engine → Handoff and Judge: submits handoffs
README.md - Handoff and Judge → Constitution rules: checks violations
internal/engine/judge.go - Coordination engine → Status and drift: reports progress
README.md - Status and drift → Constitution rules: checks drift
internal/engine/insight.go - Coordination engine → Blast radius: computes impact
internal/engine/engine.go - Blast radius → Code dependency scan: scans imports
internal/blast/blast.go - Terminal views → Coordination engine: formats views
internal/render/render.go - Terminal views → Blast radius: renders impact
internal/render/render.go - Dashboard → Coordination engine: reads status
internal/dashboard/dashboard.go - Coordination engine → Project records: reads project records
internal/engine/engine.go - Coordination engine → Local runtime state: opens runtime state
internal/engine/engine.go - Coordination engine → Git state replication: syncs coordination
- Git state replication → Local runtime state: replays events
internal/replicate/replicate.go - Git state replication → Git operations: fetches and pushes
internal/replicate/replicate.go - Git state replication → Git remote: publishes log
internal/replicate/replicate.go - Coordination engine → Pull request workflow: builds pull requests
README.md - Pull request workflow → Git operations: uses repository refs