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
- 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 ★
- Hive — Browser-native hive-mind for CLI coding agents — Claude Code, Codex, Gemini, and OpenCode collaborate as real 473 ★
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
CLI Agent MCP
MCP (stdio) server that lets Claude Desktop drive a local headless CLI coding agent (Claude Code or Cursor) as
Learn Grok Bot
Learn Grok Bot's desktop agent architecture in 16 lessons: Electron process isolation, trusted RPC, turn loop,
Rvcsi
rvCSI — edge RF sensing runtime: normalize WiFi CSI from Nexmon/ESP32/Intel/Atheros/file/replay into one valid
Harvest
Harvest friction events from observation logs into typed instincts (env_issue, permission_block, wrong_approac
Accessible Claude Code
PTY-based screen-reader wrapper for Claude Code and other Ink TUIs. Makes Claude Code usable with VoiceOver/NV
Related Agents
App Intents Expert
Read-only App Intents reviewer. Use when exposing app actions to Siri, Shortcuts, Spotlight, Apple Intelligenc
Session Context
Loads a single FullStory session's event transcript into an isolated context window and answers a specific tas
Section Builder
Builds one page section from a Figma node into this starter's conventions — tokens, spring motion, semantic ma