summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/render_rules.py
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-23 19:52:43 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 17:50:21 -0700
commitd13ff0324cf9a8744be6c75251689816485e68cf (patch)
tree58a48e211c22e1078ba9e76d9beacfdf59d4fe7a /plugins/code-modernization/scripts/render_rules.py
parent6f020b9f66a1340efeab2fd4ca7a17f348e3fea9 (diff)
code-modernization: extract-rules asks before a large run, with an estimate
The command told the model to state the shard count and an estimate before launching, but in live runs on a small system it launched without saying anything: a reply that only mentions the estimate is easy to skip and is not a gate. With more than 12 shards the command now requires an AskUserQuestion that carries the shard count, the line count and the estimate (agents, tokens, minutes) and offers to run all shards, run only a slice, or cancel. With 12 shards or fewer it launches straight away and says what it launched. The estimate is now a working formula (10 to 15 agents per shard, about 16k tokens per agent, about 8 agents finishing per minute) with the two runs it comes from: 4 shards used 58 agents in under 10 minutes, and a 44-program, 30,000-line estate used 466 to 647 agents.
Diffstat (limited to 'plugins/code-modernization/scripts/render_rules.py')
0 files changed, 0 insertions, 0 deletions