Skip to content

Add agent-handover status --json machine-readable output #5

Description

@hikari716

Context

agent-handover status prints a human-readable checklist
(src/agent_handover/cli.py). Automation (CI, dashboards) needs a stable
machine-readable form.

Task

Add a --json flag to status that prints the checkpoint state as one JSON
object to stdout, e.g. {"status": "in_progress", "steps": {...}, "pending": [...]}.
Human output stays the default when --json is absent.

Acceptance criteria

  • agent-handover status --json prints valid JSON (one object, no extra logs)
  • Exit code unchanged (0)
  • A test asserts the shape via json.loads on captured stdout
  • README documents the flag

Pointers

  • src/agent_handover/cli.py (status branch)
  • Checkpoint.load() / Checkpoint.pending_steps() in src/agent_handover/checkpoint.py
  • Tests: tests/test_cli.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCommand-line interfacegood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions