Description
Shannon is a command-line tool and SDK that wraps the interactive Claude Code CLI. It starts a real claude session inside tmux, sends it a prompt, and returns the result as stream JSON, a single JSON array or plain text. The README stresses that Shannon never calls the Anthropic API directly. It drives the real session and reads its on-disk transcript, and it does not use claude -p internally. It is described as an alternative to claude -p for lifecycle control of interactive sessions. To run it you need Bun, claude on your PATH, tmux and a working Claude Code login. You can run it without installing, or install it globally. The SDK accepts prompts and finite async streams of user messages, and you can pass an AbortController to stop the underlying Shannon subprocess. Shannon also ships an Agent SDK facade, published as @dexh/shannon-agent-sdk, which re-exports its SDK surface. The README says full parity with the Claude Agent SDK is still a work in progress. The project is public on GitHub under dexhorthy.…
Highlights
- CLI and SDK around interactive Claude Code
- Runs each session inside tmux
- Output as stream JSON, JSON or text
- Async message input and abort control
- Agent SDK facade still in progress
Ratings & Reviews
No ratings yet
Be the first to rate Shannon.
People also visit
Shannon FAQ
What is Shannon?
A CLI and SDK that drives an interactive Claude Code session inside tmux and returns the output.
What do I need to run it?
Bun, the claude CLI on your PATH, tmux, and a working Claude Code login.
How is it different from claude -p?
The author describes Shannon as an alternative to claude -p that works with interactive sessions. The README says it does not call the Anthropic API directly.
What output formats are available?
stream-json as JSONL, json as a single array, and text for the final result.
Is the Agent SDK complete?
Not yet. The README says the Agent SDK facade is a work in progress, with progress tracked in GOAL_PROGRESS.md.
What are the best Shannon alternatives?
Popular alternatives to Shannon include claude-devtools, Pydantic Deepagents and Shai CLI. See all Shannon alternatives
