From 41c6b5782982b685ddf580301548cfbb8fb6bd5c Mon Sep 17 00:00:00 2001 From: Edwin Monk-Fromont <1274422+edmofro@users.noreply.github.com> Date: Mon, 20 Apr 2026 10:01:51 +0000 Subject: [PATCH] A1: increase agent max_turns to 10 for large PRs --- .claude/.gitignore | 1 + .workhorse/.gitignore | 1 + .workhorse/skills/.gitignore | 1 + scripts/triage.mjs | 5 ++--- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .claude/.gitignore create mode 100644 .workhorse/.gitignore create mode 100644 .workhorse/skills/.gitignore diff --git a/.claude/.gitignore b/.claude/.gitignore new file mode 100644 index 0000000..93c0f73 --- /dev/null +++ b/.claude/.gitignore @@ -0,0 +1 @@ +settings.local.json diff --git a/.workhorse/.gitignore b/.workhorse/.gitignore new file mode 100644 index 0000000..4db2861 --- /dev/null +++ b/.workhorse/.gitignore @@ -0,0 +1 @@ +inbuilt/ diff --git a/.workhorse/skills/.gitignore b/.workhorse/skills/.gitignore new file mode 100644 index 0000000..4db2861 --- /dev/null +++ b/.workhorse/skills/.gitignore @@ -0,0 +1 @@ +inbuilt/ diff --git a/scripts/triage.mjs b/scripts/triage.mjs index f2f00fe..52fc70f 100644 --- a/scripts/triage.mjs +++ b/scripts/triage.mjs @@ -270,8 +270,7 @@ const OPUS_THRESHOLD = 500; const agentModel = diffLines >= OPUS_THRESHOLD ? "claude-opus-4-6" : defaultModel; -// Scale max-turns with diff size. Opus gets fewer turns since it reasons -// more deeply per turn and to keep within timeout budgets. +// Scale max-turns with diff size. const isOpus = agentModel.includes("opus"); let maxTurns; if (diffLines < 100) { @@ -279,7 +278,7 @@ if (diffLines < 100) { } else if (diffLines < OPUS_THRESHOLD) { maxTurns = 5; } else { - maxTurns = isOpus ? 6 : 10; + maxTurns = 10; } // Discover all agents