OpenUltraCode
A command-line tool that splits a goal into tasks and routes each one to a model tier, so the most expensive model is not doing every job. Edits run in their own git worktrees, and nothing reaches my checkout unless I opt in.

What OpenUltraCode does
Parallel coding agents often use an expensive model for cheap tasks, and when several edit at once they can overwrite each other. I wanted the model matched to the task. The command is ouc, and ouc plan shows the routing as a dry run before any model is called.
Routing by cost
The planner is a deterministic keyword reader. It plans edit work for words such as implement, fix or add, test work for test or verify, and research for review, audit or inspect. A goal that asks for a change and a test becomes two dependent tasks, an Implement and a Verify.
The router then maps each task to a tier by fixed rules. Research goes to free models, and edits and tests go to the strong tier, which the default profile points at Codex CLI with gpt-5.3-codex. The router also has a cheap tier on OpenRouter and a critical tier on Claude Opus, and each tier falls back to the next one up when it fails. The planner always sets each task’s importance to normal, and its plans use only the free and strong tiers.
ouc plan "audit this repo for TODOs"Created dry-run plan run_20261008164539_iepy40ouc report run_20261008164539_iepy40 | grep task_- task_1: audit this repo for TODOs (research, free, openrouter:qwen/qwen3-coder:free)ouc plan "add a --version flag and test it"Created dry-run plan run_20261008164539_l29vkmouc report run_20261008164539_l29vkm | grep task_- task_1: Implement: add a --version flag and test it (edit, strong, codex-cli:gpt-5.3-codex)- task_2: Verify: add a --version flag and test it (test, strong, codex-cli:gpt-5.3-codex)ouc run "add a --version flag and test it" --backend fakeRun run_20261008164539_jcj9pk succeededEdits that stay in worktrees
Each edit task runs in its own git worktree under .ouc/runs, and the worker’s diff is captured as a patch. A patch reaches my checkout only if I pass --apply-clean-patches or turn the option on in the config, and only when it applies cleanly. If two edit tasks claim the same file, the run stops before it starts.
A cost cap in the config, limits.maxCostUsd, can end a run partway through, using the cost the backend actually reports. Stopping a run with SIGINT or SIGTERM keeps what it has written, and every run leaves a plan, a ledger of events and a final report to read afterward.
Real models stay off unless I name a backend with --backend. The default is a fake backend that calls nothing. It runs from a clone of the repository.