Skip to content

feat: add --json flag for machine-readable CLI output #323

@fuleinist

Description

@fuleinist

What you want\nAdd a flag to the caveman CLI command that outputs the transformed prompt as a JSON object instead of plain text.\n\nBefore/after example\n\nBefore: caveman "fix the bug" → "fix bug"\nAfter: caveman --json "fix the bug" → {"prompt": "fix bug", "mode": "full", "tokens_saved": "~65%"}\n\n\nWhy good\nEnables caveman to be piped into AI agent pipelines where structured output is required. Agents like OpenClaw, Claude Code, and Codex can parse JSON and route the compressed prompt programmatically.\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions