Skip to main content

Module claude_code_process

Module claude_code_process 

Source
Expand description

Claude Code process management using stream-json protocol.

Claude Code uses a different wire format from ACP:

  • stdin/stdout: JSON lines (NDJSON) with Claude-specific message types
  • Message types: system, assistant, user, result, stream_event

This process translates Claude’s output into ACP-compatible session/update notifications so the existing renderer works without changes. Agent message notifications are traced to JSONL files for attribution tracking.

Structs§

ClaudeCodeConfig
Configuration for spawning a Claude Code process.
ClaudeCodeProcess
Claude Code process manager.