MCPcopy
hub / github.com/rpamis/comet / buildCodexArgs

Function buildCodexArgs

scripts/context-compression-benchmark.mjs:503–521  ·  view source on GitHub ↗
({ cwd, model = null })

Source from the content-addressed store, hash-verified

501}
502
503export function buildCodexArgs({ cwd, model = null }) {
504 const args = [
505 '--ask-for-approval',
506 'never',
507 'exec',
508 '--json',
509 '--ephemeral',
510 '--ignore-user-config',
511 '--ignore-rules',
512 '--skip-git-repo-check',
513 '--cd',
514 cwd,
515 '--sandbox',
516 'read-only',
517 ];
518 if (model) args.push('--model', model);
519 args.push('-');
520 return args;
521}
522
523function buildPrompt(mode, contextFile, contextText) {
524 return [

Callers 2

runCodexModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected