Skip to main contentModule shim
Source - chat
- Chat frontend: spawns a shim subprocess, sends user messages, displays responses.
- classifier
- State classifiers: determine agent state from virtual screen content.
- codex_types
- JSONL event types for Codex CLI
exec --json mode. - common
- Shared utilities used by both PTY runtime and SDK runtime.
- kiro_types
- JSON-RPC 2.0 message types for the Kiro CLI Agent Client Protocol (ACP).
- meta_detector
- protocol
- Wire protocol: Commands (orchestrator→shim) and Events (shim→orchestrator).
- pty_log
- PTY log writer: streams raw PTY bytes to a log file so tmux panes can
tail -f the output for display. - runtime
- The shim process: owns a PTY, runs an agent CLI, classifies state,
communicates with the orchestrator via a Channel on fd 3.
- runtime_codex
- Codex SDK-mode shim runtime: communicates with Codex via JSONL events
from
codex exec --json instead of screen-scraping a PTY. - runtime_kiro
- Kiro ACP-mode shim runtime: communicates with Kiro CLI via JSON-RPC 2.0
on stdin/stdout using the Agent Client Protocol (ACP).
- runtime_sdk
- SDK-mode shim runtime: communicates with Claude Code via NDJSON on
stdin/stdout instead of screen-scraping a PTY.
- sdk_types
- NDJSON message types for the Claude Code stream-json SDK protocol.
- tracker
- JSONL session file tracking for shim classifiers.