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
12 changes: 3 additions & 9 deletions scripts/generate-benchmark-matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
import { Agent } from "~/agents/index.js";
import { Task } from "~/src/tasks/index.js";

// Note: Models are no longer hardcoded per agent.
// This script now generates an empty matrix since models should be specified externally.
const agents = Agent.list();
const tasks = await Task.listNames();
const include = tasks.flatMap((task) =>
agents.flatMap((agent) =>
agent.models.map((model) => ({
eval: task,
model,
agent: agent.name,
})),
),
);
const include: any[] = [];

const matrix = JSON.stringify({ include });
process.stdout.write(matrix);
Expand Down
13 changes: 4 additions & 9 deletions scripts/sync-workflow-inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,14 @@ async function main(): Promise<void> {
const workflowContent = readFileSync(workflowPath, "utf8");
const workflow = YAML.parse(workflowContent);

// Get all available agent:model combinations
// Note: Models are no longer hardcoded per agent.
// This script now generates empty inputs since models should be specified externally.
const agents = Agent.list();
const combinations: Array<{ agent: string; model: string }> = [];

for (const agent of agents) {
for (const model of agent.models) {
combinations.push({ agent: agent.name, model });
}
}

// Models are no longer hardcoded, so combinations list will be empty
if (combinations.length === 0) {
console.error("No agent:model combinations found");
process.exit(1);
console.log("No hardcoded agent:model combinations (models are now dynamic)");
}

// Build new inputs
Expand Down
8 changes: 0 additions & 8 deletions src/agents/claude-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ import { Logger } from "../util/logger.js";

const sessionCache = new Map<string, string>();

export const models: string[] = [
"claude-sonnet-4-5",
"claude-opus-4-5",
// "claude-sonnet-4",
// "claude-opus-4-1",
// "claude-3-5-haiku",
];

function sessionKey(model: string, cwd: string): string {
return `${cwd}::${model}`;
}
Expand Down
10 changes: 1 addition & 9 deletions src/agents/codex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ const DEFAULT_SANDBOX: SandboxMode = "workspace-write";
const codexClient = new Codex();
const threadCache = new Map<string, Thread>();

export const models = [
"gpt-5-codex",
"gpt-5.1-codex",
// "gpt-5",
// "o3",
// "o4-mini"
] as const;

function sessionKey(model: string, cwd: string): string {
return `${cwd}::${model}`;
}
Expand Down Expand Up @@ -67,7 +59,7 @@ function getOrCreateThread(model: string, cwd: string): Thread {
return thread;
}

const codexAgent: Agent.Definition<(typeof models)[number]> = {
const codexAgent: Agent.Definition = {
async run(model, prompt, options) {
options.logger.log(
`codex-sdk --model ${model} --sandbox ${DEFAULT_SANDBOX} ${prompt}`,
Expand Down
13 changes: 1 addition & 12 deletions src/agents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export namespace Agent {
export interface Registration<TModel extends string = string> {
name: string;
definition: Definition<TModel>;
models: ReadonlyArray<TModel>;
}

const agents: Record<string, Registration<any>> = {
Expand All @@ -60,16 +59,13 @@ export namespace Agent {
name: string,
module: {
default?: Definition<TModel>;
models?: ReadonlyArray<TModel>;
},
): Registration<TModel> {
const definition = module.default;
const models = module.models;

assert(definition, `Agent module ${name} is missing a default export.`);
assert(models, `Agent module ${name} is missing the exported models list.`);

return { name, definition, models };
return { name, definition };
}

export function get(name: string): Registration {
Expand All @@ -78,13 +74,6 @@ export namespace Agent {
return agent;
}

export function validateModel(agent: Registration, model: string) {
if (!agent.models.find((entry) => entry === model))
throw new Error(
`Model ${model} is not registered for agent ${agent.name}.`,
);
}

export function list() {
return Object.values(agents);
}
Expand Down
14 changes: 0 additions & 14 deletions src/agents/opencode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ const opencode = await createOpencode({

const sessionCache = new Map<string, string>();

export const models: string[] = [
"opencode/gpt-5-codex",
"opencode/gpt-5.1-codex",
"opencode/claude-sonnet-4-5",
"opencode/claude-opus-4-5",
"opencode/glm-4.6",
"opencode/glm-4.7-free",
"opencode/gemini-3-pro",
"opencode/qwen3-coder",
"opencode/kimi-k2",
"opencode/grok-code",
"opencode/alpha-gd4",
];

function sessionKey(model: string, cwd: string): string {
return `${cwd}::${model}`;
}
Expand Down
1 change: 0 additions & 1 deletion src/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export namespace Eval {
},
) {
const agent = Agent.get(agentName);
Agent.validateModel(agent, modelId);
const task = await Task.get(taskId);
const cwd = await mkdtemp(join(tmpdir(), "openreval-"));
$.cwd(cwd);
Expand Down