Skip to content

feat(cli): improve status and log commands #71

@lauritsk

Description

@lauritsk

Problem

Users need easier live visibility into active/historical agent and orchestrator runs.

Proposal

Add watchable status, log inspection, JSON output, and run pruning.

pid agent status --watch <run-id>
pid agent logs <run-id>
pid orchestrator status --json <run-id>
pid runs prune --older-than 30d

Scope

  • In scope:
    • Watch mode with refresh interval and clean exit.
    • Log command that finds and prints session/event logs for a run.
    • JSON status output for scripting.
    • Prune old completed run state/logs with dry-run or confirmation.
    • Tests/docs.
  • Out of scope:
    • Terminal UI dashboard.
    • Background daemon.

Acceptance criteria

  • Watch mode updates status until run reaches terminal state or user interrupts.
  • Logs command shows useful run/session/event logs.
  • JSON output is stable and documented.
  • Prune refuses unsafe deletion without confirmation/dry-run clarity.
  • mise run check passes or exception documented.

Metadata

Metadata

Assignees

Labels

agent-todoTasks managed by the coding agentenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions