docs(desktop): plan user-configurable inference providers - #11291
docs(desktop): plan user-configurable inference providers#11291mrlfarano wants to merge 2 commits into
Conversation
|
Thanks for this thorough planning artifact, @mrlfarano — this is a well-structured direction-alignment proposal. Both changed files are documentation-only (no code, dependencies, or CI changes), so I'll focus on the design and plan quality. docs/superpowers/specs/2026-08-08-desktop-custom-inference-providers-design.md — The design is thoughtful. Separating Agent Runtime, Inference Route, and Workload Policy as three distinct concepts (rather than overloading docs/superpowers/plans/2026-08-08-desktop-custom-inference-providers.md — The 9-task plan follows a disciplined TDD approach (write tests, confirm red, implement, confirm green) with concrete type definitions and file paths. A few specific observations:
Agent-behavior note: This plan file is explicit agent-instruction documentation — it opens with "For agentic workers: REQUIRED SUB-SKILL..." and contains a full worker-allocation table assigning Codex models to each task. If merged, these become canonical guidance that AI coding agents in this repo may follow to implement a broad, security-sensitive feature across Swift production code, the Node agent runtime, SQLite migrations, and the Pi extension. That is worth human maintainer awareness before accepting. What needs a human decision: This proposes a significant product direction — letting users configure arbitrary OpenAI-compatible inference providers and route models per workload level. That touches model/provider routing, API key handling, and the kernel execution profile, all of which need product and architecture sign-off from a maintainer. The design quality is strong, but whether Omi should build this and whether the proposed three-level abstraction matches the product vision is a judgment call I am deferring. Leaving for human maintainer review on the product direction and architecture decision. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Summary
This PR proposes the architecture and implementation plan for allowing Omi for Mac users to configure their own OpenAI-compatible inference providers and choose models independently for three workload levels:
It includes first-class compatibility presets for Z.AI, Kimi/Moonshot, and DeepSeek, plus a generic OpenAI-compatible provider for other endpoints.
This is a planning-only PR. It does not change application behavior, provider defaults, credentials, backend traffic, or production dependencies.
Related issue: none. This planning PR is the direction-alignment artifact requested before implementation begins.
Why
Desktop inference choices are currently coupled to provider-owned model constants and agent-runtime selection. That prevents a user from keeping Omi AI as the runtime while selecting a different compatible inference endpoint or model for specific classes of work.
The proposed design separates:
Proposed behavior
Architecture highlights
InferenceRouteRefin immutable execution profiles.Implementation sequence
The plan divides delivery into nine reviewable commits/tasks:
ModelQoSremoval.Codex worker allocation
The implementation plan intentionally avoids using the highest-cost model for routine work:
gpt-5.6-terragpt-5.6-solgpt-5.6-solThis results in five Terra-medium implementation tasks, four Sol-medium implementation tasks, and one final Sol-high review.
Requested review
The Omi team should focus on these decisions before implementation begins:
Documents
docs/superpowers/specs/2026-08-08-desktop-custom-inference-providers-design.mddocs/superpowers/plans/2026-08-08-desktop-custom-inference-providers.mdThe design includes the official Z.AI, Kimi, and DeepSeek protocol references used to define the initial compatibility presets.
Validation
make preflight— PASS, 10 selected checksscripts/pr-preflight --suggest— no affected locked product invariants; no failure-class declaration requiredgit diff --check origin/main...HEAD— PASSNo desktop build or live provider test was run because this PR changes documentation only. The implementation plan defines the required hermetic, named-bundle, prompt-gauntlet, and credentialed-provider verification gates for the future implementation PR.
Backend Hermetic Merge Gate
PASS (out of scope): this diff changes two planning documents only and does not touch backend source, lockfiles, API contracts, runtime configuration, or backend gate workflows.
Impact
Developer impact is limited to reviewing and agreeing on the proposed contract and execution sequence. There is no user-visible or runtime impact from merging these documents.