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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"scripts": {
"build": "bun run build.ts",
"check-types": "bun tsc --noEmit",
"clean": "rm -rf dist",
"clean": "rm -r dist node_modules",
"dev": "bun --watch build.ts",
"eval": "bun run src/eval/run-eval.ts",
"eval:claude": "bun run src/eval/run-eval.ts --agent claude",
Expand Down
1 change: 1 addition & 0 deletions src/agents/__tests__/codex.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('CodexAgent', () => {
'codex',
[
'exec',
'--skip-git-repo-check',
'--output-last-message',
expect.stringMatching(/\/tmp\/codex-output-\d+\.txt/),
prompt,
Expand Down
13 changes: 9 additions & 4 deletions src/agents/codex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,15 @@ export class CodexAgent extends BaseAgent {

try {
// Execute Codex CLI in non-interactive mode
const result = await exec('codex', ['exec', '--output-last-message', tmpFile, prompt], {
cwd: workdir,
timeout: 120_000, // 2 minutes
});
// --skip-git-repo-check allows running in non-git directories (needed for eval system using /tmp)
const result = await exec(
'codex',
['exec', '--skip-git-repo-check', '--output-last-message', tmpFile, prompt],
{
cwd: workdir,
timeout: 120_000, // 2 minutes
}
);

// Read output from temp file or fallback to stdout
return await this._readOutput(tmpFile, result.stdout);
Expand Down