Skip to main content
Blitz
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

002 · Config

Configuration (spec_002_config)

Status Implemented. Reverse-engineered from 53f8c53 (2026-09-24) and kept with the code since; its paths checked 2026-09-27 (//tools/specs).
Source pkg/config/config.go, features.go, locale.go, agentmodels.go, modelsettings.go, providers.go; pkg/secrets; template and key commands in apps/cli/configcmd.go, configkeys.go
Tests pkg/config/*_test.go, pkg/secrets/secrets_test.go, apps/cli/configkeys_test.go, pkg/service/server/config_test.go
Related spec_020_cli, spec_015_models

1. Purpose

One TOML file, .env.toml, loaded through github.com/rrmcguinness/modenv (hierarchical load plus secret decryption), configures everything. The file is trusted input: it can set API keys, base URLs and auto-approval, so only trusted locations are read.

2. Location and trust

  • CFG-01 The config directory is, in order: --config DIR, $MODENV_PREFIX, ~/.blitz. The current working directory and the workspace are never consulted implicitly; a project .env.toml is ignored unless the user passes --config .. Planned (decision 2026-09-26): a restricted project layer, .blitz/settings.toml, with trust pinned to a content hash and never carrying credentials or endpoints — spec_027_parity §2.4. User configuration keeps this rule.
  • CFG-02 Load sets MODENV_PREFIX to the chosen directory and calls modenv.Load only when <dir>/.env.toml exists; otherwise defaults apply.
  • CFG-02 2026-11-05 (scan N26-api-client-config#6, the reader: a stray .env.local.toml overrode what Settings saved, unseen). Load reads <dir>/.env.toml alone (no .env.<MODENV_RUNTIME>.toml or .env.local.toml beside it, which modenv merged unseen by every editor), decoding modenv’s xor: values anywhere in it. The order is: the global file, the workspace’s (CFG-41), secrets (CFG-43), the environment, the choices (CFG-48a), the project’s tightening, device management (EN-10), the organization (EN-30).
  • CFG-03 Environment fallbacks are applied after the file: LLM_PROVIDER; GEMINI_API_KEY then GOOGLE_API_KEY (only if no Gemini key); OPENAI_API_KEY (if empty); OPENAI_BASE_URL, OPENAI_MODEL (override); ANTHROPIC_API_KEY (if empty); BLITZ_MODEL, BLITZ_AGENT, BLITZ_AGENCY (override); BLITZ_LOG_LEVEL; BLITZ_TELEMETRY (1/true/yes/on enables, 0/false/no/off disables).
  • CFG-04 ExpandHome expands only ~ and ~/…; ~user is left unchanged.
  • CFG-05 Workspace-relative search paths (skills, agents) are resolved against the workspace, not the process CWD; the project’s agents and skills load as prompt text, and its skills’ scripts run only once the project’s settings are trusted (spec_031_project_config). Agent search paths are ~/.blitz/agents and .agents/agents (./agents until 2026-10-01). blitz.trust_workspace (only from the user’s own settings) is deprecated: it trusts the project’s settings for each run without recording it.

3. Schema and defaults

Section Key Default Notes
[blitz] default_agent blitz
default_model "" overrides llm.<provider>.model
agency_level high low|medium|high|extreme
temperature / max_tokens 0.2 / 65536 global generation settings (max_tokens was 8192 until 2026-10-01: with thinking counted against it, long replies such as a file were cut off). One default for every model: when a provider rejects it as above the model’s maximum and says what that is (Anthropic, OpenAI, Gemini), the request goes again at that maximum, which the model keeps (outputcap.go)
permission_mode auto (unset; bypass with auto_approve = true) auto|default|accept-edits|plan|dont-ask|bypass; bypass needs the OS sandbox; a workspace’s own settings may set it (spec_005_approvals APR-14)
auto_approve false older spelling of permission_mode = "bypass"
goal_max_continues 20 how often a /goal sends the agent on before stopping (spec_017_sessions SES-19)
plan_review agent-decides always (every prompt is planned for approval first), agent-decides (the agent may call enter_plan_mode), never (spec_018_workspace WS-45)
trust_workspace false Deprecated: trusts the project’s settings for each run (CFG-05)
[llm] provider gemini gemini|anthropic|openai|ollama|bedrock|azure|vertex-anthropic|api
max_retries 3 0 disables
stall_timeout_seconds 600
fallback_models [] provider/model or bare model
[llm.gemini] api_key, api_key_command, api_key_ttl (5m), model, auth (api_key, adc or oauth; a key, when there is one, comes first: spec_015_models), project_id, location model gemini-4-argon (gemini-3.8-flash until 2026-10-13); auth api_key adc: spec_015_models
[llm.openai] api_key, api_key_command, api_key_ttl, base_url, model https://api.openai.com/v1, gpt-4o shared by ollama
[llm.anthropic] api_key, api_key_command, api_key_ttl, auth (api_key, oauth or adc), profile, project_id, location, model, base_url, fallbacks claude-opus-5, default; auth api_key oauth, adc: spec_015_models
[llm.bedrock] region, profile, model Claude on Amazon Bedrock (spec_015_models §3)
[llm.azure] resource, base_url, anthropic_base_url, api_key, auth (api_key or entra), model OpenAI models and Claude on Azure (spec_015_models §3)
[llm.api] base_url, model, headers (a table: header name → value), token_script, token_script_language (shell, python or typescript) language shell A gateway speaking OpenAI’s Responses API; {{TOKEN_SCRIPT}} in a header or the URL is the script’s output (spec_015_models §3.4)
[skills] enabled, paths, [skills.policy] on; ~/.blitz/skills, ./skills, .agents/skills see spec_013_skills
[workers] enabled, paths, notify, notify_on, [workers.policy] on; .agents/workers, workers; none; failed, limited see spec_023_workers
[tools] shell_timeout_seconds 120, max_file_size_bytes 10 MiB, workspace_dir ., auto_approve_commands false, trash system (deleted files to the system’s Trash, or workspace: .blitz/trash, spec_029 FIL-37a), uc_tools_dir, approvals_file ~/.blitz/approvals.json, max_parallel 8, max_background_agents 4, background_agent_timeout 30m, background_agent_max_turns 50, background_agent_max_cost_usd 0 (none) (spec_032_background_agents)
[processes] cpu_percent 90, busy_for 2m, memory_mb 2048, growth_window 10m, left_after 2h When an agent’s background process is flagged as busy, using memory, or left running (spec_052_processes PR-70)
[session] storage_dir ~/.blitz/sessions, auto_save true
[permissions] allow, ask, deny lists of rules; read_only_defaults; [permissions.auto] model, environment (the auto mode’s reviewer, APR-14a) []; true; "" spec_005_approvals APR-15; a workspace’s lists add to the global ones (PermissionsConfig.Merge); not the same as sandbox.commands.allow (an allow-list)
[sandbox] allowed_paths, read_only_paths, blocked_paths (defaults below), hidden_paths (defaults below), shell_writable_paths (~/.cache, ~/go/pkg/mod, ~/.npm), shell auto (required on Linux; BLITZ_SANDBOX_SHELL overrides), allow_network true, scrub_env (defaults below) see spec_006_filetools, spec_007_shell
[sandbox.commands] allow, deny (defaults below), auto_approve
[ui] markdown true, spinner true, terminal_title true, history_file ~/.blitz/history, history_size 1000, diff_lines 120, theme auto, personality default (spec_064_personality), locale en-US, locales_dir ~/.blitz/locales, style (none), notify_after 30, notify both, task_alerts notify, status_line (none), editor emacs, keybindings ~/.blitz/keybindings.toml style: spec_012_memory MEM-40
[images] enabled true, dir ~/.blitz/images, max_dimension 1568, max_input_mb 20, retain_days 30, model (none: no drawing) model is generate_image’s: spec_015_models MDL-95; images.model can be set with SetConfigValue
[pdf] page_size auto (a4, letter; auto: Letter where the locale’s country uses it) the export_pdf tool: spec_006_filetools FS-70
[audio] model (none: no speech), voice, speakers (two {name, voice}), max_chars 9000 generate_audio: spec_015_models MDL-90; audio.model and audio.voice can be set with SetConfigValue
[voice] enabled false, model (none: the newest live model listed), voice (none: the personality’s, else Kore), listen tap (hold), summaries voice (always, off), idle_minutes 5 (1–60), engine live (cloud: spec_063 VOX-70), text_model, language, hear_model and hear_location (the cloud engine’s; none: their defaults) the person’s only, never a workspace’s; Settings › Voice sets each: spec_063_voice VOX-04
[profile] name, gender, pronouns (none: gender-neutral words, never guessed) the person’s only; Settings › Personality’s About you: spec_064_personality PER-05
[memory] enabled true, files ["AGENTS.md","CLAUDE.md","GEMINI.md","BLITZ.md"], local_files ["CLAUDE.local.md","BLITZ.local.md"], rule_dirs [".blitz/rules",".agents/rules",".claude/rules"], global ~/.blitz/BLITZ.md, global_rules ~/.blitz/rules, max_bytes 32 KiB, auto true (the agent’s notes) see spec_012_memory
[context] compaction true, token_threshold 120000 (left at it: the model’s own point, spec_056 CA-110), retain_events 20
[audit] enabled true, dir ~/.blitz/audit
[log] level info, dir ~/.blitz/logs, retain_days 14, levels (a level per logger, gateway = "debug"; LOG-01b)
[telemetry] enabled false, endpoint, capture_content false
[usage] count true (a daily ping counts the install as active, spec_054_active_installs; global settings only; false sends nothing and makes no install ID)
[checkpoints] enabled true, max_bytes 64 MiB
[web] enabled true, allow_domains, deny_domains, allow_private false, max_bytes 2 MiB, timeout_seconds 20, search_provider, search_api_key, search_url, search_model, search_max_results
[browser] enabled true, path (found), visible false, allow_local false, allow_scripts false, width 1280, height 800 never from a project; see spec_008_web §5
[plugins] enable, disable (installed plugins by name; disable wins) a project may disable, and enable once trusted; see spec_033_plugins
[network] ca_file (PEM certificate authorities to trust besides the system’s) proxies from HTTPS_PROXY/NO_PROXY; never from a project (spec_015_models MDL-54)
[lsp.<language>] command, extensions, disabled built in: go, typescript, python, rust never from a project (spec_006_filetools FS-61)
[hooks] pre_tool, post_tool, prompt_submit, session_start, session_end, stop, post_tool_failure, subagent_start, subagent_stop, pre_compact, post_compact, notification, permission_request arrays of {match, if, type, command, args, url, headers, allowed_env_vars, prompt, model, timeout_seconds, fail_closed} spec_010_hooks
[[mcp.servers]] name, command, args, env, url, headers, tools, auto_approve, sandbox, prefix, agents, timeout_seconds, disabled stdio or streamable HTTP (no SSE); env and headers are plain text, masked in logs and config show
[pricing."<model>"] input_per_mtok, output_per_mtok, cached_input_per_mtok, cache_write_per_mtok built-ins below
[search_pricing."<provider>"] per_1k_queries google 14 spec_008_web WEB-15; not from a project
[agent_models] agent = "provider/model"
[model_settings."<model>"] temperature, max_tokens, top_p, seed, reasoning_effort, thinking_budget reasoning_effort: minimal|low|medium|high|max; thinking_budget ≥ 0

Built-in lists:

  • Blocked paths: ~/.blitz/.env.toml, ~/.blitz/.env.*.toml, ~/.blitz/workspaces/*/.env.toml, ~/.blitz/workspaces/*/.env.*.toml, ~/.ssh, ~/.aws, ~/.gnupg, ~/.config/gcloud, ~/.azure, ~/.kube, ~/.docker/config.json, ~/.netrc (2026-11-13: keys, certificates and .env files moved to the hidden paths, spec_006_filetools FS-15).

  • Hidden paths: .env, .env.local, .env.*.local, *.pem, *.key, *.p12, id_rsa*, id_ecdsa*, id_ed25519*.

  • Scrubbed env: *_API_KEY, *_API_TOKEN, *_SECRET, *_SECRET_KEY, *_ACCESS_KEY, AWS_SESSION_TOKEN, GOOGLE_APPLICATION_CREDENTIALS, MODENV_*.

  • Denied commands: sudo *, su *, doas *, shutdown *, reboot *, halt *, mkfs *, mkfs.*, diskutil erase*.

  • Pricing (USD per 1M tokens, input/output/cached/cache-write): gemini-3.8-flash 0.75/3.75/0.075 (introductory until 2026-12-31; 1.50/7.50/0.15 from 2027-01-01, see CFG-13), gemini-4-argon (the default since 2026-10-13) and gemini-4-carbon 2/10/0.10 (through 2026-11-30; 4/20/0.20 from 2026-12-01, see CFG-13 and spec_015 MDL-97, MDL-97a), gemini-4-neon 3/15/0.15, gemini-4-hydrogen 1.50/7.50/0.075, gemini-2.5-pro 1.25/10/0.31, gpt-4o 2.50/10/1.25, claude-opus-5 5/25/0.50/6.25, claude-sonnet-5 2/10/0.20/2.50, claude-haiku-4-5 1/5/0.10/1.25.

  • CFG-10 Config.ModelName() returns blitz.default_model if set, else the active provider’s model. 2026-10-29: ollama has its own [llm.ollama] (model, base_url); settings it leaves empty fall back to [llm.openai]’s, where older settings files keep them (its model when one is set there, its base_url when it isn’t OpenAI’s); with no model in either, the runtime uses the first model Ollama lists (spec_015_models MDL-12). openai’s default, gpt-4o (DefaultOpenAIModel), applies to openai only: it reached Ollama, which answered a bare 404, after a provider switch cleared default_model.

  • CFG-11 Setting a list (e.g. blocked_paths, commands.deny) replaces the default list.

  • CFG-13 Announced price changes are data, not reminders: PriceChanges lists {model, from (UTC), price}, and DefaultPricingAt(t) applies every change in effect at t (the latest per model) to a copy of DefaultPricing. DefaultConfig uses the prices in effect when the configuration loads, so a long-running service picks up a change at its next restart. [pricing] entries still override.

  • CFG-12 SkillPolicy.Problems() reports: min_hitl_tier outside 0–3; unknown sandbox; unknown network; network_allow without network = "allowlist"; unknown languages (only python, typescript, both allowed by default); negative max_timeout_seconds.

  • CFG-12 2026-11-05 (scan N26-api-client-config#13). Every one of ScriptLanguages (python, typescript, javascript, shell, cmd, powershell) is allowed by default (SK-105), not only python and typescript.

4. Editing the file in place

Front ends change a few settings and persist them without rewriting the file.

  • CFG-20 editConfigFile(dir, edit, verify) reads <dir>/.env.toml (missing = empty), applies a line-based edit, refuses the result if it is not valid TOML or fails verify (re-decoded value must equal the intended one), then writes atomically (temp file + rename) preserving the existing mode (new files 0600, dir 0700).
  • CFG-21 Only the affected line changes: comments, ordering and encrypted values elsewhere are kept. Replacing a key preserves its trailing comment. A missing key is inserted after the table’s last non-blank line; a missing table is appended.
  • CFG-22 Keys are written bare when they match [A-Za-z0-9_-]+, else quoted.
  • CFG-23 Editors: SaveUILocale ([ui] locale), SaveAgentModel ([agent_models] <agent>; empty ref removes the line), UnpinAgentModel (removes the line, or with masking writes <agent> = "", which a workspace file uses to mask a global pin; the overlay merges [agent_models] agent by agent), SaveModelSettings ([model_settings."<model>"]: set keys written, unset removed, table header dropped when only blanks/comments remain, avoiding a double blank line).
  • CFG-24 Persisted edits always target the default config dir (ConfigDir("")), and the in-memory change applies even if saving fails (the failure is reported, not fatal).

5. Model settings values

  • CFG-30 Keys and ranges: temperature [0, 2]; top_p (0, 1]; max_tokens integer ≥ 1 and ≤ 2³¹−1; seed any int32. Empty value clears. Unknown keys are errors listing the known keys. Floats are always written with a decimal point.

6. Workspace settings and API keys

Added 2026-09-27 (owner’s decisions: keys in the OS keychain; a workspace’s own settings kept in ~/.blitz, never in the workspace; the desktop app edits them through forms and as text).

  • CFG-40 A workspace’s own settings are <config dir>/workspaces/<base>-<8 hex>/.env.toml, where <base> is the directory’s name (characters outside [A-Za-z0-9._-] as -) and the hex the first 4 bytes of the SHA-256 of its absolute, symlink-free path (WorkspaceSettingsDir). CFG-01 stands: nothing is read from the workspace.
  • CFG-41 LoadWorkspace(dir, workspace) loads the global file, then the workspace’s file over it (every key it sets wins; lists replace), then resolves secrets (CFG-43), then applies the environment (CFG-03). The service’s opener and the CLI (--dir, else the current directory) use it; Load is the global scope alone.
  • CFG-42 Secrets are kept by pkg/secrets: the macOS Keychain (through /usr/bin/security, the secret passed on stdin, hex-encoded, never in arguments), the Secret Service on Linux (secret-tool, when one answers on the session bus), else an owner-only file (<config dir>/secrets.toml, 0600 in a 0700 directory), all under the service name dev.blitz. Names are global/llm.<provider>.api_key and workspace/<settings dir name>/llm.<provider>.api_key.
  • CFG-43 A settings value keychain:<name> refers to a stored secret. Loading replaces the providers’ api_key references with the secrets (and decodes modenv’s xor: values from a workspace file); a missing or unreadable secret leaves the key empty, so the environment, then the model’s own error, takes over. xor: is obfuscation with a default key, not encryption.
  • CFG-43 2026-11-05 (scan N26-api-client-config#11). Every credential the settings hold resolves keychain: and xor:: the four keyed providers’ api_key (Azure’s included) and web.search_api_key; xor: is decoded anywhere in either file.
  • CFG-44 Describe(dir, workspace) reports a scope without its keys: the file, llm.provider and blitz.default_model as the scope sets them, where keys are kept, and per provider (gemini, anthropic, openai) the key’s source — keychain, plain, obfuscated, environment, inherited (a workspace using the global key) or none — whether a referenced secret is missing, base_url and model, and how it signs in as the scope sets it: auth, with project_id and location (adc) or profile (oauth). Since 2026-10-21, also the api provider’s settings as the scope sets them (APIProviderInfo): base_url, token_script, token_script_language, and its headers by name, sorted, each saying whether it has a value; a value is given only when it is exactly {{TOKEN_SCRIPT}}, never otherwise (a header can hold a credential).
  • CFG-44a 2026-11-05 (scan N26-desktop-1#2: a header such as Authorization = "Bearer {{TOKEN_SCRIPT}}", which the model takes as the token (MDL-101, UsesToken), was withheld, so the desktop form hid its token script and saved the settings without one, which was refused). A header’s value is given when it uses {{TOKEN_SCRIPT}} anywhere in it, with the text around the placeholder (Bearer {{TOKEN_SCRIPT}}); any other value is still withheld.
  • CFG-45 Changes, each through CFG-20’s editor, in the scope’s file: SetAPIKey stores the key and writes the reference; SecureAPIKey moves a plain or obfuscated key from the file to the store; RemoveAPIKey removes the reference and the stored secret (a workspace then inherits); SetValue sets one of llm.provider, blitz.default_model, llm.<provider>.model, llm.{anthropic,openai}.base_url, llm.gemini.{auth,project_id,location}, llm.anthropic.{auth,profile,project_id,location} ("" removes it, so a workspace follows the global setting; an auth the provider doesn’t take is refused). Others are refused. SetAuth sets how a provider signs in (ProviderAuth: api_key; adc, Gemini and Anthropic, with its project and location; oauth, Anthropic only, with its profile), removing the fields left empty; back to api_key removes only auth. SetProvider saves the provider form as one change: llm.provider, blitz.default_model ("" removes either) and, if given, how the provider signs in (ProviderAuth) and a new key for it (stored, and referred to), all checked before anything is written (an unknown provider, a key or sign-in for none or for ollama, or a key with a sign-in other than api_key, is refused) and the file written once.
  • CFG-45a 2026-10-29 (the owner: switching providers lost the model; other providers’ models in the list). SetProvider writes the model to the provider’s own section (ModelSection: llm.<provider>.model, Claude on Vertex AI in [llm.anthropic], its own provider/ prefix dropped) and removes blitz.default_model, so each provider keeps its model across switches; another provider’s model (gemini/… with ollama), or a model with no provider, is blitz.default_model as before; "" removes the provider’s model, for its default. Describe reports each provider’s own model (ScopeInfo.Models, DescribeConfigResponse.models). The desktop form shows a provider’s own model, Use keeps it, and its model list is that provider’s models only, by bare name (useModelCatalog(workspace, provider), modelOptions(…, provider); the run settings’ model field likewise).
  • CFG-45b 2026-10-21. SetProvider with API (APIProviderSettings, only with provider api) also writes [llm.api] base_url, token_script and token_script_language ("" removes each) and makes [llm.api.headers] the headers given: each set, the others removed. A header given with an empty value keeps the value the scope’s file has for it (values are never shown, CFG-44); a new header with none is refused. The settings that result are checked as the model would be (spec_015_models MDL-100) before anything is written. blitz config set-key api is refused: the provider takes no key.
  • CFG-45a 2026-10-04 (the owner’s request: OAuth among every provider’s sign-in options, as well as keys). The sign-in methods besides an API key (AuthMethods): Gemini adc and oauth (a Google account, on Vertex AI, with project_id and location), Anthropic oauth (an ant profile, profile) and adc, Bedrock oauth (AWS IAM Identity Center, profile; api_key is access keys), Azure oauth and entra (the same: Entra ID). OpenAI and Ollama take a key only. SetAuth and SetValue("llm.<provider>.auth") take them, blitz config set-auth <provider> <method> too (bedrock and azure included), and the runtime builds Gemini’s oauth as adc and Azure’s as entra; blitz auth login signs in (spec_021_service SVC-56). Every existing value keeps its meaning.
  • CFG-45a 2026-11-05 (scan N26-api-client-config#10). SetValue takes llm.bedrock.auth and llm.azure.auth, and SetProvider takes a sign-in (Auth) for any provider with sign-in methods (Bedrock and Azure too), a key still only for the keyed providers.
  • CFG-46 WriteSettingsFile replaces a scope’s file with text only if CheckSettings (CFG-48) finds no error; it returns its warnings, as “line N: …”, for settings the configuration doesn’t know (likely typos) and for API keys written as plain or obfuscated text. ReadSettingsFile returns the text ("" when there’s none).
  • CFG-47 The CLI: blitz config permissions (list; allow|ask|deny <rule>, remove <rule>, defaults on|off|inherit, check <rule> [sample]; ScopePermissions, AddPermissionRule, RemovePermissionRule, SetReadOnlyDefaults), blitz config keys, set-key <provider> (the key from stdin, without echo on a terminal), remove-key <provider>, secure-key <provider>, set-auth <provider> <api_key|adc|oauth> (--project, --location; --profile; keys shows the sign-in); --workspace (-w) works on the workspace’s settings. The service’s ConfigService (spec_021_service) offers the same to the desktop app and reloads open workspaces.
  • CFG-47a 2026-11-05 (scan N26-desktop-1#15: removing a rule in Settings › Permissions removed it under every effect, so removing an ask row also removed the same rule’s deny). RemovePermissionRuleFrom removes a rule from one effect’s list (allow, ask or deny; "" every list, as RemovePermissionRule and blitz config permissions remove do); ConfigService.RemovePermission takes it as effect, and the desktop app sends the row’s.
  • CFG-48 CheckSettings(text) checks a settings file without saving it and returns its problems, by line, errors first on a line. Errors: TOML syntax (the parser’s line and column; an error at the end of the last line is reported on it), a value of the wrong type (<key>: incompatible types…, at its line), an invalid permission rule (at the first line holding it). Warnings: settings the configuration doesn’t know (at the line setting them, or their table’s header, following [table], [[array]] headers and dotted keys), API keys written as plain or obfuscated text, and skill policy settings it can’t honour (SkillPolicy.Problems, at [skills.policy]). Line 0 means the file as a whole.
  • CFG-48 2026-11-05 (scan N26-api-client-config#5, #7, #19, the reader: a typo such as [permissions] denny silently dropped a rule). Loading reports too, as Config.Warnings: unknown settings in either file, [mcp] off in the global file and [enterprise] in a workspace’s (each ignored there), and the organization’s files it can’t read (EN-33). They’re shown when a run starts (the CLI), in blitz doctor (settings) and in the service’s log as a workspace opens. CFG-48a: settings that take one of a few words (blitz.plan_review, ui.notify, ui.task_alerts, ui.editor) take a word in another case as it, and give way to the default with a warning for any other word (CheckSettings warns too), instead of acting as never.
  • CFG-49 Reference() lists every setting: each table and each leaf of Config, in declaration order, keyed as written in a file (llm.gemini.model; <agent>, <model>, <variable>, else <name>, for map keys; name[] for arrays of tables), with its type, its default from DefaultConfig as TOML (the home directory as ~; none for API keys, which may come from the environment, nor for maps and arrays of tables) and its description: the doc comment of its field, else the field’s line comment, else the comment of the group of fields it is in (no blank line between; not for tables), with the table type’s own doc comment added for tables. The descriptions are read from the declaring files, embedded in the binary (config.go, features.go, modelsettings.go), so they can’t drift from the code; a test fails if any setting has none.
  • CFG-49 2026-11-05 (scan N26-api-client-config#14, #15). DefaultConfig holds [processes]’ defaults (the engine’s DefaultProcessLimits), and Reference() shows sandbox.shell’s default as loading sets it (required on Linux).