settings.md

Settings

Settings

omp resolves settings from built-in defaults, a persistent global config file, optional project-local config, one-shot CLI overlays, and in-memory runtime overrides. Reach for project settings when one repository needs a different provider set, model role, tool policy, memory backend, or UI behavior than your global defaults — without touching your machine-wide configuration.

Settings are stored as plain YAML mappings. Every key, its type, default, and enum values come from the settings schema, and you can inspect or change any of them with oh-my-pk config or the interactive /settings panel.

  • For model/provider credentials, .env files, and the env-var table that resolves API keys, see Providers.
  • For custom model definitions in models.yml, see Models.
  • For instruction files discovered into the agent context (AGENTS.md, .ompk/, etc.), see Context files.
  • For the full catalog of environment variables, see Environment variables.

Where settings live

ScopePathRead behaviorWrite behavior
Global~/.ompk/agent/config.ymlThe main persistent settings file. Always loaded./settings, oh-my-pk config set, and oh-my-pk config reset write here.
Global legacy~/.ompk/agent/settings.jsonMigrated into config.yml once, only when config.yml does not yet exist.Not written after migration; the original is renamed to settings.json.bak.
Project<cwd>/.ompk/config.yml (plus .ompk/settings.json)Loaded when the process working directory has a non-empty .ompk/.Read-only from settings commands; edit the file by hand.
Project legacy<cwd>/.ompk/settings.jsonStill read; project config.yml is merged on top of it.Not written by settings commands.
CLI overlayAny file passed with --config <file>Loaded after global and project settings, for that one process. Repeatable.Never persisted.
Runtime overridesIn-memory onlySet by dedicated CLI flags (--model, --approval-mode, …) and feature env vars.Never persisted.

PI_CODING_AGENT_DIR relocates the ~/.ompk/agent base directory. When it is set, the global config.yml, the auth store (agent.db), and everything else under the agent directory move with it. Use oh-my-pk config path to print the active agent directory.

Native project settings are intentionally scoped to the process working directory's .ompk/ folder — settings discovery does not walk ancestor directories looking for the nearest .ompk/. Other discovery providers (Claude, Codex, Gemini, Cursor, OpenCode) can also contribute project-level settings from their own files; those are read-only from omp settings commands and can be turned off by provider id (see Provider and source disabling).

Config file formats

The global config.yml is always YAML. The generic config loader used for other files (for example models.yml) accepts .yml, .yaml, .json, and .jsonc:

  • When a .yml/.yaml path is requested and only a sibling .json exists, it is migrated to YAML automatically (idempotent, once per process).
  • .json and .jsonc configs are read as-is, with no migration.
  • A file whose top level is not a mapping (a bare array or scalar) is treated as empty for persistent settings, and is a hard error for --config overlays.

Reading and writing settings

Use the interactive /settings panel inside a session, or the oh-my-pk config command from a shell. Both operate on the merged effective settings, but every persistent write lands in the global file only.

oh-my-pk config list                 # all settings with current effective values
oh-my-pk config list --json          # same, machine-readable
oh-my-pk config get theme.dark       # one value
oh-my-pk config get theme.dark --json
oh-my-pk config set compaction.enabled false
oh-my-pk config set defaultThinkingLevel medium
oh-my-pk config reset steeringMode   # restore a key to its schema default
oh-my-pk config path                 # print the active agent directory

For users who want the full first-run animation on normal launches, set startup.showSplash:

oh-my-pk config set startup.showSplash true

This only controls the startup splash animation. It does not rerun setup or change setup state, and startup.quiet: true still suppresses all startup chrome including the splash.

Interactive spawned-agent tier

The interactive TUI exposes the default execution tier for newly spawned agents in two places:

  • /tier [status|light|mid|frontier|auto]
  • /settings → Model → Agent Model Profiles → Default Spawn Tier

This tier is independent of model selection. For example, /tier light can run a strong model inside the light read/search/report-only capability envelope, while /tier mid permits the basic execution and delegation tools with replace-only editing. The selection persists as agent.tier.

auto removes the interactive override: task.agentPolicies and agent/workflow policy still apply, and the normal fallback is the frontier execution profile. Policy composition is restrictive, so a more-specific frontier policy cannot widen a global light selection. Changes affect agents spawned after the setting changes; existing child sessions retain their immutable execution profile.

Subcommands

CommandEffect
oh-my-pk config listPrint every setting grouped by tab, with its current value and type. --json emits an object keyed by setting path with { value, type, description }.
oh-my-pk config get <key>Print the effective value of one key. Unknown keys exit non-zero. --json emits { key, value, type, description }.
oh-my-pk config set <key> <value>Parse <value> against the key's schema type and write it to the global config.yml.
oh-my-pk config reset <key>Write the key's schema default back to the global config (this persists the default, it does not delete the key).
oh-my-pk config pathPrint the active agent directory (honors PI_CODING_AGENT_DIR).

oh-my-pk config with no subcommand, or --help, prints the help and lists settings. The --json flag is accepted by list, get, set, and reset.

Value parsing

oh-my-pk config set parses the value string according to the target key's schema type. The string is trimmed first.

TypeAccepted inputNotes
booleantrue, false, yes, no, on, off, 1, 0Case-insensitive. Anything else is rejected.
numberAny finite JavaScript numberInfinity/NaN are rejected.
enumOne of the key's allowed valuesMust match exactly; the error lists the valid values.
arrayA JSON arraye.g. '["anthropic","openai"]'. Must parse and be an array.
recordA JSON objecte.g. '{"bash":"prompt"}'. Must parse and be a non-array object.
stringStored as given (trimmed)Multi-word values are joined with spaces.

Keys must match a real schema path exactly. There is no shorthand — set theme.dark, not theme.

Where writes go

oh-my-pk config set, oh-my-pk config reset, /settings, and any runtime settings change all write to the global config.yml under the active agent directory. They never write to <cwd>/.ompk/config.yml. To create a project-local override, edit that file directly (see Project-local config). Saves are debounced and re-read the file under a lock, so external edits made while a session is open are preserved.

Precedence

From lowest to highest priority, the effective value of a setting is built as:

built-in defaults  <-  global config  <-  project config  <-  CLI overlays  <-  runtime overrides

From highest to lowest:

  1. Runtime overrides — dedicated CLI flags and feature env vars applied in memory for the current process: --model, --smol, --slow, --plan, --approval-mode, --auto-approve/--yolo, --hide-thinking, --advisor, --no-pty, --api-key, and protocol-mode defaults. Never persisted.
  2. CLI config overlays — each --config <file>; later overlay files override earlier ones.
  3. Project settings — <cwd>/.ompk/settings.json then <cwd>/.ompk/config.yml (and contributions from other discovery providers at project level).
  4. Global settings — ~/.ompk/agent/config.yml.
  5. Built-in defaults — from the settings schema.

A key that is unset at every layer resolves to its schema default at read time.

Environment overrides

Environment variables are not a single settings layer. Each is read by the feature that owns the value, usually as a per-machine override or fallback, and is never written back to config.yml. The ones that map directly onto a setting:

Env varOverrides settingNotes
PI_SMOL_MODELmodelRoles.smolAlso exposed as --smol.
PI_SLOW_MODELmodelRoles.slowAlso exposed as --slow.
PI_PLAN_MODELmodelRoles.planAlso exposed as --plan.
PI_NO_PTY=1(disables PTY bash)Equivalent to --no-pty for the process.
PI_PYeval.pyPI_PY=0 disables the Python eval backend.
PI_JSeval.jsPI_JS=0 disables the JavaScript eval backend.
PI_TINY_DEVICEproviders.tinyModelDeviceONNX execution provider for local tiny models.
PI_TINY_DTYPEproviders.tinyModelDtypeONNX precision for local tiny models.
OMP_AUTH_BROKER_URLauth.broker.urlEnv value takes precedence over config.
OMP_AUTH_BROKER_TOKENauth.broker.tokenEnv value takes precedence over config.
PI_CODING_AGENT_DIR(relocates agent dir)Moves config.yml, agent.db, and the whole agent base.

Provider API keys are resolved separately (stored auth, OAuth, models.yml, environment, and .env files); see Providers and the full Environment variables reference.

Merge rules

Layers are combined with a deep merge:

  • Objects are deep-merged — keys present only in a lower layer are kept; keys present in a higher layer override.
  • Scalars and arrays are replaced wholesale by the higher-precedence layer. A higher layer's array does not append to a lower layer's array.

Use nested YAML mappings for dotted setting paths:

theme:
  dark: titanium
  light: light

tools:
  approvalMode: write
  approval:
    bash: prompt
    read: allow

Worked example: global vs. project

# ~/.ompk/agent/config.yml
tools:
  approvalMode: write
  approval:
    bash: prompt
    read: allow
disabledProviders:
  - anthropic
  - openai
  - gemini

# <repo>/.ompk/config.yml
tools:
  approval:
    bash: allow
disabledProviders:
  - groq

Effective settings inside <repo>:

tools:
  approvalMode: write   # kept from global (object deep-merge)
  approval:
    bash: allow         # overridden by project
    read: allow         # kept from global
disabledProviders:
  - groq                # project array REPLACES the global array

Array replacement is the most common surprise: the project's disabledProviders does not extend the global list — it becomes the entire list for that project. The same applies to enabledModels, cycleOrder, extensions, and every other array-typed setting.

Project-local config

Create <repo>/.ompk/config.yml when a repository needs its own settings:

# <repo>/.ompk/config.yml
modelRoles:
  default: anthropic/claude-sonnet-4-5
  smol: openai/gpt-4.1-mini
  slow: anthropic/claude-opus-4-5:high

tools:
  approvalMode: write
  approval:
    bash: prompt

compaction:
  strategy: context-full
  thresholdPercent: 80

theme:
  dark: titanium

Keep secrets out of committed project config unless your repository policy allows it. Prefer environment variables, stored auth, an auth broker, or an untracked --config overlay for credentials.

One-shot overlays

Use --config for a temporary layer that should not persist:

oh-my-pk --config ./local/ci-settings.yml "check this failure"
oh-my-pk --config ./base.yml --config ./experiment.yml "try this model"

Overlay paths are resolved relative to the process working directory (and ~ is expanded). Each overlay must parse as a YAML mapping; a missing file, invalid YAML, or a top-level array/scalar is a hard error — it does not silently fall back to lower-precedence settings.

Path-scoped arrays

Two array settings — enabledModels and disabledProviders — accept path-scoped entries in addition to bare strings, so a single global config can behave differently per directory:

enabledModels:
  - claude-sonnet-4-5            # applies everywhere
  - path: ~/work/high-context
    models:
      - anthropic/claude-opus-4-5

disabledProviders:
  - ollama                       # applies everywhere
  - paths:
      - ~/projects/sensitive
      - ~/clients/acme
    providers:
      - anthropic
      - openai

Bare string entries apply everywhere. A scoped entry applies when the current working directory is the configured path or is under it. ~ expands to your home directory and relative paths are resolved before matching.

Accepted path keys (any of them, combined): path, paths, pathPrefix, pathPrefixes.

Accepted value keys:

  • models (for enabledModels) or providers (for disabledProviders)
  • values or items (for either setting)

Only string values are kept; malformed scoped entries are ignored. Path scoping is resolved after the layer merge, so it reads the final effective array.

Provider and source disabling

disabledProviders is a single shared id namespace that gates two different subsystems, before any credential check:

Entry kindExample idsEffect
Model providersanthropic, openai, gemini, groq, ollama, openrouterRemoves those backends from model selection, even when credentials are available. See Providers.
Discovery sourcesnative, claude, codex, gemini, github, opencode, cursor, agents-mdStops that source from contributing context files, MCP servers, commands, skills, hooks, tools, prompts, or settings. See Context files.

Most provider-control use cases list model provider ids. Disabling the claude discovery source is different from disabling the anthropic model provider — one stops Claude-format config discovery, the other stops the Anthropic model backend.

Because arrays replace rather than append, a project that sets disabledProviders must list the complete desired set:

# ~/.ompk/agent/config.yml
disabledProviders:
  - anthropic
  - openai

# <repo>/.ompk/config.yml — inside this repo ONLY groq is disabled
disabledProviders:
  - groq

The default is an empty array (nothing disabled). For the two subsystems' provider ids and ordering, see Providers and Context files.

Settings catalog

Every key below is defined in the settings schema; oh-my-pk config list shows the full set with current values. Defaults and enum values are taken from the schema. Settings that accept an env or flag override are noted; those overrides are process-local and not persisted.

Models

modelRoles, modelTags, and cycleOrder work together to define the models you can switch between. Role values may carry a thinking suffix (:minimal, :low, :medium, :high, :xhigh).

Any role value may also be a comma-separated priority list of model selectors, tried in order — position 1 is preferred (most intelligent/capable), later entries are fallbacks used only when an earlier one is unavailable (missing from the catalog). This ordering always applies wherever a role is resolved.

modelRoles.task (and any other role resolved for subagent dispatch, e.g. via task.agentModelOverrides) additionally gets credential-aware fallback and a runtime retry-on-failure chain: if the first available entry has no working credentials, dispatch walks to the next entry instead of jumping straight to the parent session's model; whatever entries remain untried also seed the retry chain used if the selected model errors out mid-run. This credential-aware walk and retry-chain seeding apply only to subagent dispatch — the primary session's own roles (default, smol, slow, etc.) use plain catalog-existence ordering with no credential check or retry-chain installation. A priority list works with any number of entries; 3 is a practical recommendation for modelRoles.task (most intelligent, then progressively cheaper/faster fallbacks), not an enforced limit.

modelRoles:
  task: openai-codex/gpt-5.6-sol:xhigh, anthropic/claude-opus-4-5:high, openai/gpt-4.1-mini

Here subagent dispatch tries gpt-5.6-sol first; if it has no working credentials, claude-opus-4-5 is tried next, then gpt-4.1-mini.

modelRoles:
  default: anthropic/claude-sonnet-4-5
  smol: openai/gpt-4.1-mini
  slow: anthropic/claude-opus-4-5:high
  vision: gemini/gemini-3-pro-preview
  plan: anthropic/claude-opus-4-5
  advisor: anthropic/claude-sonnet-4-5:medium

cycleOrder:
  - smol
  - default
  - slow

modelProviderOrder:
  - anthropic
  - openai

enabledModels:
  - claude-sonnet-4-5
KeyTypeDefaultNotes
modelRolesrecord{}Map of role name -> model id. Built-in roles: default, smol, slow, vision, plan, designer, commit, title, task, advisor. Per-role env/flags exist only for --model/--smol/--slow/--plan; configure the advisor with modelRoles.advisor.
modelTagsrecord{}Custom role/tag metadata; can introduce additional roles.
modelProviderOrderarray[]Preferred provider order when a model id is ambiguous.
cycleOrderarray["smol","default","slow"]Roles cycled by the model switcher.
enabledModelsarray[]Allow-list of models; supports path-scoped entries. Empty means all available models.
disabledProvidersarray[]Disabled model/discovery providers; supports path-scoped entries. See above.
includeModelInPromptbooleantrueInclude the active model name in the system prompt.

See Models for the models.yml schema and custom-provider definitions.

Agent Model Profiles and Difficulty Routing

agent.profile and agent.profiles bundle smol/task/slow (plus other roles) into named, swappable presets — "optimal model per agent slot". This is the only setting subagent difficulty routing uses; there is no separate difficulty setting.

Copy-paste recipe — define one named profile with the three roles subagent difficulty routing maps to, then activate it:

agent:
  profile: balanced
  profiles:
    balanced:
      smol: <fast-model>
      task: <coding-model>
      slow: <strong-model>

Fixed, non-configurable difficulty → role mapping used by the task tool's difficulty field and the eval agent() helper's difficulty argument:

DifficultyModel role
lowsmol
mediumtask
highslow

difficulty is a per-spawn request, independent from agent.tier (a restrictive capability/tool/model-pool envelope — see Interactive spawned-agent tier). Difficulty only steers which model a role resolves to; it never widens what a restrictive agent.tier or task.agentPolicies envelope permits.

Selection precedence for a fresh subagent spawn, highest to lowest:

  1. An explicit model on the spawn.
  2. The requested difficulty, resolved through the active agent.profile (or explicit modelRoles.<role>, which always wins over a profile's role).
  3. task.agentModelOverrides[<agent-name>].
  4. The agent definition's own model frontmatter field.
  5. The parent session's active model.
  6. The session default model.

An explicit model and a requested difficulty may coexist on the same spawn: the explicit model wins, and the routing decision still records the requested difficulty for provenance.

Failure semantics: difficulty only applies to fresh spawns — combining it with fork: true (task tool) is rejected up front, since fork inherits the parent's exact model instead of routing by difficulty. An unresolved explicit model, or a requested difficulty whose mapped role has no available model, fails clearly before any spawn allocation. Routing never silently falls back to a lower difficulty or a different role.

Observability: every routed spawn carries machine-readable provenance — requested difficulty, selection source, the active profile name (when one supplied the role), and the final resolved model — on AgentProgress.modelRouting / SingleResult.modelRouting. task.showResolvedModelBadge (default false) additionally renders a concise form of that context next to the existing resolved-model badge in the TUI status line, e.g. high/profile:balanced → anthropic/claude-opus-4-5; it never displays candidate selectors, raw assignments, or credentials.

Advisor

The advisor is a second model that reviews each completed turn and can inject advice into the primary session. Assign a model with modelRoles.advisor, then enable it with advisor.enabled, /advisor on, or by launching with the --advisor flag.

See Advisor and WATCHDOG.md for runtime behavior, WATCHDOG.md discovery, and bounded catch-up semantics.

KeyTypeDefaultNotes
advisor.enabledbooleanfalseEnable the advisor runtime when modelRoles.advisor resolves to an available model.
advisor.subagentsbooleanfalseAlso enable advisor runtimes for spawned task/eval subagents.
advisor.syncBacklogenumoffBounded advisor catch-up delay: off, 1, 3, or 5. The primary waits up to 30 seconds only while advisor backlog is at or above the threshold.
advisor.immuneTurnsnumber1After a concern/blocker interrupts, route further concerns/blockers as non-interrupting asides for this many completed primary turns.

Thinking

defaultThinkingLevel: high
hideThinkingBlock: false
thinkingBudgets:
  minimal: 1024
  low: 2048
  medium: 8192
  high: 16384
  xhigh: 32768
KeyTypeDefaultValues
defaultThinkingLevelenumhighminimal, low, medium, high, xhigh, auto. Override per run with --thinking.
hideThinkingBlockbooleanfalseHide thinking blocks in output. --hide-thinking sets it for the run (display only).
thinkingBudgets.minimalnumber1024Token budget for the minimal level.
thinkingBudgets.lownumber2048Token budget for low.
thinkingBudgets.mediumnumber8192Token budget for medium.
thinkingBudgets.highnumber16384Token budget for high.
thinkingBudgets.xhighnumber32768Token budget for xhigh.

Sampling

A value of -1 means "use the provider/model default" — omp does not send that parameter.

KeyTypeDefaultNotes
temperaturenumber-1Sampling temperature.
topPnumber-1Nucleus sampling.
topKnumber-1Top-K sampling.
minPnumber-1Minimum-probability cutoff.
presencePenaltynumber-1Presence penalty.
repetitionPenaltynumber-1Repetition penalty.
serviceTierenumnonenone, auto, default, flex, scale, priority, openai-only, claude-only.
personalityenumdefaultdefault, friendly, pragmatic, none.

Retry and fallback

retry:
  enabled: true
  maxRetries: 10
  baseDelayMs: 500
  maxDelayMs: 300000
  modelFallback: true
  fallbackRevertPolicy: cooldown-expiry
KeyTypeDefaultNotes
retry.enabledbooleantrueRetry transient provider errors.
retry.maxRetriesnumber10Max retries per request.
retry.baseDelayMsnumber500Initial backoff.
retry.maxDelayMsnumber300000Backoff ceiling (5 min).
retry.modelFallbackbooleantrueFall back to another model when one is unavailable.
retry.fallbackChainsrecord{}Per-model fallback chains.
retry.fallbackRevertPolicyenumcooldown-expirycooldown-expiry, never.

Tools and approvals

tools:
  approvalMode: yolo          # default
  approval:
    bash: prompt
    edit: allow
  discoveryMode: all
  maxTimeout: 0
  intentTracing: true
KeyTypeDefaultNotes
tools.approvalModeenumyoloalways-ask (auto-approve read-only), write (auto-approve read + workspace-write), yolo (auto-approve all tiers). --approval-mode and --auto-approve/--yolo override per run.
tools.approvalrecord{}Per-tool policy keyed by tool name; each value is allow, deny, or prompt. e.g. oh-my-pk config set tools.approval '{"bash":"prompt"}'.
tools.discoveryModeenumallauto, off, mcp-only, all. Controls dynamic tool discovery.
tools.essentialOverridearray[]Tool names kept available even when tools are narrowed.
tools.maxTimeoutnumber0Max tool runtime in seconds; 0 = no cap.
tools.intentTracingbooleantrueRecord per-call intent strings.
tools.outputMaxColumnsnumber768Per-line byte cap for streaming output; 0 disables.
tools.artifactSpillThresholdnumber50KB of tool output above which output spills to an artifact.
tools.artifactHeadBytesnumber20KB of head kept inline on spill; 0 = tail-only.
tools.artifactTailBytesnumber20KB of tail kept inline on spill.
tools.artifactTailLinesnumber500Max tail lines kept inline on spill.

Individual built-in tools are toggled by their own keys, e.g. bash.enabled, eval.py, eval.js, find.enabled, search.enabled, fetch.enabled, browser.enabled, astEdit.enabled, astGrep.enabled, web_search.enabled, inspect_image.enabled.

Shell, eval, and LSP

bash:
  enabled: true
  stripTrailingHeadTail: true
  autoBackground:
    enabled: false
    thresholdMs: 60000

eval:
  py: true
  js: true

python:
  kernelMode: session       # session, per-call
  interpreter: ""

lsp:
  enabled: true
  lazy: true
  diagnosticsOnWrite: true
  diagnosticsOnEdit: false
  formatOnWrite: false
KeyTypeDefaultNotes
bash.enabledbooleantrueEnable the bash tool.
bash.stripTrailingHeadTailbooleantrueStrip trailing head/tail noise from output.
bash.autoBackground.enabledbooleanfalseAuto-background long-running commands.
bash.autoBackground.thresholdMsnumber60000Threshold before auto-backgrounding.
eval.pybooleantruePython eval backend. PI_PY=0 disables for the process.
eval.jsbooleantrueJavaScript eval backend. PI_JS=0 disables for the process.
python.kernelModeenumsessionsession (persistent kernel) or per-call.
python.interpreterstring""Path to a Python interpreter; empty = auto-detect.
lsp.enabledbooleantrueLanguage-server integration. --no-lsp disables for the run.
lsp.lazybooleantrueStart servers on demand.
lsp.diagnosticsOnWritebooleantrueRun diagnostics after a write.
lsp.diagnosticsOnEditbooleanfalseRun diagnostics after an edit.
lsp.formatOnWritebooleanfalseFormat files on write.
lsp.diagnosticsDeduplicatebooleantrueCollapse duplicate diagnostics.
shellPathstring_(unset)_Override the shell binary used by bash.

Files: editing and reading

edit:
  mode: hashline            # apply_patch, hashline, patch, replace
  fuzzyMatch: true
  fuzzyThreshold: 0.95
  blockAutoGenerated: true

read:
  defaultLimit: 300
  toolResultPreview: false
  summarize:
    enabled: true
    prose: false
KeyTypeDefaultNotes
edit.modeenumhashlineapply_patch, hashline, patch, replace.
edit.fuzzyMatchbooleantrueAllow fuzzy anchor matching.
edit.fuzzyThresholdnumber0.95Similarity threshold for fuzzy matching.
edit.blockAutoGeneratedbooleantrueRefuse to edit generated/lockfile-like files.
edit.streamingAbortbooleanfalseAbort on streaming edit mismatch.
read.defaultLimitnumber300Default line count for read without a selector.
read.summarize.enabledbooleantrueStructural summaries for code reads.
read.summarize.prosebooleanfalseSummarize prose files too.
read.toolResultPreviewbooleanfalseInline preview of tool results.
readHashLinesbooleantrueShow hashline tags in read output.
readLineNumbersbooleanfalseShow plain line numbers.

Context, compaction, and memory

contextPromotion:
  enabled: false

compaction:
  enabled: true
  strategy: context-full     # context-full, handoff, shake, off
  thresholdPercent: -1       # -1 = default reserve-based behavior
  thresholdTokens: -1        # fixed token limit when > 0
  remoteEnabled: true

memory:
  backend: off               # off, local, hindsight, mnemopi
KeyTypeDefaultNotes
contextPromotion.enabledbooleanfalsePromote to a larger-context model on context overflow instead of compacting.
compaction.enabledbooleantrueAutomatic conversation compaction.
compaction.strategyenumcontext-fullcontext-full, handoff, shake, off. The legacy snapcompact value is no longer part of the enum; settings that still use it are rewritten to context-full by the backward-compat migration.
compaction.thresholdPercentnumber-1Percent-of-context trigger; -1 = reserve-based default.
compaction.thresholdTokensnumber-1Fixed token trigger when > 0.
compaction.reserveTokensnumber16384Tokens reserved for the next turn.
compaction.keepRecentTokensnumber20000Recent tokens always preserved.
compaction.remoteEnabledbooleantrueAllow remote compaction service.
compaction.autoContinuebooleantrueContinue automatically after compaction.
memory.backendenumoffoff, local, hindsight, mnemopi. Each backend has its own hindsight. / mnemopi. / memories.* tuning keys.
autolearn.enabledbooleanfalseExperimental: after the agent stops, nudge it to capture lessons to memory and create/enhance isolated managed skills under ~/.ompk/agent/managed-skills. Enables the manage_skill tool (and learn when a memory backend is active).
autolearn.autoContinuebooleanfalseWhen autolearn.enabled, auto-run one capture turn at stop (uses extra tokens). Off = a passive reminder rides your next turn.
autolearn.minToolCallsnumber5Only nudge after a turn that used at least this many tools.

compaction has additional tuning keys (idle compaction, supersede/drop heuristics) visible in oh-my-pk config list. See Compaction for the full strategy reference.

Appearance and terminal

theme:
  dark: titanium
  light: light
symbolPreset: unicode        # unicode, nerd, ascii
colorBlindMode: false

statusLine:
  preset: default            # default, minimal, compact, full, nerd, ascii, custom
  separator: powerline-thin
  transparent: false
  showHookStatus: true

terminal:
  launchBackend: pk-herdr     # required; no external terminal fallback
  showImages: true
images:
  autoResize: true
  blockImages: false
tui:
  hyperlinks: auto           # off, auto, always
KeyTypeDefaultValues
theme.darkstringtitaniumTheme used on a dark terminal background.
theme.lightstringlightTheme used on a light terminal background.
symbolPresetenumunicodeunicode, nerd, ascii.
colorBlindModebooleanfalseUse blue instead of green for diff additions.
showHardwareCursorbooleantrueShow the terminal hardware cursor.
statusLine.presetenumdefaultdefault, minimal, compact, full, nerd, ascii, custom.
statusLine.separatorenumpowerline-thinpowerline, powerline-thin, slash, pipe, block, none, ascii.
statusLine.sessionAccentbooleantrueTint the editor border with the session color.
statusLine.transparentbooleanfalseUse the terminal background for the status line.
statusLine.showHookStatusbooleantrueShow hook status messages.
terminal.launchBackendenumpk-herdrPK-Herdr is required for interactive terminals; legacy managed and system preferences are migrated.
terminal.showImagesbooleantrueRender images inline (when the terminal supports it).
images.autoResizebooleantrueResize large images for model compatibility.
images.blockImagesbooleanfalseNever send images to providers.
tui.hyperlinksenumautooff, auto, always.

For a custom status line, set statusLine.preset: custom and configure statusLine.leftSegments, statusLine.rightSegments, and statusLine.segmentOptions.

Interactive terminal creation and control follow the pk-herdr skill. Inside an existing Herdr workspace, OMPK creates a background tab without changing focus. Outside Herdr, it starts a unique tool-owned headless session with --session-auto-close-after 4h and creates a workspace with --origin tool --no-focus. All later operations use that session name and returned IDs. If the server cannot start without opening a window, OMPK stops and asks the user to start it inside a managed pane; it never falls back to psmux or Windows Terminal. Ordinary non-interactive shell commands are unaffected. Cleanup closes only the tool-created tab/pane or exact owned session, never the user's existing session.

The terminal tool exposes the session's canonical installed pk-herdr skill instructions before invocation. Missing, unreadable, disabled, or changed skill files block launches before any Herdr process starts; reload the terminal tool after changing its skill. The older CLI-bundled herdr skill does not substitute for the required installed skill.

Interaction

KeyTypeDefaultValues
steeringModeenumone-at-a-timeall, one-at-a-time. How queued steering messages are delivered.
followUpModeenumone-at-a-timeall, one-at-a-time.
interruptModeenumimmediateimmediate, wait.
doubleEscapeActionenumtreebranch, tree, none.
autoResumebooleanfalseAuto-resume the most recent session in the cwd.
ask.timeoutnumber0Seconds before an ask prompt times out; 0 = no timeout. (Legacy ms values are migrated to seconds.)
ask.notifyenumonon, off.

Ethereal Workspaces

KeyTypeDefaultValues
workspace.enabledbooleanfalseEnable Ethereal Workspaces by default.
workspace.modeenumcopyauto, copy, worktree. auto uses reflink copy for Git repos when available, otherwise git worktree; non-Git repos use copy.
workspace.rootstringunsetParent directory for created workspaces; unset uses the OS temp directory under oh-my-pi/workspaces.
workspace.preservebooleanfalseKeep the workspace after the session exits.
workspace.copyEnvbooleanfalseCopy common repo-root .env files.
workspace.envFilesarray[]Explicit env files to copy.
workspace.secretFilesarray[]Explicit secret/config files to copy.
workspace.secretAllowliststringunsetNewline-delimited exact allowlist for env/secret copies.
workspace.exportPatchstringunsetPatch path to write when the session exits.
workspace.namestringunsetHuman-readable sanitized workspace suffix.

When enabled, the entire top-level agent session runs from the Ethereal Workspace. This includes interactive TUI sessions, not only oh-my-pk -p one-shot prompts. See Ethereal Workspaces for lifecycle and safety details.

Providers and services

providers:
  webSearch: auto
  image: auto
  fetch: auto
  tinyModel: online
  tinyModelDevice: default
  tinyModelDtype: default
  openaiWebsockets: auto
  openrouterVariant: default
  kimiApiFormat: anthropic

provider:
  appendOnlyContext: auto    # auto, on, off

exa:
  enabled: true
  enableSearch: true
  enableResearcher: false
  enableWebsets: false

searxng:
  endpoint: https://search.example.com
  token: SEARXNG_TOKEN
KeyTypeDefaultValues / notes
providers.webSearchenumautoauto plus the configured search providers (perplexity, gemini, anthropic, codex, zai, exa, jina, kagi, tavily, brave, kimi, parallel, synthetic, searxng).
providers.imageenumautoauto, openai, antigravity, xai, gemini, openrouter.
providers.fetchenumautoauto, native, trafilatura, lynx, parallel, jina.
providers.tinyModelenumonlineonline or a local model (lfm2-350m, qwen3-0.6b, gemma-270m, qwen2.5-0.5b, lfm2-700m).
providers.tinyModelDeviceenumdefaultONNX execution provider for local tiny models. Overridden by PI_TINY_DEVICE.
providers.tinyModelDtypeenumdefaultONNX precision for local tiny models. Overridden by PI_TINY_DTYPE.
providers.openaiWebsocketsenumautoauto, off, on.
providers.openrouterVariantenumdefaultdefault, nitro, floor, online, exacto.
providers.kimiApiFormatenumanthropicopenai, anthropic.
provider.appendOnlyContextenumautoauto, on, off.
exa.enabledbooleantrueEnable Exa integration.
exa.enableSearchbooleantrueExa search.
exa.enableResearcherbooleanfalseExa researcher.
exa.enableWebsetsbooleanfalseExa websets.
searxng.endpointstring_(unset)_SearXNG instance URL.
searxng.tokenstring_(unset)_SearXNG token; also searxng.basicUsername/searxng.basicPassword/searxng.categories/searxng.language.
auth.broker.urlstring_(unset)_Auth-broker URL. Overridden by OMP_AUTH_BROKER_URL.
auth.broker.tokenstring_(unset)_Auth-broker token. Overridden by OMP_AUTH_BROKER_TOKEN.

Provider credentials and custom model definitions are configured separately — see Providers and Models.

Other groups

oh-my-pk config list exposes many more grouped settings, including: task. (subagent concurrency, isolation, model overrides), skills. and commands. (discovery toggles), mcp., github., async., goal., loop., todo., magicKeywords., ttsr. (time-traveling stream rules), display., startup., share., collab., stt./tts., memories./hindsight./mnemopi. (memory backends), and bashInterceptor.*. Each follows the same type/default rules shown above.

Legacy migration

omp migrates older config shapes automatically. None of these require action; they are listed so you know what changes you may see in config.yml.

Startup migration to config.yml

When ~/.ompk/agent/config.yml does not exist, startup builds it once from legacy sources, then writes the result:

  1. ~/.ompk/agent/settings.json (renamed to settings.json.bak after a successful migration).
  2. Settings persisted in agent.db.

After config.yml exists, these legacy sources are no longer consulted. The generic config loader also performs .json -> .yml migration for other config files when only the .json form is present.

Field-level migrations

Applied whenever raw settings are loaded (global, project, overlays, and runtime overrides):

OldNew
queueModesteeringMode
ask.timeout in milliseconds (value > 1000)seconds (divided by 1000)
flat theme: "<name>" stringtheme.dark / theme.light (slot chosen by luminance; built-in light/dark are dropped to use defaults)
task.isolation.enabled: true/falsetask.isolation.mode: auto/none
terminal.launchBackend: managed/systemterminal.launchBackend: pk-herdr (including dotted-key configuration)
task.simpleremoved
legacy task.isolation.mode (worktree, fuse-overlay, fuse-projfs)rcopy, overlayfs, projfs
lastChangelogVersionmoved to a marker file and stripped from config.yml

Troubleshooting

A project setting is not taking effect

  • Start omp from the directory that contains .ompk/config.yml. Settings discovery only checks the current working directory's .ompk/, not ancestor directories.
  • Ensure .ompk/ is non-empty; empty config directories are ignored.
  • Confirm the file is valid YAML and its top level is a mapping.
  • Run oh-my-pk config get <key> from that directory to see the effective value.
  • Remember that --config overlays and runtime flags override project config.

A global array disappeared in a project

Arrays replace; they do not append. If a project sets disabledProviders, enabledModels, cycleOrder, extensions, or any other array, include the complete desired value in the project layer — the global array is fully replaced.

A provider is still available after editing config

  • Check whether you disabled the model provider id (e.g. anthropic) or a discovery source id (e.g. claude) — they are different namespaces with different effects.
  • Check for a project (or overlay) disabledProviders array replacing your global one.
  • Credentials can still come from environment variables, .env, OAuth, stored auth, or models.yml; disabling a provider blocks selection regardless, but verify you edited the right layer. See Providers.
  • Restart the session if the model list was already initialized.

oh-my-pk config set changed the wrong file

oh-my-pk config set and oh-my-pk config reset always write the global config.yml under the active agent directory. Run oh-my-pk config path to print it. For project-local settings, edit <repo>/.ompk/config.yml directly.

oh-my-pk config reset did not remove my key

reset writes the schema default value into the global config — it persists the default rather than deleting the key. To stop overriding a project value from global config, delete the key from ~/.ompk/agent/config.yml by hand.

A --config overlay fails at startup

--config files are process-local YAML mappings. A missing file, invalid YAML, or a top-level array/scalar is a hard error — it does not silently fall back to lower-precedence settings. Fix the path or contents.

An environment variable beats my config

Some settings (model roles, eval backends, tiny-model device/precision, auth broker, PTY) are overridable by env vars or CLI flags for per-machine convenience, and those take precedence over config.yml. Unset the variable or drop the flag to let the persisted value win. See Environment overrides and Environment variables.

oh-my-pk config set <key> says "Unknown setting"

Keys must match a schema path exactly, with no shorthand. Use theme.dark, not theme. Run oh-my-pk config list to see every valid key.

Machine index: /llms.txt · In-session docs: omp://docs