Skip to main content

Programmatic use

Atomic exposes three integration modes plus a component API for interactive extension interfaces. Pick one mode, complete its minimal example, then continue to its reference.

Choose a mode

  • JSON mode runs one process with one prompt, streams newline-delimited events, then exits.
  • RPC mode keeps the process alive so you can send more input, interrupt, switch models, and answer tool permission prompts.
  • The SDK provides the same engine as a library, with programmatic control over extensions, skills, tools, and session storage.

Then continue to the contracts

Build interactive extension interfaces

TUI components covers writing a first component and the common interaction patterns; TUI API reference holds the component, focusable, input, and rendering contracts.