Docs for agents
Read-only omfp:// pages for agents; read them with read (offset/limit page a long one). Read only the topic you
need.
- omfp://docs/init — init files (
.omfp/init.ts) and whatctxdeclares; reloading;omfp_eval. - omfp://docs/flavor — the default flavor (
@omfp/flavor): the core vs the flavor, its parts and options. - omfp://docs/views — views and layouts, the
main/sideslots,instance, live changes,views.mountand panels. - omfp://docs/builtins — the core’s widgets (
omfp:chat,omfp:file, …) and the flavor’s (omfp:web,omfp:terminal, …). - omfp://docs/widgets — writing a widget: files, allowed imports, styling, state, the rules it must follow.
- omfp://docs/sdk —
omfp/sdk: every hook and window key a widget uses. - omfp://docs/kit —
omfp/kit: every component, and the kit replacement of each native form control. - omfp://docs/cards —
omfp_card: a widget drawn in the chat for one moment, and waiting for the user’s answer. - omfp://docs/jobs — declared jobs (
ctx.jobs.define) vs a widget’s commands (useJob) vs your background commands. - omfp://docs/keys — key bindings, modes, command ids,
useCommand, context menu items. - omfp://docs/window-modules —
ctx.window.load: code every window runs (InitApi: commands, binds, views, events). - omfp://docs/settings —
ctx.settings,:set, themes and skins. - omfp://docs/telemetry — OpenTelemetry export (
telemetrysetting,@omfp/otel, Langfuse): spans, metrics, logs. - omfp://docs/agent-tools — tools for agents from init files (
ctx.agents.tool), the browser plugin, MCP servers,tool/beforehooks, threads limited to some tools or none (threads.create { tools }). - omfp://docs/uris — URI schemes for
readfrom init files (ctx.agents.uri); the flavor’shttps://,pr://,issue://. - omfp://docs/readers — file readers for
readfrom init files (ctx.agents.reader):<file>:<selector>,raw; the flavor’s archives, SQLite, JSON (jq), PDF and notebooks. - omfp://docs/notifications — telling the user something:
agents.notify,useNotify, push. - omfp://docs/window — the user’s window: left column, mode line, tabs,
:commands, composer, logging in. - omfp://docs/checking — checking your widgets, init files and views in the user’s window, phones included.
- omfp://docs/scripting — scripts outside omfp:
omfp call <method> [<params>], its exit statuses, the raw protocol. - omfp://docs/troubleshooting — symptoms and their causes.
- omfp://keymap — the core’s keys, the default flavor’s, and the built-in commands.
- omfp://schemas/views.json — the JSON Schema of a workspace’s views manifest (the
views/<id>topic,views.set). - omfp://widgets/builtin — the built-in widgets;
omfp://widgets/builtin/<name>[/<path>]their sources. - omfp://protocol/methods — the protocol methods
omfp_callaccepts;omfp://protocol/methods/<name>one’s types.
read also takes two schemes of your own (and those the workspace declares, omfp://docs/uris):
thread://<id>: a thread’s transcript as text (a header, then one[role]paragraph per message, each tool call one[tool] name arg → resultline), paged withoffset/limit; barethread://lists your child threads, one line each. A thread’s line and the header say what is known of its run, e.g.thread://<id> <title> — running 4m12s · 37 req · $1.20 · ctx 120K/200K · read-only: its state with how long it has run (orended … ago after …), its model requests, cost, context used of its window (only while its host runs),read-only; an unknown fact is left out. It never starts the thread’s host. Read-only: write, edit, grep, find and ls refuse it.local://<name>: this thread’s shared artifacts folder (plans, notes, reports), shared with your subagents; read, write, edit and search it like files; barelocal://lists it.