Overhaul agentd top for proper interactive TUI

t-468·WorkTask·
·
·
·agentd.hs
Created1 month ago·Updated4 weeks ago

Description

Edit

agentd top is currently broken in several ways:

1. Does not auto-refresh - should poll container status every ~1 second 2. Shows stale running agents that are actually stopped - needs to sync with actual container state 3. Enter key for details/follow log does not work - keybindings not implemented 4. Logs do not stream properly (agentd watch times out, doesn't show output)

Suggestions:

  • Implement proper auto-refresh with container state reconciliation
  • Use a proper TUI library like blessed-contrib or rich (if Python) instead of raw polling
  • Implement interactive keybindings (enter for details, l for logs, q to quit, etc.)
  • Fix log streaming to handle long-running agents without timing out
  • Show actual resource usage (cpu/mem) from docker stats

This is critical for agentd usability - it's the primary interface for monitoring delegated agents.

Timeline (1)

🔄[human]Open → Done4 weeks ago