full output: text and --json
$ loopmath recommend --type bug_fix --repo acme/api --feature size=s --feature lang=python
Task: bug_fix in acme/api; runs per level: task 0, repo 0, type 101, all 1602, user 0
Rule: tests (the task's tests pass); fit fit_20261012192751 (0 min old)
No usual workflow; reference: the default workflow (implement_review: claude-opus-5-5/high, gpt-6-astra/xhigh [cfg_ab15440a2d9c]): 85% success, typical run $7.15 (10,513,000 tokens; 80% of runs $0.94 to $68.42), expected rescue $0.90, expected cost per accepted result $32.05 (lower is better)
The mean run costs $31.15 (68,089,000 tokens), higher because a few runs cost far more. Onboard to see your own costs.
No habit runs of bug_fix tasks in acme/api (onboarded, or started with --source habit); name a usual workflow with --usual CFG.
Rescue when a run fails: $5.99 per fixed miss, retrying with plan_implement_review: gpt-6-luna/high, gpt-6-luna/high, claude-sonnet-5/high (70% chance in one run), the cheapest workflow with at least a 70% chance, retried: each extra attempt has half the chance of the one before, up to 3 attempts in all; the retries fix 45% of misses; cost per accepted result = run cost + chance of failure x rescue
Curve:
50/70%: plan_implement_review: gpt-6-luna/low, gpt-6-luna/low, gpt-6-luna/low: 71% success, $0.06 a run (2,709,000 tokens; median $0.01), expected rescue $1.76, $1.82 per accepted result (uncertain)
80/90%: plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6-luna/low: 92% success, $0.29 a run (3,388,000 tokens; median $0.07), expected rescue $0.47, $0.75 per accepted result (uncertain)
95%: plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6.1-sol/low: 95% success, $0.52 a run (4,484,000 tokens; median $0.14), expected rescue $0.27, $0.80 per accepted result
99%: plan_implement_review: gpt-6.1-sol/low, gpt-6.1-sol/low, gpt-6.1-sol/low: 99% success, $1.87 a run (10,958,000 tokens; median $0.39), expected rescue $0.04, $1.91 per accepted result
Default pick: plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/medium, gpt-6-luna/xhigh ($0.70 per accepted result)
Goal (default): plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/medium, gpt-6-luna/xhigh [cfg_e44128035bd0]
Alternatives:
plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/medium, gpt-6-luna/max: 94% success, $0.32 a run, $0.70 per accepted result; from the recommended pick: reviewer effort: xhigh to max
plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6-luna/xhigh: 93% success, $0.29 a run, $0.71 per accepted result; from the recommended pick: implementer effort: medium to low
plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6-luna/max: 93% success, $0.30 a run, $0.71 per accepted result; from the recommended pick: implementer effort: medium to low; reviewer effort: xhigh to max
plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/high, gpt-6-luna/xhigh: 94% success, $0.33 a run, $0.71 per accepted result; from the recommended pick: implementer effort: medium to high
Exploration (lookahead):
best value: plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6-luna/low [cfg_6abfd96c79d1]: gain $0.13/run, 51% to beat the recommended pick, price $0.29, pays back after 3 similar runs
biggest gain: plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6.1-sol/low [cfg_ab4c617cda31]: gain $0.17/run, 39% to beat the recommended pick, price $0.52, pays back after 4 similar runs
You have no usual workflow for this task; the reference is the default workflow (implement_review: claude-opus-5-5/high, gpt-6-astra/xhigh), with an 85% chance of an accepted result; a typical run costs about $7.15 (10,513,000 tokens; 80% of runs $0.94 to $68.42). The mean run costs $31.15 (68,089,000 tokens), higher because a few runs cost far more. Onboard to see your own costs. Your goal is the lowest expected cost of an accepted result: plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/medium, gpt-6-luna/xhigh, about $0.70 per accepted result. Run cost is what the agents cost for one run; cost per accepted result adds the expected cost of fixing a miss with plan_implement_review: gpt-6-luna/high, gpt-6-luna/high, claude-sonnet-5/high, where each extra attempt has half the chance of the one before, up to 3 attempts in all. The recommended workflow has a 94% chance of an accepted result in one run, and a 96% chance within 3 attempts. Trying plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6-luna/low alongside it costs $0.29 (3,388,000 tokens) now. There is a 51% chance it beats the recommended pick. Trying it once is expected to save about $0.13 on each future similar run, so it pays for itself after about 3 similar runs. The option with the biggest gain is plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/low, gpt-6.1-sol/low: it costs $0.52 (4,484,000 tokens) now, has a 39% chance to beat the recommended pick, is expected to save about $0.17 per future similar run, and pays for itself after about 4 runs.
rec: rec_01M4SHD3ZFGZ080MJSBCXK5X7F
$ loopmath recommend --type bug_fix --repo acme/api --feature size=s --feature lang=python --json | jq '.choices[0]'
{
"key": "goal",
"title": "Run the recommended workflow",
"label": "plan_implement_review: gpt-6.1-sol/low, gpt-6-luna/medium, gpt-6-luna/xhigh",
"config": "cfg_e44128035bd0",
"members": [
"cfg_e44128035bd0"
],
"cost_per_accepted_usd": {
"mean": 0.697498,
"lo": 0.040942,
"hi": 1.787275
},
"chance": {
"mean": 0.935863,
"lo": 0.782738,
"hi": 0.999705,
"of": "an accepted result"
},
"run_cost_usd": {
"mean": 0.313142,
"median": 0.085833
},
"expected_rescue_usd": 0.384356,
"p_accepted_within": {
"mean": 0.964482,
"lo": 0.879685,
"hi": 0.999836,
"attempts": 3
},
"bands": {
"chance": {
"50": [
0.948219,
0.998831
],
"80": [
0.782738,
0.999705
],
"90": [
0.657768,
0.999922
],
"95": [
0.548006,
0.999959
]
},
"run_cost_usd": {
"50": [
0.030753,
0.234474
],
"80": [
0.012709,
0.595707
],
"90": [
0.007594,
0.977232
],
"95": [
0.005649,
1.550256
]
},
"cost_per_accepted_usd": {
"50": [
0.091794,
0.7374
],
"80": [
0.040942,
1.787275
],
"90": [
0.024667,
2.519851
],
"95": [
0.015061,
3.687957
]
}
},
"wins": {},
"recommended": true,
"strategy": null,
"option": 1
}