Skip to content

Smart routing ​

Describe the result you want, in text or a voice transcription. Autopilot states the next action and chooses direct work, a bounded delegate, or parallel Wave work. Before delegation it explains the harness, provider, model, effort and reason. It uses the current user's configuration; an installed binary alone does not establish model access.

Direct work fits one bounded owner with a deterministic check. Delegate isolates implementation or research and supplies independent review when the model identity differs. Wave coordinates two or more approved, file-disjoint and order-independent slices behind dependency, cost and acceptance checks. Wave slices resolve through runtime-route --in-place, the same resolver /delegate uses; claude or codex supervise a slice directly, any other implementer runs headless via delegate-exec.

Inspect and select ​

sh
sh
devkit runtime-route --inventory --models --json
devkit runtime-route --inventory implement --models --json --probe-runtime pi
devkit runtime-route --inventory implement --host runtime:<environment-id>
devkit runtime-route implement --spec devkit/specs/example.md

Model inventory runs bounded native probes without inference and emits only allowlisted fields. installed, native catalog membership, local authentication configuration and live verification are separate facts. live_verified remains false: a configured key can be expired, revoked or unentitled. Pi checks exact offline catalog membership before its provider-level auth status; another harness's login is not imported. Catalog evidence is not a quality benchmark or a billing guarantee. --host runs the state inventory on an Orca host over ssh and adds one RUNTIME_LOGIN_HINT per missing or not-ready runtime there; it names the login command and never copies credentials.

With --spec, the first matching row of implement_rules in content/model-routing.json orders the implement candidates for /delegate and Wave slices alike — the table and its rationale are the source of truth, not this page.

TierUse
exploreRead-only repository exploration
implementPrepared implementation work
reviewIndependent review
architectureArchitecture decisions

Implementation delegates execute Main's prepared solution at low effort by default, including Pi's provider fallbacks. Main supplies owned files and acceptance checks; unresolved solution questions return to Main or receive an explicit effort override. Review, exploration and architecture keep their own defaults. Personal tuples retain precedence. Lower implementation effort is a policy choice whose effect on accepted-task time and token use still needs measurement.

Explicit DEVKIT_RUNTIME_<TIER> overrides personal runtime preference and spec rules. DEVKIT_DELEGATE_PROVIDER, DEVKIT_DELEGATE_MODEL and DEVKIT_DELEGATE_EFFORT override the selected runtime's personal tuple and canonical defaults. A rejected explicit selection fails instead of silently substituting another model. The receipt includes RUNTIME, PROVIDER, MODEL, EFFORT, MODEL_SOURCE, MODEL_READINESS, ROUTE_REASON and skipped candidates. When a rule or --needs host displaces a configured runtime, the receipt adds CONFIG_OVERRIDDEN=runtimes.<tier>:<config>-><chosen> reason=<RUNTIME_SOURCE>; otherwise that key is absent. Pass its tuple unchanged to delegate-visible; required reviews retain their model independence and frozen scope.

Personal policy ​

Merge only the desired fields into $DEVKIT_HOME/config.json (default ~/.onedot-devkit/config.json). No credentials belong here:

json
json
{
  "routing": {
    "preferences": {"implement": ["pi", "codex", "claude"]},
    "models": {
      "pi": {"implement": {"provider": "openai-codex", "model": "gpt-6.2-sol", "effort": "medium"}}
    },
    "pi_extensions": {"anthropic": ["/absolute/personal/path/to/reviewed-extension.ts"]}
  }
}

Use model identifiers from the user's native catalog. Pi supports configured native providers with API key or OAuth authentication; OpenAI Codex remains OAuth only.

Arbitrary extension discovery stays disabled. Explicit entries must be absolute, existing files under the personal home or Pi agent directory and outside the project. Without an explicit list, the resolver can select the installed Anthropic OAuth or Claude Bridge adapter from Pi's agent directory; its presence does not establish billing terms.

Unknown native authentication remains visible in the receipt.

Adding a model or runtime ​

Adding a model touches content only: add its pi provider entry and a menu_models line in content/model-runtimes.json. If pi's built-in catalog lacks the model, also add it to content/pi/models.json; sync merges it into pi's models.json. The resolver, the delegate builders and the menu bar (harness, then provider › model › effort) pick it up with no code change.

Adding a runtime is three edits: a row in rust/devkit/src/route/adapters.rs (its name plus whether it can implement, show in the panel and resume a session), a builder in rust/devkit/src/scripts/delegate_exec/argv.rs, and its per-tier entries in content/model-routing.json. The adapter, panel, resume and implementer decisions all read that one table row; timeouts, environment and permission flags stay in the Rust builder and are never configuration.

Evidence and fallback ​

Harness overhead and model quality are separate. Defaults and personal preferences are policy choices, not claims of measured superiority.

Evaluate new pairs on representative accepted results, including review, retries and recovery. A missing auth configuration removes a Pi candidate. Missing catalog entries or unsupported native overrides fail before inference. A fallback must retain task permissions and be explained; an explicitly pinned tuple disables automatic cross-runtime retry.

Internal docs — onedot-devkit · devkit

devkitdevkit syncdevkit statusdevkit doctordevkit helpInternal docs · ONEDOT digital crew