Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

feat: add reasoning effort controls to security CLI (#79)

ianw-oai2d21b1d2517c
diff --git a/README.md b/README.md
index b13ad5f3b..ed9433045 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ Requires Node.js 22 or later, Python 3.10 or later, and access to Codex Security
npm install @openai/codex-security
npx @openai/codex-security login
npx @openai/codex-security scan .
+npx @openai/codex-security scan . --model gpt-5.6-terra --effort high
```
For CI, set `OPENAI_API_KEY` instead of signing in.
diff --git a/sdk/typescript/README.md b/sdk/typescript/README.md
index 7aa76d1b8..4f0de1cbf 100644
--- a/sdk/typescript/README.md
+++ b/sdk/typescript/README.md
@@ -126,6 +126,7 @@ without printing its value, including when no stored sign-in exists.
```bash
npx @openai/codex-security scan /path/to/repository
npx @openai/codex-security scan /path/to/repository --model gpt-5.6-terra
+npx @openai/codex-security scan /path/to/repository --model gpt-5.6-terra --effort high
npx @openai/codex-security scan /path/to/repository --path src --path tests
npx @openai/codex-security scan /path/to/repository --knowledge-base /path/to/threat-models --knowledge-base /path/to/architecture.pdf
npx @openai/codex-security scan /path/to/repository --diff origin/main --json
@@ -136,6 +137,7 @@ npx @openai/codex-security scan /path/to/repository --fail-on-severity high
npx @openai/codex-security scan /path/to/repository --max-cost 5
npx @openai/codex-security install-hook
npx @openai/codex-security bulk-scan
+npx @openai/codex-security bulk-scan --model gpt-5.6-terra --effort high
npx @openai/codex-security bulk-scan repositories.csv --output-dir /path/outside/repositories/security-scans --workers 4
npx @openai/codex-security scans list /path/to/repository
npx @openai/codex-security scans list --scan-root /path/outside/repository/results
@@ -149,7 +151,9 @@ npx @openai/codex-security export /path/outside/repository/results --export-form
npx @openai/codex-security export /path/outside/repository/results --export-format csv --output /path/outside/repository/findings.csv
npx @openai/codex-security export /path/outside/repository/results --export-format json --output /path/outside/repository/findings.json
npx @openai/codex-security validate /path/outside/repository/findings.json "Possible SQL injection in src/query.ts:42"
+npx @openai/codex-security validate "Possible SQL injection" --effort high
npx @openai/codex-security patch /path/outside/repository/findings.json "Missing authorization check in src/routes.ts:18"
+npx @openai/codex-security patch "Missing authorization check" --effort high
```
Run `npx @openai/codex-security --version` for the installed CLI version or
@@ -187,10 +191,11 @@ for a passing policy. Incomplete scans still write the available human or JSON
result to stdout and a coverage warning to stderr, including in report-only
mode.
-Scans use `gpt-5.6-sol` with extra-high reasoning effort by default. Use
-`--model gpt-5.6-terra` to switch models. Use repeatable `--codex KEY=VALUE`
-options for other Codex settings, such as
-`--codex 'model_reasoning_effort="high"'`.
+Scans use `gpt-5.6-sol` with extra-high reasoning effort by default. OpenAI is
+the implied provider. Use `--model gpt-5.6-terra` to switch models and
+`--effort minimal|low|medium|high|xhigh` to set reasoning effort. Repeat
+`--codex KEY=VALUE` for other Codex settings; existing
+`--codex 'model_reasoning_effort="high"'` overrides remain supported.
Scan progress identifies the requested paths and reports actual ranking,
file-review, validation, and attack-path phases as they become available.
@@ -314,9 +319,9 @@ input can be either a file, whose contents are read into the request, or literal
text. Both commands operate on the current directory, use the scan model
and reasoning defaults, ignore unrelated user configuration and plugins, and
print the final response without the underlying Codex event stream. Override
-the model or reasoning effort with `--codex 'model="gpt-5.6-sol"'` or
-`--codex 'model_reasoning_effort="high"'`. Inputs are limited to 64 items and
-1 MiB total.
+the model with `--codex 'model="gpt-5.6-sol"'` and the reasoning effort with
+`--effort high` or `--codex 'model_reasoning_effort="high"'`. Inputs are
+limited to 64 items and 1 MiB total.
Canonical scan documents are limited to 16 MiB for the manifest, 128 MiB for
findings, and 32 MiB for coverage. Oversized scans are rejected before sealing.
diff --git a/sdk/typescript/src/cli.ts b/sdk/typescript/src/cli.ts
index 7de2cfc36..75b25b4c2 100644
--- a/sdk/typescript/src/cli.ts
+++ b/sdk/typescript/src/cli.ts
@@ -25,6 +25,7 @@ import { createInterface } from "node:readline";
import { Readable, Writable as NodeWritable } from "node:stream";
import { pipeline } from "node:stream/promises";
import { fileURLToPath, pathToFileURL } from "node:url";
+import type { ModelReasoningEffort } from "@openai/codex-sdk";
import { Cli, z } from "incur";
import { parse as parseToml } from "smol-toml";
import {
@@ -122,6 +123,15 @@ const DISPLAY_SEVERITIES: readonly SeverityLevel[] = [
...REPORTABLE_SEVERITIES,
"informational",
];
+const MODEL_REASONING_EFFORTS = [
+ "minimal",
+ "low",
+ "medium",
+ "high",
+ "xhigh",
+] as const satisfies readonly ModelReasoningEffort[];
+const DEFAULT_SCAN_MODEL_CONFIGURATION =
+ scanModelConfiguration(DEFAULT_CODEX_CONFIG);
const EXPORT_DEFAULT_OUTPUTS = {
csv: "findings.csv",
json: "findings.json",
@@ -136,6 +146,7 @@ const VALUE_OPTIONS = new Set([
"--base",
"--mode",
"--model",
+ "--effort",
"--output-dir",
"--plugin-path",
"--python",
@@ -159,6 +170,17 @@ function optionValue(flag: string) {
return z.string().min(1, `${flag} must not be empty.`);
}
+function effortOption() {
+ return z
+ .enum(MODEL_REASONING_EFFORTS, {
+ error: "--effort must be minimal, low, medium, high, or xhigh.",
+ })
+ .optional()
+ .describe(
+ `Model reasoning effort (default: ${DEFAULT_SCAN_MODEL_CONFIGURATION.reasoningEffort}).`,
+ );
+}
+
interface ScanArguments {
auth?: ScanAuthMode;
repository?: string;
@@ -170,6 +192,7 @@ interface ScanArguments {
base?: string;
mode: ScanMode;
model?: string;
+ effort?: ModelReasoningEffort;
outputDir?: string;
archiveExisting: boolean;
pluginPath?: string;
@@ -888,7 +911,10 @@ export async function main(
.describe("Scan mode."),
model: optionValue("--model")
.optional()
- .describe("Model to use for the scan."),
+ .describe(
+ `OpenAI model to use (default: ${DEFAULT_SCAN_MODEL_CONFIGURATION.model}).`,
+ ),
+ effort: effortOption(),
outputDir: optionValue("--output-dir")
.optional()
.describe("Write scan artifacts to DIR."),
@@ -906,7 +932,7 @@ export async function main(
.array(optionValue("--codex"))
.default([])
.describe(
- "Override isolated Codex config with KEY=VALUE; repeat as needed.",
+ 'Override Codex settings; e.g. model_reasoning_effort="high".',
),
failOnSeverity: z
.enum(REPORTABLE_SEVERITIES)
@@ -951,6 +977,10 @@ export async function main(
examples: [
{ args: { repository: "." } },
{ args: { repository: "." }, options: { model: "gpt-5.6-terra" } },
+ {
+ args: { repository: "." },
+ options: { model: "gpt-5.6-terra", effort: "high" },
+ },
{ args: { repository: "." }, options: { path: ["src", "tests"] } },
{ args: { repository: "." }, options: { diff: "origin/main" } },
],
@@ -975,6 +1005,7 @@ export async function main(
base: options.base,
mode: options.mode,
model: options.model,
+ effort: options.effort,
outputDir: options.outputDir,
archiveExisting: options.archiveExisting,
pluginPath: options.pluginPath,
@@ -1092,7 +1123,10 @@ export async function main(
mode: z.enum(["standard", "deep"]).default("standard"),
model: optionValue("--model")
.optional()
- .describe("Model to use for each repository."),
+ .describe(
+ `OpenAI model for each repository (default: ${DEFAULT_SCAN_MODEL_CONFIGURATION.model}).`,
+ ),
+ effort: effortOption(),
maxAttempts: z
.number()
.int()
@@ -1101,7 +1135,12 @@ export async function main(
.describe("Maximum scan attempts per repository."),
pluginPath: z.string().min(1).optional(),
python: z.string().min(1).optional(),
- codex: z.array(z.string().min(1)).default([]),
+ codex: z
+ .array(z.string().min(1))
+ .default([])
+ .describe(
+ 'Override Codex settings; e.g. model_reasoning_effort="high".',
+ ),
}),
output: z.record(z.string(), z.unknown()).optional(),
async run({ args, options }) {
@@ -1122,16 +1161,28 @@ export async function main(
let outputDir: string;
let githubHost: string | undefined;
if (args.input === undefined) {
- if (
- argv[0] !== "bulk-scan" ||
- !(
- argv.length === 1 ||
- (argv.length === 3 && argv[1] === "--model") ||
- (argv.length === 2 && argv[1] === `--model=${options.model}`)
- )
- ) {
+ let optionIndex = 1;
+ while (optionIndex < argv.length) {
+ const argument = argv[optionIndex]!;
+ if (
+ argument === "--model" ||
+ argument === "--effort" ||
+ argument === "--codex"
+ ) {
+ optionIndex += 2;
+ } else if (
+ argument.startsWith("--model=") ||
+ argument.startsWith("--effort=") ||
+ argument.startsWith("--codex=")
+ ) {
+ optionIndex += 1;
+ } else {
+ break;
+ }
+ }
+ if (argv[0] !== "bulk-scan" || optionIndex !== argv.length) {
throw new Error(
- "Run 'codex-security bulk-scan [--model MODEL]' to discover repositories, or provide a CSV and --output-dir.",
+ "Run 'codex-security bulk-scan [--model MODEL] [--effort EFFORT] [--codex KEY=VALUE]' to discover repositories, or provide a CSV and --output-dir.",
);
}
const wizard = await runBulkScanWizard(
@@ -1166,7 +1217,11 @@ export async function main(
config: {
pluginPath: options.pluginPath,
pythonPath: options.python,
- codexOverrides: parseCodexOverrides(options.codex, options.model),
+ codexOverrides: parseCodexOverrides(
+ options.codex,
+ options.model,
+ options.effort,
+ ),
},
createSecurity: dependencies.createSecurity,
signal: controller.signal,
@@ -1265,10 +1320,13 @@ export async function main(
.describe("Finding text or a file containing findings."),
}),
options: z.object({
+ effort: effortOption(),
codex: z
.array(optionValue("--codex"))
.default([])
- .describe("Override model or model_reasoning_effort with KEY=VALUE."),
+ .describe(
+ 'Set model="gpt-5.6-terra" or model_reasoning_effort="high".',
+ ),
}),
async run({ options }) {
try {
@@ -1276,6 +1334,7 @@ export async function main(
"validation",
positionals,
options.codex,
+ options.effort,
output,
errorOutput,
dependencies,
@@ -1297,10 +1356,13 @@ export async function main(
.describe("Issue text or a file containing issues."),
}),
options: z.object({
+ effort: effortOption(),
codex: z
.array(optionValue("--codex"))
.default([])
- .describe("Override model or model_reasoning_effort with KEY=VALUE."),
+ .describe(
+ 'Set model="gpt-5.6-terra" or model_reasoning_effort="high".',
+ ),
}),
async run({ options }) {
try {
@@ -1308,6 +1370,7 @@ export async function main(
"fix-finding",
positionals,
options.codex,
+ options.effort,
output,
errorOutput,
dependencies,
@@ -1865,6 +1928,7 @@ async function runSkill(
skill: "validation" | "fix-finding",
inputs: readonly string[],
codexOverrides: readonly string[],
+ effort: ModelReasoningEffort | undefined,
stdout: Writable,
stderr: Writable,
dependencies: CliDependencies,
@@ -1872,7 +1936,7 @@ async function runSkill(
if (inputs.length > MAX_SKILL_INPUT_COUNT) {
throw new CodexSecurityError("Skill inputs exceed the 64-item limit.");
}
- const overrides = parseCodexOverrides(codexOverrides);
+ const overrides = parseCodexOverrides(codexOverrides, undefined, effort);
if (
Object.keys(overrides).some(
(key) => key !== "model" && key !== "model_reasoning_effort",
@@ -2248,7 +2312,11 @@ async function runScan(
pythonPath: arguments_.pythonPath,
codexOverrides:
arguments_.codexOverrides ??
- parseCodexOverrides(arguments_.codex, arguments_.model),
+ parseCodexOverrides(
+ arguments_.codex,
+ arguments_.model,
+ arguments_.effort,
+ ),
};
let auth = arguments_.auth;
selectedAuthentication = scanAuthentication(dependencies.environment, auth);
@@ -2698,9 +2766,11 @@ function targetFromArguments(arguments_: ScanArguments): ScanTarget {
export function parseCodexOverrides(
values: readonly string[],
model?: string,
+ effort?: ModelReasoningEffort,
): JsonObject {
const result = Object.create(null) as JsonObject;
if (model !== undefined) result["model"] = model;
+ if (effort !== undefined) result["model_reasoning_effort"] = effort;
for (const value of values) {
const separator = value.indexOf("=");
const key = separator < 0 ? "" : value.slice(0, separator);
@@ -2748,11 +2818,15 @@ export function parseCodexOverrides(
}
const final = parts.at(-1)!;
if (Object.hasOwn(cursor, final)) {
- throw new CodexSecurityError(
- model !== undefined && key === "model"
- ? "--model conflicts with --codex model"
- : "Duplicate --codex key",
- );
+ if (model !== undefined && key === "model") {
+ throw new CodexSecurityError("--model conflicts with --codex model");
+ }
+ if (effort !== undefined && key === "model_reasoning_effort") {
+ throw new CodexSecurityError(
+ "--effort conflicts with --codex model_reasoning_effort",
+ );
+ }
+ throw new CodexSecurityError("Duplicate --codex key");
}
cursor[final] = parsed;
}
diff --git a/sdk/typescript/tests-ts/cli-skills.test.ts b/sdk/typescript/tests-ts/cli-skills.test.ts
index 9bfe9db08..bb7f5c27b 100644
--- a/sdk/typescript/tests-ts/cli-skills.test.ts
+++ b/sdk/typescript/tests-ts/cli-skills.test.ts
@@ -90,7 +90,13 @@ describe("CLI skill commands", () => {
expect(help.text()).toContain(
`Usage: codex-security ${command} <${argument}>`,
);
+ expect(help.text()).toContain(
+ "--effort <minimal|low|medium|high|xhigh>",
+ );
expect(help.text()).toContain("--codex <array>");
+ expect(help.text()).toContain('model="gpt-5.6-terra"');
+ expect(help.text()).toContain('model_reasoning_effort="high"');
+ expect(help.text()).not.toContain("--provider");
}
} finally {
await rm(directory, { recursive: true, force: true });
@@ -278,6 +284,67 @@ describe("CLI skill commands", () => {
}
});
+ test("selects reasoning effort directly for validation and patching", async () => {
+ for (const command of ["validate", "patch"] as const) {
+ let invocation: readonly string[] = [];
+ const stderr = capture();
+
+ expect(
+ await main(
+ [
+ command,
+ "a candidate finding",
+ "--effort",
+ "high",
+ "--codex",
+ 'model="gpt-5.6-terra"',
+ ],
+ capture().stream,
+ stderr.stream,
+ dependencies({
+ onCodex: (args) => {
+ invocation = args;
+ return 0;
+ },
+ }),
+ ),
+ ).toBe(0);
+ expect(invocation).toContain('model="gpt-5.6-terra"');
+ expect(invocation).toContain('model_reasoning_effort="high"');
+ expect(stderr.text()).toBe("");
+
+ for (const [options, message] of [
+ [
+ ["--effort", "ultra"],
+ "--effort must be minimal, low, medium, high, or xhigh",
+ ],
+ [
+ ["--effort", "high", "--codex", 'model_reasoning_effort="medium"'],
+ "--effort conflicts with --codex model_reasoning_effort",
+ ],
+ ] as const) {
+ let started = false;
+ const invalidStderr = capture();
+
+ expect(
+ await main(
+ [command, "a candidate finding", ...options],
+ capture().stream,
+ invalidStderr.stream,
+ dependencies({
+ onCodex: () => {
+ started = true;
+ return 0;
+ },
+ }),
+ ),
+ ).toBe(2);
+ expect(invalidStderr.text()).toContain(message);
+ expect(started).toBe(false);
+ }
+ }
+ });
+
test("rejects empty, non-file, and oversized skill inputs before launching Codex", async () => {
const directory = await mkdtemp(
join(tmpdir(), "codex-security-skill-inputs-"),
diff --git a/sdk/typescript/tests-ts/cli.test.ts b/sdk/typescript/tests-ts/cli.test.ts
index cab31756b..88f6f5f29 100644
--- a/sdk/typescript/tests-ts/cli.test.ts
+++ b/sdk/typescript/tests-ts/cli.test.ts
@@ -31,6 +31,7 @@ import {
VERSION,
} from "../src/index.js";
import { main, parseCodexOverrides, Progress } from "../src/cli.js";
+import { DEFAULT_CODEX_CONFIG, scanModelConfiguration } from "../src/config.js";
import {
FakeSignals,
REDACTED_CREDENTIALS,
@@ -41,6 +42,9 @@ import {
fakeResult,
} from "./cli-fixtures.js";
+const DEFAULT_SCAN_MODEL_CONFIGURATION =
+ scanModelConfiguration(DEFAULT_CODEX_CONFIG);
+
async function multiscanInventory(root: string): Promise<void> {
const repository = join(root, "repository");
for (const args of [
@@ -101,6 +105,7 @@ describe("CLI", () => {
path: { type: "array" },
mode: { enum: ["standard", "deep"] },
model: { type: "string" },
+ effort: { enum: ["minimal", "low", "medium", "high", "xhigh"] },
failOnSeverity: { enum: ["critical", "high", "medium", "low"] },
},
},
@@ -483,6 +488,8 @@ describe("CLI", () => {
"deep",
"--model",
"gpt-5.6-terra",
+ "--effort",
+ "high",
"--codex",
"features.goals=true",
"--json",
@@ -507,6 +514,7 @@ describe("CLI", () => {
codexOverrides: {
features: { goals: true },
model: "gpt-5.6-terra",
+ model_reasoning_effort: "high",
},
});
expect(scanOptions).toMatchObject({ mode: "deep" });
@@ -563,6 +571,11 @@ describe("CLI", () => {
["bulk-scan"],
["bulk-scan", "--model", "gpt-5.6-terra"],
["bulk-scan", "--model=gpt-5.6-terra"],
+ ["bulk-scan", "--effort", "high"],
+ ["bulk-scan", "--effort=high"],
+ ["bulk-scan", "--codex", 'model_reasoning_effort="high"'],
+ ["bulk-scan", '--codex=model_reasoning_effort="high"'],
+ ["bulk-scan", "--model", "gpt-5.6-terra", "--effort", "high"],
] as const) {
const stdout = capture();
const stderr = capture();
@@ -1262,17 +1275,75 @@ describe("CLI", () => {
expect(help.text()).toContain("--path <array>");
expect(help.text()).toContain("--max-cost <number>");
expect(help.text()).toContain("--model <string>");
+ expect(help.text()).toContain(
+ `OpenAI model to use (default: ${DEFAULT_SCAN_MODEL_CONFIGURATION.model}).`,
+ );
+ expect(help.text()).toContain("--effort <minimal|low|medium|high|xhigh>");
+ expect(help.text()).toContain(
+ `Model reasoning effort (default: ${DEFAULT_SCAN_MODEL_CONFIGURATION.reasoningEffort}).`,
+ );
+ expect(help.text()).toContain('model_reasoning_effort="high"');
expect(help.text()).toContain(
"codex-security scan . --model gpt-5.6-terra",
);
+ expect(help.text()).toContain(
+ "codex-security scan . --model gpt-5.6-terra --effort high",
+ );
+ expect(help.text()).not.toContain("--provider");
+ expect(help.text()).not.toContain("openai:gpt");
expect(help.text()).toContain("--format <toon|json|yaml|md|jsonl>");
});
- test("selects scan models without TOML quoting", async () => {
+ test("documents existing model and reasoning options in bulk-scan help", async () => {
+ const help = capture();
+ const stderr = capture();
+
+ expect(
+ await main(
+ ["bulk-scan", "--help"],
+ help.stream,
+ stderr.stream,
+ dependencies(),
+ ),
+ ).toBe(0);
+ expect(help.text()).toContain("--model <string>");
+ expect(help.text()).toContain(
+ `OpenAI model for each repository (default: ${DEFAULT_SCAN_MODEL_CONFIGURATION.model}).`,
+ );
+ expect(help.text()).toContain("--effort <minimal|low|medium|high|xhigh>");
+ expect(help.text()).toContain(
+ `Model reasoning effort (default: ${DEFAULT_SCAN_MODEL_CONFIGURATION.reasoningEffort}).`,
+ );
+ expect(help.text()).toContain("--codex <array>");
+ expect(help.text()).toContain('model_reasoning_effort="high"');
+ expect(help.text()).not.toContain("--provider");
+ expect(stderr.text()).toBe("");
+ });
+
+ test("selects scan models and reasoning without TOML quoting", async () => {
for (const [options, expected] of [
[["--model", "gpt-5.6-terra"], { model: "gpt-5.6-terra" }],
[["--model=gpt-5.6-sol"], { model: "gpt-5.6-sol" }],
+ [["--effort", "minimal"], { model_reasoning_effort: "minimal" }],
+ [["--effort=xhigh"], { model_reasoning_effort: "xhigh" }],
+ [
+ ["--model", "gpt-5.6-terra", "--effort", "high"],
+ { model: "gpt-5.6-terra", model_reasoning_effort: "high" },
+ ],
[["--codex", 'model="gpt-5.6-terra"'], { model: "gpt-5.6-terra" }],
+ [
+ ["--codex", 'model_reasoning_effort="high"'],
+ { model_reasoning_effort: "high" },
+ ],
+ [
+ [
+ "--model",
+ "gpt-5.6-terra",
+ "--codex",
+ 'model_reasoning_effort="high"',
+ ],
+ { model: "gpt-5.6-terra", model_reasoning_effort: "high" },
+ ],
[
["--model", "gpt-5.6-terra", "--codex", "features.goals=true"],
{ model: "gpt-5.6-terra", features: { goals: true } },
@@ -1383,6 +1454,17 @@ describe("CLI", () => {
expect(() =>
parseCodexOverrides(['model="gpt-5.6-sol"'], "gpt-5.6-terra"),
).toThrow("--model conflicts with --codex model");
+ expect(parseCodexOverrides([], "gpt-5.6-terra", "high")).toEqual({
+ model: "gpt-5.6-terra",
+ model_reasoning_effort: "high",
+ });
+ expect(() =>
+ parseCodexOverrides(
+ ['model_reasoning_effort="medium"'],
+ undefined,
+ "high",
+ ),
+ ).toThrow("--effort conflicts with --codex model_reasoning_effort");
});
test("redacts malformed and bounded --codex overrides", () => {
@@ -1432,10 +1514,15 @@ describe("CLI", () => {
[["scan", ".", "--max-cost=0"], "expected number to be >0"],
[["scan", ".", "--path="], "--path must not be empty"],
[["scan", ".", "--model="], "--model must not be empty"],
+ [
+ ["scan", ".", "--effort", "ultra"],
+ "--effort must be minimal, low, medium, high, or xhigh",
+ ],
[["scan", ".", "--mode", "bogus"], "Invalid option"],
[["scan", ".", "--unknown"], "Unknown flag: --unknown"],
[["scan", ".", "--path", "--dry-run"], "Missing value for flag"],
[["scan", ".", "--model", "--dry-run"], "Missing value for flag"],
+ [["scan", ".", "--effort", "--dry-run"], "Missing value for flag"],
[["scan", ".", "--output-dir", "--dry-run"], "Missing value for flag"],
[["scan", ".", "--max-cost", "--dry-run"], "Missing value for flag"],
[["scan", "repo-a", "repo-b", "--dry-run"], "Unexpected positional"],
@@ -1489,6 +1576,17 @@ describe("CLI", () => {
],
"--model conflicts with --codex model",
],
+ [
+ [
+ "scan",
+ ".",
+ "--effort",
+ "high",
+ "--codex",
+ 'model_reasoning_effort="medium"',
+ ],
+ "--effort conflicts with --codex model_reasoning_effort",
+ ],
[["export"], "scanDir"],
[["export", "scan", "--unknown"], "Unknown flag: --unknown"],
[["export", "scan", "--format", "sarif"], "Invalid format"],