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.jsonmust 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
30sor"disabled"keep accepting it. - Automatic startup defaults. Interactive model or thinking switches (
/model,/thinking, or cycling shortcuts) savedefaultProvider,defaultModel,defaultThinkingLevel, andmodelThinkingLevels./scoped-modelssavesenabledModels. 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 likesubagents.agentOverrides), symlinks, and concurrent external edits. Saving writes only changed fields to.atomic(and only changed keys inside object settings such asmodelThinkingLevels). - Scope merging and legacy
.pifiles. Within one scope,.atomicoverrides.piper file, so legacyqueueModein.atomicbeatssteeringModein.pi, and setting an array to[]in.atomicclears the.piarray in that scope. Across global and project scopes,packages,extensions,skills,prompts, andthemescombine rather than replace; setting"packages": []in.atomic/settings.jsonclears only a legacy.pi/settings.jsonin that project, not global~/.atomic/agent/settings.json. Non-resource arrays (enabledModels,fallbackModels,npmCommand,resume.cache) replace the global array. Legacyskillsobjects ({ "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: invalidhttpIdleTimeoutMs, or an invalid activestorageorsessions.storageselection. - First model request: invalid
websocketConnectTimeoutMsorstreamDeadlineMs. - When the feature runs: an invalid
snapshotsblock (exceptsnapshots.pool.maxIdlePerRepository, which falls back to2); a negative or non-integercompaction.reserveTokens; an unset or invaliddecisionModel(wrong type, whitespace-padded string, unregistered ID, bare ID withoutprovider/, or a non-classifier model—/settingsshows unavailable IDs without failing); or a non-stringcompactionModel.
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 globaldefaultProjectTrust("ask"and"never"ignore project settings;"always"trusts them). Override for one run with--approve/-aor--no-approve/-na. - Eligible interactive starts open the early editor immediately while non-trust-gated resources load; trust-gated resources always wait for authorization.
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(shortand/orlongTTLs in seconds inmodels.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, wherecontinuationProbabilityis1.0while streaming and0.15(15%) while idle,missCostis the extra cost of a cache miss over a cache hit, andwarmCostis 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 viacache_warming_decision. - Fast and Ultrafast models. Fast and Ultrafast tiers are selected using their canonical
<model-id>-fastand<model-id>-ultrafastIDs anywhere models are configured (/model,enabledModels,fallbackModels, and subagents)—not via a separate setting. Reasoning suffixes work normally (for exampleopenai-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 asmorph/morph-compactor). See Custom compaction models. - Unsupported saved default provider. If
defaultProvideranddefaultModelname 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 rejectspromptuntil 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 usedefaultProvider/defaultModelwhen authenticated (at agentthinking, elsemodelThinkingLevels, elsedefaultThinkingLevel, elsemedium), falling back to the launching session’s model. WhenenabledModelsor--modelsis active, subagent model selection must stay inside that scope. Built-in agent overrides live undersubagents.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:
"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 resolvesenabledModels and --models patterns against authenticated, available models only (including models registered by extensions once they finish loading). Each pattern is evaluated in three steps:
- Exact unmodified match first. Checks for a case-insensitive exact match against
provider/idor bareidbefore interpreting:thinkingsuffixes or glob characters. Literal catalog IDs containing colons or brackets (such asqwen/qwen3-coder:exactoorprovider/model[1m]) match directly. - Glob patterns (
*,?,[). If the pattern contains glob characters and did not match verbatim, Atomic strips any valid trailing:thinkingsuffix (:off,:minimal,:low,:medium,:high,:xhigh, or:max, case-insensitive), checks for an exact match on the base ID (soprovider/model[1m]:highmatches literally), and otherwise runs case-insensitive glob matching against bothprovider/idand bareid. - Fuzzy substring match (non-globs). If the pattern has no glob characters and did not match verbatim, Atomic checks for a trailing
:thinkingsuffix (invalid suffixes warn and are dropped), then matches the remaining text as a case-insensitive substring againstmodel.idormodel.name. Among multiple matches, non-dated aliases beat datedYYYYMMDDIDs, and reverse-alphabetical order prefers newer versions.
- Provider-qualified vs. bare IDs. Use
provider/idto 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
-fastor-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:thinkingsuffix. Setting"enabledModels": []in.atomic/settings.jsonclears a global scope for that project.
What enabledModels controls
- New-session startup model. Without
--model,--continue, or--resume, Atomic starts ondefaultProvider/defaultModelif it is in scope (applying the scope entry’s:thinkingsuffix unless--thinkingoverrides it), or on the first matched model inenabledModelsotherwise. Ctrl+Pcycling and/model.Ctrl+Pcycles only through scoped models in order./modelopens filtered to scoped models (Tabtoggles scoped vs. all models;←/→adjusts thinking effort before selecting). Direct/model <name>searches only scoped models.- Subagent allowlist. Child subagents inherit the active
enabledModels/--modelsscope. 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 toenabledModels. If patterns match zero available models, subagent launches fail instead of widening to all models. Nonexistent catalog IDs reportno such model in the catalog.instead of a scope error. - Main-chat fallbacks stay independent. Main-chat
fallbackModelsis independent ofenabledModels, so you can keep an out-of-scope emergency fallback for main chat while child subagent fallback chains remain bound byenabledModels. - Extensions and SDK. Extensions read the resolved scope via
ctx.scopedModels, and SDK hosts can resolve patterns withresolveModelScopeFromModels()(Resolving scoped models).
Side effects from /model and /scoped-models
- Picking an out-of-scope model in
/model: PressingTaband picking a model outside scope adds it to the active session’s scope. If globalsettings.jsonalready has a non-emptyenabledModelslist, Atomic also appends"provider/id"to globalenabledModelsand saves it (project-only or--modelsscopes do not create a global list). - Editing in
/scoped-models: Every toggle, reorder, enable-all, or clear-all saves immediately to globalsettings.jsonas explicitprovider/identries, replacing hand-written globs and:thinkingsuffixes. Unmatched patterns remain visible as unavailable rows until unchecked. - Enabling or clearing all in
/scoped-models: Enabling every available model removesenabledModels. 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 asqwen/qwen3-coder:exactomatch first) with an optional case-insensitive:off,:minimal,:low,:medium,:high,:xhigh, or:maxsuffix (clamped to model support). Runatomic --list-modelsfor IDs. Invalid:thinkingsuffixes 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 (modelThinkingLevelsis not consulted during fallback). - CLI precedence.
--modelruns strictly as named and falls back only to--fallback-models, ignoring settingsfallbackModels.--no-fallbackdisables fallback for one run, and--fallback-modelsreplaces this list for one run. PressEscduring a retry wait or model switch to cancel. See CLI model options. - What retries vs. falls back. Atomic tries the next eligible entry in
fallbackModelswhen:- 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.maxRetryDelayMsskips 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.fallbackOnContentFiltertofalseto 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-messagesgateway’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. Withretry.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.
Esccancellations 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
/modelor model cycling. In print mode (-p), fallback notices and the finalModel: 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
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 asgoogle-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 localllama.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 editsettings.jsondirectly on disk, run/reloadto pick up the change. - Classifier-only validation.
decisionModelaccepts""(unset) or an exact case-sensitiveprovider/modelID of a registered classifier. Chat models, image models, compactors, bare IDs withoutprovider/, 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 typesafeorTYPESAFE_API_KEY); classifiers do not appear in/model. When a trusted project definesdecisionModel, changes without an explicit scope update the project setting; otherwise they save globally. Once a classifier is selected, temporary runtime failures duringdecide()can fall back to your active chat model unlessrequireProbabilities: trueis set.
thinkingBudgets
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).
httpIdleTimeoutMs).
Compaction
- Selecting Compaction model in
/settingsupdates the project override if one exists, otherwise global (saving""for Automatic), and takes effect immediately without/reload. - Leading or trailing whitespace in
settings.jsonis 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
- Server retry hints. Chat applies
retry.provider.maxRetryDelayMsto 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; pressEscto cancel it. Without a hint, Atomic uses its ordinary backoff. Recognized hints includeRetry-After-Ms,Retry-After, Bedrock’sX-Amz-Retry-After, Cloudflare’sretry_after, and Google’sRetryInfo.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()usesretry.provider.maxRetryDelayMsfor 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
Escin chat orCtrl+Cin 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 withNODE_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
fallbackModelsor fails with guidance. See Streams cut after a long attempt. - SDK retry deadlines. A running
retryDeadlinealso 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 ownhttpIdleTimeoutMslimit 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 thanretry.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.timeoutMsis the limit for each HTTP attempt to receive response headers, including Gemini, Vertex, Pi, and Bedrock. WebSocket handshakes usewebsocketConnectTimeoutMsinstead. 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 usesstreamDeadlineMs(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:
streamDeadlineMslimits 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.
settings.json. Neither change is required for normal use:
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 thanretry.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:
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). codemodeandtool_search.codemodeis on by default (remove with["-codemode"], or include explicitly in a replacement list);tool_searchis opt-in (["+tool_search"]). See codemode and tool search.- CLI and
/reload. Plain--toolsreplaces the set as an allowlist; modifier-only--toolsadjusts the resolved selection (including on/reload).--no-toolsdisables every tool even with an allowlist or modifiers.--no-builtin-toolssuppresses coding defaults only when no allowlist is given.--exclude-toolsfilters the result./reloadadds newly enableddefaultToolswithout re-enabling tools disabled mid-session.
Shell
On Windows, write JSON paths with forward slashes or escaped backslashes:
Tasks
Sessions
- Default.
~/.atomic/workflows/journal.sqlite(session_tables; under<agentDir>/workflows/whenATOMIC_CODING_AGENT_DIRis set unless it adopted a parent store; see Storage home). JSONL is opt-in viadir,--session-dir, orATOMIC_CODING_AGENT_SESSION_DIR. Optionalprefixnamespaces 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, SDKstorage(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{}onsessions.storageselects default SQLite rather than inheritingstorage. Relative paths in settings, JSON flags, and JSON env vars resolve from storage home;--session-dir,--session-store, andATOMIC_CODING_AGENT_SESSION_DIRresolve fromcwd. See Storage and team variables. - Validation and errors. Only the winning setting from
settings.jsonis validated, whereas process-level selections (--storage,--storage-file,ATOMIC_STORAGE, andATOMIC_SESSIONS_STORAGE) are validated unconditionally even when outranked. Naming the removed@bastani/atomic-storage-libsqladapter or setting any removedATOMIC_PROFILE=citeam variable fails startup withlibsql-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. secretsaccepts{ "env": "VAR" }or{ "file": "token.txt" }(relative paths resolve from storage home, falling back to parent if an existing file lives there; one trailing\nor\r\nis stripped).- For PostgreSQL, set
connectTimeoutMs(default10000),statementTimeoutMs(default30000), and PgBouncer endpoints under the adapter’soptions. These timeouts control individual requests, not how long a live session waits for PostgreSQL to come back. See Wait settings and PgBouncer example.
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;
0disables). - Numeric string (such as
"60000"). - Integer duration with unit
ms,s,m, orh, 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 to0.
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
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:
Integrations
- Herdr: Configure
herdr.enabledbelow 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.agentOverridesinsettings.json; see Subagent reference. - Intercom: Multi-node routing uses global
storage; see Intercom operations. - Codemode: Configure
codemode.modeandcodemode.inlineBudgetunder Tools.
Herdr
See Herdr for state aggregation, reporter conflicts, and privacy.
Telemetry and update checks
- Version-adoption telemetry. Controlled by
enableInstallTelemetry(disable with"enableInstallTelemetry": falseorATOMIC_TELEMETRY=0; force on withATOMIC_TELEMETRY=1/true/yes, whereATOMIC_TELEMETRYbeats legacyPI_TELEMETRY). Sends one bodylessGET https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption?version=<version>withUser-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 fromenableAnalyticsandtrackingId. - Update checks. Queries
https://registry.npmjs.org/@bastani/atomic/latest. Disable independently withATOMIC_SKIP_VERSION_CHECK=1(PI_SKIP_VERSION_CHECK=1). - Offline mode.
--offlineorATOMIC_OFFLINE=1(1,true, oryes, falling back toPI_OFFLINE;0orfalsekeeps 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.