Skip to content

These docs describe the next meetsoma core release (planned, coming soon). Today you install the Soma beta (0.42), where some commands and screens differ. Roadmap

Engine Settings

All runtime settings — models, compaction, UI, retry, shell, and more.

~/.soma/agent/settings.json (global) and .soma/settings.json (project-level, Soma-specific). Project overrides global. Use /settings to edit common options interactively. This page covers the engine settings that control the runtime — for Soma-specific settings (heat, boot, muscles), see Configuration.

File Locations

FileWhat It Controls
~/.soma/agent/settings.jsonEngine runtime — models, compaction, UI, retry, shell
.soma/settings.jsonSoma behavior — heat, boot steps, muscles, context warnings

This page documents the engine settings. For Soma settings, see Configuration.

Model & Thinking

SettingTypeDefaultDescription
defaultProviderstring—Default provider ("anthropic", "openai", "google", etc.)
defaultModelstring—Default model ID
defaultThinkingLevelstring—"off", "minimal", "low", "medium", "high", "xhigh"
hideThinkingBlockbooleanfalseHide thinking blocks in output
enabledModelsstring[]—Models for Ctrl+P cycling (same format as --models flag)
{
  "defaultProvider": "anthropic",
  "defaultModel": "claude-sonnet-4-20250514",
  "defaultThinkingLevel": "medium",
  "enabledModels": ["claude-*", "gpt-4o"]
}

See Models & Providers for the full model configuration guide.

Compaction

Controls how long conversations are summarized to stay within context limits.

SettingTypeDefaultDescription
compaction.enabledbooleantrueEnable auto-compaction
compaction.reserveTokensnumber16384Tokens reserved for response
compaction.keepRecentTokensnumber20000Recent tokens to keep verbatim
{
  "compaction": {
    "enabled": true,
    "reserveTokens": 16384,
    "keepRecentTokens": 20000
  }
}

Note: Soma’s breath cycle (/breathe, /exhale) provides an alternative to compaction. Some users prefer disabling compaction and using breathe rotation instead, which preserves full conversation history across sessions via preloads.

UI & Display

SettingTypeDefaultDescription
themestring"dark"Theme name. See Themes.
quietStartupbooleanfalseHide startup header
doubleEscapeActionstring"tree"Double-escape: "tree", "fork", or "none"
editorPaddingXnumber0Horizontal padding for input (0-3)
showHardwareCursorbooleanfalseShow terminal cursor

Retry

SettingTypeDefaultDescription
retry.enabledbooleantrueAuto-retry on transient errors
retry.maxRetriesnumber3Max retry attempts
retry.baseDelayMsnumber2000Base delay for exponential backoff
retry.maxDelayMsnumber60000Max server-requested delay before failing

Anthropic

SettingTypeDefaultDescription
anthropic.enableLongContextbooleanfalseOpt into Anthropic’s 1M context billing tier (Sonnet 4.6). See note below.
warnings.anthropicExtraUsagebooleanfalseShow Pi’s preventive OAuth-billing warning at session start. Soma defaults to false (suppressed).

⚠ Long-context billing prerequisite (Sonnet 4.6 only). Setting anthropic.enableLongContext: true makes Soma add the context-1m-2025-08-07 beta header to every Anthropic OAuth request. Your Anthropic account MUST have long-context billing enabled FIRST at claude.ai/settings/usage. Without it, EVERY request fails with 429 "Extra usage is required for long context requests" — even at 0% context. Anthropic interprets the header as “this client is willing to pay long-context rates” and rejects accounts that aren’t enrolled.

Opus 4.7 has 1M natively under OAuth (Anthropic granted Claude Code OAuth clients native 1M for Opus). Sonnet 4.6 does NOT — needs the beta opt-in + billing enrollment. The setting is informational; the actual header injection is via scripts/patches/apply-patches.sh at build time. Auto-apply on setting flip is a follow-up.

Shell

SettingTypeDefaultDescription
shellPathstring—Custom shell path
shellCommandPrefixstring—Prefix for every bash command (e.g., "shopt -s expand_aliases")
npmCommandstring[]—Custom npm command (e.g., ["mise", "exec", "node@20", "--", "npm"])

Scripts

SettingTypeDefaultDescription
scripts.maxInPromptnumber40Max scripts rendered in the boot scripts_table. Lower if the table crowds the prompt; higher if you want more discoverability at boot.

Guard

SettingTypeDefaultDescription
guard.trust.enabledbooleantrueEarned command trust on/off.
guard.trust.thresholdnumber3Same-command approvals before the guard stops asking (per project).
guard.trust.ttlDaysnumber30Days of disuse before an earned entry expires.

Terminal & Images

SettingTypeDefaultDescription
terminal.showImagesbooleantrueShow images in terminal
images.autoResizebooleantrueResize images to 2000x2000 max
images.blockImagesbooleanfalseBlock all images from being sent to LLM

Message Delivery

SettingTypeDefaultDescription
steeringModestring"one-at-a-time"How steering messages are sent: "all" or "one-at-a-time"
followUpModestring"one-at-a-time"How follow-up messages are sent

Delegation

Read from ~/.soma/agent/settings.json when soma:agent.delegate spawns a child.

SettingTypeDefaultDescription
delegate.defaultModelstring—Model for any child whose call and role name none. Below an explicit model:, delegate.override and a role’s default-model; above the first entry of enabledModels.
delegate.tiersobject{}Named model groups: {"cheap": ["opencode-go/space-bunny-free", "opencode/space-bunny-free"], "judge": "opus"}. A role (default-model: cheap), an explicit model: or delegate.override may name a tier. A list takes turns between its models and skips any that recently failed to start on this machine, so the same model on two accounts shares the load. A tier named like a built-in alias (haiku) replaces it.
delegate.overridestring—Model or tier for every child without an explicit model:, ahead of each role’s own default-model. For blanket switches (“all children on X this week”); remove it to return to role defaults.
delegate.headlessChainstring[]built-in listModels a headless child (headless:true, chains, or a non-claude-cli sync call) tries in order when none is named, as "provider/model". Free tiers end and rate-limit without notice — when headless work starts failing with 4xx or “unavailable”, edit this list. Four or five entries across providers lets a burst of children survive a per-minute limit.
delegate.terminalstringautoTerminal driver for background:true children ("tmux"). soma terminals prefer <driver> writes it.
{
  "delegate": {
    "defaultModel": "mistral/mistral-medium-latest",
    "headlessChain": [
      "opencode/big-pickle",
      "opencode/nemotron-3.5-lightning-free",
      "nvidia/nvidia/nemotron-3-super-120b-a12b"
    ]
  }
}

Branch Summary

SettingTypeDefaultDescription
branchSummary.reserveTokensnumber16384Tokens reserved for branch summarization
branchSummary.skipPromptbooleanfalseSkip “Summarize branch?” prompt on tree navigation

Example

{
  "defaultProvider": "anthropic",
  "defaultModel": "claude-sonnet-4-20250514",
  "defaultThinkingLevel": "medium",
  "theme": "dark",
  "compaction": {
    "enabled": true,
    "reserveTokens": 16384,
    "keepRecentTokens": 20000
  },
  "retry": {
    "enabled": true,
    "maxRetries": 3
  },
  "enabledModels": ["claude-*", "gpt-4o"],
  "editorPaddingX": 2
}

Project Overrides

Project settings (~/.soma/agent/settings.json locally or .pi/settings.json) override global settings. Nested objects are merged — you only need to specify what changes:

// Global: compaction enabled with 16K reserve
// Project override: reduce reserve for small-context models
{
  "compaction": { "reserveTokens": 8192 }
}
// Result: compaction still enabled, reserve now 8192