[agent-friendly] Script: Handoff state viewer (CLI) · Issue #46 · workswithagents/specs · GitHub
Skip to content

[agent-friendly] Script: Handoff state viewer (CLI) #46

Description

@vystartasv

Agent Task

Goal: Write a CLI tool that connects to a running WWA agent and displays its active handoff state — like htop for agent tasks.

Agent Instructions

agent: Claude Code, Codex, Cursor, Copilot, Generic MCP
goal: Create a handoff viewer CLI under reference/community/scripts/handoff-viewer/
inputs:
  - handoff.md (spec)
  - reference/agent/ (the reference agent implements /health)
outputs:
  - handoff-viewer.py — CLI that:
    - Takes --agent-url (default http://localhost:8787)
    - Calls /health to get active_handoffs count + peer list
    - Calls /iacp/message with a query handoff to see task state
    - Displays a live-updating table (refreshes every 5s)
    - Shows: handoff_id, task_id, sender, status, age
  - README.md
  - metadata.yaml
success_criteria:
  - python handoff-viewer.py --agent-url http://localhost:8787
  - Shows a table with at least handoff_id, status, age columns
  - Updates every 5 seconds
  - Graceful exit on Ctrl+C

See AGENTS.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-friendlyStructured for AI agent execution — clear input, output, and success criteriacommunityCommunity-contributed scripts, setups, and automationsscript-of-the-week-eligible

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions