Skip to content

The default flavor (@omfp/flavor)

omfp’s core is small: the chat (omfp:header over omfp:chat), opened files (omfp:file), the : line and a few keys (:, ?, i, Esc, Ctrl-c). Everything opinionated is the default flavor, one plugin the user’s init file loads; the starter ~/.config/omfp/init.ts the daemon writes on its first run does:

import browser from "@omfp/browser";
import flavor from "@omfp/flavor";
export default (ctx) => {
ctx.plugin(flavor);
ctx.plugin(browser);
};

Without it the window is the core alone and says so (“No flavor loaded”). Loaded from the user’s init file, its layout, keys and look reach every window daemon-wide; its widgets, URI schemes and file readers reach every workspace.

Each part is an option: false leaves it out, an object configures it, absent or true loads it with its defaults.

ctx.plugin(flavor, {
web: { private: false, timeoutMs: 10_000 },
github: { remotes: ["origin"], hosts: ["github.com", "ghe.example.com"] },
readers: { pdf: false, sqlite: { rows: 50, timeoutMs: 5_000 } },
widgets: { exclude: ["terminal"] },
layout: { slots: { phoneBar: false } },
keys: false,
});
Part What it declares Options
layout The default view (header over the main tabs with the chat, the side tabs with omfp:canvas) and the shell’s slots: the threads column (left: "omfp:threads"), the mode line’s view tabs (modeLine: "omfp:views"), the phone’s area bar (phoneBar: "omfp:areas"), the chat’s dial of your messages (transcriptRail: "omfp:rail"). view (a layout, false: none), title, slots (per slot a reference or false)
keys Vim-style moves (j/k, g g, Ctrl-d…), the Space leader and its groups, ] v/[ v, Alt-… chords, readline keys in the composer: the “Flavor bindings” of omfp://keymap.
settings omfp’s own look: ui.skin: "crush", ui.theme: "synth" (the core’s are boring and graphite); threads.autoResume: true: interrupted turns resume by themselves (the core’s is false, omfp://docs/settings).
widgets The ready widgets as omfp:<name> (omfp://docs/builtins): activity, background, canvas, changes, debug, jobs, mcp, rail, terminal, todos, tree, web, workspace. exclude (names)
web https:// and http:// for agents’ read: a page as Markdown (omfp://docs/uris). private, timeoutMs, maxBytes, maxRedirects, cacheSize, cacheTtlMs, userAgent, readability
github pr:// and issue:// for agents’ read, through the user’s gh. gh, git, remotes, hosts, timeoutMs, listLimit
readers File readers for agents’ read (omfp://docs/readers), each false or its options: archive (zip, tar, tar.gz, tar.zst), sqlite (read-only), json (JSON and JSON Lines through jq), pdf (text by page), notebook (.ipynb). archive: zip, tar (extensions), maxMemberBytes (8 MiB), timeoutMs (30 s); sqlite: extensions, rows (100), maxCellChars (500), timeoutMs (10 s); json: jq (command), json, jsonl (extensions), maxOutputBytes (4 MiB), timeoutMs (30 s); pdf: extensions, maxBytes (64 MiB), maxPages (100), timeoutMs (60 s); notebook: extensions, maxBytes (32 MiB), maxOutputChars (2000)
activity The log of what agents did through omfp (omfp:activity), as the workspace method activity.list (workspace.call). keep (entries kept, 10000)
predict The composer’s word completion from the user’s sent prompts, as the workspace methods prompts.predict_word and prompts.predict_word_feedback. learnChars (characters learned per request, 64000)
live Live voice: the composer’s mic, the live panel, :live, :mute and :voice <voice>; a call with Codex realtime (your openai-codex login) that hands what you ask to the thread’s agent. It runs daemon-wide in the user’s own host and ends with its window, its thread or the daemon. voice (the calls’ voice, sol), endpoint ({ baseUrl, apiKey? }: an OpenAI Realtime compatible server instead of Codex; default from OMFP_LIVE_ENDPOINT, OMFP_LIVE_API_KEY)

Your own declarations after ctx.plugin(flavor) win: ctx.settings({ ui: { theme: "nord" } }), ctx.keys.bind(…) of the same keys, ctx.views.define("default", …), ctx.shell.slot("left", "./widgets/my-column"). A workspace’s init file wins over the user’s for its views, slots and widgets. The widgets the user’s init file declares also reach windows without a workspace (the index topic’s widgets): the default view’s omfp:canvas shows before a thread is chosen. So does a slot it fills with a module path (ctx.shell.slot("left", "./my-column.tsx")), as the user’s widget shell.left.

Each part is also a plugin of its own, for a fork that picks some: layoutPlugin, keysPlugin, settingsPlugin, widgetsPlugin, webPlugin, githubPlugin, readersPlugin, activityPlugin, predictPlugin, livePlugin (ctx.plugin(webPlugin, { private: false })). web, github, readers, activity and predict load in workspace hosts only (inject: ["omfp"]), live in the user’s own host only (inject: ["auth"]); activity and predict keep their data in their ctx.dataDir (<data>/workspaces/<id>/plugins/flavor-activity|flavor-predict/). The exports BINDINGS, DEFAULT_LAYOUT, SLOTS, UI and WIDGETS are the parts’ data.

:widget copy omfp:<name> [<name>] (widgets.copy) copies the widget’s folder into the workspace’s widgets/<name>. Declared there under the same name (ctx.widgets.define("todos", "./widgets/todos/index.ts") in .omfp/init.ts), the copy replaces the flavor’s in that workspace. The flavor’s widgets are written like any agent widget (omfp://docs/widgets), so the copy runs as it is.