Skip to main content

Module translator

Module translator 

Source
Expand description

Provider frame → unified AgentEvent translation.

Each provider (Claude Code stream-json, ACP, future Aider / Codex / Gemini) implements Translator to produce a stream of AgentEvents. The runner is provider-agnostic; only this layer knows the wire format.

Modules§

claude
Claude Code stream-json → AgentEvent translator.
codex
Codex exec --json → AgentEvent translator — the answer text only.
gemini
Gemini CLI --output-format stream-json → AgentEvent translator — the answer text only.

Traits§

Translator
A streaming translator: feeds raw provider frames as parsed JSON values and emits zero-or-more AgentEvents per frame.