Claude Code Headless — Development skill for Claude Code
Programmatically drive the real Claude Code CLI in a PTY — structured semantic/screen/committed events, live token streaming, and typed transcript access.
How to install Claude Code Headless
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Juliusolsson05/claude-code-headless and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Headless does
Programmatically drive the real Claude Code CLI in a PTY — structured semantic/screen/committed events, live token streaming, and typed transcript access. No SDK shortcuts.
Alternatives in Development
- MCP Language Server — mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, a 1.5k ★
- Shortcuts Playground Plugin — Shortcuts Playground: A Claude Code and Codex plugin for building, validating, signing, and remixing macOS/iOS 1.1k ★
- Pi Reserved Keybindings — Extensions cannot override these shortcuts — they are silently skipped by registerShortcut() 526 ★
README
claude-code-headless
Programmatically drive the real Claude Code CLI — structured events, live token streaming, full transcript access. No SDK shortcuts.
Why this exists
Claude Code is a terminal application. If you want to build on top of it programmatically, today's options are bad:
- The SDK gives you a reduced surface — send a message, get a message back. It throws away most of what makes Claude Code good in practice: the slash-command system, permission prompts, compaction, session resume, the full tool loop, the real streaming behaviour.
- Screen-scraping the TUI is brittle and gives you pixels, not meaning.
`claude-code-headless` takes the opposite approach. It runs the **actual `claude` binary** inside a pseudo-terminal and exposes everything the CLI does as structured, typed events. The full command surface, the real prompts, the real flows stay intact. You get the real product, programmatically.
This is a control layer. Build an edit
Related Skills
Codex Headless
Programmatically drive the real OpenAI Codex CLI in a PTY — structured events, live rollout-stream token strea
Savannah
Claude-to-Claude agent mesh for your LAN. Zero-config mDNS discovery, typed IDL contracts, streaming RPC, and
CLI Agent MCP
MCP (stdio) server that lets Claude Desktop drive a local headless CLI coding agent (Claude Code or Cursor) as
Go Providers
Unified Go Provider interface over CLI/PTY-driven coding-agent adapters (Claude Code, Codex, opencode) with Bo
Theokit Skills
Claude Code plugin that teaches the assistant the real @theokit/sdk API surface — Agent.create, Tool.create wi
Music Man
An agent that investigates music-streaming royalty fraud across millions of events and proposes withholding a
Related Agents
App Intents Expert
Read-only App Intents reviewer. Use when exposing app actions to Siri, Shortcuts, Spotlight, Apple Intelligenc
Hono Builder
Hono API implementer — routes, middleware, validation, error handling, streaming/SSE, the typed RPC client (Ap
Second Brain Curator
Maintains the user's Obsidian "second brain" vault (Karpathy LLM-Wiki pattern) and its ingest pipeline — runs/