Skip to main content
Atomic reads JSON settings from two scopes, with trusted project settings overriding global settings: Edit these files directly or run /settings to change common options interactively. For a starter file and project-override walkthrough, see Configure Atomic. For programmatic access through SettingsManager and createAgentSession(), see SDK and Settings management.

How settings load and save

  • Strict JSON and syntax errors. settings.json must be valid JSON (no // comments or trailing commas; leading UTF-8 BOMs are stripped). If a file has a JSON syntax error, Atomic warns, uses defaults for that scope, and stops writing to that scope so your file is never overwritten.
  • Durations. Numeric timeouts, delays, and intervals must be finite and non-negative. Atomic names invalid settings when it loads the file. Retry fields with invalid values fall back to the next settings scope or the default; invalid transport timeouts still stop requests that use them. Options that accept a duration such as 30s or "disabled" keep accepting it.
  • Automatic startup defaults. Interactive model or thinking switches (/model, /thinking, or cycling shortcuts) save defaultProvider, defaultModel, defaultThinkingLevel, and modelThinkingLevels. /scoped-models saves enabledModels. SDK calls, session restores, and automatic fallbacks do not overwrite saved defaults unless you request it.
  • Editor schema and safe merges. Add "$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/settings.schema.json" for editor completion and validation. Atomic preserves $schema, unknown keys (such as extension settings like subagents.agentOverrides), symlinks, and concurrent external edits. Saving writes only changed fields to .atomic (and only changed keys inside object settings such as modelThinkingLevels).
  • Scope merging and legacy .pi files. Within one scope, .atomic overrides .pi per file, so legacy queueMode in .atomic beats steeringMode in .pi, and setting an array to [] in .atomic clears the .pi array in that scope. Across global and project scopes, packages, extensions, skills, prompts, and themes combine rather than replace; setting "packages": [] in .atomic/settings.json clears only a legacy .pi/settings.json in that project, not global ~/.atomic/agent/settings.json. Non-resource arrays (enabledModels, fallbackModels, npmCommand, resume.cache) replace the global array. Legacy skills objects ({ "enableSkillCommands": ..., "customDirectories": [...] }) migrate automatically on load.
Validation and invalid values. Load-time type checks validate top-level keys and top-level list entries (plus deprecated skills object fields), ignoring wrong-typed values with a one-time warning without rewriting your file. Wrong-typed fields nested inside object settings (such as retry.maxRetries, compaction.enabled, terminal.showImages, or search.contextBefore) do not emit a load-time warning and either fall back to defaults or pass through the setting reader—use $schema in your editor to catch nested mistakes.A few settings fail strictly instead of falling back:
  • Startup or /reload: invalid httpIdleTimeoutMs, or an invalid active storage or sessions.storage selection.
  • First model request: invalid websocketConnectTimeoutMs or streamDeadlineMs.
  • When the feature runs: an invalid snapshots block (except snapshots.pool.maxIdlePerRepository, which falls back to 2); a negative or non-integer compaction.reserveTokens; an unset or invalid decisionModel (wrong type, whitespace-padded string, unregistered ID, bare ID without provider/, or a non-classifier model—/settings shows unavailable IDs without failing); or a non-string compactionModel.
For programmatic error classes, see SDK reference.

Project trust

Project settings in .atomic/settings.json (and legacy .pi/settings.json) load only when the project is trusted:
  • Interactive sessions prompt once before trusting a project with trust-gated files and save decisions in ~/.atomic/agent/trust.json (manage them with /trust).
  • Non-interactive modes (-p, --mode json, --mode rpc) never prompt; they follow global defaultProjectTrust ("ask" and "never" ignore project settings; "always" trusts them). Override for one run with --approve/-a or --no-approve/-na.
  • Eligible interactive starts open the early editor immediately while non-trust-gated resources load; trust-gated resources always wait for authorization.
See Project trust for the full list of trust-gated inputs and saved-decision behavior.

Models and thinking

See Choose a model for everyday model selection, Model providers for credentials, and Configure custom models for custom endpoints and overrides.
  • Cache warming. Runs only when the model declares promptCache (short and/or long TTLs in seconds in models.json) and the request uses a retention tier with a configured TTL. A refresh is sent only when expected savings (continuationProbability * missCost - warmCost) are at least $0.05, where continuationProbability is 1.0 while streaming and 0.15 (15%) while idle, missCost is the extra cost of a cache miss over a cache hit, and warmCost is one cache read plus one output token. Warming is disabled for Anthropic models without adaptive thinking (compat.forceAdaptiveThinking: true) whenever thinking is enabled (such as Claude 4.5 Haiku, Sonnet, and Opus), because replaying with a 1-token output cap changes Anthropic’s thinking-budget cache key. Refreshes are recorded in usage, never added to context, and can be intercepted by extensions via cache_warming_decision.
  • Fast and Ultrafast models. Fast and Ultrafast tiers are selected using their canonical <model-id>-fast and <model-id>-ultrafast IDs anywhere models are configured (/model, enabledModels, fallbackModels, and subagents)—not via a separate setting. Reasoning suffixes work normally (for example openai-codex/gpt-5.6-sol-fast:medium), and standard, fast, and ultrafast IDs act as separate candidates. See Fast models.
  • Compaction model (compactionModel). Configured under Compaction (default ""/"auto" for memory compaction, or a registered compactor ID such as morph/morph-compactor). See Custom compaction models.
  • Unsupported saved default provider. If defaultProvider and defaultModel name a provider still unsupported after extensions load, Atomic does not switch providers silently. Interactive mode warns, print and JSON modes warn on stderr and exit nonzero (stdout stays valid JSONL), and RPC rejects prompt until an explicit model switch succeeds. If the provider is supported but the model is unknown or unauthenticated, normal auto-selection applies.
  • Subagents (model: "auto"). Subagents use defaultProvider/defaultModel when authenticated (at agent thinking, else modelThinkingLevels, else defaultThinkingLevel, else medium), falling back to the launching session’s model. When enabledModels or --models is active, subagent model selection must stay inside that scope. Built-in agent overrides live under subagents.agentOverrides; see Subagent reference.

Claude progress updates and reasoning summaries

On Anthropic’s API, Claude Opus 5.5, Sonnet 5.5, Fable 5/5.1/5.2, and Mythos 5.1/5.2 previously mixed the model’s progress updates into its reasoning summaries. For these models, Atomic now asks Anthropic for progress updates only (display: "updates"). The updates appear as assistant text before tool calls, even when hideThinkingBlock is on. No change to your settings is needed to see them. Print mode writes progress to stderr and leaves only the final answer on stdout. Anthropic sends a short summary of each update, not the full note, and does not send reasoning summaries in the new default mode. To get the old reasoning summaries back, add these settings to ~/.atomic/agent/settings.json:
In "summarized" mode Anthropic still mixes progress and reasoning together, so Atomic shows both as thinking. To switch back to visible progress, remove anthropicThinkingDisplay or set it to "updates". Other models and providers are unchanged. Atomic leaves earlier messages as saved because it cannot tell which parts of an old summary were progress updates. SDK callers can override the display per request with anthropicThinkingDisplay in streamSimple or with thinkingDisplay in Anthropic-specific stream options. Set compat.thinkingDisplay in your model configuration to change the default for one model.

Model scope (enabledModels)

enabledModels (and the one-run CLI flag --models) restricts the active set of authenticated models for a session. Omit it or set [] to leave every authenticated model active.

How patterns match

Atomic resolves enabledModels and --models patterns against authenticated, available models only (including models registered by extensions once they finish loading). Each pattern is evaluated in three steps:
  1. Exact unmodified match first. Checks for a case-insensitive exact match against provider/id or bare id before interpreting :thinking suffixes or glob characters. Literal catalog IDs containing colons or brackets (such as qwen/qwen3-coder:exacto or provider/model[1m]) match directly.
  2. Glob patterns (*, ?, [). If the pattern contains glob characters and did not match verbatim, Atomic strips any valid trailing :thinking suffix (:off, :minimal, :low, :medium, :high, :xhigh, or :max, case-insensitive), checks for an exact match on the base ID (so provider/model[1m]:high matches literally), and otherwise runs case-insensitive glob matching against both provider/id and bare id.
  3. Fuzzy substring match (non-globs). If the pattern has no glob characters and did not match verbatim, Atomic checks for a trailing :thinking suffix (invalid suffixes warn and are dropped), then matches the remaining text as a case-insensitive substring against model.id or model.name. Among multiple matches, non-dated aliases beat dated YYYYMMDD IDs, and reverse-alphabetical order prefers newer versions.
Additional matching rules:
  • Provider-qualified vs. bare IDs. Use provider/id to pin a single provider. A bare ID or pattern matching multiple authenticated providers adds every matching provider to the scope.
  • Fast and Ultrafast IDs. Fast and Ultrafast versions have distinct IDs ending in -fast or -ultrafast, and a * in the provider part does not match into the model ID. "openai-*/gpt-6.2-sol" matches standard models only; use "openai-*/gpt-6.2-sol*" or list each ID explicitly to include faster tiers. Patterns never add a version the provider does not offer.
  • Order, deduplication, and project overrides. Results keep pattern order and deduplicate (provider, id) while preserving the first :thinking suffix. Setting "enabledModels": [] in .atomic/settings.json clears a global scope for that project.

What enabledModels controls

  • New-session startup model. Without --model, --continue, or --resume, Atomic starts on defaultProvider/defaultModel if it is in scope (applying the scope entry’s :thinking suffix unless --thinking overrides it), or on the first matched model in enabledModels otherwise.
  • Ctrl+P cycling and /model. Ctrl+P cycles only through scoped models in order. /model opens filtered to scoped models (Tab toggles scoped vs. all models; ←/→ adjusts thinking effort before selecting). Direct /model <name> searches only scoped models.
  • Subagent allowlist. Child subagents inherit the active enabledModels / --models scope. Any subagent start model (model: "auto", agent frontmatter, or per-call override) or child fallback outside scope is rejected. When a requested Fast or Ultrafast ID is out of scope while its base model is in scope, the error names the exact ID to add to enabledModels. If patterns match zero available models, subagent launches fail instead of widening to all models. Nonexistent catalog IDs report no such model in the catalog. instead of a scope error.
  • Main-chat fallbacks stay independent. Main-chat fallbackModels is independent of enabledModels, so you can keep an out-of-scope emergency fallback for main chat while child subagent fallback chains remain bound by enabledModels.
  • Extensions and SDK. Extensions read the resolved scope via ctx.scopedModels, and SDK hosts can resolve patterns with resolveModelScopeFromModels() (Resolving scoped models).

Side effects from /model and /scoped-models

  • Picking an out-of-scope model in /model: Pressing Tab and picking a model outside scope adds it to the active session’s scope. If global settings.json already has a non-empty enabledModels list, Atomic also appends "provider/id" to global enabledModels and saves it (project-only or --models scopes do not create a global list).
  • Editing in /scoped-models: Every toggle, reorder, enable-all, or clear-all saves immediately to global settings.json as explicit provider/id entries, replacing hand-written globs and :thinking suffixes. Unmatched patterns remain visible as unavailable rows until unchecked.
  • Enabling or clearing all in /scoped-models: Enabling every available model removes enabledModels. Clearing all saves "enabledModels": [] and unscopes the active session.

Model-matching comparison

See CLI model options for CLI flag precedence.

fallbackModels

Ordered fallback chain for main-chat turns when the active model fails:
  • Entry format and matching. Use provider/model (preferred; bare IDs and fuzzy substrings also match, and exact unmodified IDs containing / or : such as qwen/qwen3-coder:exacto match first) with an optional case-insensitive :off, :minimal, :low, :medium, :high, :xhigh, or :max suffix (clamped to model support). Run atomic --list-models for IDs. Invalid :thinking suffixes or unmatched entries warn once after extensions load and are skipped. Ambiguous bare IDs prefer the current or default provider and skip if neither matches.
  • Thinking level without a suffix. Uses defaultThinkingLevel, else the current session’s thinking level, else "medium", clamped to model support (modelThinkingLevels is not consulted during fallback).
  • CLI precedence. --model runs strictly as named and falls back only to --fallback-models, ignoring settings fallbackModels. --no-fallback disables fallback for one run, and --fallback-models replaces this list for one run. Press Esc during a retry wait or model switch to cancel. See CLI model options.
  • What retries vs. falls back. Atomic tries the next eligible entry in fallbackModels when:
    • The account has run out of quota, credits, or spending allowance. Retries do not refill a balance. This includes OpenAI Chat or compatible gateways reporting exhausted quota, Anthropic reporting too little credit (with an API key or in signed-in Fast mode), and OpenCode Zen, OpenCode Go, or Z.ai reporting that a plan limit is exhausted. Atomic skips models on that account for the rest of the turn, even under another provider name. Top up, wait for the quota to renew, or add a fallback that uses a different account.
    • The provider asks for a wait above your limit. A rate limit (HTTP 429) or server error (HTTP 5xx) with a retry hint above retry.provider.maxRetryDelayMs skips same-model retries. Hints at or below the cap and transient errors without a hint keep the normal retry budget. See Retry to change the limit.
    • A content filter declines the request. This includes an OpenAI content refusal, an Anthropic refusal or sensitive-content stop, and a Gemini or Vertex AI safety block on the prompt or response. Atomic tries the next model by default; set retry.fallbackOnContentFilter to false to keep the retry on the same model instead. This does not disable the provider’s filters.
    • The model cannot serve the request. Authentication failures, missing models, incompatible requests, and refused TLS certificates skip same-model retries. A custom pi-messages gateway’s HTTP 404 means the model is unavailable, and HTTP 400 means the request is incompatible unless the gateway provides a more specific error.
    • Same-model retries run out. Short rate limits, transient server or network errors, timeouts, empty completions, and provider-intercepted zero-output canned refusals retry first. An unrecognized error retries first only if you have configured fallbackModels. With retry.enabled: false, these failures advance without agent-level retries.
    • The request is too large and compaction cannot fix it. Atomic tries compaction first, then falls back only if compaction is off, fails, or does not clear the context overflow. Esc cancellations and non-fallbackable task errors never advance the chain.
  • When several models use the same account. A rejected login or key (HTTP 401, or HTTP 403 that explicitly rejects the credential) excludes the entire account for the rest of the turn. An account-wide rate-limit wait above your retry limit skips other models on that account while that wait still exceeds the limit, as long as a later fallback uses another account. A rate limit (HTTP 429) that does not name its model may limit only that model, so if every remaining fallback is on that account, Atomic tries the next one once instead of ending the turn. A wait from a server error’s retry advice still skips the whole account. A cooldown or access restriction for one model does not disqualify other models on the account.
  • How Atomic matches accounts. Two models share account limits if they use the same API endpoint (baseUrl) and the same API key or sign-in token, even when they have different provider names. A trailing slash on the URL does not make it a different endpoint. For Codex, Atomic matches the ChatGPT account itself, even after a token is renewed. For cloud sign-ins without a key, it uses the configured identity, such as an AWS profile or the Vertex project, location, and credential file (if set).
  • Choosing an independent backup. No settings change is needed. For a backup that can serve the request when an account runs out of quota, use a separate account or a different provider, as in the example above. A new provider name alone is not a backup account.
  • Missing credentials and incompatible requests. Atomic skips providers that aren’t signed in or configured with a key. If none of the models has credentials, it stops and lists the missing providers. An incompatible request excludes only the model that rejected it, including variants of that model with different reasoning levels.
  • Persistence, print output, and billing. Once a fallback runs, it stays active for later turns (keeping thinking-level changes) until you switch via /model or model cycling. In print mode (-p), fallback notices and the final Model: ran on <fallback>, not the requested <model>. line go to stderr so stdout stays clean. Because switching providers changes billing and data-handling terms, list only approved providers.

decisionModel

Selects the classifier model used for decide() and for structured_output calls that do not name their own model. It is unset ("") by default and raises an error the first time a decision runs without a configured classifier. It never changes your chat model or subagent execution model.
  • Choose a classifier. Open /settings → Decision model to pick from your registered classifier models (such as google-decisions/gemini-decision-1, openai-decisions/gpt-6-luna, github-copilot/microsoft-decision-1.1, github-copilot/gpt-6-luna-decisions, typesafe/jev-latest, or a local llama.cpp/<id> classifier), or update it through the SDK (session.setDecisionModel()) or RPC (set_decision_model). Changes made through /settings, the SDK, or RPC take effect right away without /reload. If you edit settings.json directly on disk, run /reload to pick up the change.
  • Classifier-only validation. decisionModel accepts "" (unset) or an exact case-sensitive provider/model ID of a registered classifier. Chat models, image models, compactors, bare IDs without provider/, and unknown IDs are rejected by the SDK, RPC, and at decision time. In /settings, an unavailable saved ID stays visible so you can replace or clear it without crashing.
  • Credentials and scope. Sign in to the classifier’s provider (for example /login typesafe or TYPESAFE_API_KEY); classifiers do not appear in /model. When a trusted project defines decisionModel, changes without an explicit scope update the project setting; otherwise they save globally. Once a classifier is selected, temporary runtime failures during decide() can fall back to your active chat model unless requireProbabilities: true is set.
See Structured decisions, Classifier models, Local classification, and TypeSafe Jev.

thinkingBudgets

Changes apply to new sessions. Resumed sessions keep the budget last used on the same model and thinking level so the provider does not re-bill the cached conversation; switching models or thinking levels applies the new setting.

Interface and display

Interactive mode runs fullscreen with stacked transient notices; closing an overlay clears text selection inside it. Ctrl+G checks externalEditor, $VISUAL, $EDITOR, then Notepad (Windows) or nano (POSIX) in main chat, embedded chat, and extension dialogs; saving empty clears text, while an editor error preserves the original text.

Terminal and images

Explicit JSON values for terminal.hyperlinks, terminal.images, and terminal.trueColor override their ATOMIC_* and legacy PI_* environment variables.

Markdown

Warnings

Managed state keys

Atomic writes these keys automatically in global settings.json. Leave them unchanged unless troubleshooting.

Message delivery

How transport modes work on providers that support both WebSocket and SSE (such as OpenAI Codex):
  • "auto" (default) and "websocket-cached": use WebSocket with connection-scoped continuation (previous_response_id, 5-minute idle cache TTL, 55-minute max connection age), falling back to SSE for the rest of the session if WebSocket fails before streaming starts.
  • "websocket": use WebSocket without cached continuation (sends the full request body every turn), still falling back to SSE on pre-stream failures.
  • "sse": disable WebSocket and always stream over SSE (with zstd request-body compression on Codex).
For the global HTTP idle timeout, see HTTP (httpIdleTimeoutMs).

Compaction

  • Selecting Compaction model in /settings updates the project override if one exists, otherwise global (saving "" for Automatic), and takes effect immediately without /reload.
  • Leading or trailing whitespace in settings.json is trimmed on read; non-string values fail with an error instead of falling back. Saved non-compactor IDs (chat, classifier, or image) reset to "auto" on startup, while unknown string IDs stay in the file and fall back to memory compaction with a notice.
  • Removed legacy compaction keys (compression_ratio, preserve_recent, keepContextShare, query, planningTimeoutMs, modelOverrides, background, backgroundThresholdPercent, historyRecall) are ignored silently. See Compaction and Compactor request contract.

Branch summary

Session summary

Retry

Do not set retry.provider.timeoutMs to 0 to disable timeouts. It makes an HTTP request time out immediately; setup still uses the default limit. Leave retry.provider.timeoutMs unset and set httpIdleTimeoutMs to 0 or "disabled" instead. The OpenAI, Azure OpenAI, and Anthropic SDKs still enforce their own request timeout of at most about 24.8 days. If that timeout expires, Atomic treats it as an ordinary transient request failure. The OpenAI and Anthropic SDKs still enforce a limit of about 25 days; Atomic treats it as a retryable timeout.
  • Server retry hints. Chat applies retry.provider.maxRetryDelayMs to server hints across providers, including provider-client retries on Amazon Bedrock. For example, if a gateway’s HTTP 503 response asks for a six-minute wait in its headers or body, the default 60-second limit sends chat to the next available fallback immediately. When retrying, chat shows a countdown for the full server wait; press Esc to cancel it. Without a hint, Atomic uses its ordinary backoff. Recognized hints include Retry-After-Ms, Retry-After, Bedrock’s X-Amz-Retry-After, Cloudflare’s retry_after, and Google’s RetryInfo.retryDelay. For an Anthropic HTTP 429 with no explicit delay, Atomic uses the reset time for the depleted rate-limit bucket. If there is no eligible fallback, the error is shown instead of waiting above the limit.
  • Classifier decisions in extensions. decide() uses retry.provider.maxRetryDelayMs for its classifier requests too. For example, { "retry": { "provider": { "maxRetryDelayMs": 5000 } } } skips a retry if the provider requests more than five seconds. When fallback is allowed, the current chat model can answer instead; callers that require probabilities get the classifier error. The default cap remains 60 seconds.
  • Long waits. An accepted retry can wait more than about 25 days. Interactive chat shows the time remaining, and print mode writes a notice for a wait of a day or more. Press Esc in chat or Ctrl+C in print mode to cancel. Elapsed waits may pause while the computer is asleep; a dated provider cooldown is checked again after wake. In-process retry waits are not saved across restarts.
  • Refused TLS certificates. Untrusted certificates (such as a self-signed certificate or corporate TLS proxy) are never retried. The error names the host, the error code (such as SELF_SIGNED_CERT_IN_CHAIN), and how to trust a private CA with NODE_EXTRA_CA_CERTS. Connection resets during TLS handshakes still retry.
  • GitHub Copilot long cuts. A stream cut after 5 minutes or more gets 1 retry; a second consecutive long cut switches to fallbackModels or fails with guidance. See Streams cut after a long attempt.
  • SDK retry deadlines. A running retryDeadline also ends a retry that is waiting on an extension request gate, a provider cooldown, or a local request budget. The expired retry is not sent. See Custom provider streaming.

When a provider stops responding

  • Before sending: Press Esc to cancel setup or stop waiting for a request gate, cooldown, or local request budget. Setup, including checking a fallback model’s credentials, uses retry.provider.timeoutMs. Waiting for permission to send has its own httpIdleTimeoutMs limit and does not use up the request’s HTTP timeout. A running SDK retry deadline can end that wait sooner. If either wait times out, Atomic does not send the request. Atomic does not wait out a provider cooldown longer than retry.provider.maxRetryDelayMs. A request to the rate-limited model fails at once with the retry-limit message, so its fallbacks apply. A request to another model on the same account is sent, unless the wait came from a server error’s retry advice. Then every model on the account fails at once with HTTP 503, which says how much longer the server asked to wait.
  • Waiting for a response: retry.provider.timeoutMs is the limit for each HTTP attempt to receive response headers, including Gemini, Vertex, Pi, and Bedrock. WebSocket handshakes use websocketConnectTimeoutMs instead. When Atomic inspects an HTTP error body for details, such as which model hit a rate limit, it waits at most 250 ms and no longer than the remaining request timeout. If the body stalls, Atomic uses the status and headers without waiting for the rest.
  • Waiting for an extension: Payload and response hooks use retry.provider.timeoutMs. Each stream-event hook uses streamDeadlineMs (or the request timeout if the stream deadline is disabled). Esc stops waiting for a hook even if the extension itself does not finish. A hook timeout names the hook that stalled.
  • After the stream opens: streamDeadlineMs limits how long Atomic waits for new content. Non-empty text, thinking, or tool-call updates, completed blocks, and events that end the response count as progress. Pings, empty updates, and metadata do not. Increase this setting if a model legitimately goes quiet for longer while thinking. This is not a limit on the total length of a progressing response.
Request and stream timeouts are temporary failures, so normal retry and fallback settings apply. Esc cancels the attempt instead of retrying it. For example, to allow up to two minutes for a server-requested retry wait and keep content refusals on the current model, add this to settings.json. Neither change is required for normal use:
Full retry settings example:

Retries outside chat

Structured decisions (including classifier requests) and session or branch summaries stop retrying the current model if its account is out of quota or the server asks for a delay longer than retry.provider.maxRetryDelayMs (60,000 ms by default). They do not shorten the server’s wait and resend early. A structured decision can still use an eligible fallback; summaries do not use the chat fallback chain. For example, to allow a server-requested wait of at most 15 seconds, use this in settings.json:
Setting retry.provider.maxRetryDelayMs to 0 allows the full server-requested wait, subject to any request deadline. retry.maxAgentDelayMs caps the delay Atomic chooses when there is no server hint; it does not shorten a server-requested wait. Neither setting lets Atomic retry an exhausted quota. Remote compactors make one request and fall back to memory compaction on failure. OpenRouter image generation also stops on quota exhaustion, even if the SDK caller has enabled retries.

Tools

Built-in tool names include read, bash, powershell, kill, edit, write, find, search, ask_user_question, todo, codemode, tool_search, and ls.
  • Merging and modifiers. Modifier-only arrays start from standard defaults (project modifier-only arrays layer over global defaultTools). Plain names or [] replace the prior list ([] keeps extension and custom tools).
  • codemode and tool_search. codemode is on by default (remove with ["-codemode"], or include explicitly in a replacement list); tool_search is opt-in (["+tool_search"]). See codemode and tool search.
  • CLI and /reload. Plain --tools replaces the set as an allowlist; modifier-only --tools adjusts the resolved selection (including on /reload). --no-tools disables every tool even with an allowlist or modifiers. --no-builtin-tools suppresses coding defaults only when no allowlist is given. --exclude-tools filters the result. /reload adds newly enabled defaultTools without re-enabling tools disabled mid-session.

Shell

Native Windows and shellCommandPrefix: On native Windows, Atomic prepends shellCommandPrefix to both model bash tool calls (which run in Bash) and interactive !/!! commands (which run in PowerShell), while the model powershell tool ignores it. PowerShell syntax breaks every bash tool call, and Bash syntax breaks every !/!! command. Leave shellCommandPrefix unset on native Windows unless one side is disabled (inside WSL, both run in Bash).
On Windows, write JSON paths with forward slashes or escaped backslashes:

Tasks

Sessions

  • Default. ~/.atomic/workflows/journal.sqlite (session_ tables; under <agentDir>/workflows/ when ATOMIC_CODING_AGENT_DIR is set unless it adopted a parent store; see Storage home). JSONL is opt-in via dir, --session-dir, or ATOMIC_CODING_AGENT_SESSION_DIR. Optional prefix namespaces SQLite and adapter tables inside a shared database (accepted by the schema on { "memory": true } as well, though ignored by in-memory stores).
  • Precedence. Highest to lowest: SDK sessionStore, SDK storage (SDK storage), --no-session / --session-dir / --session-store, --storage / --storage-file, ATOMIC_SESSIONS_STORAGE / ATOMIC_CODING_AGENT_SESSION_DIR, ATOMIC_STORAGE, sessions.storage, storage, and default SQLite. Project selections replace global objects whole rather than merging; an explicit {} on sessions.storage selects default SQLite rather than inheriting storage. Relative paths in settings, JSON flags, and JSON env vars resolve from storage home; --session-dir, --session-store, and ATOMIC_CODING_AGENT_SESSION_DIR resolve from cwd. See Storage and team variables.
  • Validation and errors. Only the winning setting from settings.json is validated, whereas process-level selections (--storage, --storage-file, ATOMIC_STORAGE, and ATOMIC_SESSIONS_STORAGE) are validated unconditionally even when outranked. Naming the removed @bastani/atomic-storage-libsql adapter or setting any removed ATOMIC_PROFILE=ci team variable fails startup with libsql-removed (see Moving off libSQL). Open failures never fall back to memory silently. See Choosing a store and Storage.

Storage adapters

Install an adapter Atomic package (such as @bastani/atomic-storage-postgres), or pass its directory via --extension or SDK additionalExtensionPaths (which takes precedence over settings), and reference it in storage or sessions.storage:
  • An empty shared storage: {} uses <storageHome>/storage.sqlite.
  • secrets accepts { "env": "VAR" } or { "file": "token.txt" } (relative paths resolve from storage home, falling back to parent if an existing file lives there; one trailing \n or \r\n is stripped).
  • For PostgreSQL, set connectTimeoutMs (default 10000), statementTimeoutMs (default 30000), and PgBouncer endpoints under the adapter’s options. These timeouts control individual requests, not how long a live session waits for PostgreSQL to come back. See Wait settings and PgBouncer example.
Storage adapter modules execute code with Atomic’s permissions. Review any adapter configured in .atomic/settings.json before trusting a project. See Selecting an adapter.

Snapshots

See Worktree snapshots and Worktree snapshots reference.

Resume

HTTP

Accepted duration forms for httpIdleTimeoutMs, websocketConnectTimeoutMs, and streamDeadlineMs:
  • Non-negative finite number (floored to whole milliseconds; 0 disables).
  • Numeric string (such as "60000").
  • Integer duration with unit ms, s, m, or h, case-insensitive (such as "500ms", "30s", "5m", "1h"). Decimal durations ("1.5m"), negative values, blank strings, and other units ("d") are rejected.
  • "disabled" (case-insensitive), equivalent to 0.
httpIdleTimeoutMs applies to fetch, provider admission waits and HTTP clients (including the default for retry.provider.timeoutMs), and the default total wall-clock budget for one structured decision. /settings presets offer 30 sec (30000), 1 min (60000), 5 min (300000), 10 min (600000), 30 min (1800000), and Disabled ("disabled" or 0). The standalone binary checks this timeout on a coarse timer, ending a silent request up to about 8 seconds late (or up to about two minutes late for timeouts longer than four minutes).

Network proxy

Existing HTTP_PROXY and HTTPS_PROXY environment variables take precedence over httpProxy in settings.json. For NO_PROXY, ALL_PROXY, OpenAI Codex WebSocket proxying, and differences between npm-installed atomic and the standalone binary, see Proxy variables.

Resources

Paths in ~/.atomic/agent/settings.json resolve from ~/.atomic/agent; paths in .atomic/settings.json resolve from .atomic. Supports absolute paths, ~, globs, !exclusions, +exact-include, and -exact-exclude. All five resource lists (packages, extensions, skills, prompts, and themes) combine global and project entries rather than replacing them. Legacy workflows settings no longer run workflows. Atomic reads their paths only when you ask to convert a workflow to a skill.

packages

Load all resources with a string entry, or filter specific resources with an object entry ("autoload": false starts empty and applies only explicit patterns). Supported filter keys are extensions, skills, prompts, themes, mcpServers, and agents:
See Atomic packages.

Integrations

  • Herdr: Configure herdr.enabled below to control terminal pane status reporting.
  • MCP servers: Configured separately in mcp.json (global and project); see MCP servers.
  • Subagents: Configure built-in agent overrides under subagents.agentOverrides in settings.json; see Subagent reference.
  • Intercom: Multi-node routing uses global storage; see Intercom operations.
  • Codemode: Configure codemode.mode and codemode.inlineBudget under Tools.

Herdr

See Herdr for state aggregation, reporter conflicts, and privacy.

Telemetry and update checks

  • Version-adoption telemetry. Controlled by enableInstallTelemetry (disable with "enableInstallTelemetry": false or ATOMIC_TELEMETRY=0; force on with ATOMIC_TELEMETRY=1/true/yes, where ATOMIC_TELEMETRY beats legacy PI_TELEMETRY). Sends one bodyless GET https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption?version=<version> with User-Agent: atomic/<version> (<platform>; <runtime>; <arch>) and no UUID, cookie, auth header, or user content. Fires only in interactive mode on first launch with fresh settings or after upgrading to a release with changelog entries, never on every launch, npm install, or -p/RPC. Atomic stores only UTC date, version, and an aggregate count; Cloudflare processes transient connection metadata (IP, TLS) to serve the request. Separate from enableAnalytics and trackingId.
  • Update checks. Queries https://registry.npmjs.org/@bastani/atomic/latest. Disable independently with ATOMIC_SKIP_VERSION_CHECK=1 (PI_SKIP_VERSION_CHECK=1).
  • Offline mode. --offline or ATOMIC_OFFLINE=1 (1, true, or yes, falling back to PI_OFFLINE; 0 or false keeps network checks enabled) disables all startup network requests (update checks, package update checks, version-adoption telemetry, and model catalog refreshes).

Debug mode

Use --debug or ATOMIC_DEBUG=1 for a single run (shows a debug badge in the footer). Toggling in /settings applies immediately to new work; already-running workers and the Intercom broker apply it on next restart. See Debugging. For a complete example config and project-override walkthrough, see Configure Atomic and Project overrides.