CAO supports Oh My Pi (OMP) through the
public provider name omp. The integration starts the user's normal interactive
OMP, then adds only CAO's role context and profile MCP servers.
- OMP 17.2.10 or 18.x on
PATH(omp --version); 18.x is verified on 18.20.0 and 18.20.2 - An authenticated OMP model account; run
ompdirectly and use its normal authentication flow before launching through CAO - tmux, required by CAO's terminal backend
CAO does not install OMP or modify its authentication, approval mode, tool policy, model catalog, rules, skills, or project configuration.
cao install developer --provider omp
uv run cao-server
cao launch --agents developer --provider omp--auto-approve skips CAO's workspace confirmation only. It does not change
OMP's approval policy. Choose a model for one launch with:
cao launch --agents developer --provider omp --model openai/gpt-5.6The explicit --model value wins over the profile's model; otherwise the
profile value is used. With neither value, OMP chooses from its normal native
configuration.
The launch command intentionally omits OMP flags that replace or narrow native
behaviour: --profile, --tools, --no-tools, --no-skills, --no-rules,
--no-extensions, --auto-approve, and --approval-mode.
It adds one --config $CAO_HOME_DIR/tmp/omp/<terminal-id>/cao-input.yml
overlay (mode 0600). OMP reads --config after the global and project
settings, so they stay in effect; the overlay sets only
paste.largeMenuThreshold: 0. From OMP 18.3.1 a paste of 100 lines or more
otherwise opens a "Pasted N lines" menu, and the Enter that CAO sends to submit
a task would pick the menu's first entry and leave the task in the composer.
Large pastes still collapse to an attachment chip and submit normally.
OMP continues to discover its normal project and user configuration, including
.omp/ and ~/.omp/agent/ roots. CAO writes a per-terminal context file under
$CAO_HOME_DIR/tmp/omp/<terminal-id>/context.md (mode 0600) and passes it by
--append-system-prompt; it never uses --system-prompt. OMP's default
workflow, native tools, rules, and skills therefore remain present.
If an installed CAO profile has mcpServers, CAO creates a private extension
root under the same per-terminal directory:
index.jscontains the minimal OMP extension entrypoint..mcp.jsoncontains only that profile's MCP servers.- OMP receives
--extension <directory>.
OMP's extension-package discovery loads sibling .mcp.json at priority 90;
normal user/project OMP configuration remains priority 100. Native definitions
therefore stay active and win on a same-name conflict. CAO does not write to
the working tree or ~/.omp.
For stdio MCP servers, CAO resolves the runtime command and adds
CAO_TERMINAL_ID only when the server did not set it already. HTTP/SSE entries
are preserved. Every generated directory is mode 0700, generated files are
mode 0600, and terminal cleanup removes only its own directory.
MCP servers declared by installed agent plugins are merged
into this .mcp.json at launch time, alongside the profile's own — recomputed on
every terminal creation rather than persisted, so the paths never go stale. A
server the profile already declares wins; all three transports are carried.
Its MCP config format has no working-directory key (checked against the vendor's own MCP documentation, 2026-09-16), so CAO carries an agent plugin's declared cwd by launching the server through /bin/sh -c 'cd -- "$1" && shift && exec "$@"'. exec replaces the shell, the environment passes through, and argument boundaries survive because each argument stays a separate argv element. On a host with no /bin/sh such a server is skipped with mcp.cwd_unsupported rather than started in the wrong directory.
See Agent Plugins for the full per-provider table.
OMP's --tools only filters built-ins; it cannot fully restrict discovered
custom, extension, or MCP tools. CAO restrictions are consequently advisory
for omp, not hard enforcement. A restricted profile receives CAO's security
prompt and its exact CAO tool list, while OMP's configured tool set,
tools.approvalMode, and per-tool policy remain authoritative.
An OMP Allow tool: <name> dialog is surfaced as WAITING_USER_ANSWER. CAO
holds orchestrated inbox delivery while that dialog is active. Respond in the
OMP terminal using its normal approve/deny controls.
On OMP 18.x, CAO first reads OSC 7501 Program Status reports
(ESC ] 7501 ; state=… ST). OMP writes one on every state change when stdout is
a TTY, so the reports reach the tmux pipe. CAO reads them from each raw output
chunk, before escape stripping, and keeps a sequence split across reads. The
latest report wins over the screen markers below, except that a drawn
Allow tool: dialog still reads as WAITING_USER_ANSWER:
OSC 7501 state |
CAO state |
|---|---|
working |
PROCESSING |
blocked |
WAITING_USER_ANSWER |
idle / done |
IDLE / COMPLETED |
error |
ERROR |
clear or an unknown state |
no verdict; the screen decides |
After CAO dispatches a task, a ready verdict counts as that turn's completion
only once the turn was seen running (a working report or a spinner status
row). OMP reports idle once more as it accepts the paste, the tail of the
previous screen can still look ready, and an earlier turn's done or error
is no verdict for the new one.
OMP writes these reports from 18.8.7, while terminal.programStatus is on (the
default; CAO keeps the user's setting). Without them, CAO decides from the
screen markers below. A spinner status row then stays live until a later π
row or status line, because OMP 18 also draws ╰─ frames during a turn (the
band frame and tool-box bottoms). The spinner must be a braille frame, as in
the unicode and nerd symbol presets; the ascii preset's - \ | / frames
are not read as turn activity, so keep terminal.programStatus on with that
preset or a custom spinner theme.
Screen markers, from OMP 17.2.10 and 18.x fixtures:
| CAO state | OMP 17.2.10 | OMP 18.x |
|---|---|---|
PROCESSING |
Working… ⟨esc⟩ or a running-tool indicator |
⎋ Working… / ⎋ <tool intent> row, or a spinner status row (╭── ⠹ 3s > …, or ⠹ 3s > … with the band composer) |
WAITING_USER_ANSWER |
Allow tool: <name> |
Allow tool: <name> |
ERROR |
active OMP runtime/provider error frame | same |
IDLE / COMPLETED |
ready frame; CAO uses dispatch history to distinguish the first ready state from a finished turn | π > status row with a ╰─ … ─╯ (box) or bare ╰─ (band) ready frame |
A later OMP ready status line (in: … out: … t: … tok/s: …) makes an older
waiting, error, or processing marker stale. Response extraction uses the final
rendered assistant block before the ready frame and removes only OMP borders,
tool cards, advisor chrome, and footer/status rows. Prose such as Error:,
working, or cancel is retained.
Install the three profiles, start CAO, then launch the supervisor:
cao install examples/assign/data_analyst.md --provider omp
cao install examples/assign/report_generator.md --provider omp
cao install examples/assign/analysis_supervisor.md --provider omp
uv run cao-server
cao launch --agents analysis_supervisor --provider omp --auto-approveAsk the supervisor to analyze three distinct datasets and create one report.
The intended flow is parallel assign calls to data analysts; each analyst
uses send_message for its callback; then the supervisor performs a sequential
handoff to report_generator; finally it combines all worker outputs. The
supervisor should delegate analysis and report drafting rather than doing either
itself. The CAO MCP extension supplies those orchestration tools; OMP's native
task tool is not the CAO workflow mechanism.
Oh My Pi not found — install OMP so omp resolves in the shell inherited
by tmux, then verify with omp --version.
Launch reaches an OMP approval dialog — answer the OMP dialog or use an operator-controlled test configuration. CAO intentionally does not pass an approval-bypass flag.
No CAO MCP tools — reinstall the profile with its mcpServers, then inspect
the generated per-terminal extension root before terminal cleanup. Do not add
CAO entries to .omp or ~/.omp/agent/ manually.
Status remains processing — inspect the live terminal for an active
Working… / tool frame or an approval dialog. On OMP 18.x the OSC 7501 report
decides; a terminal that shows a ready frame but reads processing usually
missed the last report. Captured fixtures and regexes target OMP 17.2.10 and
18.20.0 (test/providers/fixtures/OMP_FIXTURES.md); recapture terminal
fixtures before changing markers for a new OMP release.
A dispatched task stays in the composer as an attachment chip — the OMP
large-paste menu caught CAO's Enter. Check that the launch command carries the
--config …/cao-input.yml overlay.