Skip to content

Add --json flag to CLI for machine-readable output #35

@57muth67

Description

@57muth67

The CLI currently outputs human-readable compression results. For CI/CD integration and automated pipelines, a --json flag that outputs structured JSON would be useful:

claw-compact input.txt --json
# {"original_tokens": 4200, "compressed_tokens": 1050, "reduction_pct": 75.0, ...}

This would make it easy to track compression ratios over time in CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions