kcosr

claude-pty-wrapper runs interactive Claude through a PTY while exposing a print-like CLI that streams assistant text from Claude’s durable session JSONL.

19
0
89% credibility
Found May 14, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

An experimental command-line wrapper that runs interactive Claude AI sessions in a terminal emulator while streaming responses in text, JSON, or raw session formats for easier automation and diagnostics.

How It Works

1
🔍 Discover the wrapper

You find this handy tool while using Claude AI in your terminal and want cleaner, streamable responses for quick tasks.

2
📥 Get it ready

Download and set up the wrapper on your computer so you can start using it right away.

3
⚙️ Choose your style

Decide if you want full interactive chatting or simple print mode for just the AI's answers.

4
Pick a path
💬
Interactive mode

Chat naturally with Claude like usual, with the wrapper handling the background smoothly.

📄
Print mode

Get clean text, data, or session details from Claude without extra chat noise.

5
💭 Ask your question

Type a simple prompt like 'Summarize this folder' and watch Claude think and respond.

6
📺 Watch responses stream

See Claude's answers flow in real-time in your chosen format, feeling smooth and reliable.

Mission accomplished

You get perfect AI outputs for scripts, reports, or resuming old chats, saving time every day.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is claude-pty-wrapper?

claude-pty-wrapper is a TypeScript CLI that runs interactive Claude through a PTY while exposing a print-like interface for streaming assistant text from durable session JSONL files. It lets you fire off prompts like `claude-pty-wrapper -p "Summarize this repo"` to get clean text output, or use `--output-format stream-json` for structured streams mimicking native Claude CLI flags. The result: scriptable access to Claude's interactive assistant without full terminal takeover.

Why is it gaining traction?

It bridges Claude's PTY interactivity with reliable, durable JSONL streaming, handling resumes via `--resume ` and timeouts for automation. Devs dig the passthrough mode for normal interactive use, plus diagnostics like `--session-jsonl` or raw PTY logs, making it a drop-in for tools expecting Claude's JSON outputs. Low stars (19) but hooks scripters tired of parsing messy terminal streams.

Who should use this?

Automation engineers scripting Claude sessions in pipelines, tool builders parsing assistant JSONL for downstream apps, or backend devs resuming durable interactive runs in CI/CD without manual intervention.

Verdict

Experimental with a 0.9% credibility score and basic docs/tests—prototype it against your workflow before committing. Worth it for CLI users needing structured streams from Claude PTY sessions.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.