claude-cli-agent-protocol
CommunityIntegrate Claude CLI in headless mode with NDJSON
Authorbohdan-shulha
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Claude-based workflows often require headless control of Claude Code CLI, enabling reliable NDJSON streaming, tool approvals, and lifecycle management without a graphical interface.
Core Features & Use Cases
- Bidirectional NDJSON streaming for init, events, tool usage, and results.
- Built-in tool-approval flow via control_request/control_response to authorize commands during a session.
- Robust lifecycle handling for normal and interrupted requests, including permission modes and long-running processes.
Quick Start
Start Claude CLI in headless mode with stream-json I/O and permission prompts, then connect your host to drive tool approvals and session lifecycle.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: claude-cli-agent-protocol Download link: https://github.com/bohdan-shulha/skills/archive/main.zip#claude-cli-agent-protocol Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.