The core
What the kernel provides
Section titled “What the kernel provides”The kernel is a list of features, each owning its protocol methods and topics (ui/packages/daemon/src/features):
- Threads and workspaces: creating, prompting, stopping, archiving and searching threads; workspaces from the workspaces root; generated thread titles; idle hosts stopped after 15 minutes unwatched.
- Subagents: child threads for
task, their results delivered to the parent. - Jobs: declared jobs and their schedule, services and run history; agents’ background commands.
- Approvals, interactions (answers to
askforms and waiting cards) and the activity log of every agent call. - Views and widgets: the views each workspace declares and their live changes; widget modules compiled and served.
- Files and terminals (PTY sessions for widgets and agents), MCP servers, settings and the user theme.
- Logins and models (pi’s providers), web push notifications, live voice, prompt history and word completion.
Agent tools
Section titled “Agent tools”Every thread’s agent gets pi’s tools plus omfp’s (ui/packages/daemon/src/pi):
| Tool | What it does |
|---|---|
read |
Reads a file (text or image); also local://, omfp:// and thread:// URLs. |
write, edit |
Writes a file / replaces text in one; also in local://. |
bash |
Runs a shell command in the workspace folder. |
grep, find, ls |
pi’s search tools (ripgrep, fd); path may be local://. |
todo |
A phased todo list the user sees. |
web_search |
Searches the web and answers with links (Anthropic models only). |
ast_grep, ast_edit |
Structural search and rewrites with ast-grep. |
ask |
Asks the user to fill in an HTML form and waits for the answer. |
omfp_card |
Draws a widget in the chat for this moment of the conversation, optionally waiting for an answer. |
task, task_wait |
Starts subagents in child threads; waits for the next one to end. |
job_start, job_wait |
Starts a shell command in the background; waits for background jobs to end. |
omfp_thread_wait |
Waits until another thread is done, instead of polling it. |
omfp_call |
Calls any protocol method the daemon offers agents (the catalogue). |
omfp_eval |
Runs TypeScript in the workspace’s live host as a named cordis plugin. |
codemode |
pi’s tool running a JavaScript script that calls the other tools (on unless agents.codemode: false). |
mcp__<server>__<tool> |
The tools of the workspace’s MCP servers. |
| declared tools | Tools the init files declare with ctx.agents.tool, run in the workspace host. |
task and task_wait exist only below the depth limit (agents.maxDepth). An agent kind run by task may list a
smaller tool set.
URL schemes
Section titled “URL schemes”| URL | What it is |
|---|---|
local://<name> |
The thread’s shared artifacts folder (plans, notes, reports), common to a thread and its subagents; local:// lists it. |
omfp://docs |
omfp’s reference for agents, the For agents section of this site; also omfp://keymap, omfp://protocol/methods, omfp://widgets/builtin. Read-only. |
thread://<id> |
A thread’s transcript as text, read without starting it; thread:// lists the caller’s child threads. Read-only. |
job://<id-or-name> |
A background job’s output; job:// lists the caller’s jobs. Read-only. |
| declared schemes | Schemes the init files declare with ctx.agents.uri, read in the workspace host: the flavor’s https://, http://, pr:// and issue://. Read-only. |
<file>:<selector> |
A file of a type a reader declared with ctx.agents.reader (the flavor’s archives, SQLite databases, JSON, PDF, notebooks), read in the workspace host; the selector picks something inside (dist.zip:src/main.ts, shop.sqlite:users, package.json:.dependencies). raw: true reads the file itself. Read-only. |