Skip to content

[FEATURE] Headless / exportable /stats (--json and image export) #67773

@mgsaltman

Description

@mgsaltman

Problem / use case

/stats only renders inside the interactive TUI — there is no non-interactive output, so it can't be automated (e.g., a weekly scheduled job that posts your stats card to Slack). I had to reverse-engineer ~/.claude/stats-cache.json to reproduce the card.

Proposed

A non-interactive claude stats that supports:

  • --json for machine-readable metrics, and
  • an image export (e.g. --output png) of the card,
    so the exact /stats snapshot can be generated and sent programmatically on a schedule.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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