@ file references, ! shell commands, slash commands, message queueing, and exporting or sharing sessions. For a conceptual overview, see How Atomic works. For every flag and subcommand, see CLI reference.
Before you begin
Complete Install Atomic and Authenticate a provider.First-time setup
On a fresh install (whenATOMIC_CODING_AGENT_DIR is unset and ~/.atomic/agent/settings.json doesn’t exist yet), interactive mode shows a two-step First-Time Setup screen before the editor:
- Choose a theme: Pick Dark, Light, or System (matching your detected terminal appearance, with live preview as you move through options).
- Choose an analytics preference: Opt in or out of anonymous usage analytics. Atomic stores your choice and a local random tracking ID in
settings.json; it does not transmit analytics data.
↑ and ↓ (or j and k), confirm with Enter, or press Esc or Ctrl+C to skip setup without writing settings.json.
Understand the screen layout
Atomic divides the terminal into four areas:- Startup header: Key shortcuts plus lists of loaded context files, prompt templates, skills, and extensions. Press
Ctrl+Oto expand source paths. Custom themes don’t appear here; pick them in/settings. - Transcript: Your messages, assistant replies, tool calls, tool results, notices, errors, and extension UI.
- Editor: The prompt box where you type. Its border color shows the active thinking level.
- Footer: Token usage, cache usage, cost, and context usage sit above the editor. Below it, Atomic shows the active model, thinking level, working directory, Git branch, and session name while idle—or the interrupt hint while working (
esc to interruptonmain,esc to pausewhile viewing a subagent).
- Press
↓to focus the agent panel. - Press
←while viewing a subagent to return tomain. - Press
Ctrl+X Ctrl+Ktwice within 3 seconds to stop all background work. - Press
?to see active shortcuts.
/settings, /model, or custom extension views replace the editor temporarily while open.
Startup animation and working indicator
The startup animation introduces Atomic on launch; press any key (includingCtrl+C) to skip straight to the prompt. Set quietStartup to true to hide it, or "header" to keep it. Non-TTY runs, Apple Terminal.app, and ATOMIC_REDUCED_MOTION=1 skip animation and show the static mark.
To disable terminal colors and text styles (bold, italic, dim, underline, inverse, strikethrough), set NO_COLOR (to any value, including an empty string) or FORCE_COLOR=0 / FORCE_COLOR=false. Setting FORCE_COLOR to 1, 2, 3, true, or "" forces color output.
While the agent works, ∀ pulses beside a status line showing elapsed time and output tokens. A new run resets the meter; steering keeps the current meter. Retry, fallback, compaction, cancellation, and error notices take priority, and approval prompts hide ordinary status text. Extensions can customize the working indicator.
During compaction, ∀ stays still with elapsed time and the cancel key. Afterward, Atomic shows one boundary line—⚛ Context cleared · 182.0k tokens, or ⚛ Context compacted · morph/morph-compactor · 182.0k → 21.4k tokens when a compactor model ran. Press Ctrl+O (or click the line) to inspect what was compacted and where the earlier conversation lives in session history.
Interact with the transcript
Use these pointer and scroll interactions while reading the transcript:- Expand or collapse one block: Click any expandable block (tool calls, grouped summaries,
!shell blocks, finished-agent cards, or compaction boundaries) to toggle it without changing other blocks. PressCtrl+Oto toggle all blocks at once. - Click key hints: Click key hints below the prompt, in dialogs, or in
/tasksto trigger that action without losing your draft. - Scroll and jump back: Scroll with your mouse wheel, or hold
Alt+wheelto scroll five times faster when your terminal forwardsAltwith wheel events. While scrolled up, the current turn’s prompt stays pinned at the top and a↓ jump to bottom · ctrl+endpill appears above the editor.
Use editor features
The following table summarizes the most useful editor shortcuts:
Key editor behaviors to know:
@file picker and completion: Fuzzy-searches project files while respecting.gitignoreand skipping.git/. Paths containing spaces wrap in quotes automatically (for example@"path with spaces"). Iffdisn’t available, the picker falls back to single-directory listing. In@and/menus,Tabcompletes without sending andEnterinserts an@path or runs a/command.- Prompt history (
↑/↓andCtrl+R):↑and↓step through up to 100 recent prompts from the current run (collapsing consecutive duplicates) for whichever agent you view.Ctrl+Rsearches saved prompts newest first and deduplicates matches across the session:- For prompt templates and skills (for example
/skill:tdd edge cases),Ctrl+Rsearches the unexpanded command you typed rather than the expanded text. - If an extension rewrites a prompt through the
inputevent,Ctrl+Rsearches the rewritten text while↑and↓step through what you typed. - While viewing a subagent,
Ctrl+Rsearches that subagent’s 100-entry editor history instead of the full session store. - Press
Esconce to clear your search query, and a second time to close search without losing your draft or interrupting the agent. Avoid typing secrets directly into prompts.
- For prompt templates and skills (for example
- Interactive shell commands (
!and!!): Only one!or!!command can run at a time; submitting another warns and restores your draft. Native Windows uses PowerShell (pwsh.exe, thenpowershell.exe; see Windows), while Linux, macOS, and WSL use Bash. Atomic prependsshellCommandPrefixto each command, so match your active shell’s syntax. PressEscorCtrl+Cto cancel a running command.!and!!are disabled while viewing a subagent; press←on an empty prompt to return tomain. - Double-Escape (
doubleEscapeAction): PressingEsctwice within 500 ms on an empty, idle editor opens/treeby default. Change it to"tree","fork", or"none"in Settings. - Suspend or open a subshell: On macOS, Linux, and WSL,
Ctrl+Zsuspends Atomic andfgresumes it. On native Windows,Alt+Zopens an interactive PowerShell subshell while background tasks keep running (typeexitto return), keepingCtrl+Zfor editor undo.
Type while Atomic starts
You don’t need to wait for startup to finish before typing. In interactive mode, typing and editing keys work right away whileEnter, command shortcuts, and mouse events wait until the session is ready.
Run everyday slash commands
Type/ in the editor to open command completion. Extensions can register custom commands, skills run as /skill:<name>, and prompt templates expand as /<template>.
Commands that take no arguments run only when entered by themselves; adding extra text sends the line to the model as a regular message. While viewing a subagent, built-in commands target main (confirming destructive actions, refusing /model and /thinking, and using /copy for the viewed subagent’s last reply), while skills, templates, and user or project extension commands target the viewed subagent.
The following table lists the everyday commands you use most often:
Atomic’s built-in integrations also register
/agents (Run subagents), /mcp (MCP servers), /intercom (Coordinate sessions with Intercom), /llama (Local models with llama.cpp), and /curator, /websearch, /search, /google-account (Web access).
For every command and its exact parsing rules, see Slash commands.
Queue and interrupt messages
Because your terminal stays responsive while the session runs (How Atomic works), you can keep typing, steer a turn, queue follow-ups, or cancel work mid-stream. The same shortcuts work onmain and while viewing a subagent, except Esc pauses a viewed subagent instead of interrupting main:
Steering messages always run ahead of follow-ups in submission order, and both run ahead of queued background notices (such as task completions or Intercom messages) so a busy backlog never delays what you typed. Messages, templates, and skills submitted during compaction or retry waits queue in order until compaction ends or is cancelled, while non-prompt commands such as
/settings, /tasks, and /model run right away.
Interrupts hold only messages still waiting in the queue. A message the agent already started stays in the transcript; if an interrupt cancels its reply before any output arrives, Atomic closes it cleanly instead of stranding it.
On Windows and WSL, follow-up queueing uses Ctrl+Q and dequeue uses Alt+Q to avoid Windows Terminal’s Alt+Enter fullscreen toggle. Configure delivery rules with steeringMode and followUpMode in Settings.
Interrupt grace period and manual recovery
A normal interrupt asks active work to stop cleanly. Pending tool calls cancel right away. If a running tool call doesn’t finish within 10 seconds (override withATOMIC_TOOL_ABORT_GRACE_MS), the turn moves on with an abort notice and ignores late output from that call.
Recover a stuck dialog or session with
Ctrl+C: If a custom extension dialog stops responding, Ctrl+C closes it. If the session process stops answering—or a cancel or queue-clear stalls for more than one second—Ctrl+C restarts the session process. Recovery never triggers automatically. Check /tasks and the transcript before repeating an interrupted action.Sessions and project instructions
Atomic saves sessions automatically in~/.atomic/workflows/journal.sqlite by default, with opt-in JSONL directories and shared PostgreSQL session storage. Resume from the shell with atomic -c, atomic -r, atomic --session <id|prefix>, atomic --fork <id|prefix>, atomic --name "<name>", atomic --import <file>, or run ephemerally with atomic --no-session. See Manage sessions, Manage context and compaction, and CLI session options.
Atomic loads project instructions (AGENTS.override.md, AGENTS.md, or CLAUDE.md) automatically for trusted projects and supports SYSTEM.md and APPEND_SYSTEM.md. See Add project instructions or disable them for one run with --no-context-files (-nc).
To search or read earlier sessions from inside a conversation, use history://. See Recall earlier work.
Export and share sessions
Use these commands to export, import, or share saved sessions:- Export to HTML or JSONL: Run
/export [<path>]. Without a filename, Atomic writesatomic-session-<id>.htmlin the current directory (oratomic-session-<file>.html, named after the JSONL file, on JSONL stores). Pass a path ending in.jsonl(case-insensitive) to export the active branch as JSONL. Wrap paths containing spaces in matching quotes ("..."or'...'). In exported HTML, pressTto toggle thinking blocks,Oto toggle tool output, andHto show hidden custom messages. - Import a JSONL export: Run
/import <path.jsonl>. Atomic asks for confirmation before replacing the current session. - Share with
/share: Exports a copy of the session assession.jsonl(stripping worktree snapshot contents and large tool-output blobs), uploads it as a secret GitHub gist withgh, and prints both:Share URL: Opens the gist inhttps://bastani.ai/session/(override withATOMIC_SHARE_VIEWER_URL).Gist: The raw GitHub gist URL.
/share requires the GitHub CLI (gh) installed and signed in (gh auth login). Press Esc or Ctrl+C during upload to cancel.
Troubleshoot interactive mode
Check these common fixes if interactive mode behaves unexpectedly:!and!!commands are disabled: You are viewing a subagent transcript. Press←on an empty prompt to return tomain, then run the command./reloadis refused: Atomic blocks/reloadwhile a reply is streaming or compacting. Wait for the turn to settle or pressEsc, then run/reload.Alt+Entertoggles fullscreen on Windows Terminal: UseCtrl+Qto queue a follow-up andAlt+Qto pull queued messages back on Windows and WSL.- Session or extension dialog stops responding: Press
Ctrl+Cto close a stuck extension dialog or restart a stalled session process, then check/tasksbefore retrying.
Next steps
CLI reference
Every flag, subcommand, model-matching rule, and exit code.
Slash commands
Complete list of built-in and bundled extension slash commands.
Keybindings
All keyboard shortcuts, picker controls, and custom keybindings.
How Atomic works
Mental model of the turn loop, responsive UI, and context assembly.