readtheplan
v0.3.0

Docs / CLI Reference

Every command. Every flag.

readtheplan ships as a single readtheplan CLI with five subcommands. All run locally — your plan JSON never leaves your machine.

Installation

pip install readtheplan

Requires Python 3.10+. Signing requires the optional sign extra.

pip install "readtheplan[sign]"

readtheplan analyze

Analyze a Terraform plan JSON file and classify every change by risk tier.

readtheplan analyze [flags] plan.json

Flags

FlagDescription
--format text|jsonOutput format. Default: text.
--no-rulesDisable resource-aware rules. Use action-only classifier.
--rules-file PATHApply overlay YAML on top of built-in rules. Repeatable.
--framework soc2|iso27001|hipaaAnnotate with control IDs from named framework.
--evidence PATHWrite rtp-evidence-v1 JSON envelope. Use - for stdout.
--signSign evidence envelope with sigstore keyless signing.
--agent-id IDAgent identifier for evidence attestation.
--reviewer-id IDReviewer identifier for evidence output.
--reviewer-kind human|agentReviewer kind. Default: human.

readtheplan agent-gate

Emit a proceed/warn/block decision for CI pipelines and AI coding agents.

readtheplan agent-gate [flags] plan.json

Flags

FlagDescription
--framework soc2|iso27001|hipaaInclude required check IDs from named framework.

Output

JSON with schema, decision (proceed/warn/block), risk, required_checks, allowed_next_actions, prohibited_next_actions, pr_comment, evidence_checklist, auditor_summary, and risk_counts.

readtheplan agent-gate plan.json
# → {"schema": "rtp-agent-gate-v1", "decision": "block", "risk": "irreversible", ...}

readtheplan verify

Verify a signed rtp-evidence-v1 envelope.

readtheplan verify evidence.json

readtheplan mcp

Start the experimental local MCP stdio server for agent and IDE integrations. Requires Python 3.10+.

readtheplan mcp

Install the MCP extra if you get missing dependency errors:

pip install "readtheplan[mcp]"

readtheplan cloudformation

Emit agent-gate decision for a CloudFormation Change Set or template diff. First IaC adapter beyond Terraform.

readtheplan cloudformation change-set.json

See GitHub Action guide for CI integration.