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 is the smallest surface: one process, one prompt, a stream of newline-delimited events, then exit. RPC mode keeps the process alive so you can send more input, interrupt, switch models, and answer tool permission prompts. The SDK gives you the same engine as a library, with programmatic control over extensions, skills, tools, and session storage.
Then continue to the contracts
- RPC protocol — every command, event, and type.
- RPC extension UI protocol — drive extension-rendered UI over RPC.
- RPC client examples — additional client implementations.
- SDK API reference — options, loaders, return values, run modes, and exports.