Skip to content
Open
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
2 changes: 2 additions & 0 deletions plugins/pstack/skills/poteto-mode/references/model-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ Model and provider facts for [`provider-dispatch.md`](provider-dispatch.md), whi
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| fable | Fable | claude | fable | max | low medium high xhigh max | `pstack-fable-<effort>` | optional | - |
| sol | GPT-6.1 Sol | codex | gpt-6.1-sol | max | low medium high xhigh max ultra | - | default | gpt-5.6-sol-max |
| sol-6.2 | GPT-6.2 Sol | codex | gpt-6.2-sol | max | low medium high xhigh max ultra | - | optional | - |
| grok | Grok 4.7 | grok | grok-4.7 | xhigh | low medium high xhigh max | - | default | grok-4.7-xhigh-fast |
| opus | Opus | claude | opus | max | low medium high xhigh max | `pstack-opus-<effort>` | default | opus |
| luna | GPT-6 Luna | codex | gpt-6-luna | max | low medium high xhigh max | - | optional | - |
| astra | GPT-6 Astra | codex | gpt-6-astra | max | low medium high xhigh max ultra | - | optional | - |
| astra-6.2 | GPT-6.2 Astra | codex | gpt-6.2-astra | max | low medium high xhigh max ultra | - | optional | - |
| sonnet | Sonnet | claude | sonnet | max | low medium high xhigh max | `pstack-sonnet-<effort>` | optional | - |
| opus-5-5 | Opus 5.5 | claude | claude-opus-5-5 | max | low medium high xhigh max | `pstack-opus-5-5-<effort>` | optional | claude-opus-5-5-xhigh |
| haiku-5-5 | Haiku 5.5 | claude | claude-haiku-5-5 | max | low medium high xhigh max | `pstack-haiku-5-5-<effort>` | optional | - |
Expand Down
28 changes: 21 additions & 7 deletions plugins/pstack/skills/poteto-mode/scripts/runner/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ describe("registry data", () => {
expect(REGISTRY.families.map((entry) => [entry.name, entry.defaultEffort])).toEqual([
["fable", "max"],
["sol", "max"],
["sol-6.2", "max"],
["grok", "xhigh"],
["opus", "max"],
["luna", "max"],
["astra", "max"],
["astra-6.2", "max"],
["sonnet", "max"],
["opus-5-5", "max"],
["haiku-5-5", "max"],
Expand All @@ -113,8 +115,15 @@ describe("registry data", () => {
.map((entry) => [entry.name, entry.rolling!.revisionPrefix]))
.toEqual([["fable", "claude-fable-"], ["opus", "claude-opus-"], ["sonnet", "claude-sonnet-"]]);
expect(REGISTRY.families.filter((entry) => entry.provider === "codex").map((entry) => [entry.name, entry.model]))
.toEqual([["sol", "gpt-6.1-sol"], ["luna", "gpt-6-luna"], ["astra", "gpt-6-astra"]]);
expect(REGISTRY.families.filter((entry) => effortsOf(entry).includes("ultra")).map((entry) => entry.name)).toEqual(["sol", "astra"]);
.toEqual([
["sol", "gpt-6.1-sol"],
["sol-6.2", "gpt-6.2-sol"],
["luna", "gpt-6-luna"],
["astra", "gpt-6-astra"],
["astra-6.2", "gpt-6.2-astra"],
]);
expect(REGISTRY.families.filter((entry) => effortsOf(entry).includes("ultra")).map((entry) => entry.name))
.toEqual(["sol", "sol-6.2", "astra", "astra-6.2"]);
});

it("keeps family names and (provider, model) pairs unique, and efforts ordered", () => {
Expand Down Expand Up @@ -495,12 +504,17 @@ describe("resolveLane", () => {
.toThrow("effort ultra is not offered for claude:sonnet");
});

it("resolves Astra at max by default and passes ultra to Codex", () => {
const astra = resolveLane(request({ parent: "claude", provider: "codex", model: "gpt-6-astra" }));
expect([astra.family?.name, astra.effort]).toEqual(["astra", "max"]);
const ultra = resolveLane(request({ parent: "claude", provider: "codex", model: "gpt-6-astra", effort: "ultra" }));
it.each([
["astra", "gpt-6-astra"],
["sol-6.2", "gpt-6.2-sol"],
["astra-6.2", "gpt-6.2-astra"],
])("resolves %s model %s at max by default and passes ultra to Codex", (family, model) => {
const descriptor = { parent: "claude", provider: "codex", model } as const;
const lane = resolveLane(request(descriptor));
expect([lane.family?.name, lane.effort]).toEqual([family, "max"]);
const ultra = resolveLane(request({ ...descriptor, effort: "ultra" }));
expect(ultra.adapter.launch.argv(ultra, { sharedGitDir: null, providerSidecar: null }))
.toEqual(expect.arrayContaining(["gpt-6-astra", 'model_reasoning_effort="ultra"']));
.toEqual(expect.arrayContaining([model, 'model_reasoning_effort="ultra"']));
});

it("maps each Devin effort to its CLI model ID and keeps the descriptor's model for the receipt", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ export const FAMILIES = [
upstream: "gpt-5.6-sol-max",
predecessors: [{ model: "gpt-5.6-sol", efforts: UP_TO_ULTRA }],
}),
family({
name: "sol-6.2",
label: "GPT-6.2 Sol",
provider: "codex",
model: "gpt-6.2-sol",
efforts: UP_TO_ULTRA, // `codex debug models`, Codex CLI 0.170.0
defaultEffort: "max",
upstream: null,
}),
family({
name: "grok",
label: "Grok 4.7",
Expand Down Expand Up @@ -62,6 +71,15 @@ export const FAMILIES = [
defaultEffort: "max",
upstream: null,
}),
family({
name: "astra-6.2",
label: "GPT-6.2 Astra",
provider: "codex",
model: "gpt-6.2-astra",
efforts: UP_TO_ULTRA, // `codex debug models`, Codex CLI 0.170.0
defaultEffort: "max",
upstream: null,
}),
family({
name: "sonnet",
label: "Sonnet",
Expand Down Expand Up @@ -219,4 +237,6 @@ export const RELEASED_PAIRS = [
{ pair: "cursor:gemini-3.7-flash", family: "gemini-3.7-flash" },
{ pair: "claude:claude-haiku-5-5", family: "haiku-5-5" },
{ pair: "codex:gpt-6-astra", family: "astra" },
{ pair: "codex:gpt-6.2-sol", family: "sol-6.2" },
{ pair: "codex:gpt-6.2-astra", family: "astra-6.2" },
] as const satisfies readonly ReleasedPair<FamilyName>[];