feat(model-requirements): prefer GPT-5.4 and glm-5 in agent fallback chains

Align Prometheus, Momus, and Atlas with newer GPT-5.4 fallback tiers and replace Sisyphus install-time GLM-4.7 fallbacks with GLM-5 only.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-03-06 17:43:48 +09:00
parent 748275512c
commit 5fb289b0ea
4 changed files with 51 additions and 46 deletions
+8 -4
View File
@@ -145,19 +145,19 @@ describe("AGENT_MODEL_REQUIREMENTS", () => {
expect(primary.variant).toBe("max")
})
test("momus has valid fallbackChain with gpt-5.2 as primary", () => {
test("momus has valid fallbackChain with gpt-5.4 as primary", () => {
// given - momus agent requirement
const momus = AGENT_MODEL_REQUIREMENTS["momus"]
// when - accessing Momus requirement
// then - fallbackChain exists with gpt-5.2 as first entry, variant medium
// then - fallbackChain exists with gpt-5.4 as first entry, variant xhigh
expect(momus).toBeDefined()
expect(momus.fallbackChain).toBeArray()
expect(momus.fallbackChain.length).toBeGreaterThan(0)
const primary = momus.fallbackChain[0]
expect(primary.model).toBe("gpt-5.2")
expect(primary.variant).toBe("medium")
expect(primary.model).toBe("gpt-5.4")
expect(primary.variant).toBe("xhigh")
expect(primary.providers[0]).toBe("openai")
})
@@ -174,6 +174,10 @@ describe("AGENT_MODEL_REQUIREMENTS", () => {
const primary = atlas.fallbackChain[0]
expect(primary.model).toBe("claude-sonnet-4-6")
expect(primary.providers[0]).toBe("anthropic")
const secondary = atlas.fallbackChain[1]
expect(secondary.model).toBe("gpt-5.4")
expect(secondary.variant).toBe("medium")
})
test("hephaestus supports openai, github-copilot, venice, and opencode providers", () => {
+4 -4
View File
@@ -101,7 +101,7 @@ export const AGENT_MODEL_REQUIREMENTS: Record<string, ModelRequirement> = {
},
{
providers: ["openai", "github-copilot", "opencode"],
model: "gpt-5.2",
model: "gpt-5.4",
variant: "high",
},
{
@@ -133,8 +133,8 @@ export const AGENT_MODEL_REQUIREMENTS: Record<string, ModelRequirement> = {
fallbackChain: [
{
providers: ["openai", "github-copilot", "opencode"],
model: "gpt-5.2",
variant: "medium",
model: "gpt-5.4",
variant: "xhigh",
},
{
providers: ["anthropic", "github-copilot", "opencode"],
@@ -154,7 +154,7 @@ export const AGENT_MODEL_REQUIREMENTS: Record<string, ModelRequirement> = {
providers: ["anthropic", "github-copilot", "opencode"],
model: "claude-sonnet-4-6",
},
{ providers: ["openai", "github-copilot", "opencode"], model: "gpt-5.2" },
{ providers: ["openai", "github-copilot", "opencode"], model: "gpt-5.4", variant: "medium" },
],
},
};