Documentation Index
Fetch the complete documentation index at: https://bastani.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
@bastani/atomic is the CLI; @bastani/atomic-sdk is the library. Install whichever you need — neither depends on the other.
The CLI needs a terminal multiplexer (tmux on macOS/Linux, psmux on Windows) and at least one authenticated coding agent CLI at runtime. The multiplexer is auto-installed on the first non-info
atomic command; the agent CLIs are not. See Quickstart prerequisites.CLI — bootstrap script (recommended)
The bootstrap script downloads a verified prebuilt binary, installs it to~/.local/bin (or %LOCALAPPDATA%\atomic\bin on Windows), updates your PATH, and sets up shell completions. No Bun or Node prerequisite.
bash install.sh 0.4.47, ./install.ps1 0.4.47, or install.cmd 0.4.47. Upgrade later by re-running the same one-liner.
CLI — npm
atomic completions <shell> separately if you want them. If your shell can’t find atomic afterwards, add the directory from bun pm bin -g (or npm bin -g, pnpm bin -g, yarn global bin) to your PATH, or use the bootstrap script instead.
Prerelease builds: append @next (e.g. npm install -g @bastani/atomic@next or bun add -g @bastani/atomic@next). May contain breaking changes.
SDK only
If you only want to calldefineWorkflow(...) in your own TypeScript project and never need the atomic binary:
@bastani/atomic package. You still need a multiplexer and an authenticated agent CLI at runtime. To route self-exec through a globally installed atomic binary instead of the bundled dispatcher, pass pathToAtomicExecutable to runWorkflow — see Running & embedding.
Devcontainer
Devcontainers isolate the agent from your host, limiting the blast radius of destructive actions — the safest way to run workflows. Add one feature to.devcontainer/devcontainer.json:
| Feature | Agent |
|---|---|
ghcr.io/flora131/atomic/claude:1 | Atomic + Claude Code |
ghcr.io/flora131/atomic/opencode:1 | Atomic + OpenCode |
ghcr.io/flora131/atomic/copilot:1 | Atomic + Copilot CLI |
Upgrading from 0.6.x or earlier
The SDK moved from@bastani/atomic to @bastani/atomic-sdk in 0.7.x. SDK users need to swap the package and update imports:
@bastani/atomic). For other SDK API changes (createWorkflowCli removal, source: import.meta.path, etc.) see Migration from 0.x.
Updating
Use the same channel you installed through.atomic update --check shows your current version, the latest release, and the recommended update command.
- Bootstrap binary:
atomic update - npm:
npm update -g @bastani/atomic(or thebun/pnpm/yarnequivalent)
Uninstalling
atomic only removes files it installed. Match the channel you installed through:
- Bootstrap binary:
atomic uninstall(add--purgeto also wipe~/.atomic) - npm:
npm uninstall -g @bastani/atomic(or thebun/pnpm/yarnequivalent)