Skip to content

Settings

Settings are declared in code, in init files (omfp://docs/init); changes from the window last only until the daemon restarts or the next :reload-init.

ctx.settings({
ui: { theme: "nord", skin: "boring", density: "compact" }, // the user's init file only
daemon: { deleteArchivedAfter: "30d" }, // the user's init file only
threads: { autoResume: true }, // the user's init file only
agents: { model: "anthropic/claude-opus-5-5", maxDepth: 3, retry: { maxRetries: 5 } }, // per workspace
});

Declarations merge in order (the user’s file first, later values win, null restores the default). A wrong key or value fails the file.

Key Values
ui.theme graphite (the core’s default; the default flavor’s is synth), synth, catppuccin, gruvbox, tokyo-night, nord, solarized, rose-pine; calm ones for the boring skin: graphite, paper, clay, primer; accent (the macOS system accent; elsewhere the default theme); matugen (the user’s theme.css).
ui.skin boring (the core’s default: system sans-serif, neutral gray) or crush (the default flavor’s: monospace chrome, box-drawing glyphs, motion). Kit components follow it; a widget’s own styles do not.
ui.density, ui.fontSize, ui.fonts compact/normal; 10–28 px; { prose?, ui?, code? } font families.
ui.motion, ui.notifications full/reduced/none; always/never/background.
ui.recentThreads Hidden threads each window keeps followed for instant switching: 0–100 or all (default 20).
ui.showXdevNotices Whether MCP tool mount/unmount notices show in transcripts (default false).
ui.desktop The desktop app’s, for its windows on this daemon: downloads (an absolute path or ~/…; default the system’s Downloads folder), pagePermissions (omfp’s own page; default notifications, microphone, clipboard-read, clipboard-sanitized-write), webPermissions (the widgets’ web pages; default clipboard-sanitized-write), popupWait (seconds a page’s popup waits for its widget, 1–300, default 10). Permissions are Electron’s names, microphone and camera for media; anything unlisted is denied. Merged key by key.
daemon.deleteArchivedAfter How long an archived thread stays before the daemon deletes it: <n>m/h/d/w (default 7d), never or 0.
daemon.terminalHangUpGraceMs How long a terminal’s program (and what it started) may take to end after a hang-up — its kill, its thread stopped, archived or deleted, its workspace removed — before it is killed outright, in ms (default 2000).
agents.model, agents.thinkingLevel The model ("<provider>/<id>", one of auth.models) and thinking level (off, minimal, low, medium, high, xhigh, max) new threads start with, unless created with their own (threads.create’s model/thinkingLevel, the draft’s model picker, a task item’s model/effort, a prompt job’s model/thinkingLevel; a subagent takes its parent’s choice, if it has one). Kept with each thread when it is created: a change affects only threads created afterwards and restarts nothing. Unset: the daemon’s --model. A model the thread cannot use (no login) is skipped when it starts.
agents.maxDepth How deep subagents nest, 1–8 (default 2). Read when a thread’s host starts; a change restarts idle threads.
agents.codemode Whether agents get pi’s codemode tool (default true). Read when a thread’s host starts; a change restarts idle threads.
agents.compaction pi’s automatic compaction (default on): when the context fills up or the provider says the prompt overflowed, pi summarizes the older part with the thread’s model and goes on. false/true, or { enabled?, reserveTokens?, keepRecentTokens? }: tokens kept free for the prompt and reply (pi’s default 16384), recent tokens kept verbatim (20000). The transcript shows one row: Compacting context…, then Context compacted (N → M tokens) with the summary to expand.
agents.retry pi’s automatic retries of transient provider errors — overloaded, rate limited, 5xx, dropped connections (default on). false/true, or { enabled?, maxRetries?, baseDelayMs?, maxDelayMs? }: attempts (3), first delay doubled each time (2000 ms), longest delay. The transcript shows one row: Provider error, retrying in Xs (attempt n/m), then how it ended.
agents.queue How the messages you queue while the agent works go in: { steering?, followUp? }, each all or one-at-a-time. Steers (Enter while it works) go in after the current step, all together by default; one-at-a-time gives the model one per step. Follow-ups (Ctrl+Enter) start a new run once it is done, one per run by default; all sends them together. Read when a thread’s host starts; a change restarts idle threads.
agents.jobs Your background jobs: { readyTimeoutSeconds?, notifyMaxLines?, notifyWindowSeconds?, patternTimeoutMs? }: how long job_start’s ready waits without its own timeout (30), how many lines matching a job’s notify may come within how many seconds (10 in 5) before its notices stop, and how many milliseconds a notify or ready.log pattern may take on one output line (250) before it is given up, the agent told once. Read when a job starts.
agents.subagents The budget of a task item: { budgetNoticePercent?, budgetStopPercent? }: the share of the budget (%) at which the subagent is told to wrap up (100) and at which it is stopped (150).
threads.autoResume Whether the daemon resumes interrupted turns itself, as the chat’s Resume does (default false; the default flavor’s is true): every turn a daemon stop or a crash interrupted, children included, once the daemon starts again, and a turn whose agent process crashed once it is restarted.
threads.autoResumeCrashLimit, threads.autoResumeCrashWindowMinutes How many times one thread is resumed after crashes within how many minutes (3 in 10); past that its turn stays interrupted for you, so a crash loop stops.
telemetry OpenTelemetry export (off by default): { endpoint, protocol?, headers?, serviceName?, sampling?, includeContent?, metricsIntervalMs?, resourceAttributes?, signals? }, the user’s init file only, never shown by settings.get; null turns it off. See omfp://docs/telemetry.

agents is per workspace (the workspace’s file overrides the user’s; compaction, retry, jobs, subagents and queue merge key by key, so a workspace can change one knob); ui, daemon and threads are daemon-wide and only the user’s init file declares them (telemetry too). A change of agents.maxDepth, agents.codemode, agents.compaction, agents.retry or agents.queue restarts each idle thread of the workspace on its session.

:theme [light|dark|system] [<theme>] (the scheme is this window’s, the theme every window’s; arrows preview), :density compact|normal, and :set <key>=<value> with density, font_size, motion, notifications, theme, skin, recent_threads, fonts.prose|ui|code, delete_archived_after, keymap.<keys> or keymap.<mode>.<keys> (a command id, "" removes the binding). Nothing is written: to keep one, declare it in the user’s init.ts. Over the protocol: settings.set; in a widget useSettings() / useSetSettings().