Overview
The Interactive Runtime provides the core runtime that powers both TUI interactive mode and debug non-interactive mode. It manages LSP and ACP subsystem lifecycle with graceful degradation.Installation
Quick Start
Configuration
RuntimeConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
workspace | str | ”.” | Workspace root directory |
lsp_enabled | bool | True | Enable LSP code intelligence |
acp_enabled | bool | True | Enable ACP action orchestration |
approval_mode | str | ”manual” | Approval mode: manual, auto, scoped |
trace_enabled | bool | False | Enable trace logging |
trace_file | str | None | Path to save trace file |
json_output | bool | False | Output JSON format |
timeout | float | 60.0 | Operation timeout in seconds |
model | str | None | LLM model to use |
verbose | bool | False | Verbose output |
Runtime Status
Subsystem States
| Status | Description |
|---|---|
not_started | Subsystem not initialized |
starting | Subsystem is starting |
ready | Subsystem is ready for use |
failed | Subsystem failed to start |
stopped | Subsystem has been stopped |
LSP Operations
When LSP is ready, you can use code intelligence:ACP Operations
When ACP is ready, you can create and apply action plans:Tracing
Enable tracing to capture all operations:Graceful Degradation
The runtime handles subsystem failures gracefully:- LSP fails: Code intelligence falls back to regex-based extraction
- ACP fails: Runtime enters read-only mode (no file modifications)
CLI Integration
The runtime integrates with CLI flags:Operational Notes
Performance
- Subsystems start in parallel for faster initialization
- LSP client is lazy-loaded only when enabled
- ACP session is lightweight (in-process)
Dependencies
pylsp(optional) - For Python LSP supportpyright(optional) - Alternative Python LSP
Production Caveats
- LSP startup may take a few seconds for large workspaces
- Trace files can grow large for long sessions
- ACP session is in-memory; external storage needed for persistence
Related
- Agent-Centric Tools - Tools powered by this runtime
- Debug CLI - Debug commands
- ACP - Agent Communication Protocol

