GeezerVison is showing omo.dev (truncated) — OmO: Your tool for real work. But it's an agent.
Esta documentación está en inglés.
What Is Oh My OpenAgent?
Oh My OpenAgent is a multi-model agent orchestration harness. This guide covers OmO Native, the standalone omo command; the OpenCode and Codex editions ship separately. It turns a single AI agent into a coordinated development team that actually ships code.
Not locked to Claude. Not locked to OpenAI. Not locked to anyone.
Just better results, cheaper models, real orchestration.
Quick Start
Installation
Paste this into your LLM agent session:
Install and configure oh-my-openagent by following the instructions here:
https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/refs/heads/dev/docs/guide/installation.md
Or read the full Installation Guide for manual setup, provider authentication, and troubleshooting.
Your First Task
Once installed, just type:
ultrawork
That's it. The agent figures everything out: explores your codebase, researches patterns, implements the feature, verifies with diagnostics. Keeps working until done.
Want more control? Run /ulw-plan for interview-based planning, then /ulw-execute so the main agent executes the approved work plan in the same session.
Pick a profile
You don't have to know model names to get a good main agent. Pick a profile by intent and omo picks the model:
Capable: the strongest generalist you have. Claude Fable 5.2, then Claude Fable 5.1, then Claude Opus 5.5, then Kimi K3, then GLM 5.3.
Deep work: maximum reasoning for hard problems. GPT-6.2 Astra for the hardest calls, GPT-6.2 Sol for the default deep lane.
Set one key in omo.json:
{ "model_profile": "capable" }
At session start omo walks the chain and applies the first model your connected providers serve, then prints a notice naming the pick and the rungs it skipped. The switch is session-scoped: nothing is written to settings.json. Mid-session failures follow Senpi's own retry chains, not the profile.
Want one exact model instead? Put it in the same key: "model_profile": "anthropic/claude-opus-5-5". Anything with a / is a pin. The precedence is simple: a --model flag or scoped model wins, then a pinned model, then a profile, then Senpi's own default. Leave the key unset and omo doesn't touch the session model at all. Profiles pick the main session model only; categories and curated agents keep their own chains. Full detail in the omo.json reference.
The Philosophy: Breaking Free
We used to call this "Claude Code on steroids." That was wrong.
This isn't about making Claude Code better. It's about breaking free from the idea that one model, one provider, one way of working is enough. Anthropic wants you locked in. OpenAI wants you locked in. Everyone wants you locked in.
Oh My OpenAgent doesn't play that game. It orchestrates across models, picking the right brain for the right job. Your session model for orchestration. Visual work uses claude-fable-5-2 max, then claude-fable-5-1 max, then claude-opus-5-5 max, then kimi-k3 max. GPT-6.2 Astra for deep reasoning. GPT-6 Luna Fast for quick tasks, Kimi high-speed for codebase search. All working together, automatically.
How It Works: Agent Orchestration
Instead of one agent doing everything, Oh My OpenAgent uses one main agent that delegates through the task tool, routed by task type.
The Architecture:
User Request
|
[IntentGate] injects mode prompts on ultrawork/ulw, team-mode, hyperplan keywords
|
[Main agent] runs on your session model; plans, delegates, verifies
|
+--> task(category: "...") -> the category worker (fresh session, category's model + skills)
+--> task(subagent_type: "explore") -> fast codebase grep
+--> task(subagent_type: "librarian") -> documentation and OSS code search
+--> task(category: "architect") -> the architect lane (design + broad debugging, edits when needed)
+--> [Kibitzer] -> resident memory recall sidecar, read-only, nudges only
Planning path (same session, no agent switching):
/ulw-plan -> plan-consultant gap analysis -> plan-reviewer rounds -> /ulw-execute
When the main agent delegates, it doesn't pick a model name. Curated read-only agents (explore, librarian, plan-consultant, plan-reviewer) are invoked with task(subagent_type: ...). Implementation work uses a category: architect, visual-engineering, ultrabrain, deep, artistry, quick, unspecified-low, unspecified-high, writing. The category maps to the right model automatically. You touch nothing.
The main agent is your session. It runs on your session model (a profile, a pin, or whatever you picked with /model), plans the work, fans out delegation, and drives tasks to completion with aggressive parallel execution. It doesn't stop halfway. It doesn't get distracted. It finishes.
Recommended models, named plainly:
Claude Opus 5.5 (or Claude Fable 5.1). The reference configuration. The orchestration prompt was built against Claude's habit of following long, mechanics-driven instructions.
GPT-6.2 Astra, GPT-6.1 Sol or GPT-6 Sol. The GPT-recommended configuration. It gets the GPT-native gpt-6-astra prompt preset built for autonomous, principle-driven work: give it a goal, not a recipe. Over-orchestration on small bounded tasks is a known risk.
Kimi K3 and GLM 5.3 are on the Recommended list too, lower down and with lighter validation. Models outside it aren't supported as the main agent. You don't have to choose: with no model_profile, a fresh session runs Recommended (Opus 5.5, Fable 5.1, Kimi K3, GPT-6.2 Astra, GPT-6.1 Sol, GPT-6 Sol, GLM 5.3) and takes the first one you have connected. The Daily lanes lead with Claude; Obsessive · Normal runs GPT-6.2 Astra at medium (then the GPT-6.2 and GPT-6.1 Sol tiers and GPT-5.6 Sol where Astra isn't served) and Obsessive · Heavy GPT-6.2 Astra at high, with no fallback. Details in the Agent-Model Matching Guide.
The category worker
Every task(category: ...) call spawns the category worker: a fresh worker session configured by the category's model and skills. It gets one prompt, does the work, and reports back. Nothing else leaks in. That's what makes a deep-high call on GPT-6.2 Astra and a quick call on GPT-6 Luna Fast behave predictably side by side.
Curated agents
Four read-only specialists ship with their own prompts, tool policies, and model chains:
explore: fast codebase grep. Speed-focused models for pattern discovery.
librarian: documentation and OSS code search. Stays current on library APIs and best practices.
plan-consultant: gap analyzer. Catches hidden intentions, ambiguities, and AI failure points before a plan is finalized. Plan-gated: only spawnable during a /ulw-plan run.
plan-reviewer: one-shot reviewer. Validates a work plan against clarity, verification, and context criteria. Plan-gated as well.
Architecture consultation isn't an agent. Run task(category: "architect"): the architect consult lane surveys the whole system, weighs trade-offs, and proposes designs without implementing them.
Kibitzer
Kibitzer is the memory side: one resident, read-only sidecar per main agent session. It receives the session's prompts, tool calls and tool results as bounded, redacted events, wakes only when a stored memory it has not judged yet comes into play, can read the workspace, the parent transcript and memory to check itself, and hands back a recollection when one applies. It cannot write memory or files; its only act is a nudge.
Working Modes
Ultrawork Mode: For the Lazy
Type ultrawork or just ulw. That's it.
The agent figures everything out. Explores your codebase. Researches patterns. Implements the feature. Verifies with diagnostics. Keeps working until done.
This is the "just do it" mode. Full automatic. You don't have to think deep because the agent thinks deep for you.
Plan first with /ulw-plan
Run /ulw-plan. The main agent becomes the Ultrawork Planner and interviews you like a real engineer. Asks clarifying questions. Identifies scope and ambiguities. Fans out research, brings in plan-consultant for gap analysis and plan-reviewer for high-accuracy review rounds, and writes a decision-complete work plan before a single line of code is touched.
Then run /ulw-execute [plan-name] [--worktree <path>] [--make-pr] [--ship]. The main agent loads the ulw-plan work plan, sets a Goal when the Goal tools are enabled, registers every plan task as todos, and executes in the same session. Tasks fan out to categories and curated agents. Each completion is verified independently. Learnings accumulate across tasks. Progress tracks across sessions.
Use /ulw-plan for multi-day projects, critical production changes, complex refactoring, or when you want a documented decision trail.
Agent Model Matching
The main agent runs on your session model, chosen by a profile, a pin, or /model (see Pick a profile). Everything it delegates resolves through a fallback chain: categories and curated agents each carry a provider priority chain, and the system tries rungs in order until it finds a model your connected providers can serve. Work continues even when your preferred provider is down.
Custom Model Configuration
Override specific categories or curated agents in omo.json:
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/omo.schema.json",
"agents": {
// Planning helpers: Claude for the gap analysis, GPT for the review
"plan-consultant": { "model": "anthropic/claude-opus-5-5", "reasoning": "high" },
"plan-reviewer": { "model": "openai/gpt-6.2-astra", "reasoning": "xhigh" },
// Research agents: cheap and fast is the point
"explore": { "model": "openai/gpt-6-luna-fast", "reasoning": "low" },
"librarian": { "model": "openai/gpt-6-luna-fast", "reasoning": "low" }
},
"categories": {
// Design consultation: Fable 5 xhigh
"architect": { "model": "anthropic/claude-fable-5-2", "reasoning": "xhigh" },
// Frontend/UI work: Fable 5 max, then Opus 5 max, then Kimi K3.1 Pro max
"visual-engineering": { "model": "anthropic/claude-fable-5-2", "reasoning": "max" },
// Hard logic: GPT-6.2 Astra max, no fallback model
"ultrabrain": { "model": "openai/gpt-6.2-astra", "reasoning": "max" },
// Autonomous research and execution: GPT-6.2 Astra high, no fallback model
"deep-high": { "model": "openai/gpt-6.2-astra", "reasoning": "high" },
// Creative and design work
"artistry": { "model": "anthropic/claude-fable-5-2", "reasoning": "max" },
// Quick tasks: fast and cheap
"quick": { "model": "openai/gpt-6-luna-fast", "reasoning": "low" },
// Low-effort fallback: Claude Sonnet 5.5 medium, then MiMo V2.6 Pro and Grok 4.7
"unspecified-low": { "model": "anthropic/claude-sonnet-5-5", "reasoning": "medium" },
// High-effort fallback: Opus 5, then GLM 5.3 and Kimi K3.1 Pro
"unspecified-high": { "model": "anthropic/claude-opus-5-5", "reasoning": "medium" },
// Prose and documentation
"writing": { "model": "anthropic/claude-opus-5-5", "reasoning": "low" }
}
}
GPT-6.2 Astra: OpenAI's most capable model; default for plan-reviewer (xhigh), ultrabrain (max), deep-high (high) and both Obsessive profiles, with gpt-6.2-astra-fast as the Fast-mode variant. No builtin chain keeps GPT-6 Astra behind it anymore
GPT-6.2 Sol: deep-low runs it at medium on the OpenAI lanes and nothing else, Fast tier included; it is also the fifth unspecified-low rung (medium, OpenAI lanes); its Fast tier is also the first Sol rung on Obsessive · Normal, with plain GPT-6.2 Sol right behind it
GPT-5.6 Sol: the GPT-recommended main-agent configuration
GPT-5.6 Terra: balanced mid-tier; an optional override, not part of any default chain
GPT 5.6 Luna Fast: fast and cheap; default for explore and librarian
Other families:
Grok 4.7: third rung in the unspecified-low category (xhigh)
DeepSeek V4.1 Flash (deepseek-flash) / V4 Pro: utility rungs in explore, librarian, quick, and unspecified-low
See the Agent-Model Matching Guide for the full chains, safe vs risky overrides, and the tuned-preset list.
Why It's Better Than Pure Claude Code
Claude Code is good. But it's a single agent running a single model doing everything alone.
Oh My OpenAgent turns that into a coordinated team:
Parallel execution. Claude Code processes one thing at a time. OmO fires background agents in parallel: research, implementation, and verification happening simultaneously. Like having 5 engineers instead of 1.
Hash-anchored edits. Claude Code's edit tool fails when the model can't reproduce lines exactly. Hash-anchored LINE#ID edits are opt-in (hashline_edit: true). When enabled, OmO's LINE#ID hashing validates every edit before applying.
IntentGate. Claude Code takes your prompt and runs. OmO uses regex detectors for explicit mode keywords: ultrawork/ulw, the Team Mode spellings, hyperplan, and the adjacent hyperplan-ultrawork combo. Matching text injects the corresponding mode prompt.
LSP + AST tools. Workspace-level rename, go-to-definition, find-references, pre-build diagnostics, AST-aware code rewrites. IDE precision that vanilla Claude Code doesn't have.
Skills with embedded MCPs. Each skill brings its own MCP servers, scoped to the task. Context window stays clean instead of bloating with every tool.
Discipline enforcement. Todo enforcer yanks idle agents back to work. Comment checker strips AI slop. Goal is opt-in: goal.enabled and goal.auto_start both default to false. When enabled and started, it holds a persistent per-session objective and re-injects a continuation prompt on idle until a completion audit confirms the work is done.
The fundamental advantage. Models have different temperaments. Claude thinks deeply. GPT reasons architecturally. Haiku moves fast. Single-model tools force you to pick one personality for all tasks. Oh My OpenAgent uses them all, routing by task type. This isn't a temporary hack. It's the only architecture that makes sense as models specialize further. The gap between multi-model orchestration and single-model limitation widens every month. We're betting on that future.
IntentGate
IntentGate is a regex-based mode keyword injector. It detects ultrawork or ulw, team mode/team-mode/team_mode/teammode, hyperplan, and the adjacent hyperplan-ultrawork combo, then adds the matching mode instructions.
It does not semantically classify requests as research, implementation, investigation, or fixes. Prompts without those explicit mode keywords continue without IntentGate mode injection.
What's Next
Installation Guide: complete setup instructions, provider authentication, and troubleshooting
Orchestration Guide: deep dive into delegation, planning with /ulw-plan, and execution with /ulw-execute
Ready to start? Type ultrawork and see what a coordinated AI team can do.
Installation
To install OmO, run curl -fsSL https://get.omo.dev/install.sh | bash (Windows PowerShell: irm https://get.omo.dev/install.ps1 | iex). Install OmO covers every platform, fixing your PATH, updating and uninstalling. This page covers the plugin editions for OpenCode and Codex.
oh-my-openagent ships in three editions of the same product: two plugins that load into a host you already run, plus one standalone edition.
Ultimate Edition (omo for OpenCode) — the full omo experience. The curated agent roster, 54+ lifecycle hooks, all built-in MCPs, every slash command, Team Mode, ulw-loop, hashline edits, the works.
Light Edition (omo for ChatGPT Subscription CLI) - the portable components that fit Codex's plugin system: bootstrap, comment-checker, git-bash, lazycodex-executor-verify, rules, lsp, telemetry, teammode, ulw-execute-continuation, ulw-loop, and ultrawork, plus plugin-scoped MCPs for grep_app, context7, git_bash, and lsp, and the shared ast-grep skill. It has no OpenCode agent registry or team_* tool family, but ships Codex-native agent roles and the script-and-skill-driven teammode component.
OmO Native (standalone) — the omo command with the OMO extension built in. It installs from omo-ai instead of loading as a plugin into OpenCode or Codex.
Most users want Ultimate. Pick Light if you are already invested in Codex CLI. Pick both if you want OMO available wherever you happen to be working that day.
You want
Run
Lands on disk
Ultimate (OpenCode)
bunx oh-my-openagent install (TUI walks you through it)
Plugin registered in opencode.json, agent/model config, provider auth
Both lazycodex-ai and lazycodex are shipped bin aliases that default to the Codex Light installer and run through Node/npm. --platform on the shared omo-agent-toolkit CLI still defaults to opencode (Ultimate). lazycodex is also the repository identity that hosts the marketplace bundle. Neither alias is the Codex marketplace name.
Which edition should I pick?
Already use OpenCode, or want the most-tested path? Choose Ultimate: bunx oh-my-openagent install.
Already use Codex CLI? Choose Light: npx lazycodex-ai install.
Want one command without installing a host first? Choose OmO Native: curl -fsSL https://get.omo.dev/install.sh | bash (Windows: irm https://get.omo.dev/install.ps1 | iex), or bun add -g omo-ai.
Ultimate and Light are plugins that load into a host you already run. OmO Native is standalone: it ships a pinned senpi engine with OMO built in.
For OmO Native, install omo-ai. Do not install plain omo from npm: it is an unrelated package by a different author.
For Humans
Strongly recommended: let an LLM agent install Ultimate for you. Ultimate setup involves subscription detection, model selection across agents and categories, provider authentication, and config migration — humans fat-finger these. An LLM agent reads the full guide and walks every step correctly.
Ultimate (OpenCode) — let an agent do it
Paste this prompt into Claude Code, AmpCode, Cursor, or any LLM agent session:
Install and configure oh-my-openagent by following the instructions here:
https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/refs/heads/dev/docs/guide/installation.md
Light (Codex CLI) — one line, no agent needed
The Light edition installer asks whether to configure Codex for autonomous full-permissions mode. This is recommended for agent-style use: approval_policy = "never", sandbox_mode = "danger-full-access" (which already implies unrestricted network access), and notice warnings hidden. A legacy top-level network_access key left by older installers is removed, because Codex rejects it under --strict-config. Use --codex-autonomous or --no-codex-autonomous to choose non-interactively:
It writes managed Codex Light state to ~/.codex/ and does not touch OpenCode or provider flags. During migration from older Codex plugin installs it may also repair the current project's .codex/config.toml if that project has the known multi_agent_v2 plus legacy [agents] max_threads conflict; project-owned .codex artifacts are reported, not deleted. Global Codex config will register marketplace sisyphuslabs from the local built cache under ~/.codex/plugins/cache/sisyphuslabs, enable plugin omo@sisyphuslabs, and write a valid [features.multi_agent_v2] limit table. The installer never enables MultiAgentV2; if it finds an explicit legacy multi_agent_v2 = false shorthand, it preserves that disable as table-form enabled = false.
On Windows, keep the direct npx lazycodex-ai install ... form above. Do not rewrite it into an npx --package command that launches the omo-agent-toolkit install bin indirectly; that package-manager shape can fail before the installer starts.
On native Windows Codex installs, the installer discovers Git Bash before writing Codex config. It checks OMO_CODEX_GIT_BASH_PATH, standard Git for Windows locations, and then PATH. If Git Bash is missing, it prints the install guidance shown here and stops without running winget or changing system dependencies:
winget install --id Git.Git -e --source winget
where bash
If Git is installed somewhere custom, set the path before rerunning the installer:
Codex may still start Windows shell calls through its own defaults. The Light edition does not write a global Codex shell config; instead it verifies Git Bash is available, enables the Windows-only git_bash MCP policy, and injects guidance before the first shell-like call. After compaction, the reminder resets so the next shell-like call gets the same git_bash recommendation.
Clean install note for older Codex plugin users. Before installing the Light edition into a Codex home that previously used another Codex plugin bundle, uninstall the older bundle first, then re-run this installer. Multiple bundles may write Codex marketplace plugins, lifecycle hooks, and the ultrawork/ulw keyword into the same ~/.codex, so a clean Codex home avoids stale shared config.toml keys and duplicate hooks.
To remove the Light edition after migration, run npx lazycodex-ai uninstall. It removes managed sisyphuslabs Codex cache/marketplace state, strips omo@sisyphuslabs plugin and hook-state blocks from ~/.codex/config.toml with a backup, and removes managed agent TOML files from ~/.codex/agents/. cleanup remains available as a backward-compatible alias.
If Codex still fails only inside one project with agents.max_threads cannot be set when multi_agent_v2 is enabled, run npx lazycodex-ai install from that project. The installer repairs project-local .codex/config.toml layers from the project root to the current directory, removes conflicting legacy [agents] max_threads only when MultiAgentV2 is enabled, and writes timestamped backups next to changed files.
Install from the Codex marketplace (in-app)
Experimental, additive path.npx lazycodex-ai install above remains the primary, fully supported route. The marketplace bundle is hosted in this project's own lazycodex repository — it is not an OpenAI curated listing.
The same Light edition can be installed entirely from inside Codex through its plugin marketplace, with no npx step.
TUI route. In a Codex session, type /plugins, open the Add Marketplace tab ("Add a marketplace from a Git repo or local root."), and enter the marketplace source:
https://github.com/code-yeongyu/lazycodex
Then pick omo from the sisyphuslabs marketplace in the same /plugins menu and install it.
First session: approve the hooks. On the next codex launch the startup hooks review lists every omo hook as new. Review and approve them — no omo hook runs before you approve, and the bootstrap below cannot start until the hooks are trusted.
Bootstrap notice + restart. The first approved session prints this status line:
LazyCodex bootstrap running in background: restart the session when it completes
A detached worker finishes the install in the background (the sg download is the slowest part). Restart the Codex session once it completes — the next session starts fully wired and the notice no longer appears.
What bootstrap does:
writes the managed ~/.codex/config.toml blocks: marketplace source preserved, omo@sisyphuslabs plugin enabled, managed [agents.*] entries, and re-stamped SHA256 [hooks.state."omo@sisyphuslabs:..."] trust hashes
copies bundled Codex agent TOMLs into ~/.codex/agents/
links the top-level omo-agent-toolkit runtime wrapper plus component CLIs (omo-rules, omo-lsp, …) into ~/.local/bin (or $CODEX_LOCAL_BIN_DIR; isolated CODEX_HOME installs use <CODEX_HOME>/bin)
provisions a checksum-pinned standalone sg (ast-grep) binary into <CODEX_HOME>/runtime/ast-grep/<platform>-<arch>/ for the ast-grep skill
on native Windows, provisions a pinned Node LTS runtime into <CODEX_HOME>/runtime/node/ when node is missing (see the Windows status below)
records every run in the plugin data dir: <CODEX_HOME>/plugins/data/omo-sisyphuslabs/bootstrap/state.json plus a JSONL bootstrap.log (Windows adds a ps-bootstrap.log transcript)
What bootstrap does NOT do:
It never writes Codex permission settings.approval_policy, sandbox_mode, and network_access are left untouched. Autonomous mode stays an explicit npx installer choice — npx lazycodex-ai install --no-tui --codex-autonomous (see the one-liner section).
It does not run the npx self-update for healthy marketplace-managed installs. The auto-update hook logs the skip and surfaces this guidance instead: "Auto-update skipped: this LazyCodex install is managed by the Codex plugin marketplace, so the npx self-update was not started. Tell the user to upgrade with codex plugin marketplace upgrade sisyphuslabs, and that Codex will ask them to re-approve hooks after the upgrade." If the hook detects stale local marketplace cache/bin state (for example, a local manifest or managed ulw link points at a deleted payload), it may start the npx installer as a local repair and ask you to restart the Codex session afterward.
It never persists anything under the Codex-managed plugin cache directory itself; all bootstrap state lives in the plugin data dir above.
Upgrading — and recovering hook approval:
Run codex plugin marketplace upgrade sisyphuslabs.
Relaunch codex. The startup hooks review now shows the omo hooks as Modified — the plugin files changed, so the previously trusted hashes no longer match. This is expected after every upgrade, not a sign of tampering.
Re-approve the hooks in that review. If you dismissed the review by accident, just relaunch codex — it reappears until the hooks are approved, and the hooks stay disabled in the meantime.
The next session re-runs bootstrap for the new version: it re-stamps the trust hashes, relinks bins and agents, prints the restart notice again, and after one more restart you are on the upgraded version.
Degraded modes. Bootstrap is degraded-not-fatal: a failed step is recorded in state.json (lastStatus: "degraded" with per-component entries) and retried on a later session instead of breaking the install. The ones you may actually notice:
Mode
What you see
What to do
omo-agent-toolkit absent
The top-level omo-agent-toolkit command was not linked because the installed payload is old or incomplete and lacks the root CLI runtime. Current marketplace payloads ship dist/cli/index.js plus dist/cli-node/index.js, so this should not appear on a fresh marketplace install. Component CLIs still link normally.
Upgrade or reinstall the marketplace plugin, then start a new Codex session so bootstrap relinks bins. Verify with npx lazycodex-ai doctor; use npx lazycodex-ai <command> only as a temporary workaround.
sg pending / offline
The ast-grep provisioning entry appears in the degraded list and the ast-grep skill cannot find sg yet — the first download is still running, or it failed while offline.
Start another session (bootstrap retries automatically), or install ast-grep yourself and/or set OMO_AST_GREP_SG_PATH=/path/to/sg. Verify with npx lazycodex-ai doctor.
Proxy limitation
Binary downloads fail behind an HTTP(S) proxy. The logged error says it plainly: the bootstrap downloader "does not tunnel through HTTP(S) proxies in v1; the download was attempted directly."
Run one session on a direct connection, or provide sg via OMO_AST_GREP_SG_PATH/PATH. Verify with npx lazycodex-ai doctor.
OpenCode Windows proxy preinstall
OpenCode starts before OMO loads, shows only default agents, or logs fetch() proxy.url must be a non-empty string while trying to install oh-my-openagent@latest.
Set HTTP_PROXY/HTTPS_PROXY for the shell that launches OpenCode, then preinstall into OpenCode's Windows config prefix: npm install oh-my-openagent@latest --prefix "%APPDATA%\\opencode". Restart OpenCode and run bunx oh-my-openagent doctor --json.
Windows status. On native Windows the marketplace bootstrap runs through a PowerShell 5.1-compatible bootstrap.ps1: it provisions the pinned Node LTS zip when node is absent, prepares Git Bash the same way the npx installer does, and writes its transcript to ps-bootstrap.log in the plugin data dir (degraded lines look like degraded component=node reason=... hint=npx lazycodex-ai doctor). Windows provisioning is shipped with static test coverage; real-device validation is still tracked separately as an external tracker, not a code-backed fact. Do not treat static coverage as proof that a physical Windows install was exercised.
A note on direct install
If you insist on running the Ultimate installer yourself:
bunx oh-my-openagent install
The TUI walks you through it. Do NOT use npm install -g, bun add -g, or bun install -g — global installation is not officially supported. oh-my-openagent is a plugin that must resolve from where OpenCode/Codex loads plugins, and the prepare script requires Bun. Always invoke via bunx.
If you already used Bun global install or update and Bun reports blocked lifecycle scripts, inspect them before trusting anything:
bun pm -g untrusted
Do not run a blanket trust command. Trust only packages you recognize from this install path, such as oh-my-openagent or legacy oh-my-opencode, then rerun the supported bunx oh-my-openagent install or npx lazycodex-ai doctor check.
The OpenCode comment-checker hook downloads its pinned binary directly from GitHub releases on first use and caches it locally. No comment-checker npm package or lifecycle-script trust is required. If the download fails, comment checking is disabled for that process; allow GitHub access and restart OpenCode to retry.
OmO Native: omo via omo-ai
OmO Native ships as the npm package omo-ai and installs a single command, omo, which launches the pinned senpi engine with the full OMO extension loaded. No settings edits, no plugin registration, no extra setup. Coming from the OpenCode edition? Follow Migrating from OpenCode: it covers the installer, what omo setup carries over, the habit mapping, and running both editions side by side.
Install it and run it:
bun add -g omo-ai
omo
Without bun, npm i -g omo-ai works too. Prerelease builds are published on omo-ai@beta; see the omo-ai publishing runbook for how channels work.
Where omo keeps its state. OmO Native stores engine state under ~/.omo/agent
(settings.json, auth.json, models.json, and friends). A pre-unification flat ~/.omo layout
is adopted once into ~/.omo/agent (marker .adopted-from-omo-flat; sessions, caches, and logs
are not copied). If neither branded layout exists, the engine falls back to ~/.senpi/agent
without copying it, so an older standalone install keeps working. Set OMO_CODING_AGENT_DIR to
override the location; the legacy SENPI_* and PI_* variables are still read when the OMO_*
one is unset.
Older machines: the global omo name is already taken. oh-my-openagent/oh-my-opencode 4.19.4 and earlier ship their own global omo command. A raw npm i -g omo-ai on such a machine fails with EEXIST, and a raw bun add -g omo-ai succeeds while the old command keeps winning on PATH, so omo --version still prints 4.19.4. bunx oh-my-openagent install --platform=native (npx without bun) handles it: it removes that one stale omo entry (the old package and its other commands stay), installs omo-ai, and then verifies omo --version. If another omo still shadows it, the installer prints the exact export PATH=... line to fix the order. When you later remove the old package: bun remove -g oh-my-openagent leaves omo-ai's omo alone, but npm uninstall -g oh-my-openagent deletes every bin name the old package declared, including the omo that npm-installed omo-ai now owns, so run npm i -g omo-ai again right after it.
First run: omo setup
omo setup is the onboarding command for OmO Native. It replaces the old manual configure-by-hand guidance; there's nothing to hand-edit anymore. It runs in three stages:
Detect and plan (read-only). Reads your other coding-agent installs - opencode (~/.local/share/opencode/auth.json, XDG-aware, and the opencode config described below), oh-my-pi (~/.omp/agent/agent.db) and gajae-code (~/.gjc/agent/agent.db) - and works out everything the import below would do, against what the engine's agent dir (~/.omo/agent, or OMO_CODING_AGENT_DIR / SENPI_CODING_AGENT_DIR) already holds. Nothing is written while planning. Credential values are never printed. The oh-my-pi and gajae-code databases are opened read-only.
One summary, one consent. Setup prints a single migration summary in your terms: which harnesses it found (only the installed ones), then one row per class - logins (API keys to import; OAuth logins to redo with /login <provider> inside omo), MCP servers and skills (to import, refused or skipped, each with its reason), providers (custom providers to carry over, including any models.dev catalog provider OpenCode holds an API key for, described from OpenCode's own catalog cache) and model choices (default model, categories, agents) - followed by notes, the anonymous-telemetry line the installer prints, and ONE question for the whole plan:
Found your OpenCode setup
logins 5 API keys (opencode, opencode-go, zai, kimi-coding, openrouter) - will be imported
3 OAuth logins (anthropic, github-copilot, openai) - sign in again inside omo: /login anthropic, /login github-copilot, /login chatgpt-subscription (for openai)
MCP servers 3 will be imported (context7, filesystem, disabled-one); 1 refused (shelly: uses $(...) or a leading !)
skills 2 will be imported (db-migrate, release-notes); 1 skipped (broken-no-skillmd: no SKILL.md)
providers acme -> https://api.acme.example/v1, 2 models (acme-large, acme-small), key from opencode config apiKey - will be imported
model choices default kimi-coding/k3; categories deep-low, quick; agents librarian - will be written
...
OmO sends anonymous usage telemetry (no prompts, code, file paths, or account data) to improve the product.
The data goes to PostHog in the United States.
Turn it off with DO_NOT_TRACK=1 (or OMO_DISABLE_TELEMETRY=1).
Details: https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/legal/privacy-policy.md
Import all of the above into ~/.omo? [Y/n]
--yes prints the same summary and proceeds without asking; --dry-run prints it (plus the planned-* lines scripts can read) and exits without writing or asking; --ask-each asks one [y/N] question per class instead of one for the whole plan. A run that finds nothing new says so and asks nothing.
Import. After that consent, compatible API-key credentials are imported into the engine's auth store. Existing entries are never overwritten, and only providers the engine actually knows are imported - including the ones whose id differs between harnesses but whose endpoint is the same, such as opencode's zai-coding-plan key landing on the zai provider. OAuth entries are reported but never imported: a provider-bound token cannot be copied, so setup names the sign-in to run instead (start omo, then /login <provider> - omo auth only prints or checks credentials that already exist). An API key whose provider id matches nothing omo serves is reported with the same next step: define the provider and its baseUrl in the engine's models.json, then /login it. Source stores are never written; imports go to the engine's auth.json only, atomically and with a timestamped backup.
The same consent carries over the rest of an opencode setup: MCP servers declared in opencode's user config (~/.config/opencode/config.json, opencode.json and opencode.jsonc, merged the way opencode merges them; XDG-aware, with OPENCODE_CONFIG, ~/.opencode/ and OPENCODE_CONFIG_DIR layered on top) are converted to the engine's schema and merged into the global ~/.omo/agent/mcp.json, and global skills under those directories' skills/ or skill/ folders are copied into ~/.omo/agent/skills/. Both are global, so they are available in every project rather than only the one you happened to run setup in. A server or skill name that already exists is kept as-is and reported as skipped, and so is a skill named like one omo already bundles; mcp.json gets a timestamped backup before it is rewritten. A server whose config uses shell command substitution or a {file:...} placeholder, and a skill without a SKILL.md description, are left out with a notice that says what to do instead of being copied into something the engine would reject or silently ignore.
Custom providers (provider.<id> blocks in those same config files) are next. Each one is written into ~/.omo/agent/models.json with its base URL, its models and their context/output limits, and its API key goes into ~/.omo/agent/auth.json, so the first session can select acme/acme-large. The npm package decides the protocol: @ai-sdk/openai-compatible (also what opencode assumes when npm is missing) becomes OpenAI-compatible completions, @ai-sdk/anthropic becomes Anthropic messages, and @ai-sdk/openai becomes OpenAI responses. The key is taken in opencode's own order: options.apiKey, else the provider's entry in opencode's auth.json, else the single variable its env names. {env:NAME} becomes the engine's ${NAME}. A provider that uses any other package, an id omo already serves, a baseURL that is not a fixed URL, or no usable model is reported by name and skipped. A provider id already in models.json or a key already in auth.json is kept as-is, and both files get a timestamped backup before they are rewritten.
Model choices are written last: opencode's default model, its agent.<name>.model overrides, and the OpenCode edition's categories and agents routing (from oh-my-openagent.json[c] / oh-my-opencode.json[c] in the opencode config dir, the [opencode] block of ~/.omo/omo.jsonc, or the ~/.omo/migration-backup-*-opencode-config/ copy the config migration moved those files to). Provider ids are translated the way the credential import translates them (kimi-for-coding/k3 becomes kimi-coding/k3, zai-coding-plan/glm-5.2 becomes zai/glm-5.2; a model on a provider opencode is signed in to with OAuth goes to the provider setup tells you to /login to, so openai/gpt-5.5 on a ChatGPT login becomes chatgpt-subscription/gpt-5.5), and every provider/model is checked against the models the engine serves, including a custom provider this same run carries over. The default model goes into ~/.omo/agent/settings.json (defaultProvider / defaultModel, which interactive sessions start on) and into [native].model_profile of ~/.omo/omo.jsonc as a pin, which is what headless and desktop sessions start on instead of the Recommended profile. Categories and agents go into [native].categories / [native].agents of that file, with fallback_models folded into models. What cannot be carried is listed in the notes with its reason: an unknown provider or model id, small_model (omo has no small-model setting), and an agent name omo has no agent for (omo's agents are explore, librarian, plan-consultant, plan-reviewer and the three omo-native-* reviewers; opencode's build / plan and OpenCode-edition agents such as oracle are reported, not turned into new agents). A key either file already has, in [native] or at the top level, is kept; omo.jsonc is edited in place so its comments survive, and gets a timestamped backup first. A second run reports everything as already carried and writes nothing.
The summary always points at the agent-model matching guide; only when setup found nothing it can import does it also print a ready-to-paste config snippet for a custom endpoint. Apart from the carried-over custom providers and model choices, setup never writes model config for you. After the import, one block of counters (imported: N, mcp-imported: N, providers-imported: ..., model-choices-carried: ...) reports what was written.
For LLM Agents
IMPORTANT: Use curl to fetch this file, NOT WebFetch. WebFetch summarizes content and loses critical flags like --platform, subscription questions, and Codex verification details. Always use:
If you are an LLM agent helping a user install oh-my-openagent, help them install the requested edition, verify the setup, and configure model providers.
Follow these steps in order.
Step 0: Ask user which platform(s) and subscriptions
First, ask which platform(s) they want to install for. This determines the rest of the flow:
"Which harness do you want to install oh-my-openagent for? Pick one:
OpenCode — terminal AI coding agent
ChatGPT Subscription CLI
Both"
Map their answer to the --platform flag:
User says
Use
OpenCode
--platform=opencode (this is also the default if omitted)
Codex
--platform=codex
Both
--platform=both
If the user picked Codex or Both, ask:
"Codex works best for autonomous agent installs when it can run without repeated permission prompts: approval_policy = "never" and sandbox_mode = "danger-full-access". This is recommended for OMO/LazyCodex. Should I configure Codex that way?"
Map their answer to:
User says
Use
Yes
--codex-autonomous
No
--no-codex-autonomous
If the user picked Codex only, skip the rest of Step 0 after this autonomous-permissions question — Codex needs no subscription questions. Go straight to Step 2.
If the user picked OpenCode or Both, ask the following subscription questions to determine the remaining CLI flags:
Do you have a Claude Pro/Max Subscription?
yes + max20 mode (20×) → --claude=max20
yes but not max20 → --claude=yes
no → --claude=no
Do you have an OpenAI/ChatGPT Plus Subscription?
yes → --openai=yes (enables OpenAI routes; the ultrabrain (max) and deep-high (high) categories run GPT-6.2 Astra, deep-low runs GPT-6.2 Sol (medium), the quick category starts on GPT-6 Luna Fast (low), and the Plan Reviewer starts on GPT-6.2 Astra (xhigh))
no → --openai=no (default)
Will you integrate Gemini models?
yes → --gemini=yes
no → --gemini=no
Do you have a GitHub Copilot Subscription?
yes → --copilot=yes
no → --copilot=no
Do you have access to OpenCode Zen (opencode/ models)?
yes → --opencode-zen=yes
no → --opencode-zen=no (default)
Do you have a Z.ai Coding Plan subscription?
yes → --zai-coding-plan=yes
no → --zai-coding-plan=no (default)
Do you have an OpenCode Go subscription? ($10/month for GLM 5.2, Kimi K3/K2.7, MiniMax M2.7/M3)
yes → --opencode-go=yes
no → --opencode-go=no (default)
Do you have a Kimi for Coding subscription?
yes → --kimi-for-coding=yes
no → --kimi-for-coding=no (default)
Do you have a Bailian Coding Plan subscription?
yes -> --bailian-coding-plan=yes
no -> --bailian-coding-plan=no (default)
Do you have a MiniMax CN Coding Plan subscription (minimaxi.com)?
yes -> --minimax-cn-coding-plan=yes
no -> --minimax-cn-coding-plan=no (default)
Do you have a MiniMax Coding Plan subscription (minimax.io)?
yes -> --minimax-coding-plan=yes
no -> --minimax-coding-plan=no (default)
Do you use Vercel AI Gateway?
yes -> --vercel-ai-gateway=yes
no -> --vercel-ai-gateway=no (default)
Provider selection is agent-specific. There is no single global provider priority — each curated agent and each category has its own fallback chain.
WHEN THE USER HAS NO CLAUDE SUBSCRIPTION, THE MAIN AGENT'S RECOMMENDED MODEL IS UNAVAILABLE - WARN STRONGLY.
Step 1: Prerequisites
For platform opencode or both
Check OpenCode is installed and on a supported version:
if command -v opencode &> /dev/null; then
echo "OpenCode $(opencode --version) is installed"
else
echo "OpenCode is not installed. Install it first."
echo "Ref: https://opencode.ai/docs"
fi
If missing, spawn a subagent to install OpenCode and report back — saves context.
Required: OpenCode >= 1.4.0.
For platform codex or both
Check Codex CLI is installed:
if command -v codex &> /dev/null; then
codex --version
else
echo "Codex CLI is not installed. Install it first."
echo "Ref: https://github.com/openai/codex"
fi
The installer expects ~/.codex/ to be writable. Codex CLI's first run creates this directory; if it does not exist yet, install Codex CLI and run it once before continuing.
On native Windows Codex installs, Git Bash is also required. The installer checks OMO_CODEX_GIT_BASH_PATH, standard Git for Windows locations, and PATH; if discovery fails, run:
winget install --id Git.Git -e --source winget
where bash
For a custom Git Bash location, set OMO_CODEX_GIT_BASH_PATH:
--platform defaults to opencode if omitted. Subscription flags only apply when --platform is opencode or both. They are rejected under --platform=codex because the Light edition does not write OpenCode model config. --codex-autonomous only has an effect when the selected platform includes Codex.
About the Codex bin names. Both lazycodex-ai and lazycodex are shipped bin aliases for the Codex Light Node installer; lazycodex is also the GitHub repository identity that hosts the marketplace bundle. Neither invocation requires Bun. The Codex marketplace name is sisyphuslabs, and the plugin name is omo.
What the installer does:
Platform
Writes
opencode, both
Registers "oh-my-openagent" in opencode.jsonplugin array. Generates agent → model mappings into the [opencode] block of ~/.omo/omo.jsonc (legacy config files are migrated into the unified file first).
codex, both
Copies packages/omo-codex/plugin/ into ~/.codex/plugins/cache/sisyphuslabs/omo/<version>/. Packaged lazycodex-ai installs use bundled component artifacts and run npm ci --omit=dev in the cache; source checkout installs may build the plugin first. Writes a local installed-marketplace snapshot under ~/.codex/.tmp/marketplaces/sisyphuslabs/ for marketplace metadata, and copies bundled agent TOMLs into ~/.codex/agents/ so role definitions survive cache or temporary snapshot cleanup. Symlinks component CLIs into ~/.local/bin (or $CODEX_LOCAL_BIN_DIR). Computes SHA256 trusted-hashes for every hook and writes [marketplaces.sisyphuslabs] with local source ~/.codex/plugins/cache/sisyphuslabs, [plugins."omo@sisyphuslabs"], managed [agents.*], [features.multi_agent_v2] max_concurrent_threads_per_session = 16 (and, when MultiAgentV2 is not preferred, [agents] max_threads = 1000), and [hooks.state."omo@sisyphuslabs:..."] blocks into ~/.codex/config.toml. If a legacy [features] multi_agent_v2 = false shorthand exists, the installer converts it to [features.multi_agent_v2] enabled = false to keep the file valid while preserving the user's explicit disable. If --codex-autonomous is selected, also writes approval_policy = "never", sandbox_mode = "danger-full-access", and the matching [notice] warning suppressions, and removes a legacy top-level network_access key.
Both halves are independent and idempotent — re-running is safe.
Step 3: Verify
Verify OpenCode plugin (skip if platform=codex)
opencode --version # Should be 1.4.0 or higher
cat ~/.config/opencode/opencode.json
# Plugin array should contain "oh-my-openagent" (legacy "oh-my-opencode" still loads with a warning)
bunx oh-my-openagent doctor
For the OpenCode target, doctor runs eight registered checks: System, Configuration, TUI Plugin, Deprecated Reasoning Keys, Tools, Models, Telemetry, and Team Mode. The Codex target runs its own Codex, codex-components, and codex-runtime-wrapper checks. Exit code 0 means no check failed; exit code 1 means at least one check failed. Warnings alone still return 0.
Verify Codex CLI Light edition (skip if platform=opencode)
# Plugin cache present?
ls ~/.codex/plugins/cache/sisyphuslabs/omo/
# Marketplace source is the local built cache?
grep -A4 'marketplaces.sisyphuslabs' ~/.codex/config.toml
# Codex config has the plugin block?
grep -A2 'omo@sisyphuslabs' ~/.codex/config.toml
# If the user accepted autonomous mode, permission settings are present?
grep -E 'approval_policy|sandbox_mode' ~/.codex/config.toml
# Component binaries linked?
ls ~/.local/bin/ | grep -E '^(omo-agent-toolkit|lazycodex-executor-verify|ulw|ulw-loop|omo-(comment-checker|git-bash-hook|lsp|rules|ulw-execute-continuation|telemetry|ultrawork|ulw-loop))$'
# Codex CLI sees the plugin?
codex --help
# On native Windows, Git Bash is discoverable?
where bash
If any of these come back empty, re-run npx lazycodex-ai install — the installer is idempotent and will recompute hook trust hashes.
Step 4: Configure authentication
Codex CLI
Codex uses its own OpenAI authentication. The Light edition inherits whatever auth Codex CLI is already using. There is nothing extra to configure here. If codex --help works for you, you are done with Codex auth.
OpenCode providers
Skip this section if --platform=codex. Otherwise, configure the providers the user said yes to in Step 0. Use an interactive terminal (tmux is fine) for the OAuth flows.
Anthropic (Claude)
opencode auth login
# Interactive Terminal: find Provider → select Anthropic
# Interactive Terminal: find Login method → select Claude Pro/Max
# Guide user through OAuth flow in browser
# Wait for completion
# Verify success and confirm with user
Google Gemini (Antigravity OAuth)
First, add the opencode-antigravity-auth plugin entry to opencode.json:
Then merge the full model configuration from the opencode-antigravity-auth README into opencode.json. The plugin uses a variant system — models like antigravity-gemini-3-pro support low/high variants instead of separate -low/-high entries.
Override the agent models in the [opencode] block of ~/.omo/omo.jsonc (or a project .omo/omo.jsonc):
Available Gemini CLI models:google/gemini-2.5-flash, google/gemini-2.5-pro, google/gemini-3.6-flash, google/gemini-3.1-pro-preview.
Legacy tier-suffixed names like google/antigravity-gemini-3-pro-high still work but variants are recommended. Use --variant=high with the base model name instead.
Then authenticate:
opencode auth login
# Interactive Terminal: Provider → Google
# Interactive Terminal: Login method → OAuth with Google (Antigravity)
# Complete sign-in in browser (auto-detected)
# Optional: Add more Google accounts for multi-account load balancing
The opencode-antigravity-auth plugin can use multiple Google accounts. When one account hits rate limits, it automatically switches to the next available account.
Amazon Bedrock
OpenCode owns Bedrock authentication. Configure Bedrock in opencode.json or through AWS environment variables first, then use Bedrock model IDs in OMO agent or category routing.
Use OpenCode's Amazon Bedrock provider guide for model access, bearer tokens, named profiles, VPC endpoints, and custom inference profile ARNs. OMO does not run a separate Bedrock login flow during install.
GitHub Copilot (Fallback Provider)
GitHub Copilot is supported as a fallback provider when native providers are unavailable. Priority is agent-specific. Common install-time defaults when Copilot is the best available provider:
Agent / category
Model
plan-consultant
github-copilot/claude-opus-5-5 (max)
plan-reviewer
github-copilot/claude-opus-5-5 (max)
explore
github-copilot/claude-haiku-5-5 (medium)
librarian
github-copilot/claude-haiku-5-5 (medium)
Copilot acts as a proxy provider, routing requests to underlying models based on your subscription. The main agent keeps running on whatever session model you picked; Copilot-only installs commonly use github-copilot/claude-opus-5-5 there.
Z.ai Coding Plan
Z.ai Coding Plan now mainly contributes glm-5.2 / glm-4.6v fallback entries. It is no longer the universal fallback for every agent.
When Z.ai is the primary provider, the most important fallbacks are:
Agent / category
Model
unspecified-high
zai-coding-plan/glm-5.3
The main agent can run on zai-coding-plan/glm-5.2 as your session model; GLM 5.2 has a tuned prompt preset. glm-4.6v stays a manual choice for vision work.
OpenCode Zen
OpenCode Zen provides access to opencode/ prefixed models including opencode/claude-opus-5-5, opencode/gpt-6-astra, opencode/gpt-5.6-sol, opencode/gpt-5-nano, opencode/glm-5.2, opencode/big-pickle, opencode/minimax-m2.7, and opencode/minimax-m2.7-highspeed.
When OpenCode Zen is the best available provider, common examples:
Agent / category
Model
plan-consultant
opencode/claude-fable-5-2 (max)
plan-reviewer
opencode/gpt-6.2-astra (high)
deep-high (category)
opencode/gpt-6.2-astra (high)
main agent (session)
opencode/claude-opus-5-5 or opencode-go/kimi-k3.1-pro
Run the installer with --opencode-zen=yes and select "Yes" for OpenCode Zen at the prompt. If your OpenCode environment prompts for provider authentication, follow the OpenCode provider flow for opencode/ models.
Step 5: Understand your model setup
Model families
Not all models behave the same way. Understanding "similar" families helps you make safe substitutions. Provider columns list the built-in fallback rungs; Vercel AI Gateway (vercel/<model-id>) remains a manual provider choice only and appears in no built-in chain.
OpenAI's most capable model and the recommended GPT flagship. Default for the Plan Reviewer (xhigh), ultrabrain (max), deep-high (high) and both Obsessive profiles. Accepts reasoning effort low through max (no none or minimal), no temperature, 1.05M context. gpt-6.2-astra-fast is the Fast-mode variant.
The previous flagship. No builtin chain or profile runs it anymore, so you get it only by naming it in omo.json. GitHub Copilot doesn't serve 6.2, so Copilot-only setups reach the plan reviewer through its Claude rung instead. gpt-6-astra-fast is the Fast-mode variant.
The GPT-6 workhorse tier and the default for Hephaestus (medium), with GPT-5.6 Sol kept as its fallback rung. Accepts reasoning effort none through max, no temperature, 1.05M context. gpt-6-sol-fast is the Fast-mode variant.
GPT-6.2 Sol
openai, chatgpt-subscription
The deep-low category model (medium), with no fallback model. It is also the unspecified-low GPT rung (medium). Its Fast tier is the first Sol rung on the Obsessive · Normal model profile, with plain GPT-6.2 Sol right behind it. Accepts reasoning effort low through max (no none or minimal), no temperature.
GPT-6.1 Sol
openai, chatgpt-subscription
The previous Sol: kept right behind the GPT-6.2 Sol rungs in unspecified-low and Obsessive · Normal, with GPT-5.6 Sol behind it. Accepts reasoning effort low through max (no none or minimal), no temperature, 400K context.
GPT-6 Luna
openai, chatgpt-subscription
The GPT-6 light tier. gpt-6-luna-fast (low) is the OpenAI rung for explore, librarian and the quick category. Same effort ladder and limits as GPT-6 Sol.
GPT-5.6 mid-tier. No longer a default for any agent; an optional balanced override.
GPT-5.6 Luna
openai, chatgpt-subscription
GPT-5.6 light tier. Not the unspecified-low default: that category starts at claude-sonnet-5-5 (medium), then xiaomi|opencode-go/mimo-v2.6-pro (max), then grok-4.7 (xhigh), then glm-5.3 (high), then gpt-6.2-sol and gpt-6.1-sol (medium) on the OpenAI lanes, then gpt-5.6-sol (medium).
Excels at visual/frontend tasks. Different reasoning style.
Gemini 3.6 Flash
google, github-copilot, opencode
Fast, good for doc search and light tasks.
MiniMax M3
opencode-go
Latest MiniMax flagship. Primary utility fallback, ahead of M2.7.
MiniMax M2.7
opencode-go
Fast and smart. Utility fallback for various chains.
MiniMax M2.7 Highspeed
opencode (manual choice)
Faster utility variant. No longer a built-in Explore or Librarian rung.
Qwen 3.7 Plus
opencode-go
1M context, high-speed reasoning. OpenCode Go utility fallback for Explore and Librarian after GPT-6 Luna Fast and DeepSeek V4.1 Flash.
Speed-Focused Models:
Model
Provider(s)
Speed
Notes
Grok Code Fast 1
github-copilot, xai
Very fast
Optimized for code grep/search. Manual override option — not in the default chains.
Claude Haiku 5.5
anthropic, github-copilot
Fast
Good balance of speed and intelligence.
MiniMax M2.7 Highspeed
opencode
Very fast
High-speed MiniMax variant. Manual choice only; not in any built-in chain.
GPT-5.3-codex-spark
openai
Extremely fast
Blazing but compacts too aggressively. Not recommended for omo agents.
What each role does and which model it gets
The main agent is the session you are talking to. It runs on your session model; there is no separate agent chain for it. Claude Opus 5.5 is the recommended choice, with GPT-6.2 Astra, GPT-6.1 Sol or GPT-6 Sol as the recommended GPT configuration. With no model_profile, a fresh OmO Native session picks the first model you have connected from the Recommended list (Opus 5.5, Fable 5.1, Kimi K3, GPT-6.2 Astra, GPT-6.1 Sol, GPT-6 Sol, GLM 5.3). Models with tuned prompt presets are listed in Agent Model Matching.
Curated agents (read-only helpers the main agent delegates to through task(subagent_type: ...); chains from packages/senpi-task/src/agents/builtin/fallback-chains.ts):
explore and librarian trade intelligence for speed. Don't "upgrade" them to Opus; it wastes money without improving results.
Categories route execution work to the category worker, a fresh worker session configured by the category's model and skills. task(category: "architect") is the architect consult lane for architecture and debugging questions; deep, ultrabrain, quick, unspecified-low, unspecified-high, visual-engineering, artistry, and writing cover the rest. Their chains live in packages/senpi-task/src/category/fallback-chains.ts and are summarized in Agent Model Matching.
Why different models need different prompts
Claude models respond well to mechanics-driven prompts — detailed checklists, templates, step-by-step procedures. More rules = more compliance.
GPT models (especially 5.2+) respond better to principle-driven prompts — concise principles, XML-tagged structure, explicit decision criteria. More rules = more contradiction surface = more drift.
Key insight from Codex Plan Mode analysis: plan quality comes from making the plan "Decision Complete": it must leave ZERO decisions to the implementer. The Ultrawork Planner (/ulw-plan) uses one thin prompt backed by the ulw-plan skill for that behavior instead of maintaining separate model-family prompt files, so switching your session model changes capacity, cost, and availability, not the prompt text.
Custom model configuration
If the user wants to override which model a curated agent or category uses, edit ~/.omo/omo.jsonc (or a project .omo/omo.jsonc):
{
"agents": {
"plan-consultant": { "model": "anthropic/claude-fable-5-2", "reasoning": "max" },
"plan-reviewer": { "model": "openai/gpt-6.2-astra" }, // the plan gate; keep it on a strong reasoning model
},
"categories": {
"deep-low": { "model": "openai/gpt-6-sol" },
},
}
Lower-risk overrides (compatible behavior): main agent Opus 5.5 → Fable 5.1/Kimi K3/GLM 5.3 (each is on the Recommended list and has a tuned prompt preset); Plan Consultant Fable 5.2 → Fable 5.1/Opus 5.5/Kimi K3; Plan Reviewer GPT-6.2 Astra → Opus 5.5 (max).
GLM 5.2 as the session model: GLM 5.2 gets the GLM-calibrated prompt preset because its model ID is recognized as GLM. It still has less maintainer validation than Claude or Kimi.
Dangerous overrides (no prompt support): main agent → GPT models without a preset (presets cover the GPT-6 family and the GPT-5 line through 5.6); explore → Opus (massive cost waste); librarian → Opus (same).
Optional: community model-management tools
The independently maintained, experimental oh-my-openagent VS Code extension can edit user-level model assignments. It is a third-party configuration frontend, not an OMO runtime component; the OMO project does not maintain or support it, and compatibility is not guaranteed.
Use external tools only with the canonical [opencode] fields described in Configuration. Check which file the tool changed: a nearer project .omo/omo.jsonc overrides user-level settings.
After using an external UI to change models:
Review the generated JSONC before restarting OpenCode.
Run bunx oh-my-openagent doctor --verbose to inspect its diagnostic model-resolution view. This does not replace checking nearer project config or runtime registration and model-matching rules.
Keep provider credentials and API keys in the provider auth flow or environment, not in shared project config.
If an external tool shows a model that OMO later skips, the source of truth is still the model-matching and registration logic in this repository. Use the Agent Model Matching guide to check whether the selected model family is supported for that agent.
Provider resolution
There is no single global provider priority. The installer and runtime resolve each agent against its own fallback chain, so the winning provider depends on the agent and the subscriptions enabled.
Step 6: First use — modes, commands, agents, skills
After install, the user interacts with oh-my-openagent through five surfaces. Walk them through each.
Modes (typed naturally in chat)
Just type one of these words in your message and the system injects the corresponding mode prompt:
Keyword
Editions
What it does
ultrawork or ulw
Both
Full orchestration mode — every agent (Ultimate) or the Codex ultrawork component (Light) activates, doesn't stop until done
team mode, team-mode, team_mode, or teammode
Ultimate
Forces team_* tools orchestration (requires team_mode.enabled); bare team does not trigger it
hyperplan
Ultimate
Adversarial planning via 5 hostile critics
hyperplan ultrawork (combo)
Ultimate
Both at once
Slash commands
All built-in slash commands are Ultimate-only — Codex CLI does not have a slash-command surface, so the Light edition omits this entire layer.
Command
Editions
Purpose
/ulw-execute
Ultimate
The main agent executes an approved ulw-plan work plan from .omo/plans/ in the same session
/goal
Ultimate
Set, show, pause, resume, or clear a persistent thread goal that auto-continues on idle until done
/stop-continuation
Ultimate
Stop todo continuation, clear the active Goal, and clear boulder state
Generate detailed context summary to continue in a new session
/remove-ai-slops
Ultimate
Strip AI-generated code smells from recent changes
/hyperplan
Ultimate
Builtin command that instructs the agent to skill(name="hyperplan"); OpenCode does not register a builtin skill named hyperplan
Roles — Ultimate only
The Light edition does not ship this agent roster; it ships separate Codex-native agent roles and the teammode component instead. The main agent delegates to the roles below; you don't usually call them directly, but knowing the cast helps:
The main agent: the session you talk to. Plans, delegates, drives to completion on your session model.
The Ultrawork Planner (/ulw-plan): interviews you and writes a decision-complete work plan before code is written.
/ulw-execute: the main agent executes the approved work plan in the same session.
The category worker: a fresh worker session configured by the category's model and skills; task(category: "architect") is the architect consult lane for architecture and debugging questions.
explore: fast codebase grep.
librarian: external docs/code search.
plan-consultant: pre-planning consultant; analyzes the request for hidden intent and gaps before the plan is written.
plan-reviewer: high-accuracy plan reviewer.
Skills
Built-in OpenCode skills load automatically when their description matches your task. The user does not need to invoke them by name. This OpenCode skill system is Ultimate-only; Light uses Codex-native plugin skills, including the script-driven teammode skill, rather than the OpenCode skill loader.
Skill
Editions
When it triggers
playwright
Ultimate
Browser automation
git
Ultimate
Atomic commits, rebases, history search (git-master still resolves)
frontend
Ultimate
UI/UX implementation work
review-work
Ultimate
Post-implementation code review
$omo:remove-ai-slops
Ultimate
Cleaning AI-generated code smells
team-mode
Ultimate
Loaded only when team_mode.enabled
Add custom skills under .opencode/skills/<name>/SKILL.md (project scope) or ~/.config/opencode/skills/<name>/SKILL.md (user scope). Each SKILL.md declares a description that the agent matches against your message.
Tutorial to tell the user
After verification, tell the user:
The main agent runs on your session model, and Claude Opus 5.5 is strongly recommended (GPT-6.2 Astra, GPT-6.1 Sol or GPT-6 Sol for a GPT setup). Other models may noticeably degrade the experience.
Feeling lazy? Just include ultrawork (or ulw) in your prompt. The agent figures out the rest.
Need precision? Run /ulw-plan to produce a plan under .omo/plans/, then run /ulw-execute so the main agent executes the verified plan in the same session.
Then say Congratulations! 🎉 You have successfully set up oh-my-openagent! Type opencode (or codex) in your terminal to start using it.
Step 7: Light Edition deep dive (Codex CLI)
Skip this section if --platform=opencode. Otherwise, the user installed the Light edition (omo-codex) — here is what landed on disk and what each piece does.
Codex marketplace snapshot:~/.codex/.tmp/marketplaces/sisyphuslabs/ (local marketplace metadata and bundled source snapshot)
User-linked component binaries:lazycodex-executor-verify, omo-comment-checker, omo-git-bash-hook, omo-lsp, omo-rules, omo-ulw-execute-continuation, omo-telemetry, omo-ulw-loop, omo-ultrawork, ulw, and ulw-loop in ~/.local/bin (or under $CODEX_LOCAL_BIN_DIR if set). teammode runs through skill, hook, and script surfaces rather than a user-linked executable. The top-level omo-agent-toolkit command belongs to the shared oh-my-openagent launcher, not a Codex component.
Codex agent roles:~/.codex/agents/{lazycodex-clone-fidelity-reviewer,lazycodex-code-reviewer,lazycodex-gate-reviewer,lazycodex-qa-executor,lazycodex-worker-low,lazycodex-worker-medium,lazycodex-worker-high,explorer,librarian,metis,momus,plan}.toml (there is no lazycodex-executor agent TOML; executor completion is handled by the lazycodex-executor-verify hook/bin), copied from the bundled plugin snapshot, so they keep resolving when Codex prunes old plugin-cache versions or temporary marketplace state
Codex agent roles:~/.codex/agents/*.toml copied from the bundled plugin snapshot (there is no lazycodex-executor agent TOML; executor completion is handled by the lazycodex-executor-verify hook/bin), so they keep resolving when Codex prunes old plugin-cache versions or temporary marketplace state
Codex config edits:~/.codex/config.toml gained [features] plugins = true, [features] plugin_hooks = true, [features.multi_agent_v2] max_concurrent_threads_per_session = 16 (and, when MultiAgentV2 is not preferred, [agents] max_threads = 1000), [marketplaces.sisyphuslabs] pointing at ~/.codex/plugins/cache/sisyphuslabs, [plugins."omo@sisyphuslabs"], plugin MCP policy blocks, SHA256-pinned [hooks.state."omo@sisyphuslabs:..."] entries, and optionally autonomous permission settings if accepted.
Injects AGENTS.md, CLAUDE.md, and .omo/rules/** into Codex's context
comment-checker
TypeScript
PostToolUse (apply_patch, edit, write)
Blocks AI-slop comment patterns in generated code
git-bash
TypeScript + MCP
PreToolUse (Bash), PostCompact, MCP server
On Windows, exposes git_bash; reminds Codex before the first shell-like call and again after compaction
lazycodex-executor-verify
TypeScript
SubagentStop
Requires evidence receipts from LazyCodex implementation workers before accepting completion
lsp
TypeScript + MCP
MCP server + post-edit hooks
Exposes LSP diagnostics, navigation, symbols, rename via MCP
teammode
TypeScript + skill
PostToolUse plus script-driven skill
Coordinates Codex-native agents or app threads with durable team state and thread-title guidance
ultrawork
TypeScript
UserPromptSubmit keyword detector
Detects ulw/ultrawork keyword; the installer links bundled Codex agent TOMLs into $CODEX_HOME/agents
ulw-loop
TypeScript
UserPromptSubmit, PreToolUse, Stop
Multi-goal orchestration with evidence audit trail, spawn guards, and Stop-hook auto-resume via .omo/ulw-loop/
ulw-execute-continuation
TypeScript
Stop, SubagentStop
Continues .omo/boulder.json ulw-execute plans when Codex pauses at a stop boundary
telemetry
TypeScript
SessionStart
Emits anonymous daily active telemetry when enabled
Coexistence with OpenCode
The Codex CLI Light edition and the OpenCode plugin can run side-by-side. All harnesses read the unified omo.jsonc surface through harness-specific [opencode], [senpi], and [codex] views, while runtime state and model selection remain harness-specific. Each emits its own daily telemetry event.
Compatibility note: LazyCodex is the Codex-platform OmO install path for oh-my-openagent. The bundled Codex-native subagents in ~/.codex/agents are expected. Do not enable duplicate Codex-layer OmO/LazyCodex installs in a single CODEX_HOME; keep one omo@sisyphuslabs Codex plugin source active there. If the setup looks confused, run npx lazycodex-ai doctor before deleting cache or config state.
Codex troubleshooting
Symptom
Fix
codex --help does not list the omo plugin
Re-run npx lazycodex-ai install (idempotent — hook hashes are recomputed)
command not found: omo-rules or command not found: omo-agent-toolkit
Add ~/.local/bin to PATH, or set $CODEX_LOCAL_BIN_DIR to a directory already on PATH
npm install fails mid-install
rm -rf ~/.codex/plugins/cache/sisyphuslabs and retry
Plugin block is present but hooks do not fire
Verify ~/.codex/config.toml contains [features]\nplugins = true\nplugin_hooks = true and [plugins."omo@sisyphuslabs"]
Ignoring malformed agent role definition: agents.*.config_file must point to an existing file
Re-run npx lazycodex-ai install. The installer repairs stale managed [agents.*] entries and recreates ~/.codex/agents/*.toml.
agents.max_threads cannot be set when multi_agent_v2 is enabled in one project
Re-run npx lazycodex-ai install from that project. The installer repairs project-local .codex/config.toml layers, creates .backup-<timestamp> files for changed configs, and leaves user-authored .codex artifacts in place.
SessionStart hook (failed) / UserPromptSubmit hook (failed) with MODULE_NOT_FOUND for components/*/dist/cli.js
Re-run the installer so the cached plugin is rebuilt with component dist/ files. If the cache was manually edited, remove ~/.codex/plugins/cache/sisyphuslabs first.
SessionStart hook (failed) / UserPromptSubmit hook (failed) with only hook exited with code 1 after install
Re-run npx lazycodex-ai install, then start a fresh Codex session or restart the Codex app. If the same hook fails again in the fresh session, inspect the saved hook output to identify the component command before deleting cache state.
Hook trust hash mismatch warnings
Re-run the installer; hashes are regenerated each install
Step 8: Team Mode (optional, opt-in)
Off by default. Enables a lead-and-members multi-agent system with 12 dedicated tools.
Restart OpenCode after the change. Twelve new tools unlock: team_create, team_delete, team_shutdown_request, team_approve_shutdown, team_reject_shutdown, team_send_message, team_task_create, team_task_list, team_task_update, team_task_get, team_status, team_list.
Team storage lives under ~/.omo/teams/{name}/ (user scope) or <project>/.omo/teams/{name}/ (project scope — project beats user on collisions).
Member eligibility:
The lead is the current session. Don't declare a lead member.
Members are either category members (a resolvable category; prompt required) or subagent_type members naming a user-defined agent.
Rejected at parse: the curated read-only agents (explore, librarian, plan-consultant, plan-reviewer) and the ulw-loop reviewer trio (omo-native-code-reviewer, omo-native-qa-executor, omo-native-gate-reviewer); the pre-rename omo-senpi-code-reviewer, omo-senpi-qa-executor and omo-senpi-gate-reviewer spellings still resolve. Delegate to them through the task tool instead.
Two skills already ride on top of Team Mode:
security-research (builtin) — 3 vulnerability hunters + 2 PoC engineers audit your codebase in parallel.
hyperplan is a keyword/command that tells the agent to load a hyperplan skill; that skill is not in OpenCode createBuiltinSkills.
Project layers (nearest wins): <pwd up to $HOME>/.omo/omo.json[c]
↓ merged onto
User layer: ~/.omo/omo.json[c]
↓ resolved per harness, later wins
Shared base → [opencode] block → profiles.<P> → profiles.<P>.[opencode]
↓ applied once at the end
Defaults
Merge rules:
Plain objects: deep merged recursively (prototype-pollution safe)
Scalars and arrays: override replaces base value
mcp_env_allowlist: user-layer only for security; project layers cannot extend it
Every agent, hook, skill, MCP, command, and tool is configurable via disabled_* arrays. disabled_skills also works at the shared base of ~/.omo/omo.jsonc and on OmO Native (omo), where { "disabled_skills": ["frontend", "visual-qa"] } removes those skills from the session; user and project disabled_* arrays are unioned rather than replaced:
Overrides detected bin name (oh-my-opencode, omo-agent-toolkit, lazycodex-ai, etc.). Used by shared wrapper packages to route lazycodex-ai invocations to the Node installer path.
OMO_DISABLE_POSTHOG=1
Disables all PostHog telemetry for the main plugin
OMO_SEND_ANONYMOUS_TELEMETRY=0
Same effect as above
OMO_CODEX_DISABLE_POSTHOG=1
Disables PostHog telemetry for the Codex CLI Light edition only
OMO_CODEX_SEND_ANONYMOUS_TELEMETRY=0
Same effect as above
OMO_DISABLE_PROCESS_CLEANUP=1
Disables background-agent best-effort process cleanup on parent exit
OMO_OPENCLAW_COMMAND_TIMEOUT_MS
Timeout for OpenClaw outbound shell/HTTP commands
OMO_OPENCLAW_DEBUG=1
Enables OpenClaw debug logging
OMO_OPENCLAW_REPLY_LISTENER_STARTUP_TOKEN
Startup token for OpenClaw reply listener daemon
OMO_OPENCLAW_REPLY_LISTENER_STARTUP_TIMEOUT_MS
Timeout for reply listener startup
OH_MY_OPENCODE_FORCE_BASELINE=1
Forces baseline (non-AVX2) binary selection on x64
OPENCODE_DEFAULT_AGENT
Default agent for omo-agent-toolkit run (overridden by --agent)
CODEX_LOCAL_BIN_DIR
Overrides ~/.local/bin for Codex component symlinks
Hash-anchored edits (Hashline)
Hash-anchored edits are off by default (hashline_edit is a boolean, default false). Set "hashline_edit": true to tag Read output with LINE#ID hashes and replace the edit tool. The hashline_edit tool rejects edits when the file has changed since the last read.
OpenClaw (optional outbound notifications)
OpenClaw is a bidirectional external integration: outbound dispatchers fire on session events (idle, error, completion) to Discord/Telegram/HTTP/shell sinks; an optional inbound reply listener daemon polls Discord/Telegram and send-keys replies back into the tracked tmux pane. Configure under the openclaw config block. See packages/omo-opencode/src/openclaw/ for the full reference.
Step 10: Maintenance
Command
Purpose
bunx oh-my-openagent doctor
Run 8 OpenCode checks (System / Configuration / TUI Plugin / Deprecated Reasoning Keys / Tools / Models / Telemetry / Team Mode), or the separate Codex target checks (Codex / codex-components / codex-runtime-wrapper)
bunx oh-my-openagent boulder
Inspect boulder work-state and per-task stats from .omo/boulder.json
bunx oh-my-openagent mcp oauth status [server-name]
Show OAuth token status for one or all servers
bunx oh-my-openagent get-local-version
Show installed version vs npm latest
bunx oh-my-openagent version
Print the CLI version
bunx oh-my-openagent run <message>
Non-interactive session; waits until todos clear and background tasks idle
Postinstall validates both platform binary resolution and OpenCode version compatibility — the validation runs after every npm install.
Telemetry & Privacy
Anonymous telemetry is enabled by default to track active installations (DAU/WAU/MAU). Every installer (install.sh, install.ps1, bunx oh-my-openagent install, lazycodex-ai install) and omo setup print a short notice when they finish: what is sent, that it goes to PostHog in the United States, how to turn it off, and a link to the privacy policy. OmO Native shows the same notice once, on its first session. For both products:
A single event is sent at most once per UTC day per machine
Uses a SHA256 hash of a random install id created on your computer, never anything derived from the hostname or user name
PostHog person profiles are not created
Per product:
Product
Event name
Sources
Main plugin
omo_daily_active
Plugin load (plugin_loaded) + run CLI (run_started)
# Disable telemetry for every product
export DO_NOT_TRACK=1
# or
export OMO_DISABLE_TELEMETRY=1
# Disable the main plugin's telemetry
export OMO_DISABLE_POSTHOG=1
# or
export OMO_SEND_ANONYMOUS_TELEMETRY=0
# Disable only the Codex CLI Light edition telemetry
export OMO_CODEX_DISABLE_POSTHOG=1
# or
export OMO_CODEX_SEND_ANONYMOUS_TELEMETRY=0
The global flags (OMO_DISABLE_POSTHOG, OMO_SEND_ANONYMOUS_TELEMETRY) also suppress the Codex CLI Light edition telemetry.
The uninstall command removes the managed ~/.codex/plugins/cache/sisyphuslabs and ~/.codex/.tmp/marketplaces/sisyphuslabs trees, strips sisyphuslabs / legacy LazyCodex marketplace, plugin, hook-state, and managed agent blocks from ~/.codex/config.toml after writing a timestamped backup, and removes managed agent TOML files from ~/.codex/agents/, including orphaned files whose install manifest is already gone.
If a workspace still has old project-local Codex state, run npx lazycodex-ai uninstall --project <path> or run it from that workspace. The command repairs only the known project-local Codex config conflict and reports legacy .codex artifact paths; it does not delete project-owned files automatically.
Operational notes
Claude Code compatibility is supported (hooks, commands, skills, MCPs, plugins).
Claude Code plugin discovery load timeout is 10 seconds.
Runtime logger: oh-my-opencode.log in the OS temp dir (/tmp on Linux, /var/folders/.../T/ on macOS, %TEMP% on Windows), 50 MB cap with .1/.2 backup segments.
Dual-publish during the rename transition: oh-my-opencode and oh-my-openagent are both published. Inside opencode.json, the compatibility layer prefers the entry "oh-my-openagent", while legacy "oh-my-opencode" entries still load with a warning. Plugin configuration lives in the unified omo.jsonc; legacy oh-my-openagent.json[c] / oh-my-opencode.json[c] files are imported once by the migration engine and no longer read at runtime. If doctor warns about the legacy package name, update your opencode.json plugin entry.
Orchestration System Guide
omo-senpi turns one coding session into a coordinated team by separating planning from execution. The main agent (the session you're typing into) does the thinking and the orchestration; everything else is delegated through the task tool.
TL;DR - When to Use What
Situation
Approach
What happens
Quick fix, single file
Just prompt
The main agent does it directly.
Complex, and explaining the context is tedious
Type ulw (or ultrawork)
The main agent enters ultrawork mode: explores, plans in a notepad, delegates, verifies with evidence.
Complex, and you want a written, reviewed plan first
/ulw-plan, then /ulw-execute
The Ultrawork Planner interviews you and writes .omo/plans/<slug>.md. /ulw-execute then runs that plan in the same session.
Many tasks where some must wait on others
mass-ulw
The main agent defines a dependency graph and drives it through the workflow tool, one run per phase.
Several lanes that touch the same module and need to talk mid-flight
Team mode (team_create)
The main agent leads background member children. See Team Mode.
Decision flow:
Is it a quick fix or a simple task?
|- YES -> just prompt
|- NO -> is explaining the full context tedious?
|- YES -> type "ulw" and let the agent figure it out
|- NO -> do you need a written, reviewable plan?
|- YES -> /ulw-plan, approve, then /ulw-execute
|- NO -> real ordering between many tasks? mass-ulw
overlapping lanes? team mode
otherwise "ulw"
The Architecture
There is one orchestrator: the main agent, running on your session model. It never hands the session to a different agent. Instead it delegates units of work through task, reads results back, and keeps the plan, the todo list, and the evidence in sync.
flowchart TB
User(("User"))
Main["Main agent<br/>(orchestrator, your session model)"]
subgraph Delegation["task tool"]
Worker["Category worker<br/>task(category=...)"]
Curated["Curated read-only agents<br/>explore / librarian /<br/>plan-consultant / plan-reviewer"]
Reviewers["ulw-loop reviewers<br/>omo-native-code-reviewer /<br/>omo-native-qa-executor /<br/>omo-native-gate-reviewer"]
end
Kibitzer["Kibitzer<br/>(memory recall nudges)"]
User -->|"prompt / ulw / /ulw-plan / /ulw-execute"| Main
Main -->|"implementation, tests, QA"| Worker
Main -->|"research, gap analysis, plan review"| Curated
Main -->|"final gates"| Reviewers
Kibitzer -.->|"recalled memory: <hint>"| Main
Worker -->|"results + evidence"| Main
Curated -->|"findings / verdicts"| Main
Reviewers -->|"report artifacts"| Main
The main agent
The main agent is whatever model your session is using. It carries the ultrawork directive, the planning skill, and the execution skill; there's no separate "planner agent" or "executor agent" to switch to. Tuned prompt presets exist for the common frontier models, and the planning and execution prompts are written to work across families. See Agent-Model Matching for the model-specific notes.
Delegation through task
Every spawn provides exactly one of category or subagent_type:
task(category="...") routes to the category worker: a fresh worker session configured by the category's model and skills. This is how implementation, tests, and QA get done. A category-routed task always takes its model from omo.json (categories.<name>.models); passing model alongside category is rejected.
task(subagent_type="...") invokes a named agent directly. The builtin roster is:
Curated read-only agents (in-process, cannot write files): explore (codebase grep: "where is X?"), librarian (remote repos, official docs, OSS examples), plan-consultant (pre-planning gap analysis), plan-reviewer (plan review). plan-consultant and plan-reviewer are plan-gated: spawnable only after you explicitly asked for the ulw-plan workflow, a .omo/plans/*.md file was touched this session, and /ulw-execute hasn't run.
ulw-loop reviewers (they write report artifacts, so they aren't in the read-only set): omo-native-code-reviewer (diff, tests, risk), omo-native-qa-executor (runs real scenarios, records surface evidence), omo-native-gate-reviewer (approves unless it can cite a failed success criterion). The pre-rename omo-senpi-* spellings still resolve.
Useful spawn options: run_in_background: true for parallel waves (the default posture), load_skills to prepend skills to the child's prompt, name for a stable handle, task_summary for the one-line footer label. Continue a child with task_send, peek with task_output, end it with task_cancel; /tasks lists what this session spawned. plan-reviewer is one-shot: task_send to it is always refused.
Curated agents are rejected as team members. Route them through task, never team_create.
Kibitzer memory nudges
Kibitzer is the memory component's read-only recall judge: one resident sidecar session per main agent session, started lazily and kept for the life of that session. Every prompt, tool call and tool result of the main session is fed to it as a bounded, redacted event (tool arguments, result heads, assistant text and prompts are all capped; secrets are masked before anything is stored). It only spends a model turn when a prompt or tool call surfaces a stored memory it has not judged yet, and at most two such wakes run at once per machine. Inside a wake it can read and grep the workspace, page the parent transcript with session_entries, and search/read memory - eight tool calls per wake, read-only, nothing that writes memory or files - and its only output is nudge, which becomes a notice reading recalled memory: <hint> on the main agent's side. When its own context fills up it reseeds itself with what it has already delivered or rejected; when its model fails it backs off and comes back later. It never edits anything and never wakes an idle session; it just reminds the main agent of what it already knows. /search is the manual recall surface, and memory.recall.enabled: false turns Kibitzer off.
Planning: the Ultrawork Planner
/ulw-plan puts the main agent into planning mode as the Ultrawork Planner, a planning consultant. It announces ULW-PLAN MODE ENABLED!, states that it won't implement anything until you say okay, and explains that approval authorizes writing the plan only. Execution starts separately with /ulw-execute.
Plan mode is sticky. "do X", "fix X", "just do it" all mean "plan X".
The interview
The planner explores first: parallel read-only research through explore and librarian, plus the architect and ultrabrain categories as advisory design lanes when they're available. Only then does it decide how to talk to you:
CLEAR intent (you know the outcome; only preferences remain): it asks the surviving owner-decisions, with the reason for each, and nothing the repo could have answered.
UNCLEAR intent (the outcome itself is fuzzy): it adopts and announces best-practice defaults instead of interviewing you, and turns high-accuracy review on automatically.
On the fence: treated as CLEAR with exactly one question.
If you say "ask me" or "interview me", it interviews regardless. Owner-decisions (anything irreversible, destructive, or a spend) always survive as a question, even when a default exists.
Before the plan is written, the planner spawns plan-consultant to catch what it missed: hidden intentions in the request, ambiguities that would derail a worker, over-engineering and scope creep, missing acceptance criteria, unaddressed edge cases. The planner has the whole picture in its head; the consultant forces that implicit knowledge onto the page.
Plan Reviewer high-accuracy rounds
High-accuracy review is the default for every plan /ulw-plan produces; the only opt-out is you declining it. One round is exactly one plan-reviewer pass over the complete plan file. The reviewer is approval-biased and rejects only verified blockers:
Referenced files exist and support the plan's claims
Every task gives a developer a usable starting point
Tasks don't contradict each other
QA scenarios name the tool, the steps, and the expected result
No missing information would stop execution cold
An approval whose remaining items are notes counts as approval. On a rejection the planner fixes every cited issue and resubmits. Review keeps going while each round finds something new that matters or confirms an earlier blocker fixed, and stops to ask you when a round does neither but still does not approve. A round that approves with only notes left ends the review.
The spawn is contract-driven: the harness replaces the plan-reviewer prompt with the canonical review contract (one .omo/plans/*.md path), so anything else in the prompt is discarded.
Plan-gate rules
plan-consultant and plan-reviewer open only when you explicitly requested the ulw-plan workflow, a plan artifact under .omo/plans/ was touched this session, and /ulw-execute hasn't been invoked.
A bare ulw run never gets them, however big the work feels. It records a self-review in its notepad instead.
When /ulw-execute finds no plan and bootstraps /ulw-plan itself, the gate stays locked: that bootstrap plan is written without gap analysis or review, and the planner says so.
Plan artifacts
The planner runs scaffold-plan.mjs rather than hand-building files. A draft lives at .omo/drafts/<slug>.md (the compaction-safe resume point, carrying intent, review_required, decisions, and the approval gate); after your okay the plan lands at .omo/plans/<slug>.md. Every executable item is a column-zero - [ ] N. <title> row with references, acceptance criteria, QA scenarios, and a Recommended task executor category: line.
Adversarial alternative: /hyperplan
When one planner isn't enough rigor, /hyperplan stands up a hostile team that cross-critiques the plan before it's formalized. The result is still a .omo/plans/*.md file you hand to /ulw-execute.
plan-name (optional): a full or partial file stem under .omo/plans/.
--worktree: reuse an existing task-owned worktree for the first phase instead of creating one.
--make-pr: deliver each phase's worktree as a pull request and hand off with the URL; merge only if you ask.
--ship: implies --make-pr; stay on the job until the PR is merged, fixing CI and review feedback from the worktree.
The main agent executes the approved work plan in the same session. It doesn't become a different agent; it picks up the execution skill and the orchestrator rule that comes with it: it never writes product code itself. Every implementation, test, QA, and review unit is delegated to a spawned worker. The main agent's hands touch plan selection, .omo/ state, decomposition, dispatch, verdicts, and evidence.
What happens when you run it
Select the plan. Read .omo/boulder.json; if this session has one active or paused work, resume it. Otherwise match plan-name, auto-select a lone plan, or ask one focused question when several remain. With no selectable plan at all, it bootstraps /ulw-plan first.
Register the goal and todos. One registered goal for the session (via create_goal when the tool exists), one todo per column-zero checkbox, all up front.
Write boulder state..omo/boulder.json is a multi-work registry (works + active_work_id). Each work records active_plan, plan_name, session_ids (prefixed senpi:<session_id>), status, and worktree_path.
Execute the next checkbox. Classify it LIGHT or HEAVY, decompose it into worker-sized sub-tasks, and dispatch every independent sub-task in one parallel burst, routed by the plan's Recommended task executor category: line or the delegation router below.
Verify and record. Five gates per checkbox: plan reread, automated verification, a Manual-QA artifact, adversarial QA, cleanup receipts. Evidence goes to .omo/ulw-execute/ledger.jsonl. A worker's done claim is verified by an independent reviewer (the gate reviewer or a fresh reviewer worker) before the checkbox flips to - [x].
Finish. When every top-level checkbox is checked, run the plan's final verification, sync .omo/ state back, complete the PR lifecycle if requested, and print an ORCHESTRATION COMPLETE block.
Each plan wave runs in its own task-owned worktree and lands on the integration base once its checkboxes are verified. Only the orchestrator merges.
Continuation across sessions
The ulw-execute-continuation component watches .omo/boulder.json. While the current session's work is active or paused and the plan still has unchecked top-level boxes, every user prompt gets a steering reminder appended (read the boulder state and the plan, continue with evidence-bound execution, don't start unrelated work), and an idle turn is re-injected automatically, up to 8 consecutive continuations. Nothing is lost when a session dies mid-plan: run /ulw-execute again and the same work resumes from the plan checkboxes and the ledger.
Monday 9:00 AM
|- /ulw-plan "Build user authentication"
|- Ultrawork Planner interviews, writes .omo/plans/user-auth.md, plan-reviewer approves
|- /ulw-execute
|- boulder.json created, tasks 1-2 land
|- [session ends]
Monday 2:00 PM (new session)
|- /ulw-execute
|- "Resuming 'user-auth' - 2 of 8 tasks complete"
|- execution continues from task 3
Categories + Skills
Why categories instead of model names
A model name in a prompt carries the model's own idea of its limits. A category carries intent:
mechanical, single-file, boilerplate, config/copy; the default for every splittable piece
unspecified-low
small tasks that fit no other category
unspecified-high
standard features across a few files with known patterns
visual-engineering
frontend, UI/UX, styling, animation
writing
documentation and prose
deep
hairy debugging, research-heavy or subtle cross-module work
ultrabrain
one genuinely hard, logic-heavy problem; hand it the goal, not steps
architect
the architect lane: module boundaries, decomposition, trade-offs, and broad debugging across code, logs, history and docs; implements when the task needs it, advisory-only on request
Splittable work splits into a swarm of quick/unspecified-low workers in one burst. Cohesive hard work stays whole and goes to deep or ultrabrain as one delegation.
Some categories gate on a model being present in your registry (ultrabrain and deep need a GPT flagship, for example); an unavailable category is reported as such rather than silently routed to a different family. Projects and users can add categories in omo.json.
Skills
load_skills prepends named skills to the worker's prompt:
The main agent's own skills (ulw-plan, ulw-execute, ulw-loop, mass-ulw, hyperplan, ultrawork, ulw-research) are invoked by name; workers get skills only through load_skills.
Dependency graphs: mass-ulw
When tasks have real ordering (C needs A and B first), mass-ulw defines a run for the workflow tool from an eval cell: nodes with id, prompt, category, and dependsOn. One run covers one phase; the next phase is a new run. Failed nodes are recovered with retry, steered with send, or edited with amend without re-running what already finished. /dag opens the detail view.
Team Mode
Team mode is for overlapping lanes that need to exchange discoveries mid-flight. The main agent becomes the lead of background member children (team_create), sends work with task_send, tracks it through task_create / task_list / task_update, and tears down with team_delete. Curated read-only agents can't be members. Full details, config schema, and eligibility rules: Team Mode.
Configuration
omo.json controls the delegation surfaces. Agent overrides use the agent id as the key; category overrides use the category name.
Agent entries accept model, models (ordered fallback chain), reasoning, tools, allowed_subagents, disallowed_tools, max_turns, temperature, and disable. Category entries carry the models chain the category worker is built from. The full schema is in the omo.json reference.
Troubleshooting
"I ran /ulw-plan but it isn't writing a plan"
That's the design. The Ultrawork Planner explores first, tells you whether it read your intent as CLEAR or UNCLEAR, asks only the owner-decisions that survived exploration, and then presents a brief. The plan is written after you say okay. There is no "make it a plan" trigger; approve the brief.
"/ulw-execute says no plan was found"
With no plans under .omo/plans/, /ulw-execute bootstraps /ulw-plan and generates one (without gap analysis or review, since the plan gate is locked on that path). Run /ulw-plan yourself first if you want the reviewed version.
With several plans and no active work, pass the stem: /ulw-execute user-auth.
Don't reach for deleting .omo/boulder.json first. Works recorded for other sessions are ignored; the session id is part of the match.
"The planner refuses to spawn plan-reviewer"
Both plan-consultant and plan-reviewer are plan-gated. The gate opens only after an explicit ulw-plan request, a touched .omo/plans/*.md file in this session, and no /ulw-execute yet. A bare ulw run, however large, self-reviews in its notepad instead. If you want the review, start with /ulw-plan.
"Should I type ulw or write a plan?"
Type ulw when the target is narrow enough to state in a sentence and you're happy to let the agent decide the rest. Write a plan with /ulw-plan when the work is brownfield, multi-file, or when you want the scope boundaries in writing before anything is touched. A constrained brownfield plan looks like:
Fix <problem> in this existing codebase.
Preserve the current architecture and public behavior.
Use the smallest viable change.
Follow local patterns in <files or areas>.
Do not refactor, rename, reorganize, or clean up unrelated code.
List exact files in scope and exact verification commands.
Then /ulw-execute runs against the written scope instead of treating the task as an open-ended modernization pass.
For agents and users: the four model-profile lanes that pick the main agent's model, which models carry tuned prompt presets, how curated agents and categories keep their own chains, and how to change any of it without breaking things.
OmO Native sets all of this up on its own, so you can probably skip this page. With nothing in omo.json, a fresh session starts on Daily · Normal (Claude Opus 5.5, then Claude Fable 5.2, then Kimi K3.1 Pro, whichever you have connected), or on the first other lane that resolves, and every category and curated agent picks its model from its own chain against the providers you are logged in to. A category that none of your providers can serve is left off the main agent's list, so it is never picked and then fails. Read on when you want to change a default, or when you want to know why a session landed on the model it did.
Four lanes pick the main agent's model
The main agent thinks with your session model. The easiest way to choose it is a model profile: a named, ordered chain you pick by lane (Daily or Obsessive, Normal or Heavy). At session start omo walks the chain and applies the first model your connected providers serve. Chains live in packages/omo-senpi/src/components/model-profile/builtin-profiles.ts; every rung lists each provider that serves the model, so a Copilot-only or gateway-only account resolves the same way a direct API key does.
With no model_profile at all, a fresh desktop or headless session starts on Daily · Normal. When none of its rungs resolves on the connected providers, the first of Daily · Heavy, Obsessive · Normal and Obsessive · Heavy that does is used instead, so a ChatGPT-only setup starts on Obsessive · Normal. Every rung is served only by its ranked providers (Claude subscription, then the Anthropic API, Copilot, OpenCode; Kimi Code, then Moonshot and OpenCode Go; ChatGPT subscription, then the OpenAI API, Copilot, OpenCode, except GPT-6.1 Sol, which only the ChatGPT subscription and the OpenAI API serve; Z.ai Coding Plan, then OpenCode Go), and gateway aggregators such as OpenGateway and OpenRouter are never picked. There is no separate Recommended profile: Daily is OmO's recommendation.
Activate a lane with a single key in omo.json:
{ "model_profile": "daily-normal" }
The session prints OmO Native: model profile "daily-normal" (Daily · Normal) selected anthropic-subscription/claude-opus-5-5 medium; mid-session fallback follows senpi's retry chains, naming any skipped rungs. A few rules worth knowing:
Pins win. Write a literal provider/model into the same key ("model_profile": "anthropic/claude-opus-5-5") and that exact model is applied; anything containing / is a pin.
Explicit models are never clobbered. A --model flag, a scoped model, a resumed session, and a fork keep their own model; the profile only touches a fresh session.
Unset means Daily · Normal. With no model_profile, a fresh session applies Daily · Normal, or the first lane that resolves. That apply is session-scoped and is not written back to omo.json. A config that still names the retired recommended gets the same default and one log line; it is not an error.
Session-scoped. The apply never writes settings.json or omo.json. Mid-session failures follow Senpi's retry chains, not the profile.
The interactive TUI ignores model_profile, pins included, because it has no lane surface yet. A TUI session that starts on an implicit default is moved by Senpi's own recommended-model switch, which uses the same six-model order.
Retired ids are unknown.capable, deep-work, and simple-work are not aliases. A config still naming one of them gets the unknown-profile notice listing the four lane ids.
Your own chains.model_profiles.<name> adds a profile or replaces a builtin's entire model chain. A builtin override keeps its family/tier identity unless those metadata fields are supplied. A provider-qualified candidate is used only on that provider; if absent, only the next configured candidate is tried. Bare model ids may match any provider. Key reference: omo.json.
You can still pick with /model and switch mid-session; the main agent switches with you, and the prompt preset follows the new model.
The recommended models
We tune the orchestration prompt against Claude Opus 5.5, Claude Fable 5.1, Kimi K3, GPT-6.2 Astra, GPT-6.1 Sol, GPT-6 Sol and GLM 5.3, in that order of preference. The Daily lanes and Obsessive · Heavy are slices of it; Obsessive · Normal runs GPT-6.2 Astra at medium, falling back to the GPT-6.2 and GPT-6.1 Sol tiers and GPT-5.6 Sol where Astra isn't served.
Claude Opus 5.5 and Claude Fable 5.1 are the reference configuration for the orchestration prompt: long nested todos, delegation tables, many tool calls in a row.
GPT-6.2 Astra, GPT-6.1 Sol and GPT-6 Sol get the GPT-native gpt-6-astra preset, built for autonomous, principle-driven work. Over-orchestration on small bounded tasks is a known risk on GPT; give it a goal, not a recipe.
Kimi K3 and GLM 5.3 follow instructions much like Claude and sit lower on the ladder. Kimi K3 spends more thinking tokens. GLM has had less maintainer validation on the nested todo, delegation, and long-context paths.
A model outside the ladder isn't supported as the main agent. It may look fine for a few turns and then fall apart three tool calls later. Nobody is regression-checking the orchestration prompt against it, so a prompt change that helps Claude or GPT can silently break it with zero warning. Don't file that as a bug; it was never working on purpose. In the terminal, Senpi prints a warning when a session runs on a model outside the ladder and none of the ladder is connected.
A prompt cannot fix a model. Models have hard, intrinsic characteristics. If a model is the wrong brain for orchestration, no amount of prompt-carving changes that. We've ground the prompts down to the bone; the model that can't, still can't.
Models with tuned prompt presets
The harness ships a prompt preset per model family. When your session model matches one, the main agent's prompt is shaped for that model's habits. Senpi picks the preset from the model id (and the display name for GPT-6, Kimi and SWE-2), checking the more specific ids first, so claude-fable-5-1 never lands on the Fable 5 preset. The matcher is resolvePresetName in Senpi's prompt-preset/presets.ts.
Preset
Picked for
Notes
claude-fable-5-1
Claude Fable 5.1
Top tier, above Opus. The Fable 5 core with the Fable 5.1 adjustments.
claude-fable-5
Claude Fable 5
Highest compliance with long, mechanics-driven prompts.
claude-opus-5-5
Claude Opus 5.5
Current best Opus. Steerable and literal. The reference configuration.
claude-opus-5
Other Claude Opus 5 ids
The Opus 5 core.
claude-opus-4-5 and later 4.x presets
The Claude Opus 4.x line
One preset per 4.x release; claude-opus-4-6 is still the second writing rung.
gpt-6-astra
Every GPT-6 model: Astra, Sol, Sol Fast, GPT-6.1 Sol, Luna
The GPT-6 family shares one prompting guide, so they share one preset. This is what Obsessive · Heavy, Obsessive · Normal's Astra and GPT-6.1 Sol rungs, and the ultrabrain, deep-low, deep-high and quick categories run, GPT-6.2 Astra and Sol included (the key keeps its name).
gpt-5.6 / gpt-5.5
GPT-5.6 ids (Sol, Terra) and GPT-5.5
GPT-native prompt: concise principles, explicit decision criteria. Obsessive · Normal's GPT-5.6 Sol fallback runs on it.
gpt-5.4, gpt-5.3-codex and older GPT-5 presets
Older GPT-5 ids
Kept for configs that still pin them.
kimi-k3
Kimi K3 (k3 on Kimi Code) and Devin SWE-2
Instruction-following mirrors Claude closely. The preset is calibrated to stop overthinking and keep work moving, so expect thinking-token cost.
kimi-k2-8 / kimi-k2-7 / kimi-k2-6
Kimi K2.8 (including kimi-for-coding), K2.7 (including kimi-for-coding-highspeed, the explore and librarian head), K2.6
Older Kimi line. Not a recommended main-agent configuration.
glm-5.3 / glm-5.2
GLM 5.3 and 5.2
Claude-like, slightly looser on long nested workflows. No builtin lane runs it; name it in model_profiles to use it. See the validation note above.
deepseek-v4-pro
DeepSeek V4 Pro
Preset exists. Not a recommended main-agent configuration.
deepseek-v4-1-flash
DeepSeek V4.1 Flash, including deepseek-flash and deepseek/deepseek-v4-flash (DeepSeek's own API has served V4.1 under that name since 2026-09-10)
Preset exists. Not a recommended main-agent configuration.
deepseek-v4-flash / deepseek-v4-flash-0731
DeepSeek V4 Flash on other hosts, and the dated snapshot
Preset exists. Not a recommended main-agent configuration.
grok-4.7 / grok-4.6 / grok-4.5
Grok 4.7, 4.6, 4.5
Preset exists. grok-4.7 is the third unspecified-low rung, after claude-sonnet-5-5 and mimo-v2.6-pro.
Having a preset means the prompt is shaped for that model. It doesn't mean the model is recommended as the main agent; only the six models above are. A model that matches no row runs on Senpi's generic prompt with no model-specific tuning at all.
Claude vs GPT prompting differences
This matters for understanding why the main agent's prompt changes shape with the model, and why delegation categories split along family lines.
Claude responds to mechanics-driven prompts: detailed checklists, templates, step-by-step procedures. More rules = more compliance. You can write a very long prompt with nested workflows and Claude will follow every step.
GPT (especially 5.2+) responds to principle-driven prompts: concise principles, XML structure, explicit decision criteria. More rules = more contradiction surface = more drift. GPT works best when you state the goal and let it figure out the mechanics.
The /ulw-plan skill used to mirror this split with separate model-family prompts. It now uses a single thin prompt, so swapping your session model changes the model, not the planning prompt.
Curated agents and categories keep their own chains
A model profile picks the main session model and nothing else. Every delegated child, curated agent or category, takes its model from its own chain, and model_profile is never read on that path. A user who sets categories.deep-low.model sees identical behavior with or without a profile active.
Curated agents
Delegation goes through the task tool. Four curated read-only agents have their own fallback chains, hardcoded in packages/senpi-task/src/agents/builtin/fallback-chains.ts. The first rung your connected providers can serve wins.
One-shot plan review against clarity, verification, and context criteria
gpt-6.2-astra (xhigh)
chatgpt-subscription|openai/gpt-6.2-astra (xhigh) -> chatgpt-subscription|openai|opencode/gpt-6.2-astra (high) -> anthropic-subscription|anthropic|github-copilot|opencode/claude-opus-5-5 (max) -> two lower rungs listed in the source file -> opencode-go/glm-5.2
The utility rungs elided above are cheap fast models; read the source file for the exact list. They exist so the system degrades gracefully when you don't hold every subscription. If you have a paid tier connected, it's always preferred.
The ulw-loop reviewers have no hand-written chains. Each one names categories on its definition and runs on the first of them that resolves; the later categories extend its runtime retry chain:
Agent
Categories, in order
omo-native-code-reviewer
unspecified-high
omo-native-gate-reviewer
deep-high, then unspecified-high
omo-native-qa-executor
deep-low, then unspecified-low
Overriding one of those categories in omo.json moves the reviewer with it.
Where to spend one scarce premium model
If one premium model is quota-limited while your other models are effectively unlimited:
Match the family to the role. Claude-family models fit the communicative roles: the main agent and plan-consultant. GPT-family models fit plan-reviewer, ultrabrain, deep-low and deep-high.
Prefer a low-frequency, high-leverage role.plan-consultant contributes one gap-analysis pass per plan generation. High-accuracy planning runs one plan-reviewer pass per round and repeats after any rejection. Both are far cheaper places for a rare model than the main agent, which runs throughout the workflow.
Avoid execution-heavy slots. The category worker, explore, and librarian are high-volume. They're usually poor homes for the rarest model.
Claude Fable 5.2 leads, with Fable 5.1 right behind it at the same effort, in plan-consultant and artistry; architect keeps the same Fable pair at xhigh, and Daily · Heavy runs Fable 5.2 at high, then Fable 5.1 at xhigh. In visual-engineering, both Fable rungs follow Argon at low. With a tight Fable allocation, move the categories off it first, since each runs once per delegated task of its kind, and keep plan-consultant, which runs once per plan, at a lower effort. architect falls back only to Fable 5.1, so it disappears when both Fable generations are missing unless you configure it yourself.
When the main agent delegates implementation work, it doesn't pick a model name. It picks a category, and the category spawns the category worker: a fresh worker session configured by the category's model and skills. Chains live in packages/senpi-task/src/category/fallback-chains.ts; defaults, descriptions and prompt appends live next to them in packages/senpi-task/src/category/*-categories.ts.
Category
Used for
Default
Chain
architect
Big-picture system design and broad debugging across many sources; implements when the task needs changes, advisory-only on request
anthropic/claude-fable-5-2 (xhigh)
anthropic-subscription|anthropic|anthropic-api|github-copilot|opencode/claude-fable-5-2 (xhigh) -> same providers /claude-fable-5-1 (xhigh)
visual-engineering
Frontend, UI/UX, CSS, animation, design systems
google/gemini-4-argon (low)
google|google-vertex|opencode/gemini-4-argon (low) -> claude-fable-5-2 (max) -> claude-fable-5-1 (max) -> claude-opus-5-5 (max) -> kimi-coding|kimi-for-coding|moonshotai|opencode-go/kimi-k3.1-pro (max); the Argon rung resolves once the engine catalog carries the model
ultrabrain
Genuinely hard, logic-heavy tasks; goals only, no step-by-step
chatgpt-subscription/gpt-6.2-astra (max)
chatgpt-subscription|openai|opencode/gpt-6.2-astra (max), no fallback model
deep-low
Default deep lane: 3D graphics, computer use, browser use, backend, algorithms, multimodal work; decisions settled from evidence
chatgpt-subscription/gpt-6.2-sol (medium)
chatgpt-subscription|openai/gpt-6.2-sol (medium), no fallback model
deep-high
Escalation deep lane: a central decision evidence cannot settle
chatgpt-subscription/gpt-6.2-astra (high)
chatgpt-subscription|openai|opencode/gpt-6.2-astra (high), no fallback model
google|google-vertex|opencode/gemini-4-argon (low) -> claude-opus-5-5 (low) -> claude-opus-4-6 (max); unavailable when none of these is connected, with no fallback to another family
Every Claude rung is headed by anthropic-subscription and every GPT rung by chatgpt-subscription, so a subscription login always outranks an API key for the same model.
A category you haven't configured is offered to the main agent only when your providers can run it. Four categories are gated on a model: ultrabrain and deep-high need gpt-6.2-astra, deep-low needs gpt-6.2-sol (an older Sol or a Fast tier doesn't count), and architect needs claude-fable-5-2 or claude-fable-5-1. An account without those models never sees the matching deep lane. Every other builtin category is listed only while at least one rung of its chain resolves, which is how writing disappears without its Claude models. Writing categories.<name> yourself lifts both checks: the category is always listed and runs what you set.
The quick category ships a caller warning: small fast models need an explicit prompt with numbered must-do steps, forbidden deviations, and concrete success criteria. deep-low and deep-high take one goal plus one deliverable per call; fan out several goals as parallel deep-low calls, and escalate to deep-high only when the central decision can't be settled from evidence.
See the Orchestration System Guide for how the main agent decides between a category and a curated agent.
Customizing in omo.json
Override any category or curated agent in omo.json. model sets one model; models sets an ordered chain that's tried before the builtin one. Entries may be plain provider/model strings (with an optional :level reasoning suffix such as openai/gpt-6-astra:xhigh) or objects carrying model, reasoning, max_tokens, or provider_options. Full key reference: omo.json.
Because this is your own configuration, deep-low stays on the list even on a machine with no GPT-6, and DeepSeek V4 Pro serves it there.
Safe vs risky overrides
Safe, same family and role shape:
Main agent: Daily · Normal or Daily · Heavy for the generalist lanes; Obsessive · Normal or Obsessive · Heavy for the GPT lanes.
plan-consultant: any Claude-family model, Kimi K3, GLM 5.2 / 5.3.
plan-reviewer: GPT-6.2 Astra at xhigh or high; Claude Opus 5.5 at max as a communicative fallback.
visual-engineering: Argon at low, then Claude Fable 5.2, Claude Fable 5.1, Claude Opus 5.5, and Kimi K3; artistry: swap among Claude Fable 5.2, Claude Fable 5.1, Claude Opus 5.5, and Kimi K3.
writing: Argon at low, then Claude Opus 5.5 or Claude Opus 4.6.
Lower-confidence, works but thinly validated:
Main agent on GLM 5.2 / 5.3. A calibrated preset exists, but maintainers haven't validated the nested todo and delegation paths end to end.
Main agent on Kimi K3. Strong instruction-following; budget for the thinking tokens.
Risky, family or role mismatch:
Main agent on a model outside the recommended models above. Maintainers don't test it. Can break at the very next patch. A prompt cannot fix a model.
ultrabrain, deep-low or deep-high on Claude or Kimi. These categories are built for GPT's autonomous style. Other families finish eventually but don't shine.
plan-reviewer on a small or fast model. Review needs sustained reasoning; small models drift and rubber-stamp.
explore / librarian on Opus or Fable. Massive cost waste. Search needs speed, not intelligence.
visual-engineering on utility or search models. Keep it on the Fable 5.2 -> Fable 5.1 -> Opus 5.5 -> Kimi K3 chain.
How model resolution works
For the main agent, resolution happens once, at session start (packages/omo-senpi/src/components/model-profile/index.ts). It runs for OmO Desktop and headless sessions. The interactive TUI skips it, so a TUI session keeps the model it started with, or the one Senpi's recommended-model switch moved it to, whatever model_profile says.
1. --model flag or scoped model -> kept as is; the profile never runs
2. model_profile = provider/model -> the pin; that exact model, if the registry serves it
3. model_profile = <profile id> -> builtins overlaid with model_profiles; first rung the registry serves
4. model_profile unset -> Daily · Normal, else the first lane that resolves (Daily · Heavy, Obsessive · Normal, Obsessive · Heavy)
5. No profile candidate available -> notice; retain Senpi's selected model
Mid-session model failures follow the harness's own retry chains, not the profile and not the delegation chains below.
For every delegated child (a category or a curated agent), omo tries the chain's rungs in order and takes the first model your connected providers can serve:
1. omo.json override -> categories.<name>.model(s) / agents.<name>.model(s); a configured category skips step 2
2. Category gate -> ultrabrain, deep-low, deep-high and architect need their gate model; other builtin categories need one live rung
3. Builtin chain -> category/fallback-chains.ts or agents/builtin/fallback-chains.ts
4. First serviceable rung wins; reasoning and variant are normalized to what the model supports
Your explicit configuration always wins. If you set a model for a category or agent, that choice takes precedence over the builtin chain.
After enabling, restart opencode. The 12 team_* tools become available.
Bug-fix note: a fresh-install regression test covers this minimal config and startup logs the resolved team_mode state plus team tool count ([tool-registry] Built tool registry). If the tools still do not appear after restart, inspect oh-my-opencode.log for the loaded config path and [tool-registry] Built tool registry entry.
Config schema (11 fields)
All fields live under team_mode:
enabled (boolean, default false)
tmux_visualization (boolean, default false)
max_parallel_members (int, 1..8, default 4)
max_members (int, 1..8, default 8)
max_messages_per_run (int, >=1, default 10000)
max_wall_clock_minutes (int, >=1, default 120)
max_member_turns (int, >=1, default 500)
base_dir (optional string; default resolves to ~/.omo)
Team specs live under ~/.omo/teams/{name}/config.json (user scope) or <project>/.omo/teams/{name}/config.json (project scope):
{
"name": "ccapi-explorers",
"description": "Explore the ccapi project structure.",
"members": [
{ "kind": "category", "name": "scout-1", "category": "deep-low", "prompt": "Scout the source directory for auth patterns." },
{ "kind": "category", "name": "scout-2", "category": "quick", "prompt": "Scout tests for auth coverage." },
{ "kind": "subagent_type", "name": "auditor", "subagent_type": "my-security-auditor", "prompt": "Audit the auth findings the scouts report." }
]
}
When both scopes define the same team name, project scope wins.
version and createdAt are optional in config files; the loader fills them automatically. The lead is always the current session, so there is no lead member to declare. team_create also accepts the same shape inline: { name, members: [{ name, category|subagent_type, prompt? }] }.
Member kinds
kind: "category": routed to the category worker, a fresh worker session configured by the category's model and skills. prompt REQUIRED. Unknown categories fail with UNRESOLVABLE_CATEGORY and the error lists the available ones.
kind: "subagent_type" (alias "agent"): a user-defined agent from omo.jsonagents, invoked directly. prompt optional. The kind is inferred from whichever field you set, so you can omit it.
Who can be a member
Eligible: any resolvable category, and any user-defined agent.
Rejected at parse: the curated read-only agents (explore, librarian, plan-consultant, plan-reviewer) and the ulw-loop reviewer trio (omo-native-code-reviewer, omo-native-qa-executor, omo-native-gate-reviewer).
The curated agents are read-only and in-process, so they can't write mailbox state. The reviewer trio is rejected because process-mode members drop reviewer instructions and tool allowlists. Route both groups through the task tool instead (packages/senpi-task/src/team/member-validator.ts).
Lifecycle
team_create — spawns team and member sessions.
Lead delegates work via team_send_message, team_task_create.
Members claim tasks (team_task_update with status: "claimed"), report back via team_send_message.
team_shutdown_request → member or lead acks via team_approve_shutdown / team_reject_shutdown.
Tear down (lead only; rejects active members unless force: true).
team_shutdown_request
Lead asks a member to wrap up.
team_approve_shutdown / team_reject_shutdown
Member or lead responds.
team_send_message
Peer-to-peer mailbox; lead-only broadcast.
team_task_create / _list / _update / _get
Shared task list.
team_status
Aggregate runtime view.
team_list
Declared + active teams.
Bounds (defaults)
8 members max, 4 in flight.
32 KB per message body, 256 KB per recipient unread.
10 000 messages per run, 120 minutes wall clock, 500 turns per member.
Worktrees (optional per member)
Add "worktreePath": "../wt-scout" to a member entry. Path is filesystem-relative or absolute; bare branch names are rejected. Requires git.
tmux visualization (optional)
Set tmux_visualization: true. Requires running inside a tmux session and tmux on PATH. Failures are isolated - a missing tmux never blocks team creation.
When enabled, each member gets a dedicated tmux pane attached to that member's session via opencode attach. The pane runs the full interactive opencode TUI for the member so you can watch streaming output in real time. Panes start in each member worktree when configured, otherwise process.cwd().
team_delete closes the panes and tears down the team layout. Per-member shutdown closes just that pane and rebalances the remaining layout.
What team mode does NOT do
No nested teams (members cannot call team_create).
No synchronous reply waits (team_send_message is fire-and-forget).
Members are asked not to spawn further children (member guidance prompt); the task tool is not budget-gated to 0. Nested team_create is denied.
team_delete rejects active members unless force: true.
Diagnostics
bunx oh-my-openagent doctor includes a team-mode check showing tmux/git availability, declared team count, and active runtime dirs.
.delivering-{uuid}.json files exist only while a message is being live-delivered via promptAsync. They are committed to processed/ on delivery success, released back to {uuid}.json on failure, or reclaimed on team resume if stranded by a crash (10 minute TTL). listUnreadMessages ignores dotfile entries so the fallback poll never double-injects a reserved message.
Reference
Implementation notes: packages/omo-opencode/src/features/team-mode/AGENTS.md and packages/team-core/AGENTS.md.
Computer use in OmO Native
Experimental. Computer use is experimental support. Its behavior, platform coverage and settings may change between releases, and each OS has known gaps (see Known limitations).
OmO Native can capture your desktop, inspect windows and accessibility trees, and send mouse and keyboard input to native applications. The computer tool is backed by the senpi-desktop-engine binary. The OmO Senpi component registers the tool when a session loads, but starts the engine only when the tool is first used. Computer use is available on macOS, Linux and Windows. It does not drive web pages through a browser API; for pages, use the browser skill.
The tool's parameters and permission classification are in the computer tool reference. Scroll amounts are pixels on every OS, and one mouse-wheel notch is about 40 px, so the same scroll moves a similar distance on macOS, Linux and Windows. This feature belongs to OmO Native; the same computer block does not enable it in the OpenCode or Codex editions.
Turn it on
Computer use is on by default on macOS, Linux and Windows hosts: the computer tool is registered in every OmO Native session, and nothing touches your desktop until the agent (or you) activates it. The agent finds the tool with tool_search for computer, or calls it by name. After activation, JavaScript and Python eval kernels also receive a computer global.
On macOS, a display-only virtual cursor shows where the agent is working without moving your physical pointer. Its default-ON setting is intentional: the overlay is visible in your own screen recordings and screen shares. Agents never see any session's cursor overlay in screenshots or window lists. On macOS 14 or later, native screenshots exclude known cursor-helper windows while other sessions' cursors remain visible. A capture is refused if a helper cannot be identified or excluded; it never falls back to unfiltered pixels when exclusion is required. Set computer.showCursor: false to keep it off, or use /computer cursor off for this session.
You control it with these commands:
Command
Effect
/computer or /computer status
Report whether the tool is enabled and active, the engine state, the stop path, and the current capabilities (backend, capture/input/accessibility permissions, screen lock)
/computer on
Enable and activate computer use for this session
/computer off
Deactivate computer use for this session
/computer cursor on or /computer cursor off
Show or hide the display-only macOS virtual cursor without disabling computer use
/computer stop
Suspend desktop input and release held keys and buttons
/computer resume
Lift a suspension; only you can do this, the model has no action that reaches it
/computer on and /computer off last for the current session only. To keep computer use off everywhere, set computer.enabled to false (see Configure it); the tool is then not registered at all and /computer reports that computer use is unavailable in this session.
The tool comes with a computer-use skill, the full helper reference. If you already have a skill named computer-use (in your user or project skills, or from a package), yours loads and the built-in one steps aside without a Skill conflicts warning; /computer status then adds skill: your own computer-use skill is active in place of the built-in guide. The safety rules still reach the model through the computer tool's own description. To drop the built-in skill and keep the tool, add computer-use to disabled_skills.
Where the engine comes from
Compiled OmO binary: the engine is staged inside the extracted runtime on macOS (arm64, x64), Linux (x64 and arm64, glibc) and Windows (x64 and arm64). Musl Linux has no released engine.
npm install (omo-ai): the npm package carries no native binaries. On first use, OmO looks for an engine for its own release version under ~/.omo/cache/senpi-desktop-engine/<version>/<host>/, and when none is there it downloads the matching asset from the OmO GitHub release and verifies it against the release's checksum file before running it.
Your own build: set computer.engine_path to a binary, or build one in a checkout with cargo build --release -p senpi-desktop-engine.
Without computer.engine_path, the locator checks the extracted runtime (OMO_PACKAGE_DIR), the compiled executable's sidecar at native/prebuilds/<host>/senpi-desktop-engine, the @oh-my-opencode/senpi-desktop-engine package's native prebuild, and the development build at target/release/senpi-desktop-engine (packages/senpi-desktop-engine/src/locator.ts). A candidate carrying macOS's com.apple.quarantine attribute is skipped and reported, never cleared, with one exception: a sidecar inside the launcher's own installation is accepted when its canonical path stays under that launcher's native/prebuilds/ and its SHA-256 matches the host entry in native/prebuilds/senpi-desktop-engine-checksums.txt. The launcher's build writes this file for the engine bytes as packaged, including any re-signing. A missing or invalid checksum file, a digest mismatch, or a symlink escaping the installation keeps the refusal. This exception does not apply to an explicit computer.engine_path or the other locations. Hosts with no released engine (Linux arm64, Windows arm64) keep the tool registered and report native-unavailable on first use.
Set up your operating system
Computer use is experimental on macOS, Linux and Windows: the setup below works today, but the steps and the supported desktops may still change.
Computer use needs a graphical desktop session. It cannot use a desktop it is not logged into, so an SSH session, a CI runner without a display, or a locked screen will refuse capture or input.
macOS
macOS gates capture and input behind two privacy permissions, and grants them to the application you launch OmO from (Terminal, iTerm2, Ghostty, your editor, or the OmO desktop app), not to the omo or engine binary:
Permission
Needed for
System Settings location
Screen Recording (Screen & System Audio Recording on newer macOS)
screenshots, the display and window lists
Privacy & Security > Screen & System Audio Recording
Accessibility
mouse and keyboard input, accessibility trees and element actions, the global stop chord
Privacy & Security > Accessibility
To grant them:
Open System Settings > Privacy & Security.
Open Screen & System Audio Recording, turn on the switch for your terminal app (use + to add it if it is not listed).
Open Accessibility and do the same.
Quit and reopen the terminal app. macOS offers "Quit & Reopen" after a Screen Recording change; a grant does not reach processes that were already running.
Start a new OmO session and run /computer status; capturePermission=granted inputPermission=granted axPermission=granted means you are set.
OmO checks grants without a permission prompt. A denied action opens the matching System Settings pane at most once per permission per engine process, names the launching app when known, and tells you to fully quit and relaunch that app after enabling the grant. The error also includes the engine's executable identity for diagnosis. A missing Accessibility grant refuses input as PermissionDenied, including when it prevents the global stop chord from starting; capture still works if Screen Recording is granted. The agent must stop and wait until you confirm the grant and relaunch rather than retrying. If you launch OmO from a different app later, that app needs its own grants.
When the launching app is not the window you see
macOS charges a grant to the responsible app of the whole process tree OmO runs in, which is not always the terminal window in front of you:
A multiplexer started over SSH (tmux, screen, zellij launched from an SSH login): every pane descends from the SSH session, so macOS charges the request to the SSH login (for example sshd-keygen-wrapper), not to the terminal you later attach from. Granting the engine binary or your terminal does not help. Start the multiplexer server from a local GUI terminal that holds the grants instead.
A terminal or multiplexer GUI app (herdr, for example): the request is charged to that app. Add it under both Accessibility and Screen Recording, then quit and reopen it.
A launchd job, a disclaimed spawn, or a host that execs the engine through a shell: the engine refuses to start ("refusing to run as its own responsible process"), because no app would hold its grants. Run OmO as an ordinary child of an app that has them.
To see which app macOS actually checked, reproduce the denied action and then read the TCC log:
In the matching line, responsible={... identifier=<bundle id>, ... responsible_path=<path>} is the app that needs the grant; binary_path is the engine itself. Grant the app named by responsible_path, quit and reopen it, and start a new session.
By default, the first background input of a session on macOS runs a short delivery check: a small dialog reading "senpi desktop canary" appears for a moment, receives a marked keystroke, and is dismissed automatically (it closes on its own after five seconds at most). Leave it alone while it is up. It proves background keyboard delivery works before OmO relies on it. If the check fails, background window input is reported as unavailable (stopReason=skylight-canary-failed) and /computer resume re-arms it. Setting computer.macos_canary to "off" skips this check and its dialog.
Linux
OmO picks the backend from the session: WAYLAND_DISPLAY wins over DISPLAY (an XWayland session sets both). With neither set, the engine reports that there is no display server.
X11: capture uses RandR, input uses XTEST (or XSendEvent for background delivery), and accessibility uses AT-SPI on the session D-Bus. Enable your desktop's assistive-technology support (for example GNOME's accessibility setting) so AT-SPI trees are populated. Some toolkits ignore synthetic background input; OmO then reports BackgroundUnavailable instead of pretending the event landed.
Wayland: capture uses the ScreenCast portal with PipeWire when libpipewire is present at runtime, otherwise the Screenshot portal (one image of the whole desktop as the display wayland-portal-0). Neither path captures a single window. The Screenshot portal, and a ScreenCast stream that reports no logical size, carry no display scale: their pixels map to input coordinates only when the connected libei input session's display layout matches the image exactly (at logical size or one uniform scale). Otherwise, including before the first desktop input connects libei, the screenshot is still returned but coordinate input against it is refused; use accessibility actions, or capture again once input is connected. Input goes through libei, either from a LIBEI_SOCKET provided by the compositor or through the RemoteDesktop portal. GNOME and KDE ask for consent the first time a portal is used; wlroots compositors do not. Wayland allows input only to the focused surface, so per-window keyboard input and raise() are unavailable, and per-window pointer input works only through the compositor paths below: otherwise use accessibility actions, or focus the window yourself first.
Window pointer input on Wayland: on Hyprland (its IPC socket), KDE Plasma (KWin's scripting D-Bus) and GNOME (a small read-only shell extension, below), a click aimed at a window goes through libei at the window's position as the compositor reports it, and is refused with nothing sent when another window covers that point. capabilities.windowInput says whether it is available; when it is not, reason names why: no_eis (no libei input path), hyprland_ipc_missing, kwin_dbus_missing or gnome_extension_missing.
GNOME window-rect extension: GNOME gives applications no way to see where other windows are, so window pointer input there needs the [email protected] shell extension (GNOME 45 or newer) from packages/gnome-window-rects-extension. It only reports each window's position, size, title, process id and visibility, plus GNOME Shell's own state (Activities overview open, a shell dialog or menu up, screen locked) and where the top bar or a notification banner sits, on the session bus; it never moves, focuses or types into anything. While the overview, a shell dialog or the lock screen is up, window pointer input is refused with nothing sent, and a click on a point under the top bar or a banner is refused the same way a covering window refuses it. Any program in your session can read that list, the same window titles a screenshot shows. To install it from a checkout:
dest=~/.local/share/gnome-shell/extensions/[email protected]
mkdir -p "$dest"
cp packages/gnome-window-rects-extension/{metadata.json,extension.js,window-rects.js} "$dest"/
# log out and back in (GNOME on Wayland loads new extensions only at login), then:
gnome-extensions enable [email protected]
gnome-extensions disable [email protected] turns it off again. OmO checks for the extension once per computer-use session, so enabling or disabling it takes effect in the next session: a new session then reports gnome_extension_missing in windowInput and refuses window pointer input as before.
Stop chord on Wayland: the global stop chord needs a compositor with the GlobalShortcuts portal. Without it, input is refused with StopPathUnavailable unless you opt into allow_host_relay_only_stop.
Windows
Capture uses the native display and window APIs with per-monitor DPI awareness, and accessibility uses UI Automation. Windows' UIPI refuses input from a normal process to an application running elevated (as administrator); run OmO at the same integrity level as the application you want it to drive. Accessibility fallback does not bypass that check.
Foreground pointer input waits until the compositor shows the raised target, and confirms the cursor is on the requested point before it clicks, drags or scrolls; if the cursor cannot be placed there, the action fails with InputFailed and no button or wheel is sent.
Background delivery depends on the target toolkit and the requested action. Chromium rejects posted input; WPF rejects posted pointer and text input, and posted keys unless it owns the foreground. XAML, WinUI, Tk, GTK, terminal and embedded Chromium hosts have action-specific restrictions. A rejected, unmodified single left click can use UI Automation's Invoke action when the target exposes it, except for Chromium. Other unsupported actions report BackgroundUnavailable; choose an accessibility action or request foreground delivery explicitly. Background drags that start on a title bar or resize border are refused before any input.
Configure it
Put the computer block in ~/.omo/omo.jsonc (or ~/.omo/omo.json) for your account, or .omo/omo.jsonc in a project. The closest project layer wins. You may place it under "[native]" or at the shared top level; either way it is effective only in OmO Native. All keys are optional. Most use snake_case; the virtual-cursor setting is showCursor:
Show the macOS virtual cursor in your own recordings/shares; it is excluded from agent captures and lists
display
"active"
active follows the focused window's monitor (primary fallback); all composites every display; otherwise one display id from computer.displays()
max_width
3840
Largest screenshot width in pixels; bigger captures are scaled down
max_height
2400
Largest screenshot height in pixels
screenshot_max_bytes
5000000
Largest inline screenshot; a bigger one is returned only as a file path
stop_hotkey
ctrl+alt+cmd+escape on macOS, ctrl+alt+shift+escape elsewhere
The global stop chord
allow_host_relay_only_stop
false
Allow input when the global chord cannot be armed, with /computer stop as the only stop path
macos_canary
"session"
The macOS background-delivery check; "off" skips the check and its dialog
audit_log.enabled
true
Write the mutating-action audit log
screenshot_gc.enabled
true
Delete stale screenshot files
screenshot_gc.stale_ms
43200000 (12 hours)
Age after which a screenshot file is deleted
screenshot_gc.scan_interval_ms
1800000 (30 minutes)
How often stale screenshots are swept
engine_path
unset
Use this engine binary instead of locating or downloading one
cua_adapter
false
Also register computer_actions, OpenAI computer-use actions over the same permissions, audit and stop path
The schema is packages/omo-config-core/src/schema/computer.ts; the defaults are resolved in packages/senpi-desktop-tool/src/settings.ts. An invalid block is reported in the log and the component stays unregistered for that session. Start a new session after changing the file.
await computer.display(id) returns a screenshot/input handle for one display; "active" follows focus and "all" composites every display. For example, await (await computer.display("all")).screenshot() observes every monitor without reopening or changing the session default. Each target has its own screenshot frame. computer.displays() lists all known monitors; its pixel rectangles describe the "all" composite, not the default active capture. Active chooses the monitor with the largest focused-window intersection; ties or missing focus use the primary display.
Wayland has no focused-window geometry and uses the first display the portal reports, not a known compositor primary. The explicit id "wayland-portal-0" still means the whole Screenshot-portal image, even when libei proves a multi-monitor layout; other "wayland-portal-N" ids select a region through the Screenshot portal. Without a proven layout, only the whole-desktop image is available and coordinate input is refused. Explicit "wayland-screencast-N" ids now fail InvalidTarget if ScreenCast is unavailable instead of silently returning an unrelated Screenshot image; use "all" or "wayland-portal-0" for that fallback.
Safety model
Permission tiers. Screenshots, window lists, accessibility reads and run with read_only: true require computer:read. Input, mutations, close, unknown methods and malformed requests require computer:exec. The host checks the tier before the engine sees the call, and an approval for read never approves exec. A non-interactive run cannot answer an ask decision, so allow the tier explicitly or the call is blocked. To let the agent look but never touch:
omo --permission computer:read=allow --permission computer:exec=deny
The stop chord. While input is possible, a global stop chord is armed (Control+Option+Command+Escape on macOS, Ctrl+Alt+Shift+Escape on Linux and Windows, or stop_hotkey). Pressing it suspends all computer input immediately: a type already in progress stops at the next character, and an action cut short by the suspension releases any keys and buttons it was holding; /computer stop does the same from the prompt. Input stays suspended until you run /computer resume. Every running session watches the chord itself, so one press stops all of them. On macOS and Linux X11 only a physical key press counts: a chord a program sends (the agent's own press, xdotool, another app posting key events) is ignored, so no program sending key events can stop computer use or keep it stopped. A virtual keyboard installed at the system level (a driver, or Linux uinput, which need administrator rights) looks like hardware and is not filtered. The Wayland GlobalShortcuts portal cannot tell the two apart, and Windows still accepts a sent chord until #10444 is finished. If the chord cannot be armed, input is refused with StopPathUnavailable rather than running without a way to stop it; allow_host_relay_only_stop: true accepts /computer stop as the only stop path, and is meant for hosts that relay a stop reliably.
Plain Esc is not a stop key: the app you are working in needs it for its own dialogs and fields, so only the chord stops computer use, and the chord still reaches that app. When the chord cannot be heard, input is refused instead of running unguarded. On macOS, a password field or Terminal's Secure Keyboard Entry turns on Secure Event Input, which hides every key press from the stop chord's listener; while it is on, input fails with StopPathUnavailable (stopReason=secure-input-active) and resumes by itself once you leave the password field or turn Secure Keyboard Entry off. If the stop chord stops working partway through a type, typing stops at the next character with the same error, and the keys and buttons it held are released.
Foreground control asks you first. Background input to one window, the default, needs no extra approval. Before the agent can take your foreground (input with delivery: "foreground", raising a window with win.raise(), or any click, typing, key press, scroll, drag, pointer move or hold aimed at the desktop or a display, which lands on your real pointer and frontmost app), OmO shows "Allow foreground computer control?" with the agent's reason. Only your answer grants it: a non-interactive run has no one to ask, so it never grants. When OmO runs inside another app (OmO Desktop or an RPC client), that app shows the question, and an app that never answers leaves control off. Declining, letting the question time out, or interrupting while it is open all leave control off. Until you approve, foreground actions fail with ControlRequired. The approval covers foreground input for the current task only and does not authorize anything else, such as sending messages or deleting data. It ends when the task finishes, when any computer run in it fails or is interrupted, when the session closes, and when you press the stop chord; /computer resume never brings it back, so the next foreground action asks again. Only one session holds foreground control at a time: if another session asks meanwhile, its question still appears, and even after you approve it gets InputBusy instead of taking control over. In full access mode (--permission-preset full-access) OmO grants foreground control without asking and says so in the session, and the same revocation rules apply. Desktop and display input in full access is granted without a question or a note, non-interactive runs included, and that grant is revoked as soon as the session leaves full access.
Before input reaches an application, the engine refuses it when input is suspended, the screen is locked, the stop path is gone, or the OS permission is missing.
What the agent is told. The computer-use skill instructs the model to treat screen text, notifications and documents as untrusted data that can never authorize an action, and to confirm immediately before consequential actions (sending or publishing, purchases and transfers, deletion, account, security and permission changes, disclosing private data, accepting terms) unless your own message authorized that exact action. A Suspended or StopPathUnavailable error means stop and report; the model is told never to work around it. These are model instructions, not a sandbox: computer.run code runs with full host access, so keep permission rules strict for untrusted work and use a separate account or VM for risky automation.
Focus. Input defaults to background delivery. On macOS it leaves your frontmost app, visible front window, keyboard focus, cursor and next-keystroke destination unchanged, although a clicked target may rise directly beneath your front window. Background typing into an app with multiple windows can report BackgroundUnavailable; use accessibility actions or foreground delivery instead. Foreground delivery briefly activates the target and then restores the previous window and cursor; a failed restore is reported, not hidden.
Audit. Every mutating action is appended to .computer-audit.jsonl in the session directory. Typed text is recorded by length and digest, never content, and an interrupted type also records how many characters were delivered. Set audit_log.enabled: false to turn it off.
Privacy
What is captured: only what the agent requests: screenshots of the desktop or a window, window lists (app names, titles, bounds), accessibility trees of a window (element roles, titles, values), and the clipboard when a helper reads it. Nothing is captured in the background or while computer use is inactive.
What stays on your machine: screenshot files are written to the system temporary directory and deleted after screenshot_gc.stale_ms; the audit log stays in the session directory. The engine makes no network requests; the only network access computer use performs is the one-time engine download from the OmO GitHub release for npm installs.
What leaves your machine: screenshots, accessibility text and window titles that a tool call returns become part of the conversation and are sent to your model provider like any other tool result. Keep sensitive windows closed or covered, or deny computer:read, when that matters.
Telemetry: OmO Native's product telemetry records three computer-use events, each with enumerated values only: computer_use_activation (on or off, and whether a tool call or /computer on|off did it), computer_use_permission_denied (which OS capability or permission tier refused), and computer_use_engine_error (the engine's error code). Screenshots, screen text, window titles, app names, coordinates, typed text, tool arguments, paths and error messages are never sent. See Senpi telemetry for every field and how to turn telemetry off.
Troubleshooting
Symptom
Cause
Fix
/computer says "Computer use is unavailable in this session."
computer.enabled is false, the computer block is invalid (see the session log), or the platform is not macOS, Linux or Windows
Fix or remove the block and start a new session
engine: native-unavailable in /computer status
No engine binary for this host was found or downloaded; the error lists every path tried
Check the network for the first download (npm installs), set computer.engine_path, or build one with cargo build --release -p senpi-desktop-engine
engine: quarantined
The only engine found carries macOS's download quarantine
Use the OmO-provided engine, or remove the attribute yourself with xattr -d com.apple.quarantine <path> if you trust that file
engine: abi-mismatch
computer.engine_path points at an engine from another release
Point it at an engine built from the same OmO version, or remove the setting
PermissionDenied, or capturePermission=denied / inputPermission=denied on macOS
The app you launch OmO from lacks Screen Recording or Accessibility
Grant both to that app (see macOS), quit and reopen it, start a new session
Screenshots are black, blank, or show only the wallpaper
The display is asleep or locked (displayAsleep=true or screenLocked=true in omo doctor), you are in an SSH or headless session, the window shows DRM-protected content, or on Wayland the portal consent was denied
Unlock and wake the display, run OmO in the graphical session, accept the portal dialog; protected content cannot be captured
Clicks land in the wrong place, often on Retina or HiDPI displays
The coordinates came from an older screenshot, or from a different target, or mixed accessibility (global points) with screenshot pixels
Take a fresh screenshot of the same target and use its pixel coordinates; InvalidCoordinateFrame is the engine refusing a stale frame. Screenshots may be scaled below native resolution (max_width, max_height, or a smaller coordinate-safe size for some models); OmO maps the pixels back to screen points itself
Focus jumps to another window, or the clicked window moves forward
Foreground delivery activated the target, or on macOS a background click raised the clicked window just below the front one
Prefer accessibility actions; background delivery keeps your frontmost app and focus, and the z-order change is a known limitation
BackgroundUnavailable
The target app or platform rejects this background action (a macOS app with several windows for keystrokes, a Windows toolkit restriction or non-client drag, some Linux toolkits, Wayland)
Read the named action and toolkit in the error; use accessibility setValue / press, or request delivery: "foreground" where supported. Windows may invoke an accessible control for an unmodified single left click, but never bypasses UIPI
StopPathUnavailable
The global stop chord could not be armed (commonly Wayland without GlobalShortcuts), or on macOS cannot hear keys because Secure Event Input is on (secure-input-active)
Use a compositor with GlobalShortcuts, or set allow_host_relay_only_stop: true knowing /computer stop is then the only stop; for secure-input-active, leave the password field or turn off Secure Keyboard Entry
Suspended
You pressed the stop chord or ran /computer stop
Run /computer resume when you want input back
ControlRequired
A foreground action, win.raise(), or input on the desktop or a display ran without your foreground-control approval, or after it ended
Approve the "Allow foreground computer control?" question when the agent asks, or have the agent target a window; background delivery to one window needs no approval
InputBusy
Another session holds foreground control
Finish or interrupt that session's task, then retry
Known limitations
Computer use is experimental on every OS. These are the known gaps:
macOS (experimental): a background click can raise the clicked window to just below the frontmost window; your frontmost app, front window, focus, cursor and next-keystroke destination are kept. Restoring the full previous window order is tracked in #8930.
Linux (experimental): on Wayland, no single-window capture, no per-window keyboard input, per-window pointer input only on Hyprland, KDE Plasma and GNOME with its extension, no raise(); the stop chord needs the GlobalShortcuts portal. No released engine for musl Linux (Alpine).
Windows (experimental): no input into elevated applications from a non-elevated OmO (UIPI), including accessibility click fallback. Background input is action-specific: WPF pointer/text and Chromium posted input remain restricted; see Windows.
Engine modes and bunshin
The engine supports --stdio (JSON-RPC over NDJSON), --serve <socket> (daemon), --oneshot (one request forwarded to the daemon), --resume (user-controlled stop recovery), --mcp (MCP stdio server), --selftest and --schema. --serve, --oneshot and --mcp run only with --enable-daemon; the flag prevents an accidental daemon and is not a security boundary. On macOS the engine refuses every mode when it is its own responsible process (a disclaimed spawn, a launchd job, or a host that fork-execs it through a shell): start it as an ordinary child of the app or terminal that holds the computer-use grants. In --mcp mode, tools/list offers engine methods as desktop_<method> tools; capture results include MCP images, and input still goes through the same safety gate. Never expose the user-only resume operation as a model tool.
The descriptor in packages/senpi-desktop-engine/bunshin/descriptor.mjs uses the --oneshot bridge. bun script/install-bunshin-desktop-capability.mjs installs it into the bunshin agent capability directory for a locally available engine; use --engine <path> for a specific binary or --remove to uninstall the descriptor. Installing a descriptor does not itself start an agent or grant desktop permissions. The --oneshot and --mcp bridges cannot take the foreground control grant (control.grant is host-only), so through them clicks, typing and other input aimed at the desktop or a display fail with ControlRequired; target a window for background delivery instead. On Wayland, window input is unavailable as well, so a bridge-only Wayland session cannot inject pointer or keyboard input at all. Hosts that can confirm with the user, such as OmO itself, keep desktop input.
The computer tool
The OmO Native computer-use component registers a search-exposed computer tool and, after activation, a computer global in JavaScript and Python eval kernels. For setup, stop paths, platform limits and permissions, see Computer use.
Experimental. Computer use is experimental support. The tool contract below may change between releases.
Source of the contract
Component registration, session lifecycle and resource discovery: packages/omo-senpi/src/components/computer-use/index.ts
Tool actions and validation: packages/senpi-desktop-tool/src/tool.ts, packages/senpi-desktop-tool/src/params.ts
User command and permission tiers: packages/senpi-desktop-tool/src/command.ts, packages/senpi-desktop-tool/src/permission.ts
Eval facade and model-facing guidance: packages/senpi-desktop-prelude/src/prelude.js, packages/senpi-desktop-prelude/src/prelude.py
Engine client and protocol: packages/senpi-desktop-service/src, packages/senpi-desktop-protocol/src
Engine and platform backends: crates/senpi-desktop-engine, crates/senpi-desktop-backend-macos, crates/senpi-desktop-backend-x11, crates/senpi-desktop-backend-wayland, crates/senpi-desktop-backend-win32
Actions
action
Parameters
Result
call
chain: a desktop helper { method, args? }, optionally followed by one window or element method
The helper's result; a screenshot also returns image content
run
code: JavaScript async function body with desktop, wait, assert and tool; optional read_only and timeout in seconds
The returned value and displays
capabilities
None
Backend, capture/input/AX permissions, stop path and focus guard
close
None
Ends the desktop session
For example, { "action": "call", "chain": [{ "method": "screenshot" }] } captures the desktop. A run can call await desktop.screenshot() then await desktop.click(x, y) using a coordinate from that frame. Screenshots are limited to a coordinate-safe size when passed to a model; a stale frame is rejected with InvalidCoordinateFrame.
The computer eval global offers the same operations as a fluent facade. A run marked read_only: true is constrained by the runtime, so attempted input fails rather than escaping the read tier.
Permission classification
capabilities, inspection-only call chains, and run with read_only: true use computer:read. close, other calls and runs, unknown methods and malformed inputs use computer:exec. The host checks the tier before the engine receives an action, so an exec-denied click is not audited as an engine click. Rules may target the entire computer tool or the computer:read and computer:exec tiers. An approval for read never approves exec.
Coordinates and delivery
Pointer coordinates refer to the latest screenshot of the same target, while accessibility coordinates are global desktop coordinates. Each accessibility snapshot changes the reference generation; old refs fail with StaleRef.
Scroll amounts (dx/dy of scroll, and scroll_x/scroll_y of computer_actions) are pixels, the same unit on every OS. macOS posts them as pixel scroll events; Windows and X11 send one wheel notch per 40 px (rounded, at least one), and Wayland sends 120ths of a notch at the same rate. So dy: 120 scrolls about three notches everywhere. A positive dy moves the view toward the end of the content and a positive dx toward its right edge, whatever the natural-scrolling setting.
Input defaults to background delivery when supported. On macOS it leaves the frontmost app, its focused window, the cursor and the destination of the user's next keystroke unchanged, but a clicked target window may rise directly under the user's front window. Foreground delivery uses a focus guard to restore the previous window and cursor; restoration failures are reported instead of hidden. A stop chord, screen lock, lost stop path or missing OS permission refuses input before a backend action.
Foreground delivery also needs this session's live control grant. The host asks the human to confirm, then calls control.grant { reason, confirmationId } (host-only); control.revoke releases it, session.close and a stop chord revoke it too, and stopPath.resume never restores it. At most one session of the process holds the grant; another session's grant is refused InputBusy, never stolen. control.state (public) reports { active, reason?, grantedAt? }. An omitted delivery stays background, except that pointer and keyboard input on the desktop or a display:* target (click, moveMouse, drag, scroll, typeText, keyChord, holdKeys, holdMouse) always needs the grant: every backend posts it globally, onto the user's real pointer and frontmost app, so the engine admits it by its effect rather than the requested delivery (#10788). In full access the OmO host takes the grant itself, without a confirm and in non-interactive runs too, and revokes it once the session leaves full access. raiseWindow (win.raise()) always needs the grant, because raising a window always takes the user's foreground; this is deliberately stricter than upstream oh-my-pi, which gates only takeover input.
On macOS the engine keeps the display awake while the agent operates: the first request other than capabilities, control.state and stopPath.* takes a PreventUserIdleDisplaySleep power assertion, listed by pmset -g assertions as "OmO computer use is operating the desktop", and it lasts until 60 seconds after the last such request finished. session.close, a disconnect and a stop release it at once. capabilities.displayAsleep is true when every display the session can capture is asleep; the screen lock still refuses input with ScreenLocked.
Error codes
A failed call carries one engine error code (crates/senpi-desktop-core/src/error.rs), and some codes also carry a data.reason naming the cause (for example consumed for InvalidCoordinateFrame); the tool's recovery hint follows that reason when it knows it. The ones a user or model acts on:
Code
Meaning
What to do
PermissionDenied
The OS permission for capture, input or accessibility is missing
The user pressed the stop chord (on macOS and X11 only a physical press counts; a posted or XTEST chord is ignored) or ran /computer stop
Stop acting; only the user runs /computer resume
StopPathUnavailable
The global stop chord could not be armed, or cannot hear keys (secure-input-active: macOS Secure Event Input is on), so input is refused; an in-flight typeText stops at the next character, and a menu walk at the next menu level, with this code; no stop latches
Use a host where the chord arms, or allow_host_relay_only_stop; for secure-input-active, wait for the user to leave the password field
ScreenLocked
The screen is locked
Unlock the session
BackgroundUnavailable
The target refuses background delivery
Use accessibility actions or delivery: "foreground"
ControlRequired
Foreground delivery, raiseWindow, or input on the desktop or a display without this session's live control grant
A consent-capable host confirms with the human, then calls control.grant; a bridge client (--oneshot, MCP) cannot grant, so target a window for background delivery
InputBusy
Another session holds the foreground control grant
Retry after that session revokes or closes
InvalidCoordinateFrame
The coordinates do not belong to the latest screenshot of that target, or the target moved or resized
Take a new screenshot of the same target
StaleRef
An accessibility ref from an older snapshot
Take a new ax() snapshot
WindowNotFound, InvalidTarget
The window closed, or the filter matched nothing or several windows
List windows again and pick one
AxUnsupported, AxFailed
The element or platform does not support that accessibility operation
Fall back to pointer input
FocusRestoreFailed, CursorRestoreFailed
Foreground delivery could not put the previous window or cursor back
Tell the user; nothing is hidden
UserIntervened
The user was using the target app, or brought another window forward, so the action stopped; the message says whether any input was sent
Read the window again once the user pauses; never repeat the action as it was
AxUnconfirmed
An accessibility request was made but the app did not confirm it (no reply in time, or a modal dialog opened). On macOS, ax.perform (press and the other named actions), ax.setValue and ax.focus report it when the app answers kAXErrorCannotComplete; a refused request stays AxFailed, and so does a value the app answered but did not take
It may already have taken effect: read the element back before any retry
SpaceUnsupported, SpaceMoveDenied
A window could not be moved to the current Space (macOS), because the platform lacks support or the window server refused or could not verify the move
Ask the user to bring the window to the current Space
AmbiguousTarget
Several windows or elements match the request
List them again and target one by its id or ref
CaptureConsentRequired
The system needs the user to approve screen capture first
Ask the user to approve capture, then capture again
The platform call failed, took too long, was aborted, or the session ended. On macOS a CaptureFailed, InputFailed or Timeout message that ends (the screen is locked) or (the display is asleep) names the likely cause
Observe again before retrying; stop after repeated failures; for a lock or sleep note, ask the user to unlock or wake the Mac
A stop persists across an engine restart only on the macOS XPC agent path, which keeps a private stopped marker that no operation clears. The --serve daemon behind --oneshot and --mcp keeps its stop in memory: --resume lifts it, and a daemon that restarts (after a crash, an idle exit or a kill) starts unstopped, so a v1 consumer never stays Suspended behind a file the user would have to delete.
Engine start failures are reported by /computer status as engine: native-unavailable, quarantined or abi-mismatch, and are described in Troubleshooting.
Engine interoperability
Engine discovery checks computer.engine_path, a compiled sidecar, the package prebuild and target/release in that order (packages/senpi-desktop-engine/src/locator.ts). Outside OmO Native, senpi-desktop-engine --enable-daemon --mcp serves the same engine operations over MCP stdio, forwarding through the daemon and preserving its stop-path and audit checks. A host using relay-only stop must keep the heartbeat alive; the model cannot invoke the user-only resume operation. The MCP and --oneshot bridges refuse the host-only control.grant, so their desktop and display input is refused with ControlRequired; window-targeted background input still works where the backend supports it (Wayland supports none, so a bridge-only Wayland session has no pointer or keyboard injection).
CLI Reference
Complete reference for the published CLI package. During the rename transition, both package names work:
All published packages expose the same compiled CLI with these bin entries:
omo-agent-toolkit (short name, recommended in docs and prompts)
oh-my-openagent (preferred package-matching name)
oh-my-opencode (legacy compatibility name)
lazycodex (Light edition shortcut; install defaults to --platform=codex)
lazycodex-ai (Light edition shortcut; install defaults to --platform=codex)
The former omo bin was removed from these packages in this major release. The name now belongs to the OmO Native edition:
Bin
Package
Channel
What it is
omo
omo-ai
bun (recommended): bun add -g omo-ai; npm fallback: npm i -g omo-ai
Launches the pinned senpi release with the full OMO extension loaded. Prerelease builds live on omo-ai@beta; see the omo-ai publishing runbook.
The omo-agent-toolkit npm bin stays with the wrapper packages above; omo-ai never declares it.
omo login, omo logout, omo whoami (OmO Native)
omo login signs this computer in to OmO from the terminal with a device code. It is the route for a computer that has no OmO desktop app: a server, a container, or a machine you reach over SSH. Nothing has to open on that computer. You approve the sign-in in a browser on any other device.
omo login
Open <verification URL>
User code: <code>
Matching code: <code>
Open the URL on a phone or another computer and sign in to your OmO account there.
Approve the sign-in on that page, using the codes the terminal printed.
The terminal waits for the approval, then prints Signed in to OmO as <email>.
The code expires. If it does, or the approval is denied, omo says so and you run omo login again for a new code. Ctrl+C cancels the wait.
Command
What it does
omo login
Device-code sign-in
omo login --device
The same, stated explicitly
omo login --no-browser
The same, and never opens a browser
omo login --replace
Replace this computer's earlier device without asking (for scripts)
omo login --device --api <url>
Use another OmO API origin. Setting OMO_SERVICE_API_URL does the same and also works with plain omo login. omo prints OmO API: <url> before any code when the origin is not the default
omo whoami [--api <url>]
Print Signed in to <api> as <email> (<device name>). or Not signed in.
omo logout [--api <url>]
Sign this computer's device out on the service and remove the stored credentials and device keys
While OmO accounts are not open to everyone, these are the only forms of omo login. Any other argument is refused with a message that names the device-code route. That includes --api without --device or --no-browser. The service's approval page decides who may sign in.
One computer is one device. The device is registered under the machine's name (on macOS the local host name), without a trailing .local.
A computer that is already signed in is not registered twice. This covers a stored sign-in and a device held by the OmO desktop app on the same computer. omo login stops and tells you to run omo logout first.
If the service reports that this computer already has a device, an interactive terminal asks whether to replace it (default No). A script passes --replace. You approve the replacement on the service's page, which then signs the earlier device out, and omo prints its id.
If your account is at its device limit, an interactive terminal lets you choose a device to remove. A script is told to run omo login in an interactive terminal.
omo logout signs the whole computer out, including the OmO desktop app when it shares this sign-in.
Where the sign-in is stored. The credential goes into the operating system's credential store and is never written to a file:
Platform
Store
macOS
Keychain
Linux
Secret Service (libsecret with an unlocked keyring)
Windows
Credential Manager
A Linux machine with no Secret Service keyring, or with a locked one, cannot store the sign-in: omo reports the store as unavailable or locked and saves nothing. A Mac whose login keychain stays locked can use OmO's own keychain; see omo account store below.
If the credential store fails while omo logout reads it (a locked or stalled keyring), the command stops after that one store call: nothing is cleared, the message says the store could not be read, and the exit code is 9 (native storage failure), the same code omo account uses for a storage failure. Nothing else about the stored sign-in changes; run omo logout again once the keyring answers.
Before it prints a code, omo login checks that the OmO service answers, so an unreachable service fails at once.
When the sign-in completes, omo turns remote sessions on for this device. See Set up a device.
omo account (OmO Native)
omo account show [--account <id>], adopt [--replace], token, export, and
forget share the OS-keychain sign-in used by omo login. This machine interface
accepts credentials on stdin for adopt and writes JSON replies on stdout;
diagnostics go to stderr.
Exit
Outcome
0
Success
1
Other operation failure
2
Invalid arguments or credential input
3
Adopting a different device requires --replace
4
Signed out
5
Session ended; the JSON reply includes the refusal code
6
Refresh outcome uncertain; retained credentials must not be replayed
7
Keychain locked: {"keychain":"locked"}
8
Keychain unavailable: {"keychain":"unavailable"}
9
Native storage failure or timeout: {"error":"store-unavailable"}
omo account show prints one JSON object and does not refresh the sign-in. A signed-in object includes refreshState:
ok means the stored sign-in has no refresh fence.
uncertain means a protocol-2 refresh attempt is still eligible on this boot: its deadline has not passed and the recovery clock still matches.
expired means the stored fence is uncertain and recovery can no longer be proved. That is no refreshAttempt, an attempt whose state is exhausted, or an attempt the recovery clock rejects because the deadline passed, the machine rebooted, or the clock itself is unavailable. signedIn stays true and the exit code stays 0. The keychain item is not rewritten.
omo account store (macOS, opt-in)
omo account store status|enable|disable [--discard] manages OmO's own keychain for a Mac whose login keychain stays locked. That happens when another macOS user holds the screen, or when nobody is signed in and omo runs over SSH or as a background service. The default stays the login keychain; nothing switches stores on its own.
enable creates ~/Library/Application Support/OmO/credential-keychain/: a 0700 folder holding the keychain and its random key (0600), excluded from Time Machine. If the login keychain holds a sign-in omo can read without a dialog, it is copied, read back, the store is activated, and only then is the login copy removed. If the login keychain is locked, the store starts empty and omo login signs in to it.
disable copies the sign-in back to the login keychain, reads it back, deactivates the store and erases it. It refuses and changes nothing while the login keychain is locked. --discard erases the store without moving anything back, and only when signed out (omo logout first). A damaged store (one omo refuses) is turned off by --discard and its folder is left for you to delete.
status prints {"store":"omo"|"login","state":"absent"|"inactive"|"active","path":...}.
While the store is active, the CLI, the desktop runtime and the device service use it for every read, write and refresh, with no keychain dialog. the sign-in never touches the login keychain, and omo never changes the keychain search list or the default keychain. A damaged store (wrong owner or mode, a symlink, a bad key) is refused by name and never falls back to the login keychain. omo doctor prints a credential store line when the store exists.
Trade-off: the key sits beside the keychain with owner-only permissions. Other macOS users cannot read it. Anything running as you can, and a backup or disk image taken without FileVault exposes the sign-in; other backup tools copy the key and the keychain together. A restored Mac needs omo login again. An OmO desktop app older than this protocol keeps using the login keychain, so update it too.
After a storage failure, the command reports that failure without another store
read. Native operations are still awaited: there is no additional command
deadline or forced process termination. A native timeout can therefore still
take approximately 25 seconds, but the error handler does not repeat that wait.
Non-interactive OpenCode session runner with completion enforcement
get-local-version
Show current installed version and check for updates
refresh-model-capabilities
Refresh cached model capabilities snapshot from models.dev
config migrate
Migrate legacy OMO configuration into the unified config at ~/.omo/omo.jsonc (--dry-run prints the transform/backup plan without writing, --json emits a machine-readable report)
worktree-sweep
Report (and optionally remove) stale linked git worktrees: SWEEP when merged into the default branch and clean, KEEP when locked/external/unmerged/dirty or when it is the worktree the sweep was started from, PRUNE when the path is gone. Dry-run by default; --apply removes with git worktree remove (never forced) and prunes; --older-than <days> adds an age fallback, --repo <path> is repeatable, --json emits machine-readable output
ulw-loop [args...]
Pass arguments through to the Codex LazyCodex ulw-loop CLI
update
lazycodex / lazycodex-ai bins only: refresh the installed Codex Light edition in place (--dry-run, --repo-root <path>)
Run in non-interactive mode (requires all needed options)
--platform <value>
Install target edition: opencode (Ultimate, default), codex (Light), or both
--claude <value>
Claude subscription: no, yes, max20 (Ultimate only)
--openai <value>
OpenAI/ChatGPT subscription: no, yes (Ultimate only)
--gemini <value>
Gemini integration: no, yes (Ultimate only)
--copilot <value>
GitHub Copilot subscription: no, yes (Ultimate only)
--opencode-zen <value>
OpenCode Zen access: no, yes (Ultimate only)
--zai-coding-plan <value>
Z.ai Coding Plan subscription: no, yes (Ultimate only)
--kimi-for-coding <value>
Kimi For Coding subscription: no, yes (Ultimate only)
--opencode-go <value>
OpenCode Go subscription: no, yes (Ultimate only)
--bailian-coding-plan <value>
Bailian Coding Plan subscription: no, yes (Ultimate only)
--minimax-cn-coding-plan <value>
MiniMax Coding Plan through minimaxi.com: no, yes (Ultimate only)
--minimax-coding-plan <value>
MiniMax Coding Plan through minimax.io: no, yes (Ultimate only)
--vercel-ai-gateway <value>
Vercel AI Gateway: no, yes (Ultimate only)
--codex-autonomous
Default for Light/Both installs: writes approval_policy = "never" and sandbox_mode = "danger-full-access" (and removes a legacy top-level network_access key) unless --no-codex-autonomous is passed; passing this flag explicitly is redundant
--no-codex-autonomous
Leave existing Codex permission settings unchanged when installing Light or Both
--skip-auth
Skip authentication setup hints
When using either the lazycodex or lazycodex-ai bin alias, install defaults to --platform=codex. These are npm bin aliases. The separate LazyCodex repository identity does not change the Codex config, which uses marketplace sisyphuslabs and plugin omo, enabled as omo@sisyphuslabs, with the marketplace source set to the local built cache under ~/.codex/plugins/cache/sisyphuslabs.
Subscription flags (--claude, --openai, etc.) only apply when --platform is opencode or both. They are rejected under --platform=codex because the Light edition does not write OpenCode model config. --codex-autonomous and --no-codex-autonomous only affect installs where the selected platform includes Codex.
Telemetry and opt-out
Anonymous telemetry uses PostHog with a SHA-256 hash of a random install id created on the computer. Two streams exist:
omo_daily_active: fired by the main plugin when it loads (reason: "plugin_loaded") and by oh-my-openagent run (reason: "run_started").
omo_codex_daily_active: fired by omo-agent-toolkit install --platform=codex or --platform=both (reason: "install_completed") and by the Codex plugin's SessionStart hook on every Codex session (reason: "session_start"). Both sources share the same UTC-day deduplication, so daily/weekly/monthly active counts reflect real Codex usage, not just install events.
Opt-out env vars:
Global opt-out for oh-my-openagent and omo-codex: OMO_SEND_ANONYMOUS_TELEMETRY=0 or OMO_DISABLE_POSTHOG=1
Codex-only opt-out for omo_codex_daily_active: OMO_CODEX_SEND_ANONYMOUS_TELEMETRY=0 or OMO_CODEX_DISABLE_POSTHOG=1
The OpenCode plugin can also opt out through oh-my-openagent config with "telemetry": false.
For the full Codex Light event inventory, collected properties, local state path, and lazycodex marketplace copy path, see Codex Light telemetry.
uninstall / cleanup
Removes managed Codex Light state. cleanup is the underlying command name; uninstall is the user-facing alias. Both invoke the same Codex Light cleanup.
Required when using the shared omo-agent-toolkit CLI unless OMO_INVOCATION_NAME is lazycodex or lazycodex-ai
--codex-home <path>
Codex home to clean, defaulting to CODEX_HOME or ~/.codex
--project <path>
Project directory to inspect for project-local legacy Codex artifacts
--json
Output structured JSON result
The command removes the managed plugin cache and marketplace snapshot, strips managed marketplace, plugin, hook-state, and agent blocks for sisyphuslabs and the legacy lazycodex / code-yeongyu-codex-plugins marketplaces from ~/.codex/config.toml after writing a backup, and removes managed agent TOML files from ~/.codex/agents/ (including orphaned files whose install manifest is already gone), managed bins, and managed runtime trees. Project-owned .codex artifacts are reported, not deleted.
doctor
Diagnoses your environment and configuration. OpenCode checks are grouped as System, Configuration, TUI Plugin, Deprecated Reasoning Keys, Tools, Models, Telemetry, and Team Mode. The Codex target runs a separate set of Codex checks.
Usage
bunx oh-my-openagent doctor
Options
Option
Description
--status
Show compact system dashboard
--verbose
Show detailed diagnostic information
--json
Output results in JSON format
`--platform <opencode
codex>`
Notes
The current minimum OpenCode version check is >= 1.4.0.
The doctor command warns when legacy plugin registration (oh-my-opencode) is still present in opencode.json.
OmO Native's doctor subcommand also reports computer use (experimental) without opening a desktop session or requesting OS permissions. It prints:
whether the effective Native config enables computer use and whether the host is supported;
the selected engine path and its version, protocol, and ABI, or the engine-location diagnostic and every path tried;
the backend plus capture, input, and accessibility permission state;
display count and screen-lock state;
the stop path, reported as not armed until computer use starts input, because the engine arms the stop chord only then.
The probe sends only the read-only engine.hello and capabilities requests and is bounded by the doctor's timeout.
omo doctor --models [--json] (OmO Native) prints every task category and agent as a spawn resolves it right now: the model it runs first, the runtime retry chain in order, and every declared rung with its source (built-in, omo.json, category:<name>) and state (runs first, fallback N, excluded by exclude_models, no login, not reached), then the main session's model_profile lane. It uses the spawn resolvers and the engine's offline model list (credentials are not probed). It exits 1 when the resolver runtime cannot load and 2 on an option other than --json. See exclude_models to keep a model out of every chain.
run
Runs a non-interactive session and exits only when all of these conditions are true:
the main session is idle
all todos are completed or cancelled
all descendant sessions are idle
no continuation hooks (boulder, ralph-loop, or todo-hook markers) are active
Usage
bunx oh-my-openagent run <message>
Options
Option
Description
-a, --agent <name>
Agent to use (default resolution chain applies)
-m, --model <provider/model>
Model override (example: anthropic/claude-sonnet-4)
-d, --directory <path>
Working directory
-p, --port <port>
Server port (attaches if already in use)
--attach <url>
Attach to an existing OpenCode server URL
--on-complete <command>
Run shell command after completion
--json
Output structured JSON result
--no-timestamp
Disable timestamp prefix in output
--verbose
Show full event stream (default: messages/tools only)
--session-id <id>
Resume an existing session
Agent Resolution Order
--agent
OPENCODE_DEFAULT_AGENT
default_run_agent in plugin config
--agent accepts config keys (sisyphus, prometheus) and remapped display names (Sisyphus - ultraworker). Builtin categories (quick, deep, ultrabrain, unspecified-high, and the others used by task(category=...)) are not CLI agents; oh-my-openagent run --agent quick errors with the runnable names.
opencode run --agent does exact-key lookup in the host. Prefer oh-my-openagent run --agent, or pass the remapped display name. Unknown host --agent values should fail closed (see the OpenCode CLI).
get-local-version
Shows local plugin version state and update status.
Usage
bunx oh-my-openagent get-local-version
Options
Option
Description
-d, --directory <path>
Working directory used for plugin/config detection
--json
Output JSON for scripting
refresh-model-capabilities
Refreshes the cached model capabilities snapshot from models.dev.
Complete reference for Oh My OpenCode plugin configuration. Every omo harness reads one unified config file, omo.jsonc; the legacy oh-my-openagent.json[c] / oh-my-opencode.json[c] files are imported once by the migration engine and are no longer read at runtime.
One unified file configures every omo harness: the OpenCode plugin, Senpi (task, config-watch), and Codex. The legacy oh-my-openagent.json[c] / oh-my-opencode.json[c] files and ~/.omo/config.jsonc are read by nothing but the migration engine (see Migration).
User layer (lowest precedence): ~/.omo/omo.jsonc on every platform (omo.json is accepted as a fallback basename).
Project layers: .omo/omo.jsonc (then .omo/omo.json) in every directory from the working directory up to $HOME. Farther ancestors merge first, so the nearest project file wins and beats the user layer. $HOME itself is skipped by the walk because ~/.omo is already the user layer. If the working directory is outside $HOME, the walk continues to the filesystem root.
Resolution Order
Within the merged document each harness resolves its own view VSCode-style, later layers winning:
Shared base keys
The [harness] block: [opencode], [native], or [codex] ([senpi] is the accepted legacy spelling of [native])
profiles.<name>
profiles.<name>.[harness]
Defaults apply once at the end. The option keys documented in this reference are the contents of the [opencode] block. agents and categories can also live at the shared base level so every harness sees them, using the shared field set documented in the omo.json reference; OpenCode-specific agent options belong in [opencode].
Profiles
No default profiles ship: a profile exists only when you write one under profiles.<name> or the migration derives one from a legacy profile directory. Activation, highest priority first:
OMO_PROFILE
OCX_PROFILE (set by ocx oc -p <name>)
An OPENCODE_CONFIG_DIR whose path ends in profiles/<name>
None
Activating a profile that does not exist produces a diagnostic and falls back to the base configuration.
Model Catalog
A top-level models record maps a short name to the canonical shape { model, reasoning? }. Deprecated variant and reasoningEffort inputs are accepted for compatibility and normalized to reasoning. When an agent or category model string matches a catalog key, it resolves to the entry's model id and fills any unset reasoning from the entry; tuning written at the use site always wins. [harness] blocks can override individual catalog entries for one harness.
Model Profiles
Two more shared base keys, read by the Senpi harness, pick the main session model by lane instead of by model id. They live at the top level, inside [native], or inside a profiles.<name> layer, like any other base key.
Named ordered model chains. A name matching a builtin (daily-normal, daily-heavy, geeky-normal, geeky-heavy) replaces it wholesale; any other name adds one. Entries use the same string or object shape as a category chain and may reference models.<catalog> entries.
model_profile
string
Which chain starts the session: a lane id such as daily-normal, or a literal provider/model that pins one exact model. Unset applies Daily · Normal (or the first lane that resolves) on a fresh session; the retired recommended id does the same.
Don't confuse these with profiles.<name> above: that key swaps configuration layers via OMO_PROFILE, while model_profile chooses a model within the loaded configuration. Builtin chains, session-start behavior, and override rules are in the omo.json reference.
Security Invariants
mcp_env_allowlist and browser_automation_engine.playwright_mcp_args are honored only from the user layer, including the user layer's own active profile block. Project layers cannot extend them.
JSONC supports // line comments, /* block comments */, and trailing commas.
Run bunx oh-my-openagent install for guided setup. Run opencode models to list available models.
Migration
The first time a current harness starts (and again on install or via the CLI), a lock-and-journal migration engine imports the legacy files into the unified file:
Sources: oh-my-openagent.json[c] / oh-my-opencode.json[c] in the OpenCode user config directory, in each of its profiles/<name>/ directories, and in walked project .opencode/ directories, plus ~/.omo/config.jsonc.
Targets: the legacy user file imports into ~/.omo/omo.jsonc under [opencode]; each legacy profile becomes profiles.<name>."[opencode]" holding only the keys that differ from the user file; a project file imports into that project's .omo/omo.jsonc. ~/.omo/config.jsonc imports its [opencode] / [codex] blocks, and a legacy [omo] block maps to [native].
OpenCode legacy files import only model/provider controls (disabled_providers, model_fallback, models, and omo_agent renamed to sisyphus_agent); agent and category registries, agent disable lists, hooks, and unrelated plugin settings are not imported.
OmO Native's first start then reports, once, every OpenCode edition agent or category model choice (from the legacy files, their migration backups, or the [opencode] block) that Native does not use, each with the "[native]": { ... } member that would set it (metis as plan-consultant, momus as plan-reviewer, OpenCode provider ids as omo's) and a pointer to omo setup, which carries them over with your consent. It writes only the 2026-09-opencode-routing-notice marker; omo doctor repeats the line while the gap exists.
Conflict policy: no-clobber. A value already present in the target wins, and every skipped legacy value is reported as a diagnostic instead of overwriting. Prior legacy migration history is preserved under the target's legacy_migrations key.
Markers: each applied migration records its id in the target's _migrations array, so re-runs are no-ops. 2026-07-opencode-config-unification covers the oh-my-* files; 2026-07-codex-config-jsonc covers ~/.omo/config.jsonc; 2026-08-reasoning-unification rewrites persisted model and reasoning fields. Codex startup runs only the second group; OpenCode plugin startup, Senpi startup, install, and the CLI run both groups, so whichever side runs first applies each group exactly once.
Backups: sources move to ~/.omo/migration-backup-<UTC timestamp>-opencode-config/ (project sources to <project>/.omo/migration-backup-<UTC timestamp>/). An interrupted run resumes from its journal on the next start.
Manual run: oh-my-openagent config migrate. --dry-run prints the transform, backup move plan, and conflicts without writing; --json prints machine-readable output.
Diagnostics surface once per startup: an OpenCode toast, a Senpi session_start notification, or Codex loader warnings.
Quick Start Example
Here's a practical starting ~/.omo/omo.jsonc. OpenCode plugin settings live inside the [opencode] block:
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/omo.schema.json",
"[opencode]": {
"agents": {
// Research agents: cheap fast models are fine
"librarian": { "model": "google/gemini-3.6-flash" },
"explore": { "model": "github-copilot/grok-code-fast-1" },
// Plan-gated reviewers: keep the builtin prompt, pin the model
"plan-consultant": { "model": "anthropic/claude-opus-5-5", "reasoning": "max" },
"plan-reviewer": { "model": "openai/gpt-6.2-astra", "reasoning": "high" },
},
"categories": {
// quick - Kimi high-speed by default
"quick": { "model": "openai/gpt-6-luna-fast", "reasoning": "low" },
// unspecified-low - moderate tasks
"unspecified-low": { "model": "anthropic/claude-sonnet-5-5", "reasoning": "medium" },
// unspecified-high - complex work
"unspecified-high": { "model": "anthropic/claude-opus-5-5", "reasoning": "medium" },
// writing - docs/prose
"writing": { "model": "anthropic/claude-opus-5-5", "reasoning": "low" },
// visual-engineering - Argon low, then Fable 5.2 max, Fable 5.1 max, Opus 5.5 max and Kimi K3.1 Pro max
"visual-engineering": {
"model": "anthropic/claude-opus-5-5",
"reasoning": "max",
},
// Custom category for git operations
"git": {
"model": "opencode/gpt-5-nano",
"description": "All git operations",
"prompt_append": "Focus on atomic commits, clear messages, and safe operations.",
},
},
// Limit expensive providers; let cheap ones run freely
"background_task": {
"providerConcurrency": {
"anthropic": 3,
"openai": 3,
"opencode": 10,
"zai-coding-plan": 10,
},
"modelConcurrency": {
"anthropic/claude-opus-5-5": 2,
"opencode/gpt-5-nano": 20,
},
},
"experimental": { "aggressive_truncation": true, "task_system": true },
"tmux": { "enabled": false },
},
}
Core Concepts
Agents
Override built-in agent settings. The main agent runs in your session on your session model and has no agents entry. Available builtin agents: explore, librarian, plan-consultant, plan-reviewer. Any other key under agents defines a user-defined agent.
Removed: the retired keys agents.metis and agents.momus no longer resolve to plan-consultant and plan-reviewer. Their one-release alias window closed after 5.0.0-beta.51, so such a key now defines an ordinary custom agent under that name. Rename it to the canonical id.
This table is the [opencode].agents surface only. Shared-base agents use the core field set (description, prompt, model, models, reasoning, tools, execution_mode, background, max_depth, allowed_subagents, disallowed_tools, max_turns, temperature, disable, and deprecated variant / reasoningEffort) documented in the omo.json reference; OpenCode-only fields are rejected there.
Option
Type
Description
model
string
Model override (provider/model)
models
array
Ordered model chain; entries are strings or per-model objects
models_distribution
sequential | round_robin
Starting model policy for new children; defaults to sequential
fallback_models
string|array
Deprecated compatibility fallback chain
reasoning
string
Canonical reasoning level or harness-native preset token
temperature
number
Sampling temperature
top_p
number
Top-p sampling
prompt
string
Replace system prompt. Supports file:// URIs
prompt_append
string
Append to system prompt. Supports file:// URIs
tools
record<string, boolean>
Per-tool enable/disable map
disable
boolean
Disable this agent
description
string
Agent description
mode
subagent | primary | all
Agent mode
color
string
Six-digit hex UI color (#RRGGBB)
displayName
string
Localized display name shown in the agent selector
permission
object
Per-tool permissions (see below)
category
string
Inherit model from category
skills
string[]
Skill names to inject into the agent prompt
variant
string
Deprecated compatibility input; use reasoning
maxTokens
number
Max response tokens
thinking
object
Migrated legacy Anthropic form; use reasoning plus provider options
reasoningEffort
string
Deprecated compatibility input; use reasoning
textVerbosity
string
Text verbosity: low, medium, high
providerOptions
object
Provider-specific options
ultrawork
object
Per-message ultrawork model and reasoning override
Object entries support canonical model, reasoning, temperature, top_p, and maxTokens. Deprecated variant, reasoningEffort, and thinking remain accepted as compatibility inputs and are normalized to reasoning and provider options.
File URIs for Prompts
Both prompt and prompt_append support loading content from files via file:// URIs. Category-level prompt_append supports the same URI forms.
Paths can be absolute (file:///abs/path), relative to project root (file://./rel/path), or home-relative (file://~/home/path). Home-relative files are limited to ~/.config/opencode, ~/.config/oh-my-openagent, ~/.omo, and ~/.opencode. If a file URI cannot be decoded, resolved, accepted, or read, OmO inserts a warning placeholder into the prompt instead of failing hard.
Categories
Domain-specific model delegation used by the task() tool. When the main agent delegates work, it picks a category, not a model name.
Built-in Categories
The OpenCode edition and Senpi (OmO Native) ship the same categories, and Senpi adds architect. The default model id differs where the two harnesses name the provider differently. The chain behind each default is under Category Provider Chains.
Category
OpenCode default
Senpi default
Description
visual-engineering
google/gemini-4-argon (low)
google/gemini-4-argon (low)
Visual design, UI/UX, frontend, styling, animation, design systems. Falls back to claude-fable-5-2 (max) first when Argon is not connected.
architect
-
anthropic/claude-fable-5-2 (xhigh)
Senpi only. Big-picture system design and broad debugging across many sources. Falls back only to claude-fable-5-1 (xhigh); unavailable without one of the two.
ultrabrain
openai/gpt-6.2-astra (max)
chatgpt-subscription/gpt-6.2-astra (max)
Deep logical reasoning, complex architecture. No fallback model: unavailable without gpt-6.2-astra.
deep-low
openai/gpt-6.2-sol (medium)
chatgpt-subscription/gpt-6.2-sol (medium)
Default deep lane: 3D graphics, computer use, browser use, backend, logic, algorithms, CAPTCHA solving, multimodal, and complex research whose decisions the child can settle from evidence. No fallback model, Fast tier included: unavailable without gpt-6.2-sol.
deep-high
openai/gpt-6.2-astra (high)
chatgpt-subscription/gpt-6.2-astra (high)
Escalation deep lane for a goal whose central decision cannot be settled from evidence. No fallback model: unavailable without gpt-6.2-astra.
artistry
anthropic/claude-fable-5-2 (max)
anthropic/claude-fable-5-2 (max)
Creative/unconventional approaches
quick
openai/gpt-6-luna-fast (low)
chatgpt-subscription/gpt-6-luna-fast (low)
Trivial tasks, typo fixes, single-file changes
unspecified-low
anthropic/claude-sonnet-5-5 (medium)
anthropic/claude-sonnet-5-5 (medium)
General tasks, low effort
unspecified-high
anthropic/claude-opus-5-5 (medium)
anthropic/claude-opus-5-5 (medium)
General tasks, high effort
writing
google/gemini-4-argon (low)
google/gemini-4-argon (low)
Documentation, prose, technical writing. Runs only on its own rungs (gemini-4-argon, claude-opus-5-5, claude-opus-4-6): it is unavailable when none of them is connected, it never falls back to another model, and the installer leaves it out.
Note: Built-in category defaults are available automatically. User-defined category config merges over the built-in defaults or adds custom categories.
Category Options
Option
Type
Default
Description
model
string
-
Model override
models
array
-
Ordered model chain; entries are strings or per-model objects
models_distribution
sequential | round_robin
sequential
Rotate the starting entry per new child with round_robin
fallback_models
string|array
-
Deprecated compatibility fallback chain
reasoning
string
-
Canonical reasoning level or harness-native preset token
temperature
number
-
Sampling temperature
top_p
number
-
Top-p sampling
max_tokens
number
-
Canonical max response tokens
provider_options
object
-
Provider-specific request options
maxTokens
number
-
Deprecated compatibility input; use max_tokens
thinking
object
-
Migrated legacy form; use reasoning plus provider_options
reasoningEffort
string
-
Deprecated compatibility input; use reasoning
textVerbosity
string
-
Text verbosity
tools
object
-
Tool usage control (disable with { "tool_name": false })
prompt_append
string
-
Append to system prompt
max_prompt_tokens
number
-
Maximum prompt tokens for delegated tasks
variant
string
-
Deprecated compatibility input; use reasoning
description
string
-
Shown in task() tool prompt
is_unstable_agent
boolean
false
Force background mode + monitoring. Auto-enabled when the resolved model id contains "gemini" or "minimax".
disable
boolean
false
Exclude this category from task delegation
warn_unavailable
boolean
-
Present on the OpenCode schema. The dead-chain notice it suppresses is a Senpi/core task behavior.
UI-selected model - model chosen in the OpenCode UI, for primary agents
User override - model set in config → used exactly as-is. Even on cold cache, explicit user configuration takes precedence over hardcoded fallback chains
Category default - model inherited from the assigned category config
User fallback_models - user-configured fallback list is tried before built-in fallback chains
Provider fallback chain - built-in provider/model chain from OmO source
System default - OpenCode's configured default model
The same resolved chain drives spawn-time selection and runtime retry fallback, so a recovered task stays on the same category chain.
In the Senpi harness, model_profile applies to OmO Desktop and headless sessions; the interactive TUI keeps the model it started with. An explicit --model, scoped model or resumed session is preserved. A fresh session otherwise uses model_profile as a literal pin or a named chain; unset config starts on Daily · Normal, or on the first of Daily · Heavy, Obsessive · Normal and Obsessive · Heavy that resolves; the retired recommended id starts the same default with one log line. If no candidate is available, a notice explains the unavailable profile and the current model stays. categories.* and agents.* overrides do not select the main session model, and model_profile does not select delegated children. See Model Profiles.
In the OpenCode plugin, every merged category appears in availableCategories; hiding categories with a dead fallback chain is not implemented here. That dead-chain filtering, the model_unavailable spawn failure, and the task.warnings.unavailable_categories flag belong to the Senpi/core task system, documented in the omo.json reference.
Model Settings Compatibility
Model settings are compatibility-normalized against model capabilities instead of failing hard.
Normalized fields:
reasoning - downgraded to the closest supported value, or removed if unsupported
temperature - removed if unsupported by the model metadata
top_p - removed if unsupported by the model metadata
maxTokens - capped to the model's reported max output limit
Provider-specific thinking options - removed if the target model does not support thinking
Deprecated reasoningEffort and variant inputs are first migrated to reasoning.
Examples:
GPT-4.1 does not support reasoning, so reasoning is removed
o-series models support off through high, so xhigh is downgraded to high
GPT-5 supports off, minimal, low, medium, high, and xhigh
Capability data comes from provider runtime metadata first. OmO also ships bundled models.dev-backed capability data, supports a refreshable local models.dev cache, and falls back to heuristic family detection plus alias rules when exact metadata is unavailable. bunx oh-my-openagent doctor surfaces capability diagnostics and warns when a configured model relies on compatibility fallback.
Agent Provider Chains
The main agent has no chain of its own: it runs on your session model (Claude Opus 5.5 or GPT 5.6 Sol recommended). The four curated agents resolve through these chains. This is the Senpi (OmO Native) table (packages/senpi-task/src/agents/builtin/fallback-chains.ts). The OpenCode edition mirrors it without anthropic-subscription, and with openai ahead of chatgpt-subscription.
Each harness ships its own hardcoded chain per category. A rung reads providers/model (level). Rungs are tried left to right, and inside a rung the providers are tried in the order listed. Neither harness lists a vercel or quotio-openai rung; Vercel AI Gateway stays a manual provider choice.
The Senpi chains differ from the OpenCode ones in these ways:
Every Claude rung starts with anthropic-subscription, the Claude subscription lane, so a subscription login is used before a metered provider.
Every GPT rung lists chatgpt-subscription before openai. OpenCode lists openai first, its single OpenAI provider id.
Kimi rungs also list kimi-coding, and there is no trailing opencode/kimi-k3 rung.
GLM rungs use zai and zai-coding-cn where OpenCode uses zai-coding-plan.
Five rungs run at a lower level: minimax-m3 and minimax-m2.7 carry none, and mimo-v2.6-pro, qwen3.8-max-preview and mimo-v2.5-pro stop at high.
architect exists only here.
Run bunx oh-my-openagent doctor --verbose to see effective model resolution for your config.
Task System
Background Tasks
Control parallel agent execution and concurrency limits. background_task (camelCase) is the OpenCode plugin key; the shared/Senpi/Codex equivalent is the core task object (snake_case: default_concurrency, provider_concurrency, model_concurrency, max_depth, ttl_ms). They are separate objects, not aliases; background_task at the shared base fails core validation. Setting a concurrency value to 0 means unlimited (no cap) in both places: background_task (defaultConcurrency, providerConcurrency, modelConcurrency) and the core task object.
The OpenCode edition's orchestration key (sisyphus_agent) and its file-based task storage options are documented on the legacy page linked from Agents.
Features
Skills
Skills bring domain-specific expertise and embedded MCPs.
Selected built-in skills: playwright, playwright-cli, dev-browser, git, frontend, review-work, remove-ai-slops, init-deep, debugging, security-research, security-review, visual-qa, team-mode. The team-mode skill is only rendered when team_mode.enabled is true.
Disable built-in skills: { "disabled_skills": ["playwright"] }. disabled_skills is also a shared base key of ~/.omo/omo.jsonc, honored by every harness including OmO Native (for example { "disabled_skills": ["frontend", "visual-qa"] }); user and project layers are unioned. skills.enable below only filters config-sourced skills, not builtin, native, or bundled ones - use disabled_skills to hide those.
Persistent, per-agent memory stored as a git repository. Memory is on by default and learns
actively: it reflects on its own, nudges when durable facts go unsaved, recalls a stored memory
mid-session when it would change the next step, extracts facts in the background, consolidates
during a dream pass, and keeps records about people.
Configured under memory in omo.json, with per-agent overrides under memory.agents.<name>.
How agent: "auto" picks the identity: "path" or "git" (see below); root only, not per agent
compile_warn_tokens
30000
Warn when the compiled memory block exceeds this many tokens
agents
{}
Per-agent overrides; any block below may be overridden field by field
Sharing memory across git worktrees
With agent: "auto", the memory identity comes from the session's directory, so by default every
git worktree of a repository gets its own, empty memory. Set auto_identity: "git" to resolve a
linked worktree onto its main checkout instead: every worktree of one clone then reads and writes
the main checkout's memory, and a subdirectory maps onto the same subdirectory of the main checkout.
The main checkout keeps the identity it has today, so turning this on loses nothing. Worktrees of a
bare repository share one memory named after the repository. Directories outside git, submodules
(also inside a worktree), and repositories whose main working tree git does not record (a clone made
with --separate-git-dir and no core.worktree) keep the path-derived identity, and an explicit
agent name always wins. auto_identity is set on the memory block itself; the per-agent
agents overrides do not accept it.
Put the setting in the user config (~/.omo/omo.jsonc). Tools such as Orca create worktrees outside
the main checkout, where its project .omo/omo.jsonc is not found. Sessions that are already bound
keep their current memory; new sessions pick up the shared one. Changing auto_identity (on or
off) rebinds the identity for new worktree sessions, and with it which memory sync stream they join:
a worktree session with "git" reads and writes the main checkout's memory, and also syncs it
when memory.sync.enabled is on and the device is signed in. A worktree opened through a symlinked
path still maps to its main checkout. Git records the real path of the main checkout, though, so a
main checkout opened through a symlinked path resolves differently from its worktrees; use an
explicit agent name in that case.
Memory from projects the session touches
After a successful read, edit or write under a child project with existing memory, the tool
result lists up to 30 of that project's note paths and descriptions, not their bodies. The nudge
appears once per project and is re-armed after accepted compaction. A non-git workspace can link
projects in through directory symlinks; links committed inside a git repository do not extend its
scope. Links to an ancestor, home or a directory containing the memory root never widen scope.
Linked worktrees use the session's bound auto_identity mode and absolute memory root.
Kibitzer considers up to three recently touched projects. It ranks each project's committed notes
apart from the session's own corpus and reserves up to half the available seats, rounded up, for
projects in touch order. Unused seats go to the other side. Each repository uses the same persisted
search-term cache as the session's own memory; an unreadable or unwritable cache is logged and recall
continues. Project note keys are @project/<identity>/<path> so ledgers cannot confuse two projects'
notes with the same name; delivered hints name the readable file path.
Option
Default
Description
project_scope.nudge
true
List a touched project's note paths and descriptions
project_scope.recall
true
Include touched projects in Kibitzer recall and its memory tool
These switches belong to the root memory block and its harness/profile layers, not agents
overrides. Turning both off revokes grants on the next file touch. Project access is read-only:
enumeration, writes, the repository root itself, git metadata and the reserved system/ tree stay
denied. The exclusions are case-insensitive on every platform; symlinks cannot escape a granted
repository, and grants are revoked when the session shuts down.
Memory file list in the prompt
Every turn the compiled memory block ends with <external_projection>, one line per directory
naming the memory files outside system/, most recently committed first (ties by name). Names drop
.md (other files stay quoted and exact), and markdown names sharing a -YYYYMMDD suffix are
grouped as {a, b}-YYYYMMDD. Names that carry no hint fold into one entry: runs of at least three
names that differ only by a date, month chunk, clock time or part (2026-06-p1 … 2026-10-p11 (91 files)), generated-id names (<id> (N files)), sibling directories named by generated ids
(jobs/<id>/ (72 dirs)), and sibling directories holding the same file names
(people/{ann, bob, cy}/). A legend line at the top says how an entry maps back to its file.
Names that do not fit a limit are counted as (+N more; read $MEMORY_DIR/<dir>/ to list), and
every directory keeps its line.
Option
Default
Description
projection.max_entries_per_directory
0
Entries listed per directory, newest first; 0 lists every entry
projection.max_bytes
40960
Byte budget for the whole list; the largest directory gives up entries first
0 disables a limit; both at 0 list every entry in name order. A budget smaller
than one line per directory cannot be met: the list then shows only the directory lines with
their counts, and /doctor reports the overflow. Both keys can be set per harness, per profile
and per agent under agents.<name>.projection. /doctor prints a projection line with the
names shown and omitted and the byte size. The line is a warning when names are omitted or the
budget is overflowed. /doctor --json carries the same line in checks.
Secret screening
Memory never stores or shows secret-like text. One scanner covers seven pattern classes: AWS
access keys, credential assignments (token=, api_key:, password= and similar), HTTP
Authorization: Bearer headers, OpenAI-style sk- keys, vendor tokens (GitHub, GitLab and Slack
prefixes), PEM private-key blocks, and credential keys split by whitespace. Before matching it
strips zero-width and other invisible format characters and folds non-breaking spaces, so an
obfuscated credential is still caught.
Refused: every commit path screens the staged file names and the full staged content. That
covers the memory tools, background facts extraction, and reflection and dream runs, whose whole
branch history is checked before it merges, including merge resolutions, renames and symlink
targets. A refused write leaves the repository as it was, and the error names the file and the
pattern class. A facts run refused this way parks its conversation after one failure; a refused
reflection or dream run counts as a non-retryable failure, so it reaches the park threshold
without the transient-failure backoff. The memory repository's pre-commit hook applies the same
classes to hand commits; it
cannot catch the invisible-character evasions, which the commit paths above do.
Masked: anything memory injects into a session, such as the compiled memory block, file
paths and names, recall hints and memory command output, has every match replaced with
***. That includes content committed before screening existed.
The matched text itself never appears in an error, a log line or a notice; only the pattern class
does.
Reflection
Reflection reviews the conversation and writes durable notes back into memory. An automatic run
that fails (step-count or compaction trigger) is not retried on the very next trigger: the
conversation backs off for 5 seconds, doubling per consecutive failure up to 5 minutes, and a
successful reflection clears the backoff. /reflect ignores it, so you can always force a run.
Option
Default
Description
reflection.enabled
true
Turn reflection off without disabling the rest of memory
reflection.trigger.step_count
25
Reflect every N steps; 0 disables the step trigger
reflection.trigger.on_compaction
true
Also reflect when the context is compacted
reflection.merge
"auto"
auto or integration merge strategy
reflection.category
"quick"
Task executor category for the reflection child
reflection.timeout_minutes
15
Hard timeout for a reflection run
reflection.max_concurrent_runs
1
Concurrent reflection/dream children across memory identities
reflection.sandbox
"auto"
auto, required, or off
Reflection and dream supervisors share FIFO slots under
<OMO_MEMORY_HOME>/runtime/locks (the default memory home is ~/.omo/memory).
Queued work waits without a timeout and is not dropped. Queue time does not
consume the execution budget: admission shifts both durable deadlines before
starting the child; model fallback attempts share the remaining execution budget.
Set max_concurrent_runs consistently in the shared user configuration for all
sessions using that memory home. This machine setting cannot be overridden for an
individual identity. Separate memory homes have separate queues.
Nudge
Reminds the agent to save when durable facts have gone unwritten.
Option
Default
Description
nudge.enabled
true
Emit the nudge line in the memory metadata block
nudge.every_user_turns
10
Nudge after this many user turns without a save
Recall (recollections)
The nudge above asks the agent to write. Recall is the other direction: a read-only judge called
Kibitzer runs as one resident sidecar session per main agent session. It is fed the session's
prompts, tool calls and tool results as bounded, redacted events, and hands back a hint only when
a stored memory would change the next step (a constraint being ignored, a past failure of the same
approach, an answer about to be re-derived). Silence is the default. Most turns produce nothing,
and a sidecar that finds nothing leaves no trace.
The sidecar only spends a model turn (a "wake") when a prompt or tool call surfaces a memory
candidate it has not judged yet in its lifetime; unchanged candidates never wake it. Wakes are
admitted through a lease held as lock files under the memory identity's runtime directory, shared
by every omo process on the machine that uses that memory, so at most max_concurrent_wakes run
at once - a session that finds every slot busy keeps buffering events and tries again at its next
hook. Inside a wake the sidecar has exactly five read-only tools:
read and grep over the workspace, session_entries over the parent transcript, memory with
search and read only, and nudge. It has no tool that writes memory or files, no shell, and
each wake is limited to tool_budget tool calls and 90 seconds. When its own context passes 60%
of sidecar_max_tokens it is replaced by a fresh sidecar seeded with what it already delivered
or rejected, so a long session never runs the judge out of context. A sidecar whose model fails
is disposed and recreated after an exponential backoff (1 s doubling to 5 min); nothing it had
buffered is lost. When no provider serving the recall.category chain is connected at all, that
is a configuration state, not a failure: the session gets one warning notice naming the category
and its unconnected providers - run /login <provider> to connect one, or pin
categories.<name>.model (or recall.category) in omo.json to a connected model - and judging
resumes by itself once a chain provider connects.
When it does fire, you see a recollection in the transcript identified as Kibitzer advice: a
single fixed Kibitzer title, then recalled memory: <hint>,
with the memory path beneath it. It's a transcript entry, not a
toast. The hint is one sentence of at most 200 characters, and the same memory surfaces at most
once per session. Treat it as a hint, not current state: the agent is told to verify before
relying on it, and expanding the entry shows that caveat.
Option
Default
Description
recall.enabled
true
Run the Kibitzer sidecar and surface recollections; false is the only off switch
recall.max_items
2
Most memories one wake may surface (1-5)
recall.category
quick
Model category the sidecar runs on (it never leaves that category's chain)
Per-event character caps, applied after secret redaction
recall.sidecar_max_tokens
48000
Sidecar context budget; the sidecar reseeds itself at 60% of it
recall.max_concurrent_wakes
2
Machine-wide cap on wakes running at once
recall.tool_budget
8
Read-only tool calls one wake may make before it is cut off
recall.query_expansion
false
Let the sidecar add synonyms, keywords in your other languages and related terms to its own memory searches; each counts for less than a query word
Like the other memory blocks, every recall option can be overridden per agent under
memory.agents.<name>.recall; event_caps merges field by field.
How candidate memories are picked before the sidecar judges them is not a setting. Recall picks
it from the terms it plans from the conversation and from your memory repository: English terms over
an English memory of fewer than 200 notes match every query word verbatim, as before. When a planned
term contains Korean, Chinese or Japanese text, or at least a tenth of the letters in your notes are,
candidates are scored by word rarity with the text split into two-character pieces, so 퍼블리시할
still finds a note about 퍼블리시. The planned terms include terms taken from tool arguments and
are not the raw message, so the switch goes both ways: a Korean word the planner does not keep leaves
a mostly English message on verbatim matching, and a Korean file path in a tool argument such as
docs/배포-절차.md switches the selection to word rarity. From 200 notes on, both are combined so a
memory either one finds can still reach the sidecar, which decides what is worth a nudge, and the
note that matches an English phrase from the conversation word for word keeps first place. Word
rarity treats common English endings as one word, so rollback still finds a note that says
rollbacks. Chinese characters and Japanese kanji also count one by one, so a question can find a
note it shares only single characters with.
With recall.query_expansion on, the sidecar's own memory search takes four optional fields next
to the query: synonyms, keywords (the topic in your other working languages), related, and one
note_line written like a line of the note it is looking for. The sidecar model writes them in the
same tool call; nothing is stored and no other model is called. A match on a synonym or keyword
scores 0.75 of the same match on a query word and a match on a related term or the note line 0.4
(a rare added term can still outscore a common query word), and a note that holds every word of the
query stays ahead of the notes only an added term found, in the order it has without them. Each list
is capped at 16 terms of 80 characters, and note_line at 300 characters; invalid added terms are
reported in the result while the query still runs as plain recall. It is off by default because the
sidecar spends extra output tokens on every search it widens. Off, the tool and its results are exactly
what they are without the option. The candidates picked from the conversation before the
sidecar wakes are not widened either way: no model runs at that step.
Facts
Background extraction of durable facts from settled turns.
Option
Default
Description
facts.enabled
true
Run background fact extraction
facts.debounce_settles
4
Settled turns to accumulate before extracting
Dream
A consolidation pass that reorganizes memory, audits skill usage, and updates people records.
It runs opportunistically when the session goes idle, and optionally at shutdown.
Option
Default
Description
dream.enabled
true
Enable the dream pass
dream.idle_minutes
30
Idle minutes before a dream may start; 0 disables the trigger
dream.min_hours_between
24
Minimum hours between two dream runs
dream.shutdown_launch
true
Allow a dream to be launched at shutdown
dream.auto_select_max
5
Conversations --auto may select (1-10)
dream.auto_select_max_chars
150000
Byte budget for auto-selected conversations
Runtime retention
Each memory identity keeps working files next to its repository under runtime/: reflection
run directories, completion records, per-session transcript journals, recall sidecars and ledgers.
The background maintenance pass (at most once every 12 hours per identity, the same pass that
packs the memory repository) removes what is past these windows. Anything a live session owns,
anything locked, reserved or not yet finished, and the newest and highest-numbered reflection run
are always kept. Identities no session on this machine binds any more are visited by the host sweep
(a bounded slice after a bound identity's own pass, at most once every 12 hours per machine) and by
omo doctor --fix; identities a session in the running process binds are left to their own pass.
Option
Default
Description
runtime.retention_days
7
Days before a merged or no-change reflection run, a fully reflected transcript, an idle recall sidecar and the legacy recall/runs and reflection-sessions stores are removed
runtime.discard_unreflected_journals
false
Allow deleting transcript input that reflection never folded into memory (never- and partly-reflected journals). When on, it runs only while the identity's newest reflection outcome is a success, it never reflected, or reflection is disabled. false keeps that input forever
runtime.abandoned_journal_days
14
With discard_unreflected_journals on: days before an idle never-reflected journal is removed, or the transcript of a partly reflected one. Suspended while the identity's newest reflection outcome is a failure
runtime.completions_days
30
Days before a delivered completion record (beyond the newest 50) and a recall ledger are removed
runtime.pass_budget_ms
60000
Time one pass may spend on one identity; an interrupted pass resumes where it stopped at the next session start
runtime.max_bytes
2147483648 (2 GiB)
Per-identity cap on everything under runtime/; 0 is unbounded. After retention the maintenance pass evicts oldest-first, inside the same pass_budget_ms, until the identity fits (the host sweep and omo doctor --fix run the same cap on identities no running session hosts, with the global max_bytes and its agent override, and keep every journal idle less than retention_days because they cannot see live sessions): folded reflection runs, fully reflected transcripts, sidecars idle 1 h, journals never reflected and idle 24 h and partly reflected transcripts idle 24 h (both only when discard_unreflected_journals is on and reflection is healthy for the identity), then failed runs past retention_days beyond the newest 10. Live sessions, in-flight runs and the run-id high water are never evicted. omo doctor and /doctor show the size and warn at 80 %
Every key accepts a per-agent override under agents.<id>.runtime. For identities a session does not host (omo doctor --fix and the background host sweep), only the global config counts: every window comes from the global runtime and that identity's own global agents.<id>.runtime override, and unreflected input is discarded there only when the global discard_unreflected_journals is on and that identity's own override does not turn it off. A transcript removed from a
journal keeps its reflection cursor in state.json; a resumed session rebuilds the transcript from
its own history and continues after the last reflected message.
Memory doctor
In Senpi, /doctor checks the working memory corpus and reports ok, warn, or
fail. Existing checks are repository, frontmatter, persona, soul-seed,
locks, worktrees, abandoned-runs, quarantined-runs, receipts,
reservation, reflection-health, tokens, projection (see "Memory file list
in the prompt"), and the conditional facts advisory. The skills lines report
the existing missing-name frontmatter repair.
receipts shows the newest outcome of each kind of memory maintenance, for
example dream merged 2d ago (run 1a2b3c4d); reflection failed 1h ago (validation_failed); facts never. It reads receipts.jsonl in the identity's
runtime directory, an append-only record outside the memory repository. Each
line is one lifecycle event: launched, recovered, merged, no_changes,
failed, abandoned and quarantined for reflection and dream runs, and
committed, no_facts, failed and parked for facts batches. A receipt is
written after the run's own terminal file, and a lost reflection or dream
receipt is rebuilt from that file at the next startup, so each run outcome is
recorded exactly once. A lost facts receipt is rebuilt from the batch's
final.json or abandoned.json with its event and sha only; a lost parked
receipt is not rebuilt. The check warns when the file ends in a partial line.
quarantined-runs lists unfinished runs that startup reconciliation could
neither finish nor release: an unreadable ledger, a run directory that never
got a prelaunch record, or a terminal claim that cannot be read. The first two
are quarantined only after the launcher is proven dead on this machine and, for
an unreadable ledger, its recorded supervisor and child too. An unreadable
terminal claim is quarantined where reconciliation would otherwise have
abandoned or failed the run. A finished run is never quarantined: when its
timestamps cannot be attributed, its terminal file stays its one recorded
outcome and the reservation is released. Quarantine writes quarantined.json
with the reason and keeps every file in the run directory. It saves the held reservation as
reservation.quarantined.json and releases it, so later runs proceed.
Inspect and remove a quarantined directory by hand; /doctor never deletes it.
When a run's supervisor dies after the model child already exited cleanly
before its deadline (recorded in the run's child-exit.json), with a complete
committed result, startup recovers that result: it is validated and merged like a normal
run, and the receipts show recovered before merged. recovered marks any run
that startup reconciliation settled after the process that ran it died, so it
precedes whatever outcome that run reaches, including failed. A launch interrupted
before its run started is recorded as abandoned with reason
launch_interrupted; its worktree is already removed, so abandoned-runs does
not list it.
OMO_MEMORY_KILL_POINT is a test-only seam: when it names a recovery point
(after-reserve, after-prelaunch, after-worktree, after-child-exit,
after-validate, after-merge, before-receipt), the process that reaches
it kills itself. Never set it outside a crash test.
The structural audit uses these stable codes:
Code
Meaning
link_dangling
A root-relative wiki link or file-relative Markdown link has no confined target.
frontmatter_invalid
A memory file violates the description frontmatter contract.
content_duplicate
Multiple Markdown files have identical bodies.
path_orphan
A Markdown file is outside the five memory homes and allowed root files.
file_unreadable
A Markdown file cannot be read or decoded as UTF-8.
system_pressure
The system estimate has reached 80% of compile_warn_tokens.
Frontmatter failures retain the existing frontmatter check; other findings
appear as audit:<code>. A clean corpus produces one audit success line.
Unreadable files and invalid frontmatter fail; other structural findings warn.
The audit is read-only. /doctor has no --fix flag and rejects unknown flags;
the existing skill-name repair is its only automatic repair.
/doctor --json returns { identity, level, checks: [{ name, level, detail }], audit: { version: 1, generatedAt, issues: [{ code, path, detail, related? }], counts: { <code>: <number> } }, skills: { scanned, repaired }, receipts: { dream, reflection, facts }, quarantinedRuns: [{ runId, reason, at, dir, evidence }] }. Each receipts entry is null or { event, at, trigger, runId | batchId, reason?, sha?, detail? }. audit and receipts are null when the
repository is missing. Every string value is secret-screened
before JSON serialization; numeric counts stay intact.
Dream runs receive the same redacted audit computed over their own worktree at
AUDIT_PATH. They repair moved links, consolidate duplicate bodies with a
pointer, and move orphaned files into the appropriate home. They leave evidence
and system/boundaries.md untouched and report fixed and unresolved codes.
Reflection runs do not receive this input.
People
Records about individuals, stored as cards with an observation ledger.
Option
Default
Description
people.enabled
true
Maintain people records
people.max_entries
40
Maximum observation entries per person (1-100)
people.max_entry_chars
200
Maximum characters per entry (50-500)
Agreements
Standing agreements with your person, kept in system/agreements.md with how many times each was broken. The facts extractor counts a repeated correction against the agreement it repeats; past the threshold the agreement is flagged and you see a notice. Manage the list with /agreements (list, add [--project] <text>, ack <id>, drop <id>). Agreements you add can only be changed by you.
Option
Default
Description
agreements.enabled
true
Count repeated corrections and announce flagged agreements
agreements.needs_human_threshold
3
Breaks at which an agreement is flagged as needing you (min 1)
agreements.max_items
64
Ledger size; at the cap the oldest never-reaffirmed agent item is evicted (8-256)
Soul
Option
Default
Description
soul.edit_notice
true
Surface a notice when the persona, identity, or boundaries block changes
Write Notice
Option
Default
Description
write_notice.enabled
true
Render memory writes as a notice row instead of the plain commit line
Sync and Search
Option
Default
Description
sync.enabled
true
End-to-end encrypted memory sync on this device (needs sign-in and sync on for the account)
sync.remote
-
Deprecated, ignored; the git mirror is set with /memfs
search.enabled
true
Enable memory search
In Senpi, run /sleeptime to see every resolved memory value, including which ones a per-agent
override changed. OpenCode has no /sleeptime command; inspect the memory block in omo.jsonc instead.
Hooks that exist only in the OpenCode edition are listed on the legacy page linked from Agents.
Guard hooks such as team-tool-gating, write-existing-file-guard, bash-file-read-guard, webfetch-redirect-guard, rules-injector, and tool-pair-validator protect safety, permissions, or provider protocol correctness. Disable them only for audited local debugging in a trusted environment.
Notes:
directory-agents-injector - auto-disabled on OpenCode 1.1.37+ (native AGENTS.md support)
startup-toast is a sub-feature of auto-update-checker. Disable just the toast by adding startup-toast to disabled_hooks.
Available commands: goal, refactor, ulw-execute, stop-continuation, remove-ai-slops, handoff, hyperplan. The disabled_commands option currently accepts only the schema enum, which does not include handoff.
Browser Automation
browser_automation_engine.provider accepts only the three values below.
Unsupported values fail schema validation and oh-my-opencode doctor reports
both the rejected value and the replacement: use the built-in browser path:
Bun.WebView / playwright-core scripts. Remove the obsolete provider override
from the active [opencode] block in omo.jsonc (including project/profile
layers); it is not silently mapped to another provider.
Provider
Interface
Installation
playwright (default)
MCP tools
Auto-installed via npx
dev-browser
Skill
Uses persistent dev-browser state
playwright-cli
Bash CLI
Uses the token-efficient @playwright/cli
Browser skills use two tiers from js eval: new Bun.WebView() on Bun >= 1.4
(macOS default; Linux/Windows require installed Chrome/Chromium/Edge), otherwise
write and run a playwright-core script against local Chrome (channel: "chrome").
Use the script tier for Chrome semantics, stealth, traces, and authenticated
profiles; launchPersistentContext receives a CLONED profile, never the live one.
Codex uses browser:control-in-app-browser for ordinary page control. These are
skill execution paths, not new values of browser_automation_engine.provider.
Tmux Integration
Run background subagents in separate tmux panes. Requires running inside tmux with opencode --port <port>.
include_co_authored_by (default true) adds Co-authored-by: sisyphus-dev-ai <[email protected]> to every commit the git skill writes, exactly once: it is passed with git -c trailer.ifexists=addIfDifferent commit --trailer, so amending or rewording a commit that already has it does not add a second copy, and after a squash the skill rewrites the joined message once. It needs git 2.32 or newer. Set it to false to keep the trailer out of your history. commit_footer (default false) opts in to an "Ultraworked with Sisyphus" footer in the commit body; a string replaces the builtin text. Either way, commits keep your own git author and committer.
This key configures the OpenCode plugin inside [opencode]. The Senpi harness reads the typed shared git_master section instead, documented in the omo.json reference.
git_env_prefix (default "GIT_MASTER=1") is the environment the skill tells the model to run git with: chained as .env({ ...process.env, GIT_MASTER: "1" }) onto Bun.$ in an eval cell, or as a prefix on a shell line. Set it to "" to disable.
force_enable (false) - force session-notification even if external notification plugins are detected.
OpenCode also has native TUI Attention notifications in tui.json. Use either native Attention or OmO session-notification for the same events, not both, or you may receive duplicate desktop notifications. OmO auto-disables session-notification when it detects known external notification plugins such as opencode-notifier, but native Attention is OpenCode TUI config rather than a plugin entry, so OmO cannot detect it through the plugin list. Keep session-notification enabled when you want OmO's richer idle notification body with session title and recent message context; otherwise prefer native Attention for basic TUI notification and sound events.
MCPs
Built-in MCPs (enabled by default): websearch (Exa AI), context7 (library docs), grep_app (GitHub code search), and lsp (local language-server tools). Structural search and rewrite is provided by the ast-grep skill instead of a built-in MCP.
LSP tools are served by the built-in lsp MCP server (see MCPs). The
previous top-level "lsp" block in the plugin config is no longer read; the
unified config migration strips it when importing a legacy file.
To configure custom language servers, create .opencode/lsp.json, .omo/lsp.json, or .omo/lsp-client.json at the project root. The MCP server launches with LSP_TOOLS_MCP_PROJECT_CONFIG set to a platform-delimiter-separated search list of those three paths and reads the first applicable server maps. The schema lives in the
packages/lsp-tools-mcp vendored package (upstream:
code-yeongyu/lsp-tools-mcp).
To disable the LSP MCP entirely:
{ "disabled_mcps": ["lsp"] }
Process hygiene is unconditional and has no config keys: a parent-liveness watchdog exits MCP server processes when their parent dies, a newly started lsp daemon reaps older-version daemons at startup, and a best-effort family sweep removes orphaned lsp processes at startup on every adapter (OpenCode plugin startup, the Codex SessionStart hook, and Senpi session start).
Advanced
Runtime Fallback
Auto-switches to backup models on API errors.
Simple configuration (enable/disable with defaults):
HTTP codes that trigger fallback. Also handles classified provider key errors.
max_fallback_attempts
3
Max fallback attempts per session (1–20)
cooldown_seconds
60
Seconds before retrying a failed model
timeout_seconds
30
Seconds before forcing next fallback. Set to 0 to disable timeout-based escalation and message.updated provider retry signal detection. Structured session.status retry events can still trigger fallback.
first_prompt_timeout_seconds
300
Seconds a subagent may produce no progress after its prompt before it is aborted and handed to the fallback model. Reasoning-heavy models can legitimately take minutes to start. Set to 0 to disable.
notify_on_fallback
true
Toast notification on model switch
restore_primary_after_cooldown
false
Return to the primary model after its cooldown expires
Speeding Up Fallback (Proxy APIs)
If you are using a proxy API provider, they may return different error codes (e.g., 401, 403, 404) for quota exhaustion or model unavailability. To make fallback trigger instantly without waiting for long timeouts:
Mixed arrays are allowed, so string entries and object entries can appear together in the same fallback chain.
Object-style fallback_models
Object entries use the following shape:
Field
Type
Description
model
string
Fallback model ID. Provider prefix is optional when OmO can inherit the current/default provider.
reasoning
string
Canonical reasoning override for this fallback entry.
temperature
number
Temperature applied if this fallback model becomes active.
top_p
number
Top-p applied if this fallback model becomes active.
maxTokens
number
Max response tokens applied if this fallback model becomes active.
variant
string
Deprecated compatibility input normalized to reasoning.
reasoningEffort
string
Deprecated compatibility input normalized to reasoning.
thinking
object
Legacy form normalized to reasoning plus provider_options.thinking in the unified shape.
Per-model settings are fallback-only. They are promoted only when that specific fallback model is actually selected, so they do not override your primary model settings when the primary model resolves successfully.
thinking uses the same shape as the normal agent/category option:
Field
Type
Description
type
string
enabled or disabled
budgetTokens
number
Optional Anthropic thinking budget
Object entries can also omit the provider prefix when OmO can infer it from the current/default provider. Canonical reasoning takes precedence over deprecated reasoningEffort, which takes precedence over deprecated variant; an inline model suffix is normalized separately.
Full examples
1. Simple string chain
Use strings when you only need an ordered fallback chain:
In this example the explicit "reasoning": "high" is canonical; deprecated fields are resolved with precedence reasoning > reasoningEffort > variant, while the inline (low) suffix is normalized separately.
This final example is a complete canonical shape reference for [opencode] fallback objects. Prefer unified reasoning for model tuning, and use provider-specific [opencode] fields only when the target model requires them.
Anthropic Prompt Cache Lifetime
OmO Native caches the prompt prefix on Anthropic models. The cached prefix lives for 5 minutes by default. If your turns are usually more than 5 minutes apart (long reviews, waiting on builds, stepping away), every turn after a gap rewrites the whole prefix into the cache, and cache-write tokens dominate the bill. Anthropic also offers a 1-hour cache lifetime, and OmO Native can use it.
Turn it on for every Anthropic model by setting the environment variable before you start omo:
export PI_CACHE_RETENTION=long
Or turn it on per model in ~/.omo/agent/models.json, one entry per model id. This applies to every session that reads that agent directory, regardless of the shell it was started from:
cacheRetention accepts "short" (5 minutes, the default), "long" (1 hour) and "none" (no caching). A per-model value wins over the environment variable. Put it under modelOverrides: a cacheRetention set directly on a built-in provider such as anthropic is rejected, because provider-level values only apply to the custom models you define under that provider's models.
The 1-hour lifetime is sent only to the Anthropic API itself (https://api.anthropic.com). A model served through a proxy or another base URL keeps the 5-minute lifetime even when cacheRetention is "long", because those endpoints don't all accept it.
Cost trade-off. On Anthropic, a 5-minute cache write costs 1.25x the base input price, a 1-hour cache write costs 2x, and a cache read costs 0.1x either way. The longer lifetime makes each write more expensive, so it pays off when your turns are often more than 5 minutes apart. If you usually answer within a few minutes, keep the default.
Keeping the cache warm instead.promptCache.keepAlive in ~/.omo/agent/settings.json sends a small warm-up request shortly before the cache would expire while the session is idle, so the next turn reads the cache instead of rewriting it. It is off by default and capped per session:
{
"promptCache": {
"keepAlive": {
"enabled": true,
"maxRequestsPerSession": 3, // warm-up requests per session (default 3)
"maxCostUsdPerSession": 0.05, // estimated spend cap per session (default 0.05)
"marginSeconds": 60 // send this many seconds before expiry (default 60)
}
}
}
The keep-alive also runs only for Anthropic Messages models on the Anthropic API base URL. Use it for short pauses. For gaps that are regularly longer than a few warm-ups would cover, the 1-hour lifetime is the simpler option.
Model Capabilities
OmO can refresh a local models.dev capability snapshot on startup. This cache is controlled by model_capabilities.
Master switch for model capability refresh behavior
auto_refresh_on_start
refresh on startup unless explicitly set to false
Refresh the local models.dev cache during startup checks
refresh_timeout_ms
5000
Timeout for the startup refresh attempt
source_url
https://models.dev/api.json
Override the models.dev source URL
Notes:
Startup refresh runs through the auto-update checker hook.
Manual refresh is available via bunx oh-my-openagent refresh-model-capabilities.
Provider runtime metadata still takes priority when OmO resolves capabilities for compatibility checks.
Hashline Edit
Replaces the built-in Edit tool with a hash-anchored version using LINE#ID references to prevent stale-line edits. Disabled by default.
{ "hashline_edit": true }
When enabled, OmO registers the hash-anchored edit tool and activates the hashline-read-enhancer companion hook, which annotates Read output with LINE#ID markers. Opt in by setting hashline_edit: true. Disable the companion hook via disabled_hooks if needed.
Disable auto-injected <omo-env> block (date/time/locale). Improves cache hit rate.
task_system
false
Enable the file-based task system
dynamic_context_pruning.enabled
false
Auto-prune old tool outputs to manage context window
dynamic_context_pruning.notification
detailed
Pruning notifications: off / minimal / detailed
turn_protection.turns
3
Recent turns protected from pruning (1–10)
strategies.deduplication
true
Remove duplicate tool calls
strategies.supersede_writes
true
Prune write inputs when file later read
strategies.supersede_writes.aggressive
false
Prune any write if ANY subsequent read exists
strategies.purge_errors.turns
5
Turns before pruning errored tool inputs
preemptive_compaction
-
Enable preemptive context compaction
plugin_load_timeout_ms
10000
Plugin component load timeout in milliseconds (min: 1000)
safe_hook_creation
true
Isolate hook creation failures at the runtime call site
model_fallback_title
false
Append fallback model information to the session title
max_tools
-
Maximum number of tools to register (min: 1)
disable_live_parent_wake_routing
false
Restore pre-migration in-process parent wake dispatch
Telemetry
Two distinct keys exist. The [opencode] block takes a boolean:
{
"[opencode]": { "telemetry": false }
}
The shared base and Senpi use an object:
{
"telemetry": { "enabled": false }
}
Option
Default
Description
[opencode].telemetry
true (enabled when omitted)
Enable anonymous daily-active telemetry for the OpenCode plugin. Set to false to disable it.
telemetry.enabled (shared base)
true
Object form used by the shared base and Senpi. A bare boolean at the shared base fails validation.
Reference
Environment Variables
Variable
Description
OPENCODE_CONFIG_DIR
Override OpenCode config directory (useful for profile isolation)
OPENGATEWAY_API_KEY
API key for the OpenGateway provider; without this or an opengateway auth entry, the plugin does not inject the provider
PI_CACHE_RETENTION
Set to long to use Anthropic's 1-hour prompt cache lifetime instead of 5 minutes. A per-model cacheRetention in models.json takes precedence. See Anthropic Prompt Cache Lifetime.
OMO_DEBUG
Set to 1 (any non-empty value) to print omo-senpi component info diagnostics on stderr. Unset, those lines are silent. warn and error still print. Component logs never go to stdout.
OMO_SEND_ANONYMOUS_TELEMETRY
Set to 0, false, or no to disable anonymous telemetry
OMO_DISABLE_POSTHOG
Legacy telemetry opt-out flag. Set to 1, true, or yes to disable PostHog
OMO_DISABLE_TELEMETRY
Set to 1, true, or yes to disable anonymous telemetry in every omo package
OMO_CODEX_DISABLE_POSTHOG
Set to 1, true, or yes to disable PostHog telemetry for the omo-codex adapter. Global OMO_DISABLE_POSTHOG also disables Codex telemetry.
OMO_CODEX_SEND_ANONYMOUS_TELEMETRY
Set to 0, false, no, or yes to disable anonymous telemetry for omo-codex
OMO_CODEX_GIT_BASH_PATH
Native Windows Codex installs only. Absolute path to Git Bash, for example C:\Program Files\Git\bin\bash.exe, when where bash cannot find it
LAZYCODEX_CONFIG_MIGRATION_DISABLED
Set to 1 to skip the Codex config migration that runs on every session start (including the multi_agent_v2 force-disable and managed reasoning-profile sync), leaving config.toml untouched
OMO_CODEX_CONFIG_MIGRATION_DISABLED
Alias of LAZYCODEX_CONFIG_MIGRATION_DISABLED
LSP_TOOLS_MCP_INSTALL_DECISIONS
Override the LSP install-decisions path. Codex defaults to $CODEX_HOME/lsp-install-decisions.json; OpenCode injects its OpenCode config-directory path.
POSTHOG_API_KEY
Optional override for the built-in PostHog project API key
POSTHOG_HOST
Override the PostHog ingestion host. Defaults to https://us.i.posthog.com
LSP Install Decisions
When an LSP tool hits a language server that is not installed, it asks once per server and persists the answer to a harness-specific file: Codex uses $CODEX_HOME/lsp-install-decisions.json, while OpenCode injects lsp-install-decisions.json under its OpenCode config directory. Override either path with LSP_TOOLS_MCP_INSTALL_DECISIONS. A declined entry collapses all future diagnostics for that server to a one-line note. To get prompted again - or to re-enable a server that an agent declined on your behalf - delete the file or the server's entry in it.
Codex Light Git Bash MCP
Native Windows Codex installs bundle a git_bash MCP server and write [plugins."omo@sisyphuslabs".mcp_servers.git_bash] enabled = true. Non-Windows installs keep the bundled manifest entry but write enabled = false, so the plugin detail can still show the server while policy prevents exposure.
The installer discovers Git Bash with OMO_CODEX_GIT_BASH_PATH, standard Git for Windows locations, and PATH. If discovery fails, it prints manual install guidance and stops without running winget or changing system dependencies. The Light plugin also emits a fixed reminder before the first Codex shell-like Bash hook call in a Windows session, and resets that reminder after PostCompact so the first post-compaction shell call recommends git_bash again.
Codex Companion Plugin Compatibility
LazyCodex can coexist with other Codex plugins, but if LazyCodex is your primary Codex workflow the codex@openai-codex companion plugin adds its own SessionStart and Stop lifecycle hooks. Those extra hooks can produce confusing Codex hook-failure banners even when the LazyCodex hooks are healthy.
lazycodex doctor warns when omo@sisyphuslabs is enabled and the companion plugin is enabled, or when stale [hooks.state."codex@openai-codex:..."] SessionStart/Stop trust entries remain in ~/.codex/config.toml. The doctor only reports this condition; it does not disable or delete another plugin for you.
If LazyCodex is the primary workflow, disable the companion plugin explicitly:
[plugins."codex@openai-codex"]
enabled = false
If doctor still warns afterward, remove the stale [hooks.state."codex@openai-codex:..."] SessionStart/Stop entries from the Codex config after making your own backup.
Provider-Specific
Google Auth
Install opencode-antigravity-auth for Google Gemini. Provides multi-account load balancing, dual quota, and variant-based thinking.
Split Claude Routing
Provider path can change Claude context limits. Confirm the active model's context window with bunx oh-my-openagent doctor --verbose rather than assuming 200k vs 1M.
Use Antigravity for cheaper or quota-balanced work. Use direct Anthropic for long-context planning, review, and research sessions when the account, model, and required beta/header setup support a larger window.
{
"agents": {
// Google Antigravity Claude.
"explore": {
"model": "google/antigravity-claude-sonnet-4-6"
},
"librarian": {
"model": "google/antigravity-claude-sonnet-4-6"
},
// Direct Anthropic, only for eligible long-context accounts/models.
"plan-consultant": {
"model": "anthropic/claude-opus-5-5",
"reasoning": "max"
},
"plan-reviewer": {
"model": "anthropic/claude-opus-5-5"
}
}
}
If you see an error like prompt is too long ... > 200000, check whether the
agent is routed through google/antigravity-*. Move that agent to a direct
anthropic/* model only when the account, model, and required beta/header setup
support a larger context window. Keep the Antigravity path explicit when you want
that provider's quota and routing behavior.
Ollama
Must disable streaming to avoid JSON parse errors:
Note: The stream option should be configured in your OpenCode settings or via environment variables, not in the agent config. See Ollama Troubleshooting for details on disabling streaming.
Common models: ollama/qwen3-coder, ollama/ministral-3:14b, ollama/lfm2.5-thinking
The omo-opencode plugin exposes the OpenAI-compatible opengateway provider at https://apis.opengateway.ai/v1 when OPENGATEWAY_API_KEY is set or an opengateway auth entry exists. No provider is injected if neither credential is present.
Oh-My-OpenAgent Features Reference
Agents
The main agent runs in your session and delegates through the task tool: categories route to the category worker, and four curated read-only agents cover research and plan review. Each has its own prompt, model chain, and tool policy.
Current Agent Model Chains
The chains below are the Senpi (OmO Native) ones; the OpenCode edition's are in the configuration reference. Senpi uses kimi-coding for Kimi rungs. The OpenCode edition uses kimi-for-coding for the same Kimi chain positions. Senpi lists both OpenAI lanes on every GPT rung: chatgpt-subscription (the ChatGPT subscription lane) first, then openai (the API-key lane, or an OpenAI-compatible proxy configured under that id). Rung order is the ranking, so a machine holding both an API key and a ChatGPT login is never billed per token for delegated work, and a machine with only openai still gets every GPT rung, including in the runtime fallback list. The ultrabrain, deep-low, deep-high, and quick defaults name chatgpt-subscription; on an openai-only machine they resolve through the same chains. ultrabrain, deep-low and deep-high each run one exact model (GPT-6.2 Astra max, GPT-6.2 Sol medium, GPT-6.2 Astra high): the provider list only picks who serves it, and no older, Fast or other-family model stands in. The OpenCode edition lists openai first, its single OpenAI provider id. The same resolved chain is used at spawn time and again if runtime retry fallback needs to recover.
Role
Primary
Full fallback chain
main agent
your session model
No chain of its own. Claude Opus 5.5 or GPT 5.6 Sol recommended; mid-session fallback follows the harness retry chains.
The main agent spawns these through the task tool, and you can ask for them by name:
Use task(category: "architect") to review this design and propose an architecture
Ask @librarian how this is implemented - why does the behavior keep changing?
Ask @explore for the policy on this feature
AGENTS.md files are instruction context. They tell agents how to work in a
project, and OMO can inject that context into prompts, but they are not a
deterministic permission boundary.
Deterministic enforcement today comes from OMO config (agents.*.permission,
agent tools, disabled tools/agents), built-in agent restrictions, OpenCode's
own permission gate when it is available, and guard hooks such as
team-tool-gating and write-existing-file-guard.
OMO does not currently read an AGENTOWNERS.yml file or run a generic
AGENTOWNERS policy-enforcer hook. If a project needs hard agent boundaries,
encode them in config permissions, tool allowlists, repository protections, or
review gates rather than relying on prose-only instructions.
Background Agents
Run agents in the background and continue working:
Have GPT debug while Claude tries different approaches
Opus 5 handles visual work while GPT-6.2 Astra tackles deep reasoning
Fire massive parallel searches, continue implementation, use results when ready
# Launch in background
task(subagent_type="explore", load_skills=[], prompt="Find auth implementations", run_in_background=true)
# Continue working...
# System notifies on completion
# Retrieve results when needed
background_output(task_id="bg_abc123")
Background Agent Work Directories
Background agents inherit the session working directory from OpenCode and OMO when
the task tool starts them. OMO does not force the model's own shell commands to
stay inside that directory after launch. If a model decides to clone a repo,
download docs, or create scratch files under /tmp or macOS /var/folders/...,
the filesystem prompt comes from that command, not from a separate OMO storage
root.
APP_DIR is an OpenCode process environment value. Treat it as process context,
not as a guarantee that every background agent artifact will land there.
For projects that must keep all agent scratch work under the repository, add a
project AGENTS.md rule with an explicit writable path:
Use ./.omo/session-work/ for clones, downloaded docs, scratch files, and
temporary outputs. Do not write under /tmp, /var, or other OS temp directories
unless the user approves it.
If you use tmux panes for background agents, each pane still follows the same
model instructions. A project rule is more reliable than repeating the
constraint in one prompt, because every subagent receives the rule with the
project context.
Visual Multi-Agent with Tmux
Enable tmux.enabled to see background agents in separate tmux panes:
When running inside cmux (cmux omo-agent-toolkit), the same pane integration is routed through cmux's tmux compatibility command. OMO detects the cmux environment from CMUX_SOCKET_PATH or a cmux-provided TMUX value, so tmux.enabled can create cmux panes even when a real tmux binary is not installed.
Customize agent models, prompts, and permissions in the [opencode] block of ~/.omo/omo.jsonc.
Team Mode (experimental, OFF by default)
Parallel multi-agent coordination modeled after Claude Code's experimental Agent Teams. Enable via team_mode.enabled: true. Exposes 12 team_* tools for spawning a lead + up to 8 members, a shared deferred-ack mailbox, a shared task list with file-locked claims, optional per-member git worktrees, and an optional tmux layout that streams each member's session output into dedicated panes.
See the Team Mode Guide for configuration, team spec format, lifecycle, bounds, and storage layout.
Architecture Snapshot (current)
Feature modules: packages/omo-opencode/src/features/ has 23 modules.
Tool system: packages/omo-opencode/src/tools/ has 14 tool-producing directories plus a shared helper directory. The registry exposes 12 to 38 tools depending on config gates. The 9 LSP aliases are served by the built-in lsp MCP, not by the tool registry.
Hook system: the 5-tier composers define 58 slots (Session 23 + Tool Guard 18 + Transform 8 + Continuation 7 + Skill 2). Default config activates about 50-51; the maximum is 62 when the 4 direct Team Mode event handlers are included.
MCP system: 3 tiers: built-in MCPs with 3 remote servers (websearch, context7, grep_app) plus local stdio lsp, .mcp.json loader, and skill-embedded MCP from SKILL.md frontmatter.
Managers and controllers: startup creates TmuxSessionManager, BackgroundManager, SkillMcpManager, ConfigHandler, and ModelFallbackControllerAccessor fields, plus optional TuiStateMirror and MonitorManager fields.
OpenClaw: bidirectional integrations for Discord, Telegram, HTTP, and shell with reply listener daemon.
Category System
A Category is an agent configuration preset optimized for specific domains. Instead of delegating everything to a single AI agent, it is far more efficient to invoke specialists tailored to the nature of the task.
What Categories Are and Why They Matter
Category: "What kind of work is this?" (determines model, temperature, prompt mindset)
Skill: "What tools and knowledge are needed?" (injects specialized knowledge, MCP tools, workflows)
By combining these two concepts, you can generate optimal agents through task.
Built-in Categories
The default model ids in this table are the OpenCode edition's. Senpi (OmO Native) names chatgpt-subscription instead of openai on the GPT rows and adds architect; the configuration reference lists both.
Deep logical reasoning, complex architecture decisions requiring extensive analysis. No fallback model: unavailable without gpt-6.2-astra.
deep-low
openai/gpt-6.2-sol (medium)
Default deep lane: one goal, one deliverable, decisions the child can settle from what it reads. 3D graphics, computer use, browser use, backend, logic, algorithms, CAPTCHA solving, and multimodal work route here. ONE goal + ONE deliverable per call — multiple goals fan out as parallel calls. No fallback model, Fast tier included: unavailable without gpt-6.2-sol.
deep-high
openai/gpt-6.2-astra (high)
Escalation deep lane: the goal's central decision cannot be settled from evidence alone (a trade-off, a contract crossing a package or process boundary, a mechanism with no in-repo pattern, or correctness argued from invariants). A deep-low child that returns ESCALATE: deep-high is re-spawned here with its findings. No fallback model: unavailable without gpt-6.2-astra.
Trivial tasks - single file changes, typo fixes, simple modifications
unspecified-low
anthropic/claude-sonnet-5-5 (medium)
Tasks that don't fit other categories, low effort required
unspecified-high
anthropic/claude-opus-5-5 (medium)
Tasks that don't fit other categories, high effort required. Falls back to GLM 5.3, then Kimi K3.1 Pro.
writing
google/gemini-4-argon (low)
Documentation, prose, technical writing. Runs only on its own rungs (gemini-4-argon, claude-opus-5-5, claude-opus-4-6); unavailable when none of them is connected, and it never falls back to another model.
Usage
Specify the category parameter when invoking the task tool.
task({
category: "visual-engineering",
prompt: "Add a responsive chart component to the dashboard page",
});
Custom Categories
You can define custom categories in the [opencode] block of the unified config file (~/.omo/omo.jsonc or a project .omo/omo.jsonc). Legacy oh-my-openagent.json[c] / oh-my-opencode.json[c] files are imported once by the migration engine and are no longer read at runtime.
Category Configuration Schema
Field
Type
Description
description
string
Human-readable description of the category's purpose. Shown in task prompt.
model
string
AI model ID to use (e.g., anthropic/claude-opus-5-5)
models
array
Ordered model chain; the first entry is the primary model and the rest are fallbacks. Entries are strings or objects with per-model settings
Provider-specific request options passed through to the harness
max_tokens
number
Maximum response token count (positive integer)
maxTokens
number
Deprecated: use max_tokens. Maximum response token count
tools
object
Tool usage control (disable with { "tool_name": false })
max_prompt_tokens
number
Maximum prompt tokens for delegated tasks
is_unstable_agent
boolean
Mark agent as unstable - forces background mode for monitoring
disable
boolean
Disable this category and exclude it from task delegation
warn_unavailable
boolean
Suppress or emit unavailable-chain notices for this category
Example Configuration
{
"categories": {
// 1. Define new custom category
"korean-writer": {
"model": "google/gemini-3.6-flash",
"temperature": 0.5,
"prompt_append": "You are a Korean technical writer. Maintain a friendly and clear tone.",
},
// 2. Override existing category (change model)
"visual-engineering": {
"model": "openai/gpt-5.6-sol",
"temperature": 0.8,
},
// 3. Configure thinking model and restrict tools
"deep-reasoning": {
"model": "anthropic/claude-opus-5-5",
"thinking": {
"type": "enabled",
"budgetTokens": 32000,
},
"tools": {
"websearch_web_search_exa": false,
},
},
},
}
The category worker
When you use a Category, the work runs in the category worker: a fresh worker session configured by the category's model and skills.
Characteristic: Cannot re-delegate tasks to other agents.
Purpose: Prevents infinite delegation loops and ensures focus on the assigned task.
Advanced Configuration
Rename Compatibility
The published package and binary remain oh-my-opencode. Inside opencode.json, the compatibility layer now prefers the plugin entry oh-my-openagent, while legacy oh-my-opencode entries still load with a warning. Plugin configuration lives in the unified omo.jsonc; legacy oh-my-openagent.json[c] / oh-my-opencode.json[c] config files are imported once by the migration engine and no longer read at runtime. Run bunx oh-my-openagent doctor to check for legacy package name warnings.
Fallback Models
Configure per-agent fallback chains with arrays that can mix plain model strings and per-model objects:
When a model errors, the runtime can move through the configured fallback array. Object entries let you tune the backup model itself instead of only swapping the model name.
The plugin uses two independent fallback systems:
model-fallback: proactive model chain selection in chat params.
runtime-fallback: reactive recovery after runtime failures from provider/API behavior.
File-Based Prompts
Load agent system prompts from external files using file:// URLs in the prompt field, or append additional content with prompt_append. The prompt_append field also works on categories.
Supports ~ expansion for home directory and relative file:// paths.
Useful for:
Version controlling prompts separately from config
Sharing prompts across projects
Keeping configuration files concise
Adding category-specific context without duplicating base prompts
The file content is loaded at runtime and injected into the agent's system prompt.
Session Recovery
The system automatically recovers from common session failures without user intervention:
Missing tool results: reconstructs recoverable tool state and skips invalid tool-part IDs instead of failing the whole recovery pass
Thinking block violations: Recovers from API thinking block mismatches
Empty messages: Reconstructs message history when content is missing
Context window limits: Gracefully handles Claude context window exceeded errors with intelligent compaction
JSON parse errors: Recovers from malformed tool outputs
Recovery happens transparently during agent execution. You see the result, not the failure.
Commands
Commands are slash-triggered workflows that execute predefined templates.
Built-in Commands
Command
Description
/goal
Set, show, pause, resume, or clear the active thread goal
/refactor
Intelligent refactoring with LSP, AST-grep, architecture analysis, and TDD verification
/ulw-execute
Execute a work plan in this session
/stop-continuation
Stop all continuation mechanisms (todo continuation, Goal, boulder) for this session
/remove-ai-slops
Remove AI-generated code smells from branch changes and review the result
/handoff
Create a detailed context summary for continuing work in a new session
/hyperplan
Load the hyperplan skill and run an adversarial team_create planning workflow (requires team_mode.enabled: true)
/goal
Purpose: Set a persistent thread objective the agent pursues across turns until paused, cleared, or completed.
Usage:
/goal "Build a REST API with authentication"
/goal # show the current goal
/goal pause # stop idle continuations
/goal resume # resume a paused goal
/goal clear # clear the current goal
Behavior:
The goal persists for the session and is shown in the TUI.
While a goal is active, every session.idle re-injects a continuation prompt that includes the stored tokensUsed and timeUsedSeconds fields (currently unused; they remain 0).
The agent calls update_goal({ status: "complete" }) only after a completion audit confirms the objective is achieved.
pause stops idle continuations without clearing the goal; clear removes it. session.deleted also clears the goal.
Goal state is stored in .omo/goal/<sessionID>.json.
Tools (registered only when goal.enabled is true):
create_goal - create or replace the active goal objective.
update_goal - pause, resume, mark complete, or change the objective.
get_goal - read the current objective, status, and usage accounting.
enabled (default false) gates the Goal subsystem and its tools.
auto_start (default false) is accepted in config but not wired; first-message auto-create is intended to follow default_mode.goal, and that path is currently inert.
default_max_iterations (1-1000, default 100) is retained on the goal schema for Ralph Loop config migration; the Goal hook doesn't enforce an iteration cap.
Migration: the legacy top-level ralph_loop config auto-migrates to goal at load time and logs a deprecation warning; explicit goal config wins over migrated values. default_mode.ralph_loop was renamed to default_mode.goal.
/ulw-loop
The /ulw-loop slash command has been removed; continuous goal pursuit is now handled by /goal. The omo-agent-toolkit ulw-loop CLI subcommand remains as a passthrough to the Codex LazyCodex ulw-loop CLI.
/refactor
Purpose: Intelligent refactoring with full toolchain
The main agent executes the approved work plan in the same session: it injects the work plan + boulder + worktree/PR context, then starts executing. First actions are create_goal and todo registration, not immediate coding.
--worktree <path>: use this git worktree (create it if needed). Omit it to work in the current repo.
--make-pr: deliver the work as a pull request; implies worktree mode (a task-owned worktree is created when --worktree is omitted) and hands off with the PR URL.
--ship: implies --make-pr, then keeps working until the PR passes CI/review gates and is merged, before cleaning up the worktree.
/stop-continuation
Purpose: Stop all continuation mechanisms for this session
Stops todo continuation, clears the active Goal, and clears boulder state. Use when you want the agent to stop its current multi-step workflow.
/handoff
Purpose: Create a detailed context summary for continuing work in a new session
Generates a structured handoff document capturing the current state, what was done, what remains, and relevant file paths — enabling seamless continuation in a fresh session.
Custom Commands
Load custom commands from:
.opencode/commands/*.md and .opencode/command/*.md (project, OpenCode native)
~/.config/opencode/commands/*.md and ~/.config/opencode/command/*.md (user, OpenCode native)
.claude/commands/*.md (project, Claude Code compat)
~/.claude/commands/*.md (user, Claude Code compat)
Skill Sets
Skill sets provide specialized workflows with embedded MCP servers and detailed instructions. They are automatically activated by matching task intent, so you do not need to study or preload everything before working. When you want to force one deliberately, call it by name in the prompt, slash command, or load_skills list.
Built-in Skill Sets
Selected built-in skills include debugging, dev-browser, frontend, git, init-deep, playwright, playwright-cli, remove-ai-slops, review-work, security-research, security-review, team-mode, and visual-qa. Browser provider selection activates one browser skill, and team-mode is available only when Team Mode is enabled. The table below highlights selected skills.
init-deep
init-deep is a built-in skill, not a built-in command. Invoke it through the skill surface or load it by name. It generates hierarchical AGENTS.md files throughout the project and supports --create-new and --max-depth=N arguments.
Skill set
Trigger
Description
git
commit, rebase, squash, "who wrote", "when was X added"
Git expert. Detects commit styles, splits atomic commits, formulates rebase strategies. Three specializations: Commit Architect (atomic commits, dependency ordering), Rebase Surgeon (history rewriting, conflict resolution), and History Archaeologist (finding when/where specific changes were introduced). Formerly git-master, which still resolves as an alias.
playwright
Browser tasks, testing, screenshots
Browser automation via Playwright MCP. MUST USE for browser verification, browsing, web scraping, testing, and screenshots.
visual-qa
Browser rendering and screenshot evidence
omowright from js eval: the owned engine for renders on a task-owned profile, the attached engine for pages that need the user's login.
dev-browser
Stateful browser scripting
Browser automation with persistent page state for iterative workflows and authenticated sessions.
frontend
UI/UX tasks, styling
Designer-turned-developer persona. Crafts strong UI/UX even without design mockups. Emphasizes bold aesthetic direction, distinctive typography, cohesive color palettes.
review-work
"review work", "review my work", "QA my work"
Post-implementation gate review. The orchestrator runs manual QA on the real surface, then one gate reviewer audits goal, code quality, security, missed context, and the QA evidence. Passes only on a clean QA matrix plus APPROVE.
ulw-research
ulw-research, deep research requests
Maximum-saturation research. Runs parallel explore/librarian swarms across code, docs, web, and OSS repos; recursively follows EXPAND leads until convergence; proves contested claims by running code; and returns cited synthesis. Epistemic instrumentation covers intent-vs-reality diffing, claim graph, observation manifest, independent-observation convergence, temporal evidence, verification economics, and cause-disappearance records.
remove-ai-slops
"remove AI slop", "de-AI", "humanize"
Removes AI-generated code smells from files while preserving functionality. Invoke as skill(name="remove-ai-slops"). Identifies and eliminates verbose comments, redundant error handling, over-engineered patterns, and generic AI phrasing.
ulw-research is intentionally explicit. Ordinary questions and normal implementation context-gathering will not trigger a saturation swarm. Use ulw-research when the research itself is the deliverable and every claim needs a citation, a proof artifact, or an execution-backed verdict.
git Core Principles
Multiple Commits by Default:
3+ files -> MUST be 2+ commits
5+ files -> MUST be 3+ commits
10+ files -> MUST be 5+ commits
Automatic Style Detection:
Analyzes last 30 commits for language (Korean/English) and style (semantic/plain/short)
Matches your repo's commit conventions automatically
Usage:
/git commit these changes
/git rebase onto main
/git who wrote this authentication code?
On OmO Native and Codex, shipped browser guidance runs through omowright,
staged inside the browser skill and loaded from the js-eval kernel. In Codex,
browser:control-in-app-browser stays first for ordinary page control. The
OpenCode edition keeps its browser_automation_engine providers; an obsolete
provider value fails validation and doctor names the rejected value.
Owned engine
connectPipe({ browserPath, browserArgs, storageRoot }) launches a browser your
code owns over a pipe (no listening port) with a task-owned profile;
connectCloakProfile({ profileDir }) launches CloakBrowser with a pinned
fingerprint for bot-scored targets. The page is Playwright-shaped
(snapshot, locator(ref), screenshot, evaluate), with coordinate control,
captcha helpers, network snooping, request routes and flight traces beside it.
Chrome must already be installed; no managed browser download is required.
Attached engine
connectBrowserSkill({ name, focused: false }) drives the browser the user is
already signed into through BrowserSkill's daemon and extension;
bskSnapshot(session) returns the same tree-and-refs shape without leaving a
trace in the page. bskDoctor() / bskOnboard() (wrapped by the skill's
browser-doctor.mjs / browser-install.mjs) install the CLI, start the daemon
and register the Web Store extension in the one browser the user actually uses
(OS default browser, running app, recent use; --browser=<id> overrides, and the
doctor reports choose-browser instead of guessing when those disagree) so the
user's only step is one Enable click. With BrowserSkill 0.4 the user can keep working in the
same tab: every page action carries { context } from a fresh session.cooperate("sync"), and a
cooperation_sync_required refusal means session.cooperate("wait"), then sync and replan.
Never launch against, clone, or clear the user's live profile; never fall
back to the owned engine for a page that needs their login.
Browser QA capabilities (choose the tier that supports the criterion):
Navigate and interact with web pages
Take screenshots and PDFs
Fill forms and click elements
Wait for network requests
Scrape content
Custom Skill Creation (SKILL.md)
You can add custom skills directly to .opencode/skills/ in your project root or ~/.claude/skills/ in your home directory.
Example: .opencode/skills/my-skill/SKILL.md
---
name: my-skill
description: My special custom skill
mcp:
my-mcp:
command: npx
args: ["-y", "my-mcp-server"]
---
# My Skill Prompt
This content will be injected into the agent's system prompt.
...
Same-named skill at higher priority overrides lower.
Loaded skill display priority follows this order: project > user > opencode > builtin/plugin.
Disable built-in skills via disabled_skills: ["playwright"] in config; the same key at the shared base of ~/.omo/omo.jsonc hides a skill on every harness, including the bundled frontend / visual-qa skills on OmO Native.
Category + Skill Combo Strategies
You can create powerful specialized agents by combining Categories and Skills.
The Designer (UI Implementation)
Category: visual-engineering
load_skills: ["frontend", "playwright"]
Effect: Implements aesthetic UI and verifies rendering results directly in browser.
The Architect (Design Review)
Category: ultrabrain
load_skills: [] (pure reasoning)
Effect: Uses GPT-6.2 Astra at max effort through OpenAI, ChatGPT Subscription or OpenCode. There's no fallback model: without GPT-6.2 Astra the category is unavailable unless you set categories.ultrabrain yourself.
The Maintainer (Quick Fixes)
Category: quick
load_skills: ["git"]
Effect: Uses cost-effective models to quickly fix code and generate clean commits.
task Prompt Guide
When delegating, clear and specific prompts are essential. Include these 7 elements:
TASK: What needs to be done? (single objective)
EXPECTED OUTCOME: What is the deliverable?
REQUIRED SKILLS: Which skills should be loaded via load_skills?
REQUIRED TOOLS: Which tools must be used? (whitelist)
TASK: Fix mobile layout breaking issue in the navbar component
CONTEXT: packages/web/components/Navbar.tsx, using Tailwind CSS
MUST DO: Change flex-direction at md: breakpoint
MUST NOT DO: Modify existing desktop layout
EXPECTED: Buttons align vertically on mobile
Tools
Tool registration is config-gated. The registry exposes 12 to 38 tools.
Code Search Tools
Tool
Description
grep
Content search using regular expressions. Filter by file pattern.
glob
Fast file pattern matching. Find files by name patterns.
Edit Tools
Tool
Description
edit
Hash-anchored edit tool (LINE#ID), registered only when hashline_edit: true (default false). Validates content hashes before applying changes and rejects stale hash edits.
Hashline IDs use characters from ZPMQVRWSNKTXJBYH.
LSP Tools (IDE Features for Agents)
All 9 aliases below are served by the built-in lsp MCP rather than the native tool registry.
Tool
Description
lsp_status
List configured and active LSP servers
lsp_diagnostics
Get errors/warnings before build
lsp_prepare_rename
Validate rename operation
lsp_rename
Rename symbol across workspace
lsp_format
Format a source file via its language server
lsp_goto_definition
Jump to symbol definition
lsp_find_references
Find all usages across workspace
lsp_symbols
Get file outline or workspace symbol search
lsp_install_decision
Record allow/decline decisions for missing LSP installation
AST-Grep Skill
AST-aware search and rewrite now lives in the ast-grep skill. Load it with the skill tool when you need structural matching, then use its sg helper commands for search or rewrite workflows.
Category-based task delegation. Supports built-in categories like visual-engineering, ultrabrain, deep-low, deep-high, artistry, quick, unspecified-low, unspecified-high, and writing, or direct agent targeting via subagent_type.
background_output
Retrieve background task results
background_cancel
Cancel running background tasks
task is the broader delegation path for category routing, direct
subagent_type calls, skills, and sync/background execution.
call_omo_agent is the narrow compatibility path for the small
explore/librarian-style agent allowlist. Keep the split in mind when
configuring permissions: the category worker blocks task to avoid nested
delegation loops, but can still use call_omo_agent where that narrower
path is explicitly allowed.
Visual Analysis Tools
Tool
Description
look_at
Analyze media files (PDFs, images, diagrams) via Multimodal-Looker agent. Extracts specific information or summaries from documents, describes visual content.
Computer Use (OmO Native)
Experimental. OmO Native agents can drive native desktop applications through the computer tool: screenshots, window lists, accessibility trees, and mouse and keyboard input on macOS, Linux and Windows. The engine starts only when the tool is first used; input goes to the target in the background by default, a global stop chord (Control+Option+Command+Escape on macOS, Ctrl+Alt+Shift+Escape elsewhere) suspends it, and /computer on|off|status|stop|resume controls it from the prompt. Inspection needs the computer:read permission tier and input needs computer:exec.
Load and execute a skill or slash command by name. Returns detailed instructions with context applied.
skill_mcp
Invoke MCP server operations from skill-embedded MCPs.
Session Tools
Tool
Description
session_list
List OpenCode sessions for a project (defaults to the current working directory); optional date and limit filters
session_read
Read messages and history from a session
session_search
Full-text search across session messages
session_info
Get session metadata and statistics
Finding older sessions hidden by /sessions
OpenCode's built-in /sessions picker can omit older sessions even when they still exist in the local session store. Use OMO's session tools to find the ID, then continue it from the TUI.
Requires experimental.task_system: true in config.
Tool
Description
task_create
Create a new task with auto-generated ID
task_get
Retrieve a task by ID
task_list
List all active tasks
task_update
Update an existing task
Task System Details
Note on Claude Code Alignment: This implementation follows Claude Code's internal Task tool signatures (TaskCreate, TaskUpdate, TaskList, TaskGet) and field naming conventions (subject, blockedBy, blocks, etc.). However, Anthropic has not published official documentation for these tools. This is Oh My OpenAgent's own implementation based on observed Claude Code behavior and internal specifications.
Storage: By default, tasks are stored as JSON files under the OpenCode config directory at tasks/<list-id>. Override the directory with the task storage storage_path option documented on the legacy OpenCode configuration page.
Difference from TodoWrite:
Feature
TodoWrite
Task System
Storage
Session memory
File system
Persistence
Lost on close
Survives restart
Dependencies
None
Full support (blockedBy)
Parallel execution
Manual
Automatic optimization
When to Use: Use Tasks when work has multiple steps with dependencies, multiple subagents will collaborate, or progress should persist across sessions.
Interactive Terminal Tools
Tool
Description
interactive_bash
Tmux-based terminal for TUI apps (vim, htop, pudb). Pass tmux subcommands directly without prefix.
Usage Examples:
# Create a new session
interactive_bash(tmux_command="new-session -d -s dev-app")
# Send keystrokes to a session
interactive_bash(tmux_command="send-keys -t dev-app 'vim main.py' Enter")
# Capture pane output
interactive_bash(tmux_command="capture-pane -p -t dev-app")
Key Points:
Commands are tmux subcommands (no tmux prefix)
Use for interactive apps that need persistent sessions
Use the managed background-session or Monitor mechanism (monitor_start) for one-shot commands that must continue in the background; do not rely on shell & as the managed contract
Hooks
Hooks intercept and modify behavior at key points in the agent lifecycle across the full session, message, tool, and parameter pipeline.
Current composition counts:
Session: 23
Tool Guard: 18 (17 non-Team slots plus teamToolGating)
Transform: 8
Continuation: 7
Skill: 2
Total composed slots: 58
Default config leaves several slots null (gated by team_mode, hashline_edit, preemptive_compaction, etc.); the maximum is 62 when the 4 direct Team Mode event handlers are included
Auto-injects AGENTS.md after Read. Walks from file to project root, collecting all AGENTS.md files. Auto-disabled on OpenCode 1.1.37+ when native AGENTS.md injection is available.
directory-readme-injector
PostToolUse + Event
Auto-injects README.md after Read for directory context.
rules-injector
PreToolUse + PostToolUse
Injects rules from .claude/rules/ when conditions match. Supports globs and alwaysApply.
compaction-context-injector
Event
Preserves critical context during session compaction.
preemptive-compaction
Event
Proactively compacts sessions before hitting token limits.
Productivity & Control
Hook
Event
Description
keyword-detector
Message
IntentGate detector. Activates ultrawork/ulw, team, hyperplan, and hyperplan-ultrawork from message keywords.
think-mode
Message
On "think"/"ultrathink" in the user message, sets the message variant to high unless already a high variant.
goal
Event
Re-injects a goal continuation prompt on session.idle while a goal is active; clears the goal on session.deleted.
ulw-execute
Message + command.execute.before
After /ulw-execute is expanded, selects a work plan, initializes boulder state, scaffolds note
[Page truncated to keep GeezerVison snappy.]
You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.