Skip to main content

Non-interactive use

Atomic’s session engine supports three non-interactive entry points. Use the table below to choose one, or embed the engine with the SDK. atomic --print "..." runs a single turn and exits. It also reads piped stdin and merges it into the prompt, so it composes with ordinary shell pipelines. Flags, exit codes, and the stdin merge rules are in the CLI reference.

JSON events

When you need to observe a run rather than read it, the JSON event stream emits one structured record per message, tool call, and result. Use it for logging, CI annotations, or piping into another tool. The event shapes are in JSON event stream.

RPC

RPC keeps a session alive so another process can send prompts, answer prompts, and receive events. Use it for editors, bots, and long-running services that need more than a single request/response. Start at RPC and the RPC protocol.

Next steps