automata-cli 0.6.0-develop.256 → 0.6.0-develop.257

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -152,6 +152,8 @@ function ConfigWizard() {
152
152
  );
153
153
  const [doWorkClaudeModel, setDoWorkClaudeModel] = useState(existing.doWork?.models?.claude ?? "");
154
154
  const [doWorkCodexModel, setDoWorkCodexModel] = useState(existing.doWork?.models?.codex ?? "");
155
+ const [doWorkClaudeEffort, setDoWorkClaudeEffort] = useState(existing.doWork?.effort?.claude ?? "");
156
+ const [doWorkCodexEffort, setDoWorkCodexEffort] = useState(existing.doWork?.effort?.codex ?? "");
155
157
  const [doWorkLockStale, setDoWorkLockStale] = useState(
156
158
  String(existing.doWork?.lockStaleMinutes ?? DEFAULT_DO_WORK.lockStaleMinutes)
157
159
  );
@@ -269,13 +271,23 @@ function ConfigWizard() {
269
271
  },
270
272
  "do-work-claude-model": {
271
273
  setValue: setDoWorkClaudeModel,
272
- onSubmit: () => setScreen("do-work-codex-model"),
274
+ onSubmit: () => setScreen("do-work-claude-effort"),
273
275
  onBack: () => setScreen("do-work-executor")
274
276
  },
277
+ "do-work-claude-effort": {
278
+ setValue: setDoWorkClaudeEffort,
279
+ onSubmit: () => setScreen("do-work-codex-model"),
280
+ onBack: () => setScreen("do-work-claude-model")
281
+ },
275
282
  "do-work-codex-model": {
276
283
  setValue: setDoWorkCodexModel,
284
+ onSubmit: () => setScreen("do-work-codex-effort"),
285
+ onBack: () => setScreen("do-work-claude-effort")
286
+ },
287
+ "do-work-codex-effort": {
288
+ setValue: setDoWorkCodexEffort,
277
289
  onSubmit: () => setScreen("do-work-max-runs"),
278
- onBack: () => setScreen("do-work-claude-model")
290
+ onBack: () => setScreen("do-work-codex-model")
279
291
  },
280
292
  "do-work-max-runs": {
281
293
  setValue: (update) => {
@@ -291,7 +303,7 @@ function ConfigWizard() {
291
303
  setValidationError("");
292
304
  setScreen("do-work-lock-stale");
293
305
  },
294
- onBack: () => setScreen("do-work-codex-model")
306
+ onBack: () => setScreen("do-work-codex-effort")
295
307
  },
296
308
  "do-work-lock-stale": {
297
309
  setValue: (update) => {
@@ -317,6 +329,10 @@ function ConfigWizard() {
317
329
  claude: doWorkClaudeModel.trim() || void 0,
318
330
  codex: doWorkCodexModel.trim() || void 0
319
331
  },
332
+ effort: {
333
+ claude: doWorkClaudeEffort.trim() || void 0,
334
+ codex: doWorkCodexEffort.trim() || void 0
335
+ },
320
336
  maxRunsPerTick: maxRuns ?? void 0,
321
337
  lockStaleMinutes: parsed
322
338
  }
@@ -470,12 +486,24 @@ function ConfigWizard() {
470
486
  value: doWorkClaudeModel,
471
487
  hint: `Type model \xB7 Enter to continue \xB7 ${BACK}`
472
488
  },
489
+ "do-work-claude-effort": {
490
+ title: "Do Work \u2014 Claude Effort",
491
+ label: "Default reasoning effort when the executor is Claude (blank = the executor's own default):",
492
+ value: doWorkClaudeEffort,
493
+ hint: `Type effort \xB7 Enter to continue \xB7 ${BACK}`
494
+ },
473
495
  "do-work-codex-model": {
474
496
  title: "Do Work \u2014 Codex Model",
475
497
  label: "Default model when the executor is Codex (blank = the executor's own default):",
476
498
  value: doWorkCodexModel,
477
499
  hint: `Type model \xB7 Enter to continue \xB7 ${BACK}`
478
500
  },
501
+ "do-work-codex-effort": {
502
+ title: "Do Work \u2014 Codex Effort",
503
+ label: "Default reasoning effort when the executor is Codex (blank = the executor's own default):",
504
+ value: doWorkCodexEffort,
505
+ hint: `Type effort \xB7 Enter to continue \xB7 ${BACK}`
506
+ },
479
507
  "do-work-max-runs": {
480
508
  title: "Do Work \u2014 Max Runs Per Tick",
481
509
  label: "Model runs allowed per tick (0 = unlimited):",
package/dist/index.js CHANGED
@@ -147,6 +147,24 @@ var configSetDoWorkModel = new Command("do-work-model").description("Set the def
147
147
  process.stdout.write(`do-work ${executor} model set to: ${model}
148
148
  `);
149
149
  });
150
+ var configSetDoWorkEffort = new Command("do-work-effort").description("Set the default reasoning effort `do-work` passes to one executor").argument("<executor>", `Executor: ${VALID_EXECUTORS.join(", ")}`).argument("<value>", "Effort level, forwarded to the executor unchanged").action((executor, value) => {
151
+ if (!VALID_EXECUTORS.includes(executor)) {
152
+ process.stderr.write(
153
+ `Error: invalid executor "${executor}". Must be one of: ${VALID_EXECUTORS.join(", ")}
154
+ `
155
+ );
156
+ process.exit(1);
157
+ }
158
+ const effort = value.trim();
159
+ if (effort.length === 0) {
160
+ process.stderr.write("Error: do-work-effort requires a non-empty effort level.\n");
161
+ process.exit(1);
162
+ }
163
+ const current = readRawConfig();
164
+ writeDoWork({ effort: { ...current.doWork?.effort, [executor]: effort } });
165
+ process.stdout.write(`do-work ${executor} effort set to: ${effort}
166
+ `);
167
+ });
150
168
  var configSetDoWorkMaxRuns = new Command("do-work-max-runs").description("Set the maximum number of model runs `do-work` performs per tick (0 = unlimited)").argument("<value>", "Non-negative integer").action((value) => {
151
169
  const maxRunsPerTick = parseNonNegativeInt(value, "do-work-max-runs");
152
170
  writeDoWork({ maxRunsPerTick });
@@ -189,12 +207,12 @@ var configSetDoWorkPrompt = new Command("do-work-prompt").description("Set the t
189
207
  process.stdout.write(`do-work ${turnKind} prompt set.
190
208
  `);
191
209
  });
192
- var configSet = new Command("set").description("Set a configuration value").addCommand(configSetType).addCommand(configSetIssueDiscoveryTechnique).addCommand(configSetIssueDiscoveryValue).addCommand(configSetClaudeSystemPrompt).addCommand(configSetAllowedUsers).addCommand(configSetAgentUser).addCommand(configSetDoWorkBaseBranch).addCommand(configSetDoWorkProtectedBranches).addCommand(configSetDoWorkExecutor).addCommand(configSetDoWorkModel).addCommand(configSetDoWorkMaxRuns).addCommand(configSetDoWorkLockStaleMinutes).addCommand(configSetDoWorkPrompt);
210
+ var configSet = new Command("set").description("Set a configuration value").addCommand(configSetType).addCommand(configSetIssueDiscoveryTechnique).addCommand(configSetIssueDiscoveryValue).addCommand(configSetClaudeSystemPrompt).addCommand(configSetAllowedUsers).addCommand(configSetAgentUser).addCommand(configSetDoWorkBaseBranch).addCommand(configSetDoWorkProtectedBranches).addCommand(configSetDoWorkExecutor).addCommand(configSetDoWorkModel).addCommand(configSetDoWorkEffort).addCommand(configSetDoWorkMaxRuns).addCommand(configSetDoWorkLockStaleMinutes).addCommand(configSetDoWorkPrompt);
193
211
  var configCommand = new Command("config").description("Configure automata settings").addCommand(configSet).action(async () => {
194
212
  const [{ render }, React, { ConfigWizard }] = await Promise.all([
195
213
  import("ink"),
196
214
  import("react"),
197
- import("./ConfigWizard-J67TY22Z.js")
215
+ import("./ConfigWizard-HDHKPY6J.js")
198
216
  ]);
199
217
  const { waitUntilExit } = render(React.createElement(ConfigWizard));
200
218
  await waitUntilExit();
@@ -1539,6 +1557,15 @@ function handleExitCode(status, toolName) {
1539
1557
  process.exit(status);
1540
1558
  }
1541
1559
  }
1560
+ function resolveEffortOption(value) {
1561
+ if (value === void 0) return void 0;
1562
+ const trimmed = value.trim();
1563
+ if (trimmed.length === 0) {
1564
+ process.stderr.write("Error: --effort must be a non-empty level.\n");
1565
+ process.exit(1);
1566
+ }
1567
+ return trimmed;
1568
+ }
1542
1569
 
1543
1570
  // src/cli/childRegistry.ts
1544
1571
  var active = /* @__PURE__ */ new Set();
@@ -1595,6 +1622,7 @@ function buildClaudeArgs(prompt, options = {}) {
1595
1622
  const args = [];
1596
1623
  if (options.yolo) args.push("--dangerously-skip-permissions");
1597
1624
  if (options.model) args.push("--model", options.model);
1625
+ if (options.effort) args.push("--effort", options.effort);
1598
1626
  if (options.verbose) args.push("--verbose", "--output-format", "stream-json");
1599
1627
  args.push("-p", prompt);
1600
1628
  return args;
@@ -1602,7 +1630,12 @@ function buildClaudeArgs(prompt, options = {}) {
1602
1630
  function runClaude(prompt, options = {}) {
1603
1631
  return new Promise((resolve2, reject) => {
1604
1632
  const claudeBin = resolveCommand("claude");
1605
- const args = buildClaudeArgs(prompt, { yolo: true, model: options.model, verbose: true });
1633
+ const args = buildClaudeArgs(prompt, {
1634
+ yolo: true,
1635
+ model: options.model,
1636
+ effort: options.effort,
1637
+ verbose: true
1638
+ });
1606
1639
  const child = spawn(claudeBin, args, { stdio: ["inherit", "pipe", "inherit"] });
1607
1640
  trackChild(child);
1608
1641
  const rl = createInterface({ input: child.stdout });
@@ -1639,21 +1672,21 @@ function runClaude(prompt, options = {}) {
1639
1672
  }
1640
1673
  function invokeClaudeCode(prompt, options = {}) {
1641
1674
  if (options.verbose) {
1642
- return invokeClaudeCodeVerbose(prompt, options.yolo ?? false, options.model);
1675
+ return invokeClaudeCodeVerbose(prompt, options.yolo ?? false, options.model, options.effort);
1643
1676
  }
1644
- invokeClaudeCodeSync(prompt, options.yolo ?? false, options.model);
1677
+ invokeClaudeCodeSync(prompt, options.yolo ?? false, options.model, options.effort);
1645
1678
  }
1646
- function invokeClaudeCodeSync(prompt, yolo, model) {
1679
+ function invokeClaudeCodeSync(prompt, yolo, model, effort) {
1647
1680
  const claudeBin = resolveCommand("claude");
1648
- const args = buildClaudeArgs(prompt, { yolo, model, verbose: false });
1681
+ const args = buildClaudeArgs(prompt, { yolo, model, effort, verbose: false });
1649
1682
  const result = spawnSync4(claudeBin, args, { encoding: "utf8", stdio: "inherit" });
1650
1683
  handleSpawnError(result.error, "claude");
1651
1684
  handleExitCode(result.status, "Claude Code");
1652
1685
  }
1653
- function invokeClaudeCodeVerbose(prompt, yolo, model) {
1686
+ function invokeClaudeCodeVerbose(prompt, yolo, model, effort) {
1654
1687
  return new Promise((resolve2) => {
1655
1688
  const claudeBin = resolveCommand("claude");
1656
- const args = buildClaudeArgs(prompt, { yolo, model, verbose: true });
1689
+ const args = buildClaudeArgs(prompt, { yolo, model, effort, verbose: true });
1657
1690
  const child = spawn(claudeBin, args, { stdio: ["inherit", "pipe", "inherit"] });
1658
1691
  const rl = createInterface({ input: child.stdout });
1659
1692
  let turnCount = 0;
@@ -1753,10 +1786,14 @@ function summarizeTool(name, input) {
1753
1786
 
1754
1787
  // src/codex/codexService.ts
1755
1788
  import { spawn as spawn2, spawnSync as spawnSync5 } from "child_process";
1789
+ function toTomlBasicString(value) {
1790
+ return JSON.stringify(value);
1791
+ }
1756
1792
  function buildCodexArgs(prompt, options = {}) {
1757
1793
  const args = ["exec"];
1758
1794
  if (options.yolo) args.push("--dangerously-bypass-approvals-and-sandbox");
1759
1795
  if (options.model) args.push("--model", options.model);
1796
+ if (options.effort) args.push("-c", `model_reasoning_effort=${toTomlBasicString(options.effort)}`);
1760
1797
  args.push(prompt);
1761
1798
  return args;
1762
1799
  }
@@ -1764,11 +1801,11 @@ function invokeCodexCode(prompt, options = {}) {
1764
1801
  if (options.verbose) {
1765
1802
  process.stderr.write("Warning: --verbose is not supported for Codex and will be ignored.\n");
1766
1803
  }
1767
- invokeCodexCodeSync(prompt, options.yolo ?? false, options.model);
1804
+ invokeCodexCodeSync(prompt, options.yolo ?? false, options.model, options.effort);
1768
1805
  }
1769
- function invokeCodexCodeSync(prompt, yolo, model) {
1806
+ function invokeCodexCodeSync(prompt, yolo, model, effort) {
1770
1807
  const codexBin = resolveCommand("codex");
1771
- const args = buildCodexArgs(prompt, { yolo, model });
1808
+ const args = buildCodexArgs(prompt, { yolo, model, effort });
1772
1809
  const result = spawnSync5(codexBin, args, { encoding: "utf8", stdio: "inherit" });
1773
1810
  handleSpawnError(result.error, "codex");
1774
1811
  handleExitCode(result.status, "Codex");
@@ -1776,7 +1813,7 @@ function invokeCodexCodeSync(prompt, yolo, model) {
1776
1813
  function runCodex(prompt, options = {}) {
1777
1814
  return new Promise((resolve2, reject) => {
1778
1815
  const codexBin = resolveCommand("codex");
1779
- const args = buildCodexArgs(prompt, { yolo: true, model: options.model });
1816
+ const args = buildCodexArgs(prompt, { yolo: true, model: options.model, effort: options.effort });
1780
1817
  const child = spawn2(codexBin, args, { stdio: "inherit" });
1781
1818
  trackChild(child);
1782
1819
  child.on("error", (err) => {
@@ -1881,7 +1918,7 @@ Title: ${issue.title}
1881
1918
  }
1882
1919
  return issue;
1883
1920
  }
1884
- var implementNextCommand = new Command3("implement-next").description("Find the next open GitHub issue matching the configured filter, claim it, and invoke the AI code assistant (Claude or Codex)").option("--json", "Output issue details as JSON").option("--no-claude", "Skip all AI invocation (Claude or Codex) after claiming the issue").option("--with <executor>", "Executor to use: claude or codex", "claude").option("--query-only", "Print issue content and exit without claiming or invoking any AI tools").option("--yolo", "Launch with --dangerously-skip-permissions (Claude) or --dangerously-bypass-approvals-and-sandbox (Codex)").option("--silent", "Suppress step-by-step Claude output; show only the final summary").option("--model <string>", "Model identifier to pass to the executor").option("--take-first", "When multiple issues match, pick the first without prompting").option("--limit <n>", "Max issues to fetch and display (default: 10)", "10").option("--ask-copilot-review", "Request a Copilot code review on the PR after AI invocation finishes").action(async (options) => {
1921
+ var implementNextCommand = new Command3("implement-next").description("Find the next open GitHub issue matching the configured filter, claim it, and invoke the AI code assistant (Claude or Codex)").option("--json", "Output issue details as JSON").option("--no-claude", "Skip all AI invocation (Claude or Codex) after claiming the issue").option("--with <executor>", "Executor to use: claude or codex", "claude").option("--query-only", "Print issue content and exit without claiming or invoking any AI tools").option("--yolo", "Launch with --dangerously-skip-permissions (Claude) or --dangerously-bypass-approvals-and-sandbox (Codex)").option("--silent", "Suppress step-by-step Claude output; show only the final summary").option("--model <string>", "Model identifier to pass to the executor").option("--effort <level>", "Reasoning effort to pass to the executor").option("--take-first", "When multiple issues match, pick the first without prompting").option("--limit <n>", "Max issues to fetch and display (default: 10)", "10").option("--ask-copilot-review", "Request a Copilot code review on the PR after AI invocation finishes").action(async (options) => {
1885
1922
  const config = readConfig();
1886
1923
  validateConfig(config);
1887
1924
  const limit = Number.parseInt(options.limit, 10);
@@ -1919,6 +1956,7 @@ ${issue.body}
1919
1956
  `);
1920
1957
  process.exit(1);
1921
1958
  }
1959
+ const effort = resolveEffortOption(options.effort);
1922
1960
  if (options.claude !== false) {
1923
1961
  const systemPrompt = config.claudeSystemPrompt ?? DEFAULT_CLAUDE_SYSTEM_PROMPT;
1924
1962
  const prompt = `Resolving issue #${issue.number}:
@@ -1930,9 +1968,14 @@ ${issue.body}`;
1930
1968
  if (options.silent) {
1931
1969
  process.stderr.write("Warning: --silent is only supported with Claude and has no effect when used with Codex.\n");
1932
1970
  }
1933
- invokeCodexCode(prompt, { yolo: options.yolo, model: options.model });
1971
+ invokeCodexCode(prompt, { yolo: options.yolo, model: options.model, effort });
1934
1972
  } else {
1935
- await invokeClaudeCode(prompt, { yolo: options.yolo, verbose: !options.silent, model: options.model });
1973
+ await invokeClaudeCode(prompt, {
1974
+ yolo: options.yolo,
1975
+ verbose: !options.silent,
1976
+ model: options.model,
1977
+ effort
1978
+ });
1936
1979
  }
1937
1980
  }
1938
1981
  linkPrToIssue(issue.number, commentUrl, options.askCopilotReview === true);
@@ -2021,7 +2064,7 @@ async function resolvePrompt(options) {
2021
2064
  process.stderr.write("Error: No prompt provided. Use --prompt, --file-prompt, or pipe via stdin.\n");
2022
2065
  process.exit(1);
2023
2066
  }
2024
- var executeCommand = new Command4("execute").description("Delegate work to an AI executor").requiredOption("--with <executor>", "Executor to use: claude or codex").option("--prompt <string>", "Prompt to send to the executor").option("--file-prompt <path>", "Path to a file whose content is used as the prompt").option("--silent", "Suppress step-by-step Claude output; show only the final summary").option("--model <string>", "Model identifier to pass to the executor").action(async (options) => {
2067
+ var executeCommand = new Command4("execute").description("Delegate work to an AI executor").requiredOption("--with <executor>", "Executor to use: claude or codex").option("--prompt <string>", "Prompt to send to the executor").option("--file-prompt <path>", "Path to a file whose content is used as the prompt").option("--silent", "Suppress step-by-step Claude output; show only the final summary").option("--model <string>", "Model identifier to pass to the executor").option("--effort <level>", "Reasoning effort to pass to the executor").action(async (options) => {
2025
2068
  const executor = options.with.toLowerCase();
2026
2069
  if (executor !== "claude" && executor !== "codex") {
2027
2070
  process.stderr.write(`Error: --with must be 'claude' or 'codex', got '${options.with}'.
@@ -2029,10 +2072,16 @@ var executeCommand = new Command4("execute").description("Delegate work to an AI
2029
2072
  process.exit(1);
2030
2073
  }
2031
2074
  const prompt = await resolvePrompt(options);
2075
+ const effort = resolveEffortOption(options.effort);
2032
2076
  if (executor === "codex") {
2033
- invokeCodexCode(prompt, { yolo: true, model: options.model });
2077
+ invokeCodexCode(prompt, { yolo: true, model: options.model, effort });
2034
2078
  } else {
2035
- await invokeClaudeCode(prompt, { yolo: true, verbose: !options.silent, model: options.model });
2079
+ await invokeClaudeCode(prompt, {
2080
+ yolo: true,
2081
+ verbose: !options.silent,
2082
+ model: options.model,
2083
+ effort
2084
+ });
2036
2085
  }
2037
2086
  });
2038
2087
 
@@ -2154,7 +2203,7 @@ function pluralSuffix(count) {
2154
2203
  return count === 1 ? "" : "s";
2155
2204
  }
2156
2205
  function addAiOptions(cmd) {
2157
- return cmd.requiredOption("--with <executor>", "Executor to use: claude or codex").option("--model <string>", "Model identifier to pass to the executor").option("--silent", "Suppress step-by-step Claude output; show only the final summary").option("--push", "Append instruction to commit and push changes after the AI finishes");
2206
+ return cmd.requiredOption("--with <executor>", "Executor to use: claude or codex").option("--model <string>", "Model identifier to pass to the executor").option("--effort <level>", "Reasoning effort to pass to the executor").option("--silent", "Suppress step-by-step Claude output; show only the final summary").option("--push", "Append instruction to commit and push changes after the AI finishes");
2158
2207
  }
2159
2208
  function resolveExecutor2(withOption) {
2160
2209
  const executor = withOption.toLowerCase();
@@ -2166,11 +2215,17 @@ function resolveExecutor2(withOption) {
2166
2215
  return executor;
2167
2216
  }
2168
2217
  function invokeSelectedExecutor(prompt, executor, options) {
2218
+ const effort = resolveEffortOption(options.effort);
2169
2219
  if (executor === "codex") {
2170
- invokeCodexCode(prompt, { yolo: true, model: options.model });
2220
+ invokeCodexCode(prompt, { yolo: true, model: options.model, effort });
2171
2221
  return;
2172
2222
  }
2173
- return invokeClaudeCode(prompt, { yolo: true, verbose: !options.silent, model: options.model });
2223
+ return invokeClaudeCode(prompt, {
2224
+ yolo: true,
2225
+ verbose: !options.silent,
2226
+ model: options.model,
2227
+ effort
2228
+ });
2174
2229
  }
2175
2230
  var executeSonarCmd = addAiOptions(
2176
2231
  new Command5("sonar").description(
@@ -3321,6 +3376,13 @@ function resolveSettings(options) {
3321
3376
  executor,
3322
3377
  // --model wins; otherwise take the default for the executor in use.
3323
3378
  model: options.model ?? doWork.models?.[executor],
3379
+ // Same precedence for the reasoning effort, but both candidates go through
3380
+ // the one normaliser: a config value is validated as non-empty when the
3381
+ // file is read, yet nothing trims it, so `" high "` would otherwise reach
3382
+ // the executor with its padding and be silently ignored as an unknown
3383
+ // level. `??` keeps the flag winning — an empty `--effort` is not nullish,
3384
+ // so it is still rejected rather than falling through to the default.
3385
+ effort: resolveEffortOption(options.effort ?? doWork.effort?.[executor]),
3324
3386
  maxRuns: options.maxRuns !== void 0 ? parsePositiveInt(options.maxRuns, "--max-runs") : doWork.maxRunsPerTick ?? DEFAULT_DO_WORK.maxRunsPerTick,
3325
3387
  lockStaleMinutes: doWork.lockStaleMinutes ?? DEFAULT_DO_WORK.lockStaleMinutes,
3326
3388
  limit: parsePositiveInt(options.limit, "--limit"),
@@ -3362,7 +3424,12 @@ function planRun(item, settings) {
3362
3424
  frame: settings.prompts[item.turn]
3363
3425
  });
3364
3426
  const bin = resolveCommand(settings.executor === "codex" ? "codex" : "claude");
3365
- const args = settings.executor === "codex" ? buildCodexArgs(prompt, { yolo: true, model: settings.model }) : buildClaudeArgs(prompt, { yolo: true, verbose: true, model: settings.model });
3427
+ const args = settings.executor === "codex" ? buildCodexArgs(prompt, { yolo: true, model: settings.model, effort: settings.effort }) : buildClaudeArgs(prompt, {
3428
+ yolo: true,
3429
+ verbose: true,
3430
+ model: settings.model,
3431
+ effort: settings.effort
3432
+ });
3366
3433
  return { prompt, bin, args, command: [bin, ...args].map(shellQuote).join(" ") };
3367
3434
  }
3368
3435
  function describePlannedRun(item, settings, run5) {
@@ -3371,6 +3438,7 @@ function describePlannedRun(item, settings, run5) {
3371
3438
  const assignment = item.needsAssignment ? `would assign to ${settings.participants.agentUser}` : "already assigned";
3372
3439
  const markerTarget = item.turn === "pr-work" && item.pr ? `pull request #${String(item.pr.number)}` : `issue #${String(item.issue.number)}`;
3373
3440
  const modelNote = settings.model === void 0 ? " (no model override)" : ` \xB7 model ${settings.model}`;
3441
+ const effortNote = settings.effort === void 0 ? "" : ` \xB7 effort ${settings.effort}`;
3374
3442
  const lines = [
3375
3443
  rule,
3376
3444
  `Issue #${String(item.issue.number)} \u2014 ${item.issue.title}`,
@@ -3380,7 +3448,7 @@ function describePlannedRun(item, settings, run5) {
3380
3448
  ` Branch ${item.branch} (would check out${branchAction})`,
3381
3449
  ` Assign ${assignment}`,
3382
3450
  ` Marker would post on ${markerTarget}`,
3383
- ` Executor ${settings.executor}${modelNote}`,
3451
+ ` Executor ${settings.executor}${modelNote}${effortNote}`,
3384
3452
  " Permissions bypassed (do-work always runs unattended)",
3385
3453
  ` Prompt ${String(run5.prompt.length)} chars \u2014 frame + assembled context`,
3386
3454
  "",
@@ -3427,6 +3495,7 @@ function validateDoWorkConfig(section) {
3427
3495
  validateOptionalInt(section, "lockStaleMinutes", "doWork.lockStaleMinutes", 1, "a positive integer");
3428
3496
  validateProtectedBranches(section["protectedBranches"]);
3429
3497
  validateSettingContainer(section["models"], "models", ["claude", "codex"]);
3498
+ validateSettingContainer(section["effort"], "effort", ["claude", "codex"]);
3430
3499
  validateSettingContainer(section["prompts"], "prompts", ["issueDiscuss", "prWork"]);
3431
3500
  }
3432
3501
  function validateProtectedBranches(value) {
@@ -3661,10 +3730,10 @@ function reportNoAnswer(item, marker, runError) {
3661
3730
  }
3662
3731
  async function invokeExecutor(prompt, settings, silent) {
3663
3732
  if (settings.executor === "codex") {
3664
- await runCodex(prompt, { model: settings.model });
3733
+ await runCodex(prompt, { model: settings.model, effort: settings.effort });
3665
3734
  return;
3666
3735
  }
3667
- await runClaude(prompt, { model: settings.model, printSteps: !silent });
3736
+ await runClaude(prompt, { model: settings.model, effort: settings.effort, printSteps: !silent });
3668
3737
  }
3669
3738
  function repairIssueLink(item, baseBranch) {
3670
3739
  try {
@@ -3833,7 +3902,10 @@ function summarize(reports) {
3833
3902
  }
3834
3903
  var doWorkCommand = new Command6("do-work").description(
3835
3904
  "Run one tick of the autonomous loop: find the issues whose newest authorized message the agent has not answered, and answer them"
3836
- ).option("--with <executor>", "Executor to use: claude or codex (default: from config, else claude)").option("--model <string>", "Model identifier to pass to the executor, overriding the configured default for it").option("--issue <number>", "Restrict the tick to a single issue").option("--limit <n>", "Maximum number of issues to fetch", "10").option("--max-runs <n>", "Maximum number of model runs this tick").option(
3905
+ ).option("--with <executor>", "Executor to use: claude or codex (default: from config, else claude)").option("--model <string>", "Model identifier to pass to the executor, overriding the configured default for it").option(
3906
+ "--effort <level>",
3907
+ "Reasoning effort to pass to the executor, overriding the configured default for it"
3908
+ ).option("--issue <number>", "Restrict the tick to a single issue").option("--limit <n>", "Maximum number of issues to fetch", "10").option("--max-runs <n>", "Maximum number of model runs this tick").option(
3837
3909
  "--dry-run",
3838
3910
  "Print the work plan, plus a summary and the exact command that would be launched for each item, and exit without changing anything"
3839
3911
  ).option("--json", "Emit the work plan and outcomes as JSON on stdout").option("--silent", "Suppress step-by-step Claude output; show only the final summary").action(async (options) => {
@@ -3996,6 +4068,7 @@ function reportDryRun(items, decisions, settings, options) {
3996
4068
  turn: describable[index].turn,
3997
4069
  executor: settings.executor,
3998
4070
  model: settings.model ?? null,
4071
+ effort: settings.effort ?? null,
3999
4072
  bin: run5.bin,
4000
4073
  args: run5.args,
4001
4074
  command: run5.command,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automata-cli",
3
- "version": "0.6.0-develop.256",
3
+ "version": "0.6.0-develop.257",
4
4
  "description": "Automata CLI tool",
5
5
  "type": "module",
6
6
  "engines": {