Skip to content

The omfp window

What the user sees around the widgets, so you can point at it (“press Space v”, “pick Review in the mode line”), with the default flavor loaded (omfp://docs/flavor): its slots hold the left column (omfp:threads), the mode line’s view tabs (omfp:views) and the phone’s bar (omfp:areas), and most keys below are its. Without it the window is the core: the view, the : line and a “No flavor loaded” hint. omfp://keymap lists the keys and commands; :help shows them in the window.

A filter field, then one section per workspace: its threads with their state marks (running, awaiting input, failed, idle, unread) and “+ thread” (a draft; the thread is created with its first message), then “Jobs (N)” and “Archived (N)” rows. “+ workspace” (Space w) takes a name or a path (/…, ~/…) to link. Rows and sections reorder by drag or Alt-ArrowUp/Alt-ArrowDown (agents: workspaces.reorder, threads.reorder); a thread dropped on another workspace moves there. Selecting a thread makes its workspace the current workspace: the view, the init file’s views, keys and window modules, and :widget add follow it. Space b hides the column in a wide window; under 1100 px it folds into a strip; on a phone it is one of the bottom bar’s areas. Delete (×, :delete, middle click) removes a thread’s history at once, without confirmation; Archive keeps it.

Subagents an agent starts (task) are child threads, indented under their parent (a chevron folds them). A child is read-only unless its agent asked for an interactive one: its parent’s agent drives it, the user watches; the parent’s task card links it. A finished child is archived and stays readable. Archiving or deleting a parent while children still run asks whether to stop them. An agent’s background commands (job_start) nest under its thread too, while they run (command, elapsed time) and 10 s after they end (a failed one until the thread is opened); a press opens the thread and the job in omfp:background.

Space / (:threads) is a fuzzy thread picker with live preview; / (:search) searches the current conversation.

The bar at the bottom of the view area: the mode pill (THREADS: keys switch threads; VIEW: keys go to the focused widget; INSERT: a text field; COMMAND: the : line; vim’s mode in a file editor), the thread’s title and state, the view tabs (Default · Review · Ops; a click switches), the newest notice, the messages button (:messages) and Hide/Show panel for the view’s side tabs. Results of user actions show as toasts at the bottom right; :messages lists the last 100.

Files open as tabs of the view’s main tabs, after its own tabs. A widget the view does not show opens there too when something reveals it (the header’s N in background badge), titled with its name; a view without main floats it in a panel. These tabs are per window and workspace, in italics, and close with ×, a middle click or Delete. The view’s own tabs close the same way unless alone or holding the chat; that is a live change with Undo in the toast.

A right click on a message (Fork from here, Copy), a file reference (Open, Copy path) or a thread row (Archive, Copy conversation, Export) opens omfp’s menu; Shift-F10 opens the focused item’s. Widgets and window modules add items (omfp://docs/keys).

: (or Space :) opens it; typing filters commands, Tab completes, Enter runs. Built-in ids are <area>.<verb> (view.switch), the short names their aliases. The ones you will point at most:

Command What it does
:view <id>, :view-reset Switch view; drop the live changes of the workspace’s views.
:widget add <reference>, :widget copy <reference> [<name>] Add a widget to the current view (a live change); copy a built-in into .omfp/widgets/<name>/.
:reload-init Run the init files again. Editing them does nothing until then.
:open <path>[:<line>], :copy-path Open a file next to the chat; copy a path.
:new, :workspace, :rename, :archive, :delete, :fork Threads and workspaces.
:stop, :stop!, :restart, :compact [focus] Stop the thread’s pi (with its background commands; ! also its spawned threads); restart it; compact its context.
:approvals [yolo|write|always-ask|always-ask-cached] The thread’s approval mode (only a window may loosen it).
:copy, :export The conversation as Markdown to the clipboard / a file.
:jobs, :job-run <name> Declared jobs.
:theme, :set <key>=<value> Appearance and settings (omfp://docs/settings).
:app, :app-full The current view as an installable app of its own (/app/<workspace>/<view>).
:login [<provider>], :logout <provider>, :model Logging in; the thread’s model.
:help, :describe-key, :describe-command <name>, :messages, :notice, :push [on|off] Help and notices.
:/<name> [args] A command pi announces for the selected thread (extensions, prompt templates, /skill:<name>): puts /<name> [args] at the start of the composer, before what you typed, without sending it.

The window starts in Threads mode: j/k switch threads, v or Enter enter View mode, i the composer, Esc steps back (Insert → View → Threads). Space opens the leader menu (which-key); Space v picks a view, Space f a file, ] v/[ v cycle views, Alt-j/Alt-k threads from anywhere, Ctrl-c interrupts the turn.

In the composer Enter sends (while the agent works it steers the turn; Ctrl-Enter queues a follow-up), Alt-Enter adds a line, @ suggests files, / pi’s commands (:/ lists the thread’s own ones too). Up with the caret on the composer’s first line recalls the prompts you sent (this thread’s first, then its workspace’s, then every other, newest first within each); Down on the last line goes back and, past the newest, restores what you had typed. u in Threads/View mode restores the last draft Ctrl-c cleared. Readline keys (Ctrl-a, Ctrl-e, Ctrl-k, …) edit.

pi needs a model it can use. omfp keeps its own credentials on the daemon’s host (<data-dir>/pi-agent/auth.json), shared by every omfp window and thread, never with standalone pi. :login opens the provider picker (:login anthropic skips it); the provider’s page opens in a new tab, and a provider that shows a code asks for it in a dialog. :logout <provider> removes omfp’s stored credentials. Instead of a login, an API key (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, …) works in the daemon’s environment (restart the daemon) or in that file; the first-run welcome says where.

Each window reports to the daemon what it shows: its thread, focus, views and where each comes from, the commands init files and widgets added, its errors. You read them with windows.list and windows.state (through omfp_call), and run a command in a window with windows.run, as :<command> <args> would: only registered commands, never code. A command <widget>.<…> of a widget of the shown view in a tab not selected (or closed in that window) selects the tab first and runs once the widget registered it. omfp://docs/checking puts them in a loop.

A window of omfp desktop also reports its native window as desktop: { host, pid, title } (null in a browser): every window of the desktop app’s process has the same app_id (omfp) and pid, but a title of its own: what it shows, then a suffix numbering it, Fix the parser — omfp · 1, work — omfp · 2 (the selected thread’s title, else the view’s), or omfp · 3 with neither. A script finds the window manager’s window of a windows.list entry by pid and title (in the window manager’s list of windows) when host is its machine. The title follows the window’s thread, and desktop.title with it: read windows.list right before matching, never a title kept from earlier.