Drop-in replacement for claude -p that drives the interactive TUI via PTY, preserving subscription billing
Addresses all MISSING/PARTIAL items from the plan review: - Glossary, Non-Goals, Hard Requirements, What It Is Not, Scope Lock - Acceptance scenarios (AS-1 through AS-6) with pass/fail criteria - Module layout (src/ file tree), state machine diagrams, concurrency model - Cross-cutting concerns: error propagation, signals, temp dir, log boundary - Tech stack rationale column on crate table - Edge case catalog (EC-1..12), anti-patterns, invariants (INV-1..8) - Proof obligations (PO-1..6) with named recovery per assumption - Phase entry/exit criteria and LOC estimates for all 11 phases - Conformance harness + definition of done + all-gates policy in Testing - Security section: threat model (T-1..5), untrusted input policy, supply chain - Performance section: budgets, benchmark contract, CI size gate - Operations section: migration plan, semver stance, rollout/rollback, doctor command - Risk register (R-1..7) with likelihood/impact/mitigation - ADRs (ADR-001..003) for the three churn-magnet decisions - Open Questions updated with phase dependencies and resolution deadlines - Phase 6 renamed from duplicate "Hook installer" to "Stop poller" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| docs | ||
| README.md | ||
claude-print
Drop-in replacement for claude -p (print/headless mode) that drives the Claude Code interactive TUI via PTY — preserving subscription billing after the June 15, 2026 Agent SDK credit split.
Why this exists
Starting June 15, 2026, Anthropic separates claude -p (headless) into a separate Agent SDK credit pool ($100–$200/month on Max plans). Only the interactive TUI (cc_entrypoint=cli) continues drawing from the unlimited subscription. claude-print wraps the interactive TUI in a PTY so callers get claude -p wire-compatible output while billing against the subscription.
Structure
docs/notes/— design decisions, constraints, integration detailsdocs/plan/plan.md— complete implementation plan