iiRecord
Agentic AI Atlas · Interactive terminal CLI
agent-host-transport:terminal-clia5c.ai
II.
AgentHostTransport overview

agent-host-transport:terminal-cli

Reference · live

Interactive terminal CLI overview

The agent runs as an interactive CLI in a pseudo-terminal: stdin is a TTY, stdout/stderr render ANSI sequences, and the host can inject keystrokes (including raw-mode bindings) and observe the rendered terminal session. Used by adapters when wrapping interactive harnesses such as Claude Code, Codex, Cursor CLI, Gemini CLI, and Copilot CLI.

AgentHostTransportOutgoing · 2Incoming · 0

Attributes

displayName
Interactive terminal CLI
kind
stdio-pty
description
The agent runs as an interactive CLI in a pseudo-terminal: stdin is a TTY, stdout/stderr render ANSI sequences, and the host can inject keystrokes (including raw-mode bindings) and observe the rendered terminal session. Used by adapters when wrapping interactive harnesses such as Claude Code, Codex, Cursor CLI, Gemini CLI, and Copilot CLI.
inboundMessageFormat
Free-form text typed into the TTY plus optional CLI-argument bootstrap. Hosts that drive the session programmatically use stdin injection (newline-terminated lines or raw keystrokes including `^C`, arrow keys, etc.). No standard JSON envelope.
outboundMessageFormat
Rendered ANSI terminal output on stdout/stderr. Agents may also emit structured events via auxiliary mechanisms (sidecar files, additional file descriptors, or `--output-format` flags), but the primary surface is human-readable terminal text.
signalForwarding
Standard POSIX signals (SIGINT for cancel, SIGTERM/SIGKILL for shutdown). On Windows the host sends `CTRL_C_EVENT` via `GenerateConsoleCtrlEvent`. Closing the master PTY also signals end-of-session.
ptySemantics
Full PTY: `isatty()` returns true, raw mode and ANSI control sequences are honoured, and the host typically allocates a master/slave PTY pair (`openpty(3)` / ConPTY on Windows).

Outgoing edges

used_by2

Incoming edges

None.