Skip to content

πŸ”„ Ralph Loop: Spacebot Kanban UI Overhaul β€” Cline-inspired Multi-Agent DashboardΒ #5

Description

@marcmantei

🎯 Vision

Transform Spacebot's functional-but-basic Kanban board into a production-grade multi-agent orchestration dashboard β€” inspired by Cline's Kanban UI, designed to make managing 10+ concurrent AI workers feel effortless and beautiful.

The current AgentTasks.tsx has solid bones: framer-motion animations, SSE-driven live updates, task CRUD, status columns. What it lacks is the intelligence layer and visual polish that makes it a genuine power-user tool.

πŸ—οΈ Architecture Analysis

Key files:

  • interface/src/routes/AgentTasks.tsx β€” Main Kanban board (KanbanColumn, TaskCard, dialogs)
  • interface/src/routes/AgentWorkers.tsx β€” Worker detail view with live transcripts (pattern to follow)
  • interface/src/api/client.ts β€” TaskItem, TaskStatus, TaskPriority types + API calls
  • interface/src/hooks/useLiveContext.tsx β€” SSE live state (taskEventVersion, activeWorkers)
  • interface/src/ui/ β€” Design system (Badge, Button, Dialog, etc.)

Already available (installed, not yet used):

  • @dnd-kit/core, @dnd-kit/sortable, @dnd-kit/utilities β€” drag-and-drop ready to use!
  • framer-motion β€” already used for card animations
  • Tailwind with custom app-* color tokens (dark theme base)

API surface (from client.ts):

  • api.listTasks(agentId) β€” returns TaskItem[]
  • api.updateTask(agentId, taskNumber, { status, priority }) β€” enables drop-to-move
  • api.approveTask, api.executeTask, api.deleteTask
  • TaskItem has: id, task_number, title, description, status, priority, subtasks, worker_id, created_at, updated_at, created_by

πŸ“‹ Phase Plan

Phase 1 β€” Visual Foundation

  • Drag-and-drop between columns using @dnd-kit (already installed, zero new deps)
  • Enhanced card design: priority color left-border strip, larger status indicators
  • Better hover states with shadow lift effect
  • Timestamps displayed more prominently (relative + absolute on hover)
  • Column-level drop zone highlight when dragging
  • Smooth drop animation with optimistic updates

Issue: feat/kanban-phase1-visual-foundation β†’ #TBD

Phase 2 β€” Real-time Agent Intelligence

  • Agent activity live-feed on each card (last status message from active worker)
  • Live worker badge on card when task.worker_id is active (links to Workers tab)
  • Activity timeline in detail dialog (history of status changes + timestamps)
  • Agent status pulse animation on in-progress cards

Issue: Created after Phase 1 merges

Phase 3 β€” Power Features

  • Inline status comment β†’ forwarded to active worker as follow-up message
  • Task dependency chaining (task B auto-moves to "ready" when task A hits "done")
  • Sidebar decomposition helper (freeform text β†’ structured subtasks via AI)

Issue: Created after Phase 2 merges

Phase 4 β€” Git UI + Multi-Agent Verification

  • Minimal git panel: branch list, last commit, PR status per worktree
  • Multi-agent stress test: spawn 3 concurrent test tasks, verify Kanban handles all correctly
  • Performance audit: ensure board stays snappy with 50+ tasks

Issue: Created after Phase 3 merges

πŸ“Š Progress Log

Updated automatically by the architect on each iteration.

2026-03-27 β€” Ralph Loop activated. Codebase analyzed. @dnd-kit already installed β€” Phase 1 can start immediately without new dependencies. Creating Phase 1 implementation issue now.


PRD (auto-generated by Spacebot)

Summary

This is the Ralph Loop tracking issue coordinating a 4-phase overhaul of Spacebot's Kanban UI from a basic task board into a production-grade multi-agent orchestration dashboard. It tracks progress across all sub-issues and auto-coordinates sequencing between phases.

Complexity

Planning β€” This is an orchestration/tracking issue spanning ~4 implementation phases; no direct code changes here, but it gates feature work for the entire Kanban UI roadmap.

Acceptance Criteria

  • Phase 1 (Visual Foundation) implemented and merged β€” drag-and-drop, card polish, priority colors
  • Phase 2 (Real-time Agent Intelligence) implemented and merged β€” live feeds, worker badges
  • Phase 3 (Power Features) implemented and merged β€” dependency chaining, decomposition helper
  • Phase 4 (Git UI + Multi-Agent Verification) implemented and merged
  • All sub-issues closed and referenced in progress log
  • Ralph Loop issue closed upon final phase completion

Technical Context

  • Key files: interface/src/routes/AgentTasks.tsx, interface/src/routes/AgentWorkers.tsx, interface/src/api/client.ts, interface/src/hooks/useLiveContext.tsx, interface/src/ui/
  • Dependencies: @dnd-kit/core v6.3.1, @dnd-kit/sortable v10.0.0, @dnd-kit/utilities v3.2.2, framer-motion (all already installed)
  • Architecture notes: SSE-driven live state via useLiveContext; updateTask API supports status + priority updates; all phases build on the same AgentTasks.tsx root component; each phase should be a separate PR

Edge Cases

  • Multiple phases must be sequenced β€” do not start Phase 2 before Phase 1 is merged to avoid rebase conflicts
  • Optimistic updates in Phase 1 must handle API failure gracefully (revert on error)
  • Performance with 50+ concurrent tasks must be validated in Phase 4

Out of Scope

  • Backend/Rust API changes (Phases 1-2 are pure frontend)
  • New dependencies β€” @dnd-kit already installed, no new packages needed for Phase 1
  • Mobile/touch support beyond what @dnd-kit provides by default

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions