Drop-in replacement for claude -p that drives the interactive TUI via PTY, preserving subscription billing
Find a file
jedarden 5e2b592df7 gap-review round 8: 9 gaps fixed
G-1 (CRITICAL): stream-json success path clarified — forwarded verbatim, no claude_version injection
G-2 (CRITICAL): invoke_template now includes --output-format json (needle-transform-claude compat)
G-3 (HIGH): Phase 11 CI criterion switched to --check; AS-1 is manual pre-release step
G-4 (HIGH): Phase 1 now includes claude-print-ci.yaml stub + ArgoCD sync completion criterion
G-5 (HIGH): MOCK_SILENT=1 added to env var table; large-prompt scenario note added
G-6 (HIGH): build-musl expanded with git-clone init, mock_claude build, both artifacts renamed
G-7 (MEDIUM): cargo audit CI requirement clarified; Phase 11 checklist item added
G-8 (MEDIUM): Phase 9 completion criterion now includes README/--help sync check
G-9 (MEDIUM): Argo Events webhook scope clarified as 'out of scope for v1.0'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 14:14:39 -04:00
docs gap-review round 8: 9 gaps fixed 2026-06-07 14:14:39 -04:00
README.md Remove prior art references; expand plan to full feature set and test coverage 2026-06-07 10:35:10 -04:00

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 details
  • docs/plan/plan.md — complete implementation plan