Flavor
omfp is split in two. The core is the kernel, the hosts, the agent tools and a minimal window: the chat
(the thread’s header over the conversation), opened files, the : command line and a handful of keys (:, ?, i,
Esc, Ctrl-c). Everything opinionated lives in the default flavor, @omfp/flavor: a cordis plugin your init
file loads, which you can keep, configure part by part, or replace with your own.
The starter init file
Section titled “The starter init file”On its first run the daemon writes ~/.config/omfp/init.ts (unless --user-init names another file):
import type { Context } from "@omfp/daemon/workspace";import browser from "@omfp/browser";import flavor from "@omfp/flavor";
export default (ctx: Context) => { ctx.plugin(flavor); ctx.plugin(browser);};The file is yours from then on: the daemon never writes it again. Drop the flavor line and the window is the core
alone, with a “No flavor loaded” hint saying how to bring it back. Run :reload-init after editing it.
What the flavor adds
Section titled “What the flavor adds”| Part | What you get |
|---|---|
layout |
The default view (the chat with a side panel holding an empty canvas for agents to fill) and the window’s shell: the threads column, the view tabs in the mode line, the phone’s bottom bar. |
keys |
Vim-style moves (j/k, g g, Ctrl-d/Ctrl-u), the Space leader menu and its groups, Alt chords that work everywhere, readline keys in the composer. |
settings |
omfp’s own look: the Crush skin and the Synth theme (the core uses Boring and Graphite); and turns a daemon restart or a crash interrupted resume by themselves (the core leaves them for you to resume). |
widgets |
The ready widgets: terminal, changes (git diffs), jobs, todos, background commands, MCP servers, session tree, debug, activity, web page, workspace folders, canvas. |
web |
Agents’ read of https:// and http:// pages as Markdown (article extraction with Readability). |
github |
Agents’ read of pr://<n> and issue://<n> of the workspace’s repository, through your gh login. |
readers |
Agents’ read of archives (.zip, .tar, .tar.gz, .tar.zst: members listed, dist.zip:src/main.ts one of them), SQLite databases opened read-only (shop.sqlite the schema, shop.sqlite:users a table’s rows, shop.sqlite:SELECT … a read-only query’s), JSON and JSON Lines through jq (package.json:.dependencies), PDF text (report.pdf:2-5) and Jupyter notebooks (analysis.ipynb:3). |
activity |
The log of what agents did through omfp, shown by the activity widget. |
predict |
Word completion in the composer, learned from the prompts you sent. |
Configuring it
Section titled “Configuring it”Every part is an option: false leaves it out, an object configures it.
ctx.plugin(flavor, { web: { private: false }, // refuse localhost and private networks github: { hosts: ["github.com", "ghe.example.com"] }, readers: { pdf: false, sqlite: { rows: 50 } }, // no PDF reader; 50 rows a page widgets: { exclude: ["terminal"] }, layout: { slots: { phoneBar: false } }, keys: false, // only the core's keys});| Part | Options |
|---|---|
layout |
view (the default view’s layout, false for none), title, slots (left, modeLine, phoneBar, main: a widget reference or false) |
widgets |
exclude: names to leave out |
web |
private (read loopback and private addresses, default true), timeoutMs (30 s), maxBytes (5 MiB), maxRedirects (10), cacheSize (16 pages), cacheTtlMs (5 min), userAgent, readability (false converts the whole page) |
github |
gh and git (the commands), remotes (["upstream", "origin"]), hosts (["github.com"]), timeoutMs (30 s), listLimit (30) |
readers |
One option per reader, false to leave it out — archive: zip and tar (extensions), maxMemberBytes (8 MiB), timeoutMs (30 s); sqlite: extensions, rows (100 a page), maxCellChars (500), timeoutMs (10 s); json: jq (the command), json and jsonl (extensions), maxOutputBytes (4 MiB), timeoutMs (30 s); pdf: extensions, maxBytes (64 MiB), maxPages (100 a read), timeoutMs (60 s); notebook: extensions, maxBytes (32 MiB), maxOutputChars (2000 an output) |
activity |
keep: entries kept (10000) |
predict |
learnChars: characters of new prompts learned per request (64000) |
What you declare after ctx.plugin(flavor) wins: ctx.settings({ ui: { theme: "nord" } }), ctx.keys.bind(…) on
the same keys, your own default view, ctx.shell.slot("left", "./widgets/my-column"). A workspace’s own
.omfp/init.ts wins over yours for its views and widgets.
Each part is also exported as a plugin of its own (layoutPlugin, keysPlugin, settingsPlugin, widgetsPlugin,
webPlugin, githubPlugin, readersPlugin), so a flavor of your own can load just the ones it wants:
import { keysPlugin, webPlugin } from "@omfp/flavor";
export default (ctx) => { ctx.plugin(keysPlugin); ctx.plugin(webPlugin, { timeoutMs: 10_000 });};Changing a widget
Section titled “Changing a widget”:widget copy omfp:todos copies the flavor’s todos widget into the workspace’s widgets/todos; declare it there
under the same name (ctx.widgets.define("todos", "./widgets/todos/index.ts")) and your copy replaces the flavor’s in
that workspace. The flavor’s widgets are ordinary agent widgets, so the copy runs as it is.
Agents read the same reference as omfp://docs/flavor (For agents).