kcosr / claude-pty-wrapper
Publicclaude-pty-wrapper runs interactive Claude through a PTY while exposing a print-like CLI that streams assistant text from Claude’s durable session JSONL.
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
You find this handy tool while using Claude AI in your terminal and want cleaner, streamable responses for quick tasks.
Download and set up the wrapper on your computer so you can start using it right away.
Decide if you want full interactive chatting or simple print mode for just the AI's answers.
Chat naturally with Claude like usual, with the wrapper handling the background smoothly.
Get clean text, data, or session details from Claude without extra chat noise.
Type a simple prompt like 'Summarize this folder' and watch Claude think and respond.
See Claude's answers flow in real-time in your chosen format, feeling smooth and reliable.
You get perfect AI outputs for scripts, reports, or resuming old chats, saving time every day.
Star Growth
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 RepurposeSimilar repos coming soon.