Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 37 additions & 26 deletions .opencode/opencode.jsonc
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{
// PROVIDER RENAME (2026-11-07, Drew; opencode#1823): providers the
// fleet custom-built in the fork now carry a leading underscore —
// claude-code -> _claude, antigravity-direct -> _antigravity,
// vibe-direct -> _vibe, commandcode -> _commandcode,
// muse-direct -> _muse (config and fork source ids converged).
// Upstream providers keep their ids (meta included: the fork's
// meta provider is upstream code). Config-only doors over upstream
// SDK packages (opendesign, cline-pass) are unchanged. The
// underscore is a config/source marker only; display surfaces
// strip it. Older comments below narrate the pre-rename ids as
// history. Quota keeps the old spellings as aliases.
// PROVIDER ALIGNMENT (2026-10-24, Drew): both machines carry the same
// providers; unneeded ones are disabled here, identically on both.
// - Token-based Google/Gemini paths are OFF. EARMARK: when a token-based
Expand Down Expand Up @@ -260,7 +271,7 @@
// (~/.local/state/opencode/opencode-runtime.jsonc), layered over this file via
// OPENCODE_CONFIG — see code#4544. Everything else here is deliberate config.
"provider": {
"claude-code": {
"_claude": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update mcpx model selectors alongside the Claude provider rename

When mcpx uses its configured OpenCode repair provider, .mcpx.json:98 and home/common/mcpx-settings.nix:149 still select claude-code/claude-haiku-5-5; the fallback selectors in pkgs/mcpx/internal/scripting/provider.go:219,297 use the same old ID. Removing the claude-code provider here leaves those generation/repair paths targeting a provider no longer defined by the fleet config. Update these selectors to _claude/claude-haiku-5-5 in the same rename pass.

Useful? React with 👍 / 👎.

// 2026-11-05 (code#6117, opencode#1749): repointed from the CLI proxy
// (:18749, @ai-sdk/openai-compatible) to the in-fork native claude-code
// provider - same provider id, native wire emulation of the Claude Code
Expand Down Expand Up @@ -419,7 +430,7 @@
}
}
},
"antigravity-direct": {
"_antigravity": {
"npm": "@opencode/ai/providers/antigravity",
"name": "Antigravity Direct (CLI wire clone)"
// 2026-11-04 (opencode#1414): repointed from the :18751 door to
Expand All @@ -440,7 +451,7 @@
// spend this API-budget key (see home/common, opencode#1653).
// "models": maintained by sync-models in the runtime overlay (~/.local/state/opencode/opencode-runtime.jsonc) — see code#4544.
},
"vibe-direct": {
"_vibe": {
"npm": "@opencode/ai/providers/vibe",
"name": "Mistral Vibe Direct (native wire clone)",
// 2026-11-04 (opencode#1653, PR #1661): native in-fork emulation of
Expand Down Expand Up @@ -845,7 +856,7 @@
// do not merge them. The models are the contributor variants the
// routes seat; the provider normalizes the v1 reasoning_effort
// variant dialect onto the wire.
"muse-direct": {
"_muse": {
"npm": "@opencode/ai/providers/muse-direct",
"name": "Meta Muse Direct",
"models": {
Expand Down Expand Up @@ -975,7 +986,7 @@
"instanceOf": "opencode-go",
"name": "OpenCode Go (popesdrew)"
},
"commandcode": {
"_commandcode": {
// 2026-11-05 (code#6117, opencode#1749): repointed from the CLI proxy
// (:18748, @ai-sdk/openai-compatible) to the in-fork native commandcode
// provider - same provider id, native wire emulation of the Command
Expand Down Expand Up @@ -1830,7 +1841,7 @@
// Change the leg order HERE, in this providers list, and
// nowhere else.
"mistral-plan": {
"providers": ["vibe-direct", "mistral"],
"providers": ["_vibe", "mistral"],
"selection": "ordered"
},
// opencode-go-plans (2026-11-03, Drew): the OpenCode Go plans as
Expand Down Expand Up @@ -1958,7 +1969,7 @@
"model": "opendesign/deepseek-v4.1-flash",
"variants": { "xhigh": "high", "max": "high" }
},
"commandcode/deepseek/deepseek-v4.1-flash",
"_commandcode/deepseek/deepseek-v4.1-flash",
{
"model": "mistral-plan/mistral-small-latest",
// Variant remap: the pool's effort rungs map onto the two
Expand All @@ -1981,7 +1992,7 @@
"opencode-go-plans/deepseek-v4.1-flash": 6,
"cline-pass/deepseek-v4.1-flash": 1,
"opendesign/deepseek-v4.1-flash": 1,
"commandcode/deepseek/deepseek-v4.1-flash": 0.5,
"_commandcode/deepseek/deepseek-v4.1-flash": 0.5,
"mistral-plan/mistral-small-latest": 0.25
}
},
Expand Down Expand Up @@ -2023,13 +2034,13 @@
"model": "opendesign/deepseek-v4-pro",
"variants": { "xhigh": "high", "max": "high" }
},
"commandcode/deepseek/deepseek-v4-pro"
"_commandcode/deepseek/deepseek-v4-pro"
],
"selection": "round-robin",
"autonomy": "rules",
"weights": {
"opencode-go-plans/deepseek-v4-pro": 3,
"commandcode/deepseek/deepseek-v4-pro": 0.5
"_commandcode/deepseek/deepseek-v4-pro": 0.5
}
},
"haiku-plan": {
Expand All @@ -2044,7 +2055,7 @@
// rejoins automatically on re-enable, issue #1132); OpenDesign
// is the pool's live flat door today.
"targets": [
"claude-code/claude-haiku-5-5",
"_claude/claude-haiku-5-5",
{
"model": "opendesign/claude-haiku-5.5",
"variants": { "xhigh": "high", "max": "high" }
Expand Down Expand Up @@ -2143,7 +2154,7 @@
// rides on the direct door the same way.
"targets": [
{
"model": "antigravity-direct/gemini-3.8-flash",
"model": "_antigravity/gemini-3.8-flash",
"variants": { "xhigh": "high", "max": "high" }
}
],
Expand All @@ -2169,9 +2180,9 @@
// is single-live-door on the direct door, plus claude-code's
// return.
"targets": [
"claude-code/claude-sonnet-5-5",
"_claude/claude-sonnet-5-5",
{
"model": "antigravity-direct/claude-sonnet-5-5",
"model": "_antigravity/claude-sonnet-5-5",
"variants": { "xhigh": "high", "max": "high" }
}
],
Expand All @@ -2193,9 +2204,9 @@
// "only the direct, replace all others". The direct door
// serves claude-opus-5-5 and bridges tool calls.
"targets": [
"claude-code/claude-opus-5-5",
"_claude/claude-opus-5-5",
{
"model": "antigravity-direct/claude-opus-5-5",
"model": "_antigravity/claude-opus-5-5",
"variants": { "xhigh": "high", "max": "high" }
}
],
Expand Down Expand Up @@ -2235,9 +2246,9 @@
// leaf in this pool.
"targets": [
"opencode-go-plans/muse-spark-1.3-contributor",
"commandcode/meta/muse-spark-1.3-contributor",
"_commandcode/meta/muse-spark-1.3-contributor",
"cline-pass/muse-spark-1.3-contributor",
"muse-direct/muse-spark-1.3-contributor"
"_muse/muse-spark-1.3-contributor"
],
"selection": "ordered",
"autonomy": "rules"
Expand Down Expand Up @@ -2272,7 +2283,7 @@
"model": "opendesign/gpt-6.1-sol",
"variants": { "xhigh": "high", "max": "high" }
},
"commandcode/gpt-6.1-sol"
"_commandcode/gpt-6.1-sol"
],
"selection": "round-robin",
"autonomy": "rules",
Expand Down Expand Up @@ -2349,7 +2360,7 @@
// service is retired). Same model, same pool position.
"targets": [
"opencode-go-plans/gemini-4-argon",
"antigravity-direct/gemini-4-argon"
"_antigravity/gemini-4-argon"
],
"selection": "round-robin",
"autonomy": "rules",
Expand All @@ -2366,7 +2377,7 @@
// on all three workspaces. Leaves are seated unconditionally: the
// router skips disabled or quota-empty leaves at runtime.
"targets": [
"commandcode/reflection/beam:free",
"_commandcode/reflection/beam:free",
"opencode-go-plans/beam-free"
],
"selection": "round-robin",
Expand All @@ -2389,13 +2400,13 @@
"opencode-go-plans/mimo-v2.6-flash",
"cline-pass/mimo-v2.6-flash",
"opendesign/mimo-v2.6-flash",
"commandcode/xiaomi/mimo-v2.6-flash"
"_commandcode/xiaomi/mimo-v2.6-flash"
],
"selection": "round-robin",
"autonomy": "rules",
"weights": {
"opencode-go-plans/mimo-v2.6-flash": 3,
"commandcode/xiaomi/mimo-v2.6-flash": 0.5
"_commandcode/xiaomi/mimo-v2.6-flash": 0.5
}
},
"scout": {
Expand Down Expand Up @@ -2625,15 +2636,15 @@
// sonnet-plan#high stays specialist's head seat.
"targets": [
"openai-plan/gpt-6-luna#xhigh",
"muse-direct/muse-spark-1.3-contributor#xhigh",
"_muse/muse-spark-1.3-contributor#xhigh",
"opencode-route/deepseek-flash-plan#high",
"opencode-route/sonnet-plan#medium"
],
"selection": "round-robin",
"autonomy": "rules",
"weights": {
"openai-plan/gpt-6-luna": 2,
"muse-direct/muse-spark-1.3-contributor": 2,
"_muse/muse-spark-1.3-contributor": 2,
"opencode-route/deepseek-flash-plan": 2,
"opencode-route/sonnet-plan": 2
}
Expand Down Expand Up @@ -2772,7 +2783,7 @@
"targets": [
"opencode-route/opus-plan#high",
"opencode-route/argon-plan#high",
"muse-direct/muse-wonder-1.0-contributor#xhigh",
"_muse/muse-wonder-1.0-contributor#xhigh",
"opencode-route/sol-plan#xhigh"
],
"selection": "ordered",
Expand Down
4 changes: 2 additions & 2 deletions bin/provider-catalog-sync.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// through a reviewable PR.
//
// #4544 split: the tracked configured default no longer carries the model
// catalogs sync-models owns (antigravity-direct, google,
// catalogs sync-models owns (_antigravity, google,
// openai, cloudflare-gateway) — those live in the runtime overlay
// (~/.local/state/opencode/opencode-runtime.jsonc). This tool diffs the
// merged effective config (default + overlay; --runtime-config) and skips
Expand Down Expand Up @@ -562,7 +562,7 @@ async function loadModelsDev(spec) {
// overlay (#4544). Catalog-sync diffs them (via the merged effective config)
// but never writes them into the tracked configured default on --apply.
export const SYNC_OWNED_PROVIDERS = new Set([
'antigravity-direct',
'_antigravity',
'google',
'openai',
'cloudflare-gateway',
Expand Down
2 changes: 1 addition & 1 deletion bin/provider-catalog-sync.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ test('CLI: OPENCODE_CONFIG_PATH pointing at the overlay does not redirect the ta
test('SYNC_OWNED_PROVIDERS names exactly the four sync-models-owned providers (#4544)', () => {
assert.deepEqual(
[...SYNC_OWNED_PROVIDERS].sort(),
['antigravity-direct', 'cloudflare-gateway', 'google', 'openai'],
['_antigravity', 'cloudflare-gateway', 'google', 'openai'],
);
});

Expand Down
4 changes: 2 additions & 2 deletions bin/sync-models.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ async function run() {
// file keeps its comments and formatting.
const edits = [];

// 1. Sync antigravity-direct (the CLI-wire door; antigravity-agy &
// 1. Sync _antigravity (the CLI-wire door; antigravity-agy &
// antigravity-ls retired 2026-10-30 — see home/common/default.nix)
if (agyModels.length > 0) {
// Write local cache for proxies
Expand Down Expand Up @@ -507,7 +507,7 @@ async function run() {
return { context: 1048576, output: 65536 };
};

for (const targetProvider of ['antigravity-direct']) {
for (const targetProvider of ['_antigravity']) {
if (!config.provider[targetProvider]) continue;
Comment on lines +510 to 511

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Migrate the runtime overlay before switching its sync key

On existing installations, sync-models.service reads the persistent runtime overlay (home/common/default.nix:917), whose Antigravity catalog is stored under provider.antigravity-direct. Renaming the tracked default does not rename that separate file, so this loop skips the provider and daily Antigravity catalog updates silently stop. Repository-wide searches found no deployment step that regenerates or migrates the overlay. Migrate the old overlay key or initialize _antigravity before checking its presence.

Useful? React with 👍 / 👎.

const prov = config.provider[targetProvider];
prov.models = prov.models || {};
Expand Down
2 changes: 1 addition & 1 deletion bin/sync-models.policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"claude-haiku": "^claude-haiku-(\\d+(?:-\\d+)?)$"
},
"providers": {
"antigravity-direct": {
"_antigravity": {
"keep": ["gemini-flash", "gemini-argon", "claude-opus", "claude-sonnet", "claude-haiku"],
"exclude": []
}
Expand Down
3 changes: 3 additions & 0 deletions pm-stack/aggregator/scripts/collect-fleet-feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ function poolFor(provider: string, model: string): string | null {
case "meta":
return "meta";
case "claude-code":
case "_claude":
return "anthropic:claude-pro";
case "openai":
case "openai-codex":
Expand All @@ -292,6 +293,8 @@ function poolFor(provider: string, model: string): string | null {
case "antigravity-agy":
case "google":
return model.startsWith("gemini") ? "antigravity-direct.gemini" : "antigravity-direct.claude-gpt";
case "_antigravity":
return model.startsWith("gemini") ? "_antigravity.gemini" : "_antigravity.claude-gpt";
default:
// opencode-go is deliberately unattributed in slice 1: which
// workspace (Personal vs Lab) a sandbox session burns is not
Expand Down
4 changes: 2 additions & 2 deletions pm-stack/aggregator/scripts/gather-quota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const OBSERVED_BY = "quota-gatherer";
* concurrency (opencode#1729); the small explicit ask gives it
* room, and its result replaces the listing's timed-out one.
* Remove it here when the cap is raised.) */
const EXPLICIT_ASK_PROVIDERS = ["meta", "command-code", "deepseek", "mistral"];
const EXPLICIT_ASK_PROVIDERS = ["meta", "_commandcode", "deepseek", "mistral"];

async function writeAtomic(path: string, text: string): Promise<void> {
await mkdir(dirname(path), { recursive: true });
Expand Down Expand Up @@ -570,7 +570,7 @@ async function collectRuns(tickAt: string): Promise<ProviderRun[]> {
const t0 = Date.now() - group.ms;
const entries = group.results.map((r) => entryFromResult(r, tickAt));
let run = finalizeRun(id, entries, t0);
if (id === "command-code") run = keepCommandCodePlanWindows(run);
if (id === "command-code" || id === "_commandcode") run = keepCommandCodePlanWindows(run);
runs.push(run);
}
return runs;
Expand Down
10 changes: 10 additions & 0 deletions pm-stack/aggregator/src/aa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,11 @@ export const AA_PLAN_FACTS: Record<string, AaPlanFact> = {
multiplier: 6,
note: "$10/mo buys a $60/mo list-rate meter (6×); Flash promo cap $80 (≈8×).",
},
"_commandcode": {
plan: "Command Code GOAT",
multiplier: 7,
note: "0/mo → 0 credits (7×); the entry Go tier is → 0 credits (10×). Tier on the account is unconfirmed.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the monetary values in the renamed provider's plan note

For the renamed _commandcode catalog entries, this note replaces the existing $10/mo → $70 credits and $1 → $10 credits figures with 0/mo → 0 credits and a missing entry-tier price. buildCatalog copies this string into planNote, and the Model Explorer renders it when a user selects a catalog row (render.ts:4776), so this is user-visible incorrect pricing information rather than an unused comment. Preserve the monetary values from the legacy commandcode entry below.

Useful? React with 👍 / 👎.

},
commandcode: {
plan: "Command Code GOAT",
multiplier: 7,
Expand All @@ -644,6 +649,11 @@ export const AA_PLAN_FACTS: Record<string, AaPlanFact> = {
multiplier: null,
note: "Second ChatGPT account door; resolves through the fork's built-in catalog.",
},
"_claude": {
plan: "Claude plan",
multiplier: null,
note: "Claude Code door — the fork's fleet-built _claude provider (renamed from claude-code 2026-11-07, #1823).",
},
"claude-code": {
plan: "Claude plan",
multiplier: null,
Expand Down
2 changes: 1 addition & 1 deletion pm-stack/aggregator/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ export interface AaCoverage {
/** Measured models no provider catalog carries under a matched name. */
measuredNotInCatalog: string[];
/** Catalog model ids (provider/model) with no AA measurement and no
* pool seat — e.g. commandcode/reflection/beam:free. Display names
* pool seat — e.g. _commandcode/reflection/beam:free. Display names
* are catalog ids, not AA names, so they can be found in the config. */
catalogNotPooledUnmeasured: string[];
}
Expand Down
21 changes: 16 additions & 5 deletions pm-stack/aggregator/src/provider-display.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Provider display names for dashboard markup (#6125, Drew 2026-11-05).
//
// Rule 0 (#1823, Drew 2026-11-07): a leading underscore is a
// config/source-level ownership marker (fleet-built providers carry
// it: _claude, _antigravity, ...). Display surfaces strip it — the
// canonical id keeps it everywhere else.
//
// Rule (dashboard only, markup only): a provider whose name ends in
// "-direct" is displayed WITHOUT that suffix — but only when no
// non-direct provider with the same base name exists in the same
Expand Down Expand Up @@ -30,20 +35,26 @@ function providerHead(name: string): string {
* same set.
*/
export function providerDisplayNames(names: Iterable<string>): Map<string, string> {
const list = [...names];
const list = [...names].map((name) => {
const head = providerHead(name);
return head.startsWith("_") ? head.slice(1) + name.slice(head.length) : name;
});
const heads = new Set(list.map(providerHead));
const out = new Map<string, string>();
for (const name of list) {
if (out.has(name)) continue;
const originals = [...names];
for (let i = 0; i < list.length; i++) {
const name = list[i];
const original = originals[i];
if (out.has(original)) continue;
const head = providerHead(name);
if (head.endsWith(DIRECT_SUFFIX)) {
const base = head.slice(0, -DIRECT_SUFFIX.length);
if (base.length > 0 && !heads.has(base)) {
out.set(name, base + name.slice(head.length));
out.set(original, base + name.slice(head.length));
continue;
}
}
out.set(name, name);
out.set(original, name);
}
return out;
}
Expand Down
Loading
Loading