Skip to content

feat(tui): add agent collaboration visualization with debates and consensus#926

Merged
JeremyDev87 merged 1 commit intomasterfrom
feat/agent-collaboration-visualization-831
Mar 25, 2026
Merged

feat(tui): add agent collaboration visualization with debates and consensus#926
JeremyDev87 merged 1 commit intomasterfrom
feat/agent-collaboration-visualization-831

Conversation

@JeremyDev87
Copy link
Owner

Summary

  • Add collaboration/ module with AgentOpinion protocol (stance: approve/concern/reject), DiscussionEngine for tracking multi-round debates, and TerminalFormatter for colored markdown output
  • Add AgentDiscussionPanel TUI component that replaces FlowMap when discussion data exists, showing agent opinions, cross-reviews, stance changes, and consensus meter
  • Add discussionRounds field to DashboardState with graceful FlowMap fallback when no discussion data
  • 47 new tests (TDD for engine/formatter, test-after for TUI), all 187 test files passing (5071 tests, 94.76% coverage)

Test plan

  • All 187 existing test files pass (0 regressions)
  • Types: AgentOpinion, Stance, CrossReview, DiscussionRound, ConsensusResult validated (11 tests)
  • DiscussionEngine: addOpinion, addCrossReview, nextRound, getConsensus, getAgentStanceHistory, reset (10 tests)
  • TerminalFormatter: formatOpinion, formatCrossReview, formatConsensus, formatDiscussionRound (11 tests)
  • AgentDiscussionPanel pure functions: renderOpinionLine, renderCrossReviewLine, renderConsensusLine, renderDiscussionPanel (10 tests)
  • AgentDiscussionPanel Ink component: renders opinions, consensus, cross-reviews, empty state, height truncation (5 tests)
  • lint, format:check, typecheck, circular, build all pass

Closes #831

…sensus (#831)

- Add AgentOpinion protocol with stance (approve/concern/reject), reasoning, suggestedChanges
- Add DiscussionEngine for tracking opinions, cross-reviews, and consensus calculation
- Add TerminalFormatter for rendering debates as colored markdown
- Add AgentDiscussionPanel TUI component replacing FlowMap when discussion data exists
- Add discussionRounds field to DashboardState with graceful FlowMap fallback
- 47 new tests across types, engine, formatter, and TUI components

Closes #831
@JeremyDev87 JeremyDev87 added feat tui TUI Agent Monitor labels Mar 25, 2026
@vercel
Copy link

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 25, 2026 2:44am

@JeremyDev87 JeremyDev87 self-assigned this Mar 25, 2026
@JeremyDev87 JeremyDev87 merged commit 4b999b1 into master Mar 25, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/agent-collaboration-visualization-831 branch March 25, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat tui TUI Agent Monitor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Agent collaboration visualization — debates, consensus, real-time UI (replace Flow Map)

1 participant