diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index a0cade9..e040952 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,5 +1,5 @@
{
"name": "chef",
- "version": "1.5.2",
+ "version": "1.6.0",
"description": "Chef mode: house coding habits, per-stack references and a council of agents."
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f608e3b..ad12d44 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## 1.6.0 (2026-11-25)
+
+Every first answer accepted on all three same-day benches (13, 11 and 7 tasks), and cheaper than 1.5 on two of them: 4% less on the 11 tasks of the 1.5 bench, 6% less on DevOps and CI, 2% more on the 13 older tasks. Code quality on 32 languages: 8.5 against 8.0 for plain Claude, from a blind reviewer.
+
+- Checks run in one call; every failure is fixed in one batch, then the check reruns once.
+- The first tool call reads `lean.md`, the stack references and the project files in one batch.
+- `.chef.md` is printed by the prompt hook, so the model no longer reads it itself.
+- Tests: one unit test per public behavior and per error path the task names, each branch on a larger change; edge cases parametrized in one test where the language allows.
+- The CI coverage gate and mutation testing follow "Scale the setup": only when the project already has them or the user asks.
+- The RAM and CPU check runs only before the first Docker build or container test suite.
+- README: every chart compares chef 1.6 with 1.5, 1.4 and plain Claude, versions shown as X.Y; the version chart shows cost as a multiple of plain Claude's; the quality chart shows Java's logo.
+
## 1.5.2 (2026-11-25)
Cheaper than 1.4: on the same day, chef 1.5.2 costs 32% less than 1.4 on the 11 tasks of the 1.5 bench and 22% less on 7 DevOps and CI tasks, every first answer of both accepted.
diff --git a/README.md b/README.md
index f501adf..16539ee 100644
--- a/README.md
+++ b/README.md
@@ -40,95 +40,84 @@ Chef then applies to every coding prompt.
A blind reviewer that never knows chef exists asks for fixes until it would merge. Same tasks, same model (Sonnet 5.5). [How it was measured](bench/README.md).
-The model's behavior drifts from day to day: on 2026-11-25, plain Claude pinned to the same Claude Code 2.1.330 thought up to 100 times more than on 2026-11-22 and cost 1.5 to 3.3 times as much. Costs are only compared between arms run on the same day.
-
-### Chef 1.5.2, same day as chef 1.4 and plain Claude (2026-11-25)
+### Chef 1.6 against 1.5, 1.4 and plain Claude
-
+
-
-
+
+
-
-
+
+
-Chef 1.5.2 costs 28% less than 1.4 on the 13 older tasks, 32% less on the 11 tasks of the 1.5 bench (cheaper on 10 of them) and 22% less on the DevOps and CI tasks; on the 11 tasks its first answer comes in 155 s instead of 210 s. Every first answer of both versions was accepted that day, against 92% and 82% for plain Claude, so these benches no longer separate 1.4 from 1.5.2 on quality.
+| | Plain Claude | Chef 1.4 | Chef 1.5 | Chef 1.6 |
+|---|---|---|---|---|
+| First answer accepted, 13 / 11 / 7 tasks | 92% / 94% / 100% | 100% / 100% / 100% | 100% / 98% / 100% | **100% / 100% / 100%** |
+| Cost per task, fixes included, 13 / 11 / 7 tasks | $0.145 / $0.198 / $0.123 | $0.375 / $0.510 / $0.331 | $0.270 / $0.344 / $0.260 | $0.275 / **$0.329** / **$0.244** |
+| Time to a merged change, 13 tasks | 90 s | 172 s | 138 s | 144 s |
+| Code quality, 32 languages, 0 to 10 | 8.0 | | | **8.5** |
+
+Chef 1.6 had every first answer accepted on all three benches, like 1.4 and unlike 1.5 (one miss on the 11 tasks). It costs 4% less than 1.5 on the 11 tasks and 6% less on the DevOps and CI tasks, and 2% more on the 13 older tasks; against 1.4 it costs 26% to 36% less. Against plain Claude it costs 1.7 to 2 times as much per task, and takes about 1.6 times as long to a merged change.
-
+
-Chef 1.5.2 is the cheaper option once a human review round costs more than $0.83.
+Chef 1.6 is the cheaper option once a human review round costs more than $0.86.
-
+
-Chef against caveman and ponytail, same day. Chef here is the 1.5.2 skill before the reviewer fix (`ad13bf7`), so its cost is an upper bound. With 2 runs per task, these are trends, not proof.
+Chef against caveman and ponytail, 4 tasks, 2 runs each: trends, not proof.
-
-
-
-
-Caveman and ponytail shorten replies and code, so they cost less than plain Claude; chef's extra cost buys the tests, linter and type checker it sets up and runs. `lean.md` cuts the code to review by about a fifth, at the same cost.
-
-### Chef 1.5 bench (2026-11-22)
-
-
-
-
-
+
-| | Without chef | Chef 1.4 | Chef 1.5 |
-|---|---|---|---|
-| First answer accepted | 58% | 75% | **87%** |
-| Review rounds per task | 0.53 | 0.33 | **0.15** |
-| Cost per task, fixes included | $0.145 | $0.278 | $0.294 |
-| Median time, first answer | 21 s | 65 s | 94 s |
+Caveman and ponytail shorten replies and code, so they cost less than plain Claude; chef's extra cost buys the tests, linter and type checker it sets up and runs. Chef 1.6 costs 17% less than 1.5 here.
-Chef 1.5 against 1.4: +13 points (p = 0.04), with half the review rounds. Its first answer is slower: it now runs every check, from a container when a tool is missing.
+### Code quality per language
-Code quality per language: one task for each of the 32 most-used references, the mean of a blind reviewer's scores for quality, clarity, maintainability and functionality.
+One task for each of the 32 most-used references, the mean of a blind reviewer's scores for quality, clarity, maintainability and functionality. Chef 1.6 scores 8.5 against 8.0 for plain Claude, higher on 24 of the 32 languages and lower on 3.
-
+
### Across versions
-Each version ran on its own day, so the costs are not comparable from one point to the next. Chef 1.5.2 and plain Claude ran on 2026-11-25, a day the model thought far more than before (see above): plain Claude cost $0.137 per task that day, against $0.059 when the earlier versions ran.
+Cost per task as a multiple of plain Claude's, on the three tasks every version ran (Python CLI, Dockerfile + compose, Prometheus).
-
+
diff --git a/assets/bench/break-even-dark.svg b/assets/bench/break-even-dark.svg
index 2ef3798..7298059 100644
--- a/assets/bench/break-even-dark.svg
+++ b/assets/bench/break-even-dark.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/break-even.svg b/assets/bench/break-even.svg
index 10d54de..3bd5d80 100644
--- a/assets/bench/break-even.svg
+++ b/assets/bench/break-even.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/devops-152-dark.svg b/assets/bench/devops-152-dark.svg
deleted file mode 100644
index ebaca47..0000000
--- a/assets/bench/devops-152-dark.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/assets/bench/devops-152.svg b/assets/bench/devops-152.svg
deleted file mode 100644
index 3fac3f7..0000000
--- a/assets/bench/devops-152.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/assets/bench/devops-dark.svg b/assets/bench/devops-dark.svg
new file mode 100644
index 0000000..89def9b
--- /dev/null
+++ b/assets/bench/devops-dark.svg
@@ -0,0 +1 @@
+
diff --git a/assets/bench/devops.svg b/assets/bench/devops.svg
new file mode 100644
index 0000000..209871a
--- /dev/null
+++ b/assets/bench/devops.svg
@@ -0,0 +1 @@
+
diff --git a/assets/bench/history-cost-dark.svg b/assets/bench/history-cost-dark.svg
index 667b402..6751ea8 100644
--- a/assets/bench/history-cost-dark.svg
+++ b/assets/bench/history-cost-dark.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/history-cost.svg b/assets/bench/history-cost.svg
index 787c890..23fce07 100644
--- a/assets/bench/history-cost.svg
+++ b/assets/bench/history-cost.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/history-merge-dark.svg b/assets/bench/history-merge-dark.svg
index 56a7bbe..7c7b6ee 100644
--- a/assets/bench/history-merge-dark.svg
+++ b/assets/bench/history-merge-dark.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/history-merge.svg b/assets/bench/history-merge.svg
index e09e297..1a3129e 100644
--- a/assets/bench/history-merge.svg
+++ b/assets/bench/history-merge.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/overview-11-dark.svg b/assets/bench/overview-11-dark.svg
new file mode 100644
index 0000000..4b8d272
--- /dev/null
+++ b/assets/bench/overview-11-dark.svg
@@ -0,0 +1 @@
+
diff --git a/assets/bench/overview-11.svg b/assets/bench/overview-11.svg
new file mode 100644
index 0000000..0120718
--- /dev/null
+++ b/assets/bench/overview-11.svg
@@ -0,0 +1 @@
+
diff --git a/assets/bench/overview-15-dark.svg b/assets/bench/overview-15-dark.svg
deleted file mode 100644
index cfa9775..0000000
--- a/assets/bench/overview-15-dark.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/assets/bench/overview-15.svg b/assets/bench/overview-15.svg
deleted file mode 100644
index fc8e1f1..0000000
--- a/assets/bench/overview-15.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/assets/bench/overview-152-dark.svg b/assets/bench/overview-152-dark.svg
deleted file mode 100644
index d294ef7..0000000
--- a/assets/bench/overview-152-dark.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/assets/bench/overview-152.svg b/assets/bench/overview-152.svg
deleted file mode 100644
index 46e3a3a..0000000
--- a/assets/bench/overview-152.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/assets/bench/overview-dark.svg b/assets/bench/overview-dark.svg
index 95b69bf..4f9c2d1 100644
--- a/assets/bench/overview-dark.svg
+++ b/assets/bench/overview-dark.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/overview.svg b/assets/bench/overview.svg
index 28f1be9..e989eda 100644
--- a/assets/bench/overview.svg
+++ b/assets/bench/overview.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/quality-dark.svg b/assets/bench/quality-dark.svg
index bbb407a..a5e5280 100644
--- a/assets/bench/quality-dark.svg
+++ b/assets/bench/quality-dark.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/quality.svg b/assets/bench/quality.svg
index 2983d5e..89507d5 100644
--- a/assets/bench/quality.svg
+++ b/assets/bench/quality.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/styles-dark.svg b/assets/bench/styles-dark.svg
index 86b8353..efb69f4 100644
--- a/assets/bench/styles-dark.svg
+++ b/assets/bench/styles-dark.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/styles.svg b/assets/bench/styles.svg
index 369477e..1bc0876 100644
--- a/assets/bench/styles.svg
+++ b/assets/bench/styles.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/time-dark.svg b/assets/bench/time-dark.svg
index 2f15fe0..ccc88c2 100644
--- a/assets/bench/time-dark.svg
+++ b/assets/bench/time-dark.svg
@@ -1 +1 @@
-
+
diff --git a/assets/bench/time.svg b/assets/bench/time.svg
index b76e933..e8259eb 100644
--- a/assets/bench/time.svg
+++ b/assets/bench/time.svg
@@ -1 +1 @@
-
+
diff --git a/bench/README.md b/bench/README.md
index a08517d..308de19 100644
--- a/bench/README.md
+++ b/bench/README.md
@@ -2,14 +2,26 @@
How chef was measured, task by task. The short version is in the [main README](../README.md).
+## Chef 1.6 bench (2026-11-25)
+
+Every chef 1.6 run used Claude Code 2.1.330 and ran on 2026-11-25, the day of the 1.5.2 and plain Claude runs below, with the same harness and reviewers.
+
+- The 13 tasks of the 1.2 bench, one run, 1.2 loop: first answer accepted 13 of 13, $0.275 per task with fixes (1.5.2 $0.270, plain Claude $0.145). Results in [`results/merge-13.json`](results/merge-13.json).
+- The 11 tasks of the 1.5 bench: the morning and evening runs of the day pooled per arm (plain Claude 33 runs, chef 1.4 11, chef 1.5.2 44, chef 1.6 22), reviewer `6459c25c02d6`. First answer accepted 94%, 100%, 98% and 100%; $0.198, $0.510, $0.344 and $0.329 per task. The 1.6 runs used the skill before a 94-byte wording trim made to fit the size budget. Results in [`results/merge-11.json`](results/merge-11.json).
+- 7 DevOps and CI tasks, two runs: 14 of 14 accepted, $0.244 per task (1.5.2 $0.260, 1.4 $0.331, plain Claude $0.123). Results in [`results/merge-devops.json`](results/merge-devops.json).
+- Version chart: Python, Docker and Prometheus, three runs, reviewed with the 1.1 harness (`598caa5`): 9 of 9 merged as is, median cost $0.260, median first answer 81 s. The chart divides each version by plain Claude's median on these tasks: the 2026-11-19 run ($0.059, 15 s) for 0.8 to 1.4, the 2026-11-25 run ($0.137, 46 s) for 1.5 and 1.6. Data: [`results/history.json`](results/history.json).
+- Style chart: Bash, the TypeScript bug fix, the Python CLI and the Python refactor, two runs: 8 of 8 accepted, $0.324 per task, 408 lines to review. The caveman, ponytail, 1.5.2 and plain Claude arms of that chart ran on Claude Code 2.1.331. Results in [`results/styles.json`](results/styles.json).
+- Code quality: the 32 quality tasks, one run each for plain Claude and chef 1.6, one blind judging pass. Mean score 8.0 for plain Claude and 8.5 for chef 1.6; chef 1.6 scored higher on 24 languages, equal on 5, lower on 3 (Laravel, Go, ASP.NET Core). Results in [`results/quality.json`](results/quality.json).
+- Three earlier 1.6 tries on the 11 tasks, two runs each, did not ship: one check round ($0.334), the shipped rules before the trim ($0.329), and a smaller skill with no new tool configs on small tasks ($0.339).
+
## Chef 1.5.2 bench, same day (2026-11-25)
The model's behavior drifts between days: plain Claude pinned to Claude Code 2.1.330 thought up to 100 times more on 2026-11-25 than on 2026-11-22 (C++ task: 26 thinking tokens and $0.067, then 3,264 and $0.225), so costs from different days are never compared. Every arm below ran on 2026-11-25 with Claude Code 2.1.330 (a copy of that version first in `PATH`, for runs, fixes and judges), reviewed with the merge loop (reviewer `6459c25c02d6`). `run.sh` now refuses to resume an out-dir made with another Claude Code version.
-- The 11 tasks of the 1.5 bench: plain Claude and chef 1.4 one run each, chef 1.5.2 two runs each. First answer accepted 9 of 11, 11 of 11 and 22 of 22; cost per task with fixes $0.208, $0.510 and $0.348 (1.5.2 32% less than 1.4, cheaper on 10 of 11); mean first answer 67 s, 210 s and 155 s. Results: [`results/merge-152.json`](results/merge-152.json).
-- The 13 tasks of the 1.2 bench, one run per arm, reviewed with the 1.2 loop (`a9c043f`, reviewer `1.2-loop`) like the older arms in [`results/merge.json`](results/merge.json): plain Claude, chef 1.4 and chef 1.5.2 accepted 12, 13 and 13 of 13 first time; 0.15, 0 and 0 fix rounds per task; $0.145, $0.375 and $0.270 per task with fixes; mean first answer 65 s, 148 s and 114 s. The 1.2 harness records no durations, so the `*_seconds` fields come from each run's stream and reviews. The overview, time and break-even charts use these runs. Results: [`results/merge-13-152.json`](results/merge-13-152.json).
+- The 11 tasks of the 1.5 bench: plain Claude and chef 1.4 one run each, chef 1.5.2 two runs each. First answer accepted 9 of 11, 11 of 11 and 22 of 22; cost per task with fixes $0.208, $0.510 and $0.348 (1.5.2 32% less than 1.4, cheaper on 10 of 11); mean first answer 67 s, 210 s and 155 s. Results: [`results/merge-11.json`](results/merge-11.json).
+- The 13 tasks of the 1.2 bench, one run per arm, reviewed with the 1.2 loop (`a9c043f`, reviewer `1.2-loop`) like the older arms in [`results/merge.json`](results/merge.json): plain Claude, chef 1.4 and chef 1.5.2 accepted 12, 13 and 13 of 13 first time; 0.15, 0 and 0 fix rounds per task; $0.145, $0.375 and $0.270 per task with fixes; mean first answer 65 s, 148 s and 114 s. The 1.2 harness records no durations, so the `*_seconds` fields come from each run's stream and reviews. The overview, time and break-even charts use these runs. Results: [`results/merge-13.json`](results/merge-13.json).
- Version chart: chef 1.5.2 and plain Claude on the Python, Docker and Prometheus tasks, three runs each, reviewed with the 1.1 harness (`598caa5`) like every other point. Both 8 of 9 merged as is; median cost $0.272 and $0.137, median first answer 93 s and 46 s. The plain Claude baseline in [`results/history.json`](results/history.json) is now this same-day run.
-- 7 DevOps and CI tasks (Docker, Terraform, Helm, GitHub Actions, Prometheus, Go, TypeScript), two runs per arm: plain Claude, chef 1.4 and chef 1.5.2 all accepted 14 of 14; $0.123, $0.331 and $0.260 per task. Results: [`results/merge-152-devops.json`](results/merge-152-devops.json).
+- 7 DevOps and CI tasks (Docker, Terraform, Helm, GitHub Actions, Prometheus, Go, TypeScript), two runs per arm: plain Claude, chef 1.4 and chef 1.5.2 all accepted 14 of 14; $0.123, $0.331 and $0.260 per task. Results: [`results/merge-devops.json`](results/merge-devops.json).
- Chef against caveman 4.1 and ponytail 5.3 (their plugin dirs as arms), plus chef without `lean.md`, on Bash, the TypeScript bug fix, the Python CLI and the Python refactor, two runs each on Claude Code 2.1.331. Chef here is `ad13bf7`, before the reviewer fix. [`merge_loop.py summarize-tasks`](merge_loop.py) gives one summary per task and arm; the charts show the gap to plain Claude. Results: [`results/styles.json`](results/styles.json).
## Chef 1.5 bench
diff --git a/bench/charts.py b/bench/charts.py
index eef8625..295a73e 100644
--- a/bench/charts.py
+++ b/bench/charts.py
@@ -13,9 +13,8 @@
OUT: Path = Path(__file__).resolve().parent.parent / "assets" / "bench"
SUMMARY: Path = Path(__file__).resolve().parent / "results" / "summary.json"
HISTORY: Path = Path(__file__).resolve().parent / "results" / "history.json"
-MERGE_13_152: Path = Path(__file__).resolve().parent / "results" / "merge-13-152.json"
+MERGE_13: Path = Path(__file__).resolve().parent / "results" / "merge-13.json"
QUALITY: Path = Path(__file__).resolve().parent / "results" / "quality.json"
-MERGE_15: Path = Path(__file__).resolve().parent / "results" / "merge-15.json"
FONT: str = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"
WIDTH: int = 880
@@ -139,7 +138,7 @@ def rows_chart(theme: Theme, chart: Chart, rows: list[tuple[str, dict[str, float
# The chef arm of results/quality.json and its name in the chart.
-QUALITY_CHEF: tuple[str, str] = ("chef15", "chef 1.5")
+QUALITY_CHEF: tuple[str, str] = ("chef16", "chef 1.6")
QUALITY_NAMES: dict[str, str] = {
"aspnetcore": "ASP.NET Core", "bash": "Bash", "c": "C", "ci": "GitHub Actions", "cpp": "C++", "csharp": "C#",
"django": "Django", "docker": "Docker", "fastapi": "FastAPI", "go": "Go", "java": "Java", "kotlin": "Kotlin",
@@ -152,6 +151,7 @@ def rows_chart(theme: Theme, chart: Chart, rows: list[tuple[str, dict[str, float
ICONS: Path = Path(__file__).resolve().parent / "icons.json"
# Simple Icons has no C#, PowerShell or plain SQL logo: those tiles show these letters instead.
+# Its Java entry is gone (trademark), so java comes from devicon at its own 128-unit viewbox.
MONOGRAMS: dict[str, str] = {"csharp": "C#", "powershell": "PS", "sql": "SQL"}
TILE_COLUMNS: int = 4
TILE_WIDTH: float = WIDTH / TILE_COLUMNS
@@ -159,9 +159,13 @@ def rows_chart(theme: Theme, chart: Chart, rows: list[tuple[str, dict[str, float
TILES_TOP: float = 132.0
-def icon(theme: Theme, x: float, y: float, task: str, paths: dict[str, str]) -> list[str]:
+def icon(theme: Theme, x: float, y: float, task: str, icons: dict[str, Any]) -> list[str]:
+ """The task's logo drawn 24 units wide, scaled from its own viewbox when it is not 24."""
+ paths: dict[str, str] = icons["paths"]
if task in paths:
- return [f'']
+ scale: float = icons["viewbox"] / icons.get("viewboxes", {}).get(task, icons["viewbox"])
+ place: str = f"translate({x:.1f} {y:.1f})" + (f" scale({scale:g})" if scale != 1 else "")
+ return [f'']
return [text(x + 12, y + 17, MONOGRAMS.get(task, task[:3].upper()), theme.ink, 12, 700, "middle")]
@@ -180,7 +184,7 @@ def quality_tile(theme: Theme, origin: tuple[float, float], name: str, scores: t
def quality_chart(theme: Theme, quality: dict[str, Any]) -> str:
"""One tile per language: its icon, the score without chef, then with the latest chef; biggest gain first."""
chef, chef_name = QUALITY_CHEF
- paths: dict[str, str] = json.loads(ICONS.read_text(encoding="utf-8"))["paths"]
+ icons: dict[str, Any] = json.loads(ICONS.read_text(encoding="utf-8"))
criteria: list[str] = quality["criteria"]
mean: dict[str, float] = {arm: statistics.fmean(quality["arms"][arm][name] for name in criteria) for arm in ("none", chef)}
tasks: list[tuple[str, dict[str, float]]] = sorted(
@@ -195,7 +199,7 @@ def quality_chart(theme: Theme, quality: dict[str, Any]) -> str:
for index, (task, scores) in enumerate(tasks):
x: float = (index % TILE_COLUMNS) * TILE_WIDTH
y: float = TILES_TOP + (index // TILE_COLUMNS) * TILE_HEIGHT
- body += icon(theme, x, y + 2, task, paths)
+ body += icon(theme, x, y + 2, task, icons)
body += quality_tile(theme, (x, y + 8), QUALITY_NAMES.get(task, task), (scores["none"], scores[chef]))
rows: int = -(-len(tasks) // TILE_COLUMNS)
label: str = (
@@ -254,11 +258,11 @@ def pairwise_chart(theme: Theme, summary: dict[str, Any]) -> str:
("Cost per task, fixes included", "cost"),
)
# The newest chef arm is the one the break-even chart and the README headline compare with plain Claude.
-# The overview, break-even and time charts compare these on the same-day 13-task bench (results/merge-13-152.json).
-LATEST_CHEF: tuple[str, str] = ("chef152", "Chef 1.5.2")
-PREVIOUS_CHEF: tuple[str, str] = ("chef14", "Chef 1.4")
+# The overview, break-even and time charts compare these on the same-day 13-task bench (results/merge-13.json).
+LATEST_CHEF: tuple[str, str] = ("chef16", "Chef 1.6")
+PREVIOUS_CHEF: tuple[str, str] = ("chef152", "Chef 1.5")
# The 13-task bench, every arm reviewed with the 1.2 loop.
-OVERVIEW_ARMS: dict[str, str] = {"none": "Plain Claude", "chef14": "Chef 1.4", "chef152": "Chef 1.5.2"}
+OVERVIEW_ARMS: dict[str, str] = {"none": "Plain Claude", "chef14": "Chef 1.4", "chef152": "Chef 1.5", "chef16": "Chef 1.6"}
PANEL_WIDTH: float = 150.0
PANEL_STEP: float = 230.0
@@ -283,13 +287,10 @@ def overview_cell(theme: Theme, x: float, y: float, value: float, scale: tuple[f
OVERVIEW_TITLE: str = "Same day, 13 tasks, a blind reviewer asks for fixes until it merges"
-RELEASE_15_ARMS: dict[str, str] = {"none": "Plain Claude", "chef14": "Chef 1.4", "chef15": "Chef 1.5"}
-RELEASE_15_TITLE: str = "Chef 1.5 bench: 11 tasks, 3 of them held out, 95 runs per arm"
-MERGE_152: Path = Path(__file__).resolve().parent / "results" / "merge-152.json"
-MERGE_152_DEVOPS: Path = Path(__file__).resolve().parent / "results" / "merge-152-devops.json"
-RELEASE_152_ARMS: dict[str, str] = {"none": "Plain Claude", "chef14": "Chef 1.4", "chef152": "Chef 1.5.2"}
-RELEASE_152_TITLE: str = "Same day, 11 tasks of the 1.5 bench: chef 1.4 against chef 1.5.2"
-DEVOPS_152_TITLE: str = "Same day, 7 DevOps and CI tasks: Docker, Terraform, Helm, Actions, Prometheus, Go, TS"
+MERGE_11: Path = Path(__file__).resolve().parent / "results" / "merge-11.json"
+MERGE_DEVOPS: Path = Path(__file__).resolve().parent / "results" / "merge-devops.json"
+BENCH_11_TITLE: str = "Same day, 11 tasks of the 1.5 bench, 3 of them held out"
+DEVOPS_TITLE: str = "Same day, 7 DevOps and CI tasks: Docker, Terraform, Helm, Actions, Prometheus, Go, TS"
def arm_shades(theme: Theme, arms: list[str]) -> dict[str, str]:
@@ -309,8 +310,8 @@ def overview_chart(
values: dict[str, dict[str, float]] = {arm: overview_values(merge, arm) for arm in arms}
tops: dict[str, tuple[float, str]] = {
"merge": (100.0, "%"),
- # At least 1%: a bench where no arm needed a review round still draws empty bars.
- "major": (max(1.0, *(values[arm]["major"] for arm in arms)), "%"),
+ # Rounds per 100 tasks on a 0-100 scale, so 5 rounds draw a short bar, not a full one.
+ "major": (max(100.0, *(values[arm]["major"] for arm in arms)), "%"),
"cost": (max(values[arm]["cost"] for arm in arms), "$"),
}
body: list[str] = [text(0, 26, title, theme.ink, 18, 600)]
@@ -367,10 +368,25 @@ def same_reviewer_segments(versions: list[dict[str, Any]], points: list[tuple[fl
return segments
-HISTORY_SHOWN: dict[str, str] = {"$": "${:.3f}", "%": "{:.0f}%", "s": "{:.0f} s"}
+HISTORY_SHOWN: dict[str, str] = {"$": "${:.3f}", "%": "{:.0f}%", "s": "{:.0f} s", "×": "{:.1f}×"}
REVIEWED_KEY: str = "merge"
+def minor_releases(history: dict[str, Any]) -> dict[str, Any]:
+ """One point per major.minor version, labelled X.Y: the latest patch of that minor stands for it."""
+ latest: dict[str, dict[str, Any]] = {}
+ for entry in history["versions"]:
+ minor: str = ".".join(entry["version"].split(".")[:2])
+ latest[minor] = {**entry, "version": minor}
+ return {**history, "versions": list(latest.values())}
+
+
+def relative_to_plain(history: dict[str, Any], key: str) -> dict[str, Any]:
+ """Each version's value divided by plain Claude's on the bench day it is paired with (`plain_`), plain at 1."""
+ versions: list[dict[str, Any]] = [{**entry, key: entry[key] / entry[f"plain_{key}"]} for entry in history["versions"]]
+ return {**history, "versions": versions, "baseline": {**history["baseline"], key: 1.0}}
+
+
def baseline_marks(theme: Theme, panel: Panel, history: dict[str, Any]) -> list[str]:
"""Plain Claude's dashed line; on the reviewed panel only while it shares the latest version's reviewer."""
baseline: dict[str, Any] = history["baseline"]
@@ -418,7 +434,7 @@ def history_panel(theme: Theme, panel: Panel, history: dict[str, Any]) -> list[s
HISTORY_METRICS: dict[str, tuple[str, str]] = {
- "cost": ("Chef across versions: cost per task (median)", "$"),
+ "cost": ("Chef across versions: cost per task, as a multiple of plain Claude's", "×"),
"merge": ("Chef across versions: a blind reviewer would merge it as is", "%"),
}
@@ -426,6 +442,8 @@ def history_panel(theme: Theme, panel: Panel, history: dict[str, Any]) -> list[s
def history_chart(theme: Theme, history: dict[str, Any], key: str) -> str:
"""One metric of chef by version, cost or blind-review quality, on the tasks every version ran."""
title, unit = HISTORY_METRICS[key]
+ if unit == "×":
+ history = relative_to_plain(history, key)
values: list[float] = [entry[key] for entry in history["versions"]] + [history["baseline"][key]]
top: float = 100.0 if unit == "%" else 1.2 * max(values)
body: list[str] = [text(0, 26, title, theme.ink, 18, 600)]
@@ -487,9 +505,9 @@ def break_even_line(theme: Theme, loop: dict[str, float], color: str, top: float
return [
f'',
f'',
- text(x - 10, y + 4, f"${example:.2f}", theme.ink, 12, 600, "end")
+ text(x - 10, y - 8, f"${example:.2f}", theme.ink, 12, 600, "end")
if label_left
- else text(x + 10, y + 4, f"${example:.2f}", theme.ink, 12, 600),
+ else text(x + 10, y + 16, f"${example:.2f}", theme.ink, 12, 600),
]
@@ -497,18 +515,13 @@ def break_even_chart(theme: Theme, merge: dict[str, dict[str, float]]) -> str:
"""When chef's extra machine cost is paid back by the review rounds it saves a human reviewer."""
plain: dict[str, float] = merge["none"]
chef: dict[str, float] = merge[LATEST_CHEF[0]]
- previous: dict[str, float] | None = merge.get(PREVIOUS_CHEF[0])
- loops: list[dict[str, float]] = [plain, chef] if previous is None else [plain, previous, chef]
- top: float = max(cost_with_reviews(loop, ROUND_COST_MAX) for loop in loops)
+ top: float = max(cost_with_reviews(loop, ROUND_COST_MAX) for loop in (plain, chef))
threshold: float = break_even(plain, chef)
saving: float = 1 - cost_with_reviews(chef, ROUND_COST_EXAMPLE) / cost_with_reviews(plain, ROUND_COST_EXAMPLE)
body: list[str] = [text(0, 26, "Cost per task once the reviewer's time counts", theme.ink, 18, 600)]
body += break_even_axes(theme, top)
- body += break_even_line(theme, plain, theme.without, top)
+ body += break_even_line(theme, plain, theme.without, top, label_left=True)
notes: list[tuple[str, str]] = [(theme.without, f"Plain Claude: {1 + plain['fix_rounds_per_run']:.2f} reviews per task")]
- if previous is not None:
- body += break_even_line(theme, previous, theme.old, top, label_left=True)
- notes.append((theme.old, f"{PREVIOUS_CHEF[1]}: {1 + previous['fix_rounds_per_run']:.2f} reviews per task"))
body += break_even_line(theme, chef, theme.chef, top)
notes.append((theme.chef, f"{LATEST_CHEF[1]}: {1 + chef['fix_rounds_per_run']:.2f} reviews per task"))
for index, (color, note) in enumerate(notes):
@@ -535,13 +548,7 @@ def break_even_chart(theme: Theme, merge: dict[str, dict[str, float]]) -> str:
return svg(int(PLOT_BOTTOM + 50), label, body)
-TIME_ARMS: dict[str, str] = {
- "none": "Plain Claude",
- "chef11": "Chef 1.1",
- "chef12": "Chef 1.2",
- PREVIOUS_CHEF[0]: PREVIOUS_CHEF[1],
- LATEST_CHEF[0]: LATEST_CHEF[1],
-}
+TIME_ARMS: dict[str, str] = OVERVIEW_ARMS
TIME_STEPS: tuple[tuple[str, str], ...] = (
("first_answer_seconds", "First answer"),
("first_review_seconds", "First review"),
@@ -591,9 +598,14 @@ def time_bars(theme: Theme, merge: dict[str, dict[str, float]]) -> list[str]:
def time_chart(theme: Theme, merge: dict[str, dict[str, float]], history: dict[str, Any]) -> str:
"""Where an agent's time goes until the reviewer merges, and the first answer's time by version."""
- seconds_top: float = 1.2 * max(max(entry["seconds"] for entry in history["versions"]), history["baseline"]["seconds"])
+ history = relative_to_plain(history, "seconds")
+ seconds_top: float = 1.2 * max(entry["seconds"] for entry in history["versions"])
panel: Panel = Panel(
- 40.0 + HISTORY_PANEL_WIDTH + HISTORY_PANEL_GAP, "First answer by version (median)", "seconds", seconds_top, "s"
+ 40.0 + HISTORY_PANEL_WIDTH + HISTORY_PANEL_GAP,
+ "First answer by version, times plain Claude's",
+ "seconds",
+ seconds_top,
+ "×",
)
body: list[str] = [text(0, 26, "Time to a merged change", theme.ink, 18, 600)]
body += time_bars(theme, merge) + history_panel(theme, panel, history)
@@ -604,8 +616,8 @@ def time_chart(theme: Theme, merge: dict[str, dict[str, float]], history: dict[s
for arm in TIME_ARMS
if arm in merge
)
- versions: str = ", ".join(f"{entry['version']} {entry['seconds']:.0f} s" for entry in history["versions"])
- label: str = f"{arms}. First answer by version: {versions}; plain Claude {history['baseline']['seconds']:.0f} s."
+ versions: str = ", ".join(f"{entry['version']} {entry['seconds']:.1f}×" for entry in history["versions"])
+ label: str = f"{arms}. First answer by version, as a multiple of plain Claude's: {versions}."
rows: int = sum(1 for arm in TIME_ARMS if arm in merge)
legend_bottom: float = HISTORY_TOP + rows * TIME_ROW_STEP + 24
return svg(int(max(HISTORY_TOP + HISTORY_PANEL_HEIGHT + 40, legend_bottom)), label, body)
@@ -627,8 +639,8 @@ def split_chart(theme: Theme) -> str:
STYLES: Path = Path(__file__).resolve().parent / "results" / "styles.json"
STYLE_ARMS: dict[str, str] = {
"none": "Plain Claude",
- "chef152": "Chef 1.5.2",
- "nolean": "Chef, no lean.md",
+ "chef152": "Chef 1.5",
+ "chef16": "Chef 1.6",
"caveman": "Caveman 4.1",
"ponytail": "Ponytail 5.3",
}
@@ -655,7 +667,7 @@ def style_chart(theme: Theme, styles: dict[str, Any]) -> str:
tasks: list[str] = [task for task, arms in styles["tasks"].items() if all(arm in arms for arm in STYLE_ARMS)]
values: dict[str, dict[str, float]] = {arm: style_values(styles, arm, tasks) for arm in STYLE_ARMS}
tops: dict[str, float] = {"accepted": 100.0} | {key: max(values[arm][key] for arm in STYLE_ARMS) for key in ("cost", "lines")}
- colors: dict[str, str] = {"none": theme.without, "chef152": theme.chef, "nolean": theme.old}
+ colors: dict[str, str] = {"none": theme.without, "chef16": theme.chef, "chef152": theme.old}
body: list[str] = [text(0, 26, STYLE_TITLE, theme.ink, 18, 600)]
for index, (panel_title, hint, _, _) in enumerate(STYLE_PANELS):
x: float = LABEL_WIDTH + index * PANEL_STEP
@@ -679,34 +691,23 @@ def main() -> None:
summary: dict[str, Any] = json.loads(SUMMARY.read_text(encoding="utf-8"))
OUT.mkdir(parents=True, exist_ok=True)
for theme in (LIGHT, DARK):
- latest: dict[str, dict[str, float]] = json.loads(MERGE_13_152.read_text(encoding="utf-8"))["arms"]
+ latest: dict[str, dict[str, float]] = json.loads(MERGE_13.read_text(encoding="utf-8"))["arms"]
(OUT / f"overview{theme.suffix}.svg").write_text(overview_chart(theme, latest), encoding="utf-8")
(OUT / f"break-even{theme.suffix}.svg").write_text(break_even_chart(theme, latest), encoding="utf-8")
(OUT / f"cost{theme.suffix}.svg").write_text(cost_chart(theme, summary), encoding="utf-8")
(OUT / f"pairwise{theme.suffix}.svg").write_text(pairwise_chart(theme, summary), encoding="utf-8")
(OUT / f"cost-split{theme.suffix}.svg").write_text(split_chart(theme), encoding="utf-8")
- if MERGE_15.is_file():
- release: dict[str, dict[str, float]] = json.loads(MERGE_15.read_text(encoding="utf-8"))["arms"]
- (OUT / f"overview-15{theme.suffix}.svg").write_text(
- overview_chart(theme, release, RELEASE_15_TITLE, RELEASE_15_ARMS), encoding="utf-8"
- )
if QUALITY.is_file():
quality: dict[str, Any] = json.loads(QUALITY.read_text(encoding="utf-8"))
(OUT / f"quality{theme.suffix}.svg").write_text(quality_chart(theme, quality), encoding="utf-8")
if HISTORY.is_file():
- history: dict[str, Any] = json.loads(HISTORY.read_text(encoding="utf-8"))
+ history: dict[str, Any] = minor_releases(json.loads(HISTORY.read_text(encoding="utf-8")))
for key in HISTORY_METRICS:
(OUT / f"history-{key}{theme.suffix}.svg").write_text(history_chart(theme, history, key), encoding="utf-8")
(OUT / f"time{theme.suffix}.svg").write_text(time_chart(theme, latest, history), encoding="utf-8")
- for source, name, title in (
- (MERGE_152, "overview-152", RELEASE_152_TITLE),
- (MERGE_152_DEVOPS, "devops-152", DEVOPS_152_TITLE),
- ):
- if source.is_file():
- arms_152: dict[str, dict[str, float]] = json.loads(source.read_text(encoding="utf-8"))["arms"]
- (OUT / f"{name}{theme.suffix}.svg").write_text(
- overview_chart(theme, arms_152, title, RELEASE_152_ARMS), encoding="utf-8"
- )
+ for source, name, title in ((MERGE_11, "overview-11", BENCH_11_TITLE), (MERGE_DEVOPS, "devops", DEVOPS_TITLE)):
+ bench_arms: dict[str, dict[str, float]] = json.loads(source.read_text(encoding="utf-8"))["arms"]
+ (OUT / f"{name}{theme.suffix}.svg").write_text(overview_chart(theme, bench_arms, title), encoding="utf-8")
if STYLES.is_file():
styles: dict[str, Any] = json.loads(STYLES.read_text(encoding="utf-8"))
(OUT / f"styles{theme.suffix}.svg").write_text(style_chart(theme, styles), encoding="utf-8")
diff --git a/bench/icons.json b/bench/icons.json
index 62cc208..38ee7df 100644
--- a/bench/icons.json
+++ b/bench/icons.json
@@ -10,7 +10,7 @@
"docker": "M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z",
"fastapi": "M12 .0387C5.3729.0384.0003 5.3931 0 11.9988c-.001 6.6066 5.372 11.9628 12 11.9625 6.628.0003 12.001-5.3559 12-11.9625-.0003-6.6057-5.3729-11.9604-12-11.96m-.829 5.4153h7.55l-7.5805 5.3284h5.1828L5.279 18.5436q2.9466-6.5444 5.892-13.0896",
"go": "M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z",
- "java": "M11.915 0 11.7.215C9.515 2.4 7.47 6.39 6.046 10.483c-1.064 1.024-3.633 2.81-3.711 3.551-.093.87 1.746 2.611 1.55 3.235-.198.625-1.304 1.408-1.014 1.939.1.188.823.011 1.277-.491a13.389 13.389 0 0 0-.017 2.14c.076.906.27 1.668.643 2.232.372.563.956.911 1.667.911.397 0 .727-.114 1.024-.264.298-.149.571-.33.91-.5.68-.34 1.634-.666 3.53-.604 1.903.062 2.872.39 3.559.704.687.314 1.15.664 1.925.664.767 0 1.395-.336 1.807-.9.412-.563.631-1.33.72-2.24.06-.623.055-1.32 0-2.066.454.45 1.117.604 1.213.424.29-.53-.816-1.314-1.013-1.937-.198-.624 1.642-2.366 1.549-3.236-.08-.748-2.707-2.568-3.748-3.586C16.428 6.374 14.308 2.394 12.13.215zm.175 6.038a2.95 2.95 0 0 1 2.943 2.942 2.95 2.95 0 0 1-2.943 2.943A2.95 2.95 0 0 1 9.148 8.98a2.95 2.95 0 0 1 2.942-2.942zM8.685 7.983a3.515 3.515 0 0 0-.145.997c0 1.951 1.6 3.55 3.55 3.55 1.95 0 3.55-1.598 3.55-3.55 0-.329-.046-.648-.132-.951.334.095.64.208.915.336a42.699 42.699 0 0 1 2.042 5.829c.678 2.545 1.01 4.92.846 6.607-.082.844-.29 1.51-.606 1.94-.315.431-.713.651-1.315.651-.593 0-.932-.27-1.673-.61-.741-.338-1.825-.694-3.792-.758-1.974-.064-3.073.293-3.821.669-.375.188-.659.373-.911.5s-.466.2-.752.2c-.53 0-.876-.209-1.16-.64-.285-.43-.474-1.101-.545-1.948-.141-1.693.176-4.069.823-6.614a43.155 43.155 0 0 1 1.934-5.783c.348-.167.749-.31 1.192-.425zm-3.382 4.362a.216.216 0 0 1 .13.031c-.166.56-.323 1.116-.463 1.665a33.849 33.849 0 0 0-.547 2.555 3.9 3.9 0 0 0-.2-.39c-.58-1.012-.914-1.642-1.16-2.08.315-.24 1.679-1.755 2.24-1.781zm13.394.01c.562.027 1.926 1.543 2.24 1.783-.246.438-.58 1.068-1.16 2.08a4.428 4.428 0 0 0-.163.309 32.354 32.354 0 0 0-.562-2.49 40.579 40.579 0 0 0-.482-1.652.216.216 0 0 1 .127-.03z",
+ "java": "M47.617 98.12c-19.192 5.362 11.677 16.439 36.115 5.969-4.003-1.556-6.874-3.351-6.874-3.351-10.897 2.06-15.952 2.222-25.844 1.092-8.164-.935-3.397-3.71-3.397-3.71zm33.189-10.46c-14.444 2.779-22.787 2.69-33.354 1.6-8.171-.845-2.822-4.805-2.822-4.805-21.137 7.016 11.767 14.977 41.309 6.336-3.14-1.106-5.133-3.131-5.133-3.131zm11.319-60.575c.001 0-42.731 10.669-22.323 34.187 6.024 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.793 15.634-29.58zm9.998 81.144s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.095.171-4.45-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.952-3.487-32.013 6.85-13.742 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM85 77.896c2.395-1.634 5.703-3.053 5.703-3.053s-9.424 1.685-18.813 2.474c-11.494.964-23.823 1.154-30.012.326-14.652-1.959 8.033-7.348 8.033-7.348s-8.812-.596-19.644 4.644C17.455 81.134 61.958 83.958 85 77.896zm5.609 15.145c-.108.29-.468.616-.468.616 31.273-8.221 19.775-28.979 4.822-23.725-1.312.464-2 1.543-2 1.543s.829-.334 2.678-.72c7.559-1.575 18.389 10.119-5.032 22.286zM64.181 70.069c-4.614-10.429-20.26-19.553.007-35.559C89.459 14.563 76.492 1.587 76.492 1.587c5.23 20.608-18.451 26.833-26.999 39.667-5.821 8.745 2.857 18.142 14.688 28.815zm27.274 51.748c-19.187 3.612-42.854 3.191-56.887.874 0 0 2.874 2.38 17.646 3.331 22.476 1.437 57-.8 57.816-11.436.001 0-1.57 4.032-18.575 7.231z",
"kotlin": "M24 24H0V0h24L12 12Z",
"kubernetes": "M10.204 14.35l.007.01-.999 2.413a5.171 5.171 0 0 1-2.075-2.597l2.578-.437.004.005a.44.44 0 0 1 .484.606zm-.833-2.129a.44.44 0 0 0 .173-.756l.002-.011L7.585 9.7a5.143 5.143 0 0 0-.73 3.255l2.514-.725.002-.009zm1.145-1.98a.44.44 0 0 0 .699-.337l.01-.005.15-2.62a5.144 5.144 0 0 0-3.01 1.442l2.147 1.523.004-.002zm.76 2.75l.723.349.722-.347.18-.78-.5-.623h-.804l-.5.623.179.779zm1.5-3.095a.44.44 0 0 0 .7.336l.008.003 2.134-1.513a5.188 5.188 0 0 0-2.992-1.442l.148 2.615.002.001zm10.876 5.97l-5.773 7.181a1.6 1.6 0 0 1-1.248.594l-9.261.003a1.6 1.6 0 0 1-1.247-.596l-5.776-7.18a1.583 1.583 0 0 1-.307-1.34L2.1 5.573c.108-.47.425-.864.863-1.073L11.305.513a1.606 1.606 0 0 1 1.385 0l8.345 3.985c.438.209.755.604.863 1.073l2.062 8.955c.108.47-.005.963-.308 1.34zm-3.289-2.057c-.042-.01-.103-.026-.145-.034-.174-.033-.315-.025-.479-.038-.35-.037-.638-.067-.895-.148-.105-.04-.18-.165-.216-.216l-.201-.059a6.45 6.45 0 0 0-.105-2.332 6.465 6.465 0 0 0-.936-2.163c.052-.047.15-.133.177-.159.008-.09.001-.183.094-.282.197-.185.444-.338.743-.522.142-.084.273-.137.415-.242.032-.024.076-.062.11-.089.24-.191.295-.52.123-.736-.172-.216-.506-.236-.745-.045-.034.027-.08.062-.111.088-.134.116-.217.23-.33.35-.246.25-.45.458-.673.609-.097.056-.239.037-.303.033l-.19.135a6.545 6.545 0 0 0-4.146-2.003l-.012-.223c-.065-.062-.143-.115-.163-.25-.022-.268.015-.557.057-.905.023-.163.061-.298.068-.475.001-.04-.001-.099-.001-.142 0-.306-.224-.555-.5-.555-.275 0-.499.249-.499.555l.001.014c0 .041-.002.092 0 .128.006.177.044.312.067.475.042.348.078.637.056.906a.545.545 0 0 1-.162.258l-.012.211a6.424 6.424 0 0 0-4.166 2.003 8.373 8.373 0 0 1-.18-.128c-.09.012-.18.04-.297-.029-.223-.15-.427-.358-.673-.608-.113-.12-.195-.234-.329-.349-.03-.026-.077-.062-.111-.088a.594.594 0 0 0-.348-.132.481.481 0 0 0-.398.176c-.172.216-.117.546.123.737l.007.005.104.083c.142.105.272.159.414.242.299.185.546.338.743.522.076.082.09.226.1.288l.16.143a6.462 6.462 0 0 0-1.02 4.506l-.208.06c-.055.072-.133.184-.215.217-.257.081-.546.11-.895.147-.164.014-.305.006-.48.039-.037.007-.09.02-.133.03l-.004.002-.007.002c-.295.071-.484.342-.423.608.061.267.349.429.645.365l.007-.001.01-.003.129-.029c.17-.046.294-.113.448-.172.33-.118.604-.217.87-.256.112-.009.23.069.288.101l.217-.037a6.5 6.5 0 0 0 2.88 3.596l-.09.218c.033.084.069.199.044.282-.097.252-.263.517-.452.813-.091.136-.185.242-.268.399-.02.037-.045.095-.064.134-.128.275-.034.591.213.71.248.12.556-.007.69-.282v-.002c.02-.039.046-.09.062-.127.07-.162.094-.301.144-.458.132-.332.205-.68.387-.897.05-.06.13-.082.215-.105l.113-.205a6.453 6.453 0 0 0 4.609.012l.106.192c.086.028.18.042.256.155.136.232.229.507.342.84.05.156.074.295.145.457.016.037.043.09.062.129.133.276.442.402.69.282.247-.118.341-.435.213-.71-.02-.039-.045-.096-.065-.134-.083-.156-.177-.261-.268-.398-.19-.296-.346-.541-.443-.793-.04-.13.007-.21.038-.294-.018-.022-.059-.144-.083-.202a6.499 6.499 0 0 0 2.88-3.622c.064.01.176.03.213.038.075-.05.144-.114.28-.104.266.039.54.138.87.256.154.06.277.128.448.173.036.01.088.019.13.028l.009.003.007.001c.297.064.584-.098.645-.365.06-.266-.128-.537-.423-.608zM16.4 9.701l-1.95 1.746v.005a.44.44 0 0 0 .173.757l.003.01 2.526.728a5.199 5.199 0 0 0-.108-1.674A5.208 5.208 0 0 0 16.4 9.7zm-4.013 5.325a.437.437 0 0 0-.404-.232.44.44 0 0 0-.372.233h-.002l-1.268 2.292a5.164 5.164 0 0 0 3.326.003l-1.27-2.296h-.01zm1.888-1.293a.44.44 0 0 0-.27.036.44.44 0 0 0-.214.572l-.003.004 1.01 2.438a5.15 5.15 0 0 0 2.081-2.615l-2.6-.44-.004.005z",
"laravel": "M23.642 5.43a.364.364 0 01.014.1v5.149c0 .135-.073.26-.189.326l-4.323 2.49v4.934a.378.378 0 01-.188.326L9.93 23.949a.316.316 0 01-.066.027c-.008.002-.016.008-.024.01a.348.348 0 01-.192 0c-.011-.002-.02-.008-.03-.012-.02-.008-.042-.014-.062-.025L.533 18.755a.376.376 0 01-.189-.326V2.974c0-.033.005-.066.014-.098.003-.012.01-.02.014-.032a.369.369 0 01.023-.058c.004-.013.015-.022.023-.033l.033-.045c.012-.01.025-.018.037-.027.014-.012.027-.024.041-.034H.53L5.043.05a.375.375 0 01.375 0L9.93 2.647h.002c.015.01.027.021.04.033l.038.027c.013.014.02.03.033.045.008.011.02.021.025.033.01.02.017.038.024.058.003.011.01.021.013.032.01.031.014.064.014.098v9.652l3.76-2.164V5.527c0-.033.004-.066.013-.098.003-.01.01-.02.013-.032a.487.487 0 01.024-.059c.007-.012.018-.02.025-.033.012-.015.021-.03.033-.043.012-.012.025-.02.037-.028.014-.01.026-.023.041-.032h.001l4.513-2.598a.375.375 0 01.375 0l4.513 2.598c.016.01.027.021.042.031.012.01.025.018.036.028.013.014.022.03.034.044.008.012.019.021.024.033.011.02.018.04.024.06.006.01.012.021.015.032zm-.74 5.032V6.179l-1.578.908-2.182 1.256v4.283zm-4.51 7.75v-4.287l-2.147 1.225-6.126 3.498v4.325zM1.093 3.624v14.588l8.273 4.761v-4.325l-4.322-2.445-.002-.003H5.04c-.014-.01-.025-.021-.04-.031-.011-.01-.024-.018-.035-.027l-.001-.002c-.013-.012-.021-.025-.031-.04-.01-.011-.021-.022-.028-.036h-.002c-.008-.014-.013-.031-.02-.047-.006-.016-.014-.027-.018-.043a.49.49 0 01-.008-.057c-.002-.014-.006-.027-.006-.041V5.789l-2.18-1.257zM5.23.81L1.47 2.974l3.76 2.164 3.758-2.164zm1.956 13.505l2.182-1.256V3.624l-1.58.91-2.182 1.255v9.435zm11.581-10.95l-3.76 2.163 3.76 2.163 3.759-2.164zm-.376 4.978L16.21 7.087 14.63 6.18v4.283l2.182 1.256 1.58.908zm-8.65 9.654l5.514-3.148 2.756-1.572-3.757-2.163-4.323 2.489-3.941 2.27z",
@@ -30,6 +30,9 @@
"typescript": "M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",
"vue": "M24,1.61H14.06L12,5.16,9.94,1.61H0L12,22.39ZM12,14.08,5.16,2.23H9.59L12,6.41l2.41-4.18h4.43Z"
},
- "source": "simple-icons 16.38.1 (CC0 1.0), https://simpleicons.org",
- "viewbox": 24
+ "source": "simple-icons 16.38.1 (CC0 1.0), https://simpleicons.org; java from devicon 2.16.0 (MIT), https://devicon.dev",
+ "viewbox": 24,
+ "viewboxes": {
+ "java": 128
+ }
}
diff --git a/bench/results/history.json b/bench/results/history.json
index 8f38efa..60398ea 100644
--- a/bench/results/history.json
+++ b/bench/results/history.json
@@ -11,7 +11,10 @@
"merge": 50.0,
"reviews": 6,
"seconds": 45.2,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "0.9.0",
@@ -19,7 +22,10 @@
"merge": 44.4,
"reviews": 9,
"seconds": 55.0,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "0.10.0",
@@ -27,7 +33,10 @@
"merge": 66.7,
"reviews": 9,
"seconds": 45.9,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "1.0.0",
@@ -35,7 +44,10 @@
"merge": 77.8,
"reviews": 9,
"seconds": 44.9,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "1.1.0",
@@ -43,7 +55,10 @@
"merge": 77.8,
"reviews": 9,
"seconds": 50.2,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "1.2.0",
@@ -51,7 +66,10 @@
"merge": 88.9,
"reviews": 9,
"seconds": 40.9,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "1.3.0",
@@ -59,7 +77,10 @@
"merge": 100.0,
"reviews": 9,
"seconds": 41.2,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "1.4.0",
@@ -67,7 +88,10 @@
"merge": 100.0,
"reviews": 9,
"seconds": 46.8,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "1.5.0",
@@ -75,7 +99,10 @@
"merge": 88.9,
"reviews": 9,
"seconds": 41.4,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.059,
+ "plain_seconds": 15.0,
+ "plain_date": "2026-11-19"
},
{
"version": "1.5.2",
@@ -83,7 +110,21 @@
"merge": 88.9,
"reviews": 9,
"seconds": 92.7,
- "reviewer": "1.1-copy"
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.137,
+ "plain_seconds": 45.8,
+ "plain_date": "2026-11-25"
+ },
+ {
+ "version": "1.6.0",
+ "cost": 0.26,
+ "merge": 100.0,
+ "reviews": 9,
+ "seconds": 80.8,
+ "reviewer": "1.1-copy",
+ "plain_cost": 0.137,
+ "plain_seconds": 45.8,
+ "plain_date": "2026-11-25"
}
],
"baseline": {
diff --git a/bench/results/merge-11.json b/bench/results/merge-11.json
new file mode 100644
index 0000000..a217051
--- /dev/null
+++ b/bench/results/merge-11.json
@@ -0,0 +1,65 @@
+{
+ "provenance": {
+ "reviewer": "6459c25c02d6",
+ "date": "2026-11-25",
+ "pooled": "morning and evening runs of the same day"
+ },
+ "arms": {
+ "chef14": {
+ "runs": 11.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 5.61,
+ "total_cost": 5.61,
+ "cost_per_merged_run": 0.51,
+ "reviewer_cost": 1.21,
+ "lines_to_review": 385,
+ "first_answer_seconds": 210.4,
+ "first_review_seconds": 29.5,
+ "back_and_forth_seconds": 0.0
+ },
+ "chef152": {
+ "runs": 44.0,
+ "merged_first_time": 0.977,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.02,
+ "first_answer_cost": 14.86,
+ "total_cost": 15.12,
+ "cost_per_merged_run": 0.344,
+ "reviewer_cost": 5.16,
+ "lines_to_review": 373,
+ "first_answer_seconds": 151.6,
+ "first_review_seconds": 29.4,
+ "back_and_forth_seconds": 2.9
+ },
+ "chef16": {
+ "runs": 22.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 7.24,
+ "total_cost": 7.24,
+ "cost_per_merged_run": 0.329,
+ "reviewer_cost": 2.37,
+ "lines_to_review": 346,
+ "first_answer_seconds": 131.2,
+ "first_review_seconds": 34.8,
+ "back_and_forth_seconds": 0.0
+ },
+ "none": {
+ "runs": 33.0,
+ "merged_first_time": 0.939,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.06,
+ "first_answer_cost": 6.19,
+ "total_cost": 6.53,
+ "cost_per_merged_run": 0.198,
+ "reviewer_cost": 3.42,
+ "lines_to_review": 270,
+ "first_answer_seconds": 68.9,
+ "first_review_seconds": 27.4,
+ "back_and_forth_seconds": 5.5
+ }
+ }
+}
diff --git a/bench/results/merge-13-152.json b/bench/results/merge-13.json
similarity index 77%
rename from bench/results/merge-13-152.json
rename to bench/results/merge-13.json
index 6886223..5c8fbf4 100644
--- a/bench/results/merge-13-152.json
+++ b/bench/results/merge-13.json
@@ -49,6 +49,20 @@
"first_answer_seconds": 114.5,
"first_review_seconds": 23.7,
"back_and_forth_seconds": 0.0
+ },
+ "chef16": {
+ "runs": 13.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 3.57,
+ "total_cost": 3.57,
+ "cost_per_merged_run": 0.275,
+ "reviewer_cost": 1.37,
+ "lines_to_review": 331,
+ "first_answer_seconds": 114.0,
+ "first_review_seconds": 29.5,
+ "back_and_forth_seconds": 0.0
}
}
}
diff --git a/bench/results/merge-152.json b/bench/results/merge-152.json
deleted file mode 100644
index 82d548b..0000000
--- a/bench/results/merge-152.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "provenance": {
- "reviewer": "6459c25c02d6",
- "harness": [
- "v1.5.0-11-gfd80f29",
- "v1.5.2-1-g8f300d6-dirty"
- ]
- },
- "arms": {
- "chef14": {
- "runs": 11.0,
- "merged_first_time": 1.0,
- "merged_in_the_end": 1.0,
- "fix_rounds_per_run": 0.0,
- "first_answer_cost": 5.61,
- "total_cost": 5.61,
- "cost_per_merged_run": 0.51,
- "reviewer_cost": 1.21,
- "lines_to_review": 385,
- "first_answer_seconds": 210.4,
- "first_review_seconds": 29.5,
- "back_and_forth_seconds": 0.0
- },
- "chef152": {
- "runs": 22.0,
- "merged_first_time": 1.0,
- "merged_in_the_end": 1.0,
- "fix_rounds_per_run": 0.0,
- "first_answer_cost": 7.66,
- "total_cost": 7.66,
- "cost_per_merged_run": 0.348,
- "reviewer_cost": 2.43,
- "lines_to_review": 379,
- "first_answer_seconds": 155.0,
- "first_review_seconds": 25.8,
- "back_and_forth_seconds": 0.0
- },
- "none": {
- "runs": 11.0,
- "merged_first_time": 0.818,
- "merged_in_the_end": 1.0,
- "fix_rounds_per_run": 0.18,
- "first_answer_cost": 1.95,
- "total_cost": 2.29,
- "cost_per_merged_run": 0.208,
- "reviewer_cost": 1.35,
- "lines_to_review": 277,
- "first_answer_seconds": 66.5,
- "first_review_seconds": 32.2,
- "back_and_forth_seconds": 16.4
- }
- }
-}
diff --git a/bench/results/merge-152-devops.json b/bench/results/merge-devops.json
similarity index 73%
rename from bench/results/merge-152-devops.json
rename to bench/results/merge-devops.json
index 9243915..1fe3fe8 100644
--- a/bench/results/merge-152-devops.json
+++ b/bench/results/merge-devops.json
@@ -2,7 +2,8 @@
"provenance": {
"reviewer": "6459c25c02d6",
"harness": [
- "v1.5.0-11-gfd80f29"
+ "v1.5.0-11-gfd80f29",
+ "v1.5.2-5-gd87b6ab-dirty"
]
},
"arms": {
@@ -34,6 +35,20 @@
"first_review_seconds": 23.0,
"back_and_forth_seconds": 0.0
},
+ "chef16": {
+ "runs": 14.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 3.42,
+ "total_cost": 3.42,
+ "cost_per_merged_run": 0.244,
+ "reviewer_cost": 1.25,
+ "lines_to_review": 298,
+ "first_answer_seconds": 126.5,
+ "first_review_seconds": 28.1,
+ "back_and_forth_seconds": 0.0
+ },
"none": {
"runs": 14.0,
"merged_first_time": 1.0,
diff --git a/bench/results/quality.json b/bench/results/quality.json
index 86a3c0b..c78bd2c 100644
--- a/bench/results/quality.json
+++ b/bench/results/quality.json
@@ -1,5 +1,5 @@
{
- "reviewer": "8d9b99524234",
+ "reviewer": "97aedd903d00",
"criteria": [
"quality",
"clarity",
@@ -7,231 +7,151 @@
"functionality"
],
"arms": {
- "chef13": {
- "quality": 7.75,
- "clarity": 8.72,
- "maintainability": 7.38,
- "functionality": 7.75,
- "mergeable": 0.09,
- "reviews": 32.0
- },
- "chef14": {
- "quality": 7.62,
- "clarity": 8.59,
- "maintainability": 7.47,
- "functionality": 7.69,
- "mergeable": 0.09,
- "reviews": 32.0
- },
- "chef15": {
- "quality": 7.59,
- "clarity": 8.72,
- "maintainability": 7.53,
- "functionality": 7.69,
- "mergeable": 0.16,
+ "chef16": {
+ "quality": 8.38,
+ "clarity": 8.78,
+ "maintainability": 8.16,
+ "functionality": 8.62,
+ "mergeable": 0.56,
"reviews": 32.0
},
"none": {
- "quality": 7.09,
- "clarity": 8.19,
- "maintainability": 5.47,
- "functionality": 7.75,
- "mergeable": 0.03,
+ "quality": 8.06,
+ "clarity": 8.72,
+ "maintainability": 6.66,
+ "functionality": 8.59,
+ "mergeable": 0.38,
"reviews": 32.0
}
},
"tasks": {
"angular": {
- "chef13": 8.0,
- "chef15": 8.0,
- "none": 7.25,
- "chef14": 8.0
+ "chef16": 9.0,
+ "none": 7.75
},
"aspnetcore": {
- "none": 7.25,
- "chef14": 8.25,
- "chef13": 7.0,
- "chef15": 7.75
+ "chef16": 8.25,
+ "none": 8.5
},
"bash": {
- "chef15": 8.25,
- "chef14": 8.25,
- "chef13": 7.25,
- "none": 6.75
+ "none": 7.5,
+ "chef16": 8.0
},
"c": {
- "none": 7.0,
- "chef15": 8.25,
- "chef13": 7.5,
- "chef14": 7.5
+ "chef16": 8.75,
+ "none": 8.75
},
"ci": {
- "chef14": 7.0,
- "chef13": 7.5,
- "none": 4.75,
- "chef15": 7.5
+ "chef16": 8.75,
+ "none": 7.75
},
"cpp": {
- "none": 6.75,
- "chef14": 7.25,
- "chef15": 7.25,
- "chef13": 8.25
+ "chef16": 8.5,
+ "none": 8.25
},
"csharp": {
- "chef14": 9.0,
- "none": 8.0,
- "chef13": 8.0,
- "chef15": 8.25
+ "chef16": 9.25,
+ "none": 7.75
},
"django": {
- "chef13": 7.75,
- "none": 7.25,
- "chef15": 7.75,
- "chef14": 7.75
+ "none": 8.0,
+ "chef16": 8.5
},
"docker": {
- "none": 7.25,
- "chef14": 5.25,
- "chef15": 4.75,
- "chef13": 5.25
+ "chef16": 8.25,
+ "none": 8.0
},
"fastapi": {
- "none": 7.0,
- "chef13": 8.0,
- "chef15": 8.25,
- "chef14": 8.0
+ "chef16": 8.5,
+ "none": 7.0
},
"go": {
- "none": 7.5,
- "chef15": 8.25,
- "chef13": 8.25,
- "chef14": 8.25
+ "chef16": 8.5,
+ "none": 8.75
},
"java": {
- "none": 8.25,
- "chef15": 8.25,
- "chef13": 8.5,
- "chef14": 8.75
+ "chef16": 8.75,
+ "none": 8.75
},
"kotlin": {
- "chef15": 8.5,
- "chef13": 8.25,
- "chef14": 8.25,
- "none": 7.25
+ "chef16": 9.0,
+ "none": 8.75
},
"kubernetes": {
- "chef14": 8.0,
- "none": 8.0,
- "chef13": 8.0,
- "chef15": 8.0
+ "chef16": 8.0,
+ "none": 8.0
},
"laravel": {
- "chef14": 7.75,
- "none": 7.0,
- "chef13": 8.25,
- "chef15": 8.25
+ "chef16": 6.5,
+ "none": 7.25
},
"mongodb": {
- "none": 7.25,
- "chef13": 8.25,
- "chef14": 8.25,
- "chef15": 8.0
+ "chef16": 8.0,
+ "none": 7.25
},
"nextjs": {
- "chef14": 8.25,
- "none": 7.25,
- "chef15": 7.5,
- "chef13": 8.25
+ "none": 8.0,
+ "chef16": 8.25
},
"php": {
- "chef14": 8.5,
- "chef13": 8.75,
- "chef15": 8.5,
- "none": 8.25
+ "none": 8.75,
+ "chef16": 9.0
},
"postgres": {
- "chef13": 8.0,
- "chef14": 8.0,
- "none": 6.75,
- "chef15": 7.25
+ "none": 8.0,
+ "chef16": 8.25
},
"powershell": {
- "chef14": 7.75,
- "none": 6.5,
- "chef13": 8.0,
- "chef15": 7.25
+ "chef16": 8.25,
+ "none": 7.75
},
"python": {
- "chef14": 8.0,
- "chef15": 8.0,
- "chef13": 8.75,
- "none": 7.5
+ "none": 7.25,
+ "chef16": 8.25
},
"rails": {
- "none": 6.25,
- "chef14": 8.25,
- "chef13": 8.25,
- "chef15": 7.5
+ "none": 7.75,
+ "chef16": 8.5
},
"react": {
- "chef15": 8.0,
- "chef13": 8.25,
- "chef14": 8.0,
- "none": 6.75
+ "none": 7.75,
+ "chef16": 8.75
},
"redis": {
- "none": 6.5,
- "chef13": 7.25,
- "chef14": 7.0,
- "chef15": 7.25
+ "chef16": 8.0,
+ "none": 6.5
},
"ruby": {
- "none": 5.75,
- "chef13": 6.75,
- "chef14": 7.25,
- "chef15": 7.25
+ "none": 8.0,
+ "chef16": 8.5
},
"rust": {
- "chef15": 8.25,
- "none": 7.25,
- "chef14": 8.25,
- "chef13": 8.25
+ "none": 8.75,
+ "chef16": 8.75
},
"spring-boot": {
- "chef13": 8.25,
- "none": 7.25,
- "chef14": 8.25,
- "chef15": 8.5
+ "none": 8.75,
+ "chef16": 9.0
},
"sql": {
- "chef15": 8.25,
- "chef13": 7.25,
- "none": 7.0,
- "chef14": 7.25
+ "none": 8.0,
+ "chef16": 8.5
},
"swift": {
- "none": 7.75,
- "chef15": 8.5,
- "chef13": 8.0,
- "chef14": 6.25
+ "chef16": 8.75,
+ "none": 8.75
},
"terraform": {
- "none": 7.5,
- "chef14": 8.25,
- "chef15": 8.25,
- "chef13": 8.25
+ "none": 8.25,
+ "chef16": 9.0
},
"typescript": {
- "chef15": 9.0,
- "none": 7.75,
- "chef13": 8.75,
- "chef14": 8.0
+ "chef16": 9.0,
+ "none": 8.0
},
"vue": {
- "chef15": 7.75,
- "chef14": 8.25,
- "none": 7.5,
- "chef13": 7.75
+ "chef16": 8.25,
+ "none": 8.0
}
}
}
diff --git a/bench/results/styles.json b/bench/results/styles.json
index a12bedd..873bac2 100644
--- a/bench/results/styles.json
+++ b/bench/results/styles.json
@@ -2,7 +2,8 @@
"provenance": {
"reviewer": "6459c25c02d6",
"harness": [
- "v1.5.0-8-gad13bf7-dirty"
+ "v1.5.0-8-gad13bf7-dirty",
+ "v1.5.2-5-gd87b6ab-dirty"
]
},
"tasks": {
@@ -35,6 +36,20 @@
"first_review_seconds": 36.2,
"back_and_forth_seconds": 0.0
},
+ "chef16": {
+ "runs": 2.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 0.64,
+ "total_cost": 0.64,
+ "cost_per_merged_run": 0.318,
+ "reviewer_cost": 0.29,
+ "lines_to_review": 232,
+ "first_answer_seconds": 124.2,
+ "first_review_seconds": 43.5,
+ "back_and_forth_seconds": 0.0
+ },
"nolean": {
"runs": 2.0,
"merged_first_time": 1.0,
@@ -107,6 +122,20 @@
"first_review_seconds": 21.6,
"back_and_forth_seconds": 0.0
},
+ "chef16": {
+ "runs": 2.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 0.35,
+ "total_cost": 0.35,
+ "cost_per_merged_run": 0.177,
+ "reviewer_cost": 0.26,
+ "lines_to_review": 380,
+ "first_answer_seconds": 35.5,
+ "first_review_seconds": 24.9,
+ "back_and_forth_seconds": 0.0
+ },
"nolean": {
"runs": 2.0,
"merged_first_time": 1.0,
@@ -179,6 +208,20 @@
"first_review_seconds": 32.0,
"back_and_forth_seconds": 0.0
},
+ "chef16": {
+ "runs": 2.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 0.51,
+ "total_cost": 0.51,
+ "cost_per_merged_run": 0.255,
+ "reviewer_cost": 0.19,
+ "lines_to_review": 354,
+ "first_answer_seconds": 86.9,
+ "first_review_seconds": 22.3,
+ "back_and_forth_seconds": 0.0
+ },
"nolean": {
"runs": 2.0,
"merged_first_time": 1.0,
@@ -251,6 +294,20 @@
"first_review_seconds": 34.0,
"back_and_forth_seconds": 0.0
},
+ "chef16": {
+ "runs": 2.0,
+ "merged_first_time": 1.0,
+ "merged_in_the_end": 1.0,
+ "fix_rounds_per_run": 0.0,
+ "first_answer_cost": 1.09,
+ "total_cost": 1.09,
+ "cost_per_merged_run": 0.546,
+ "reviewer_cost": 0.35,
+ "lines_to_review": 664,
+ "first_answer_seconds": 237.2,
+ "first_review_seconds": 36.6,
+ "back_and_forth_seconds": 0.0
+ },
"nolean": {
"runs": 2.0,
"merged_first_time": 1.0,
diff --git a/bench/test_charts.py b/bench/test_charts.py
index afed015..b12dcbf 100644
--- a/bench/test_charts.py
+++ b/bench/test_charts.py
@@ -15,11 +15,11 @@ def test_quality_chart_draws_a_tile_per_language_with_its_icon_biggest_gain_firs
scores: dict[str, float] = {"quality": 5.5, "clarity": 6.0, "maintainability": 4.5, "functionality": 7.0}
quality: dict[str, Any] = {
"criteria": ["quality", "clarity", "maintainability", "functionality"],
- "arms": {"none": scores, "chef15": {name: value + 3 for name, value in scores.items()}},
+ "arms": {"none": scores, "chef16": {name: value + 3 for name, value in scores.items()}},
"tasks": {
- "go": {"none": 5.0, "chef15": 8.2},
- "csharp": {"none": 6.0, "chef15": 8.5},
- "cpp": {"none": 7.0, "chef15": 7.0},
+ "go": {"none": 5.0, "chef16": 8.2},
+ "csharp": {"none": 6.0, "chef16": 8.5},
+ "cpp": {"none": 7.0, "chef16": 7.0},
},
}
@@ -89,14 +89,14 @@ def test_overview_chart_lists_each_looped_arm() -> None:
def test_overview_chart_draws_the_latest_chef_in_the_chef_color_and_the_previous_one_in_the_old_color() -> None:
merge: dict[str, dict[str, float]] = {
"none": {"runs": 2.0, "merged_first_time": 0.5, "fix_rounds_per_run": 0.5, "total_cost": 0.2},
- "chef14": {"runs": 2.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.4},
- "chef152": {"runs": 2.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.3},
+ "chef152": {"runs": 2.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.4},
+ "chef16": {"runs": 2.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.3},
}
svg: str = charts.overview_chart(charts.LIGHT, merge)
- assert "Chef 1.4: first answer accepted 100%, 0 review rounds per 100 tasks, $0.200 per task with fixes" in svg
- assert "Chef 1.5.2: first answer accepted 100%, 0 review rounds per 100 tasks, $0.150 per task with fixes" in svg
+ assert "Chef 1.5: first answer accepted 100%, 0 review rounds per 100 tasks, $0.200 per task with fixes" in svg
+ assert "Chef 1.6: first answer accepted 100%, 0 review rounds per 100 tasks, $0.150 per task with fixes" in svg
assert charts.LIGHT.chef in svg
assert charts.LIGHT.old in svg
@@ -107,9 +107,9 @@ def test_overview_chart_takes_its_own_title_and_arm_names() -> None:
"chef14": {"runs": 2.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.4},
}
- svg: str = charts.overview_chart(charts.LIGHT, merge, charts.DEVOPS_152_TITLE, charts.RELEASE_152_ARMS)
+ svg: str = charts.overview_chart(charts.LIGHT, merge, charts.DEVOPS_TITLE)
- assert charts.DEVOPS_152_TITLE in svg
+ assert charts.DEVOPS_TITLE in svg
assert "Chef 1.4: first answer accepted 100%" in svg
assert charts.OVERVIEW_TITLE not in svg
@@ -117,12 +117,23 @@ def test_overview_chart_takes_its_own_title_and_arm_names() -> None:
def test_overview_chart_draws_a_bench_where_no_arm_needed_a_review_round() -> None:
merge: dict[str, dict[str, float]] = {
"chef14": {"runs": 1.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.5},
- "chef152": {"runs": 2.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.7},
+ "chef16": {"runs": 2.0, "merged_first_time": 1.0, "fix_rounds_per_run": 0.0, "total_cost": 0.7},
}
- svg: str = charts.overview_chart(charts.LIGHT, merge, charts.RELEASE_152_TITLE, charts.RELEASE_152_ARMS)
+ svg: str = charts.overview_chart(charts.LIGHT, merge, charts.BENCH_11_TITLE)
+
+ assert "Chef 1.6: first answer accepted 100%, 0 review rounds per 100 tasks, $0.350 per task with fixes" in svg
+
- assert "Chef 1.5.2: first answer accepted 100%, 0 review rounds per 100 tasks, $0.350 per task with fixes" in svg
+def test_overview_chart_scales_review_rounds_on_100_per_100_tasks() -> None:
+ merge: dict[str, dict[str, float]] = {
+ "chef16": {"runs": 20.0, "merged_first_time": 0.95, "fix_rounds_per_run": 0.05, "total_cost": 2.0},
+ }
+
+ svg: str = charts.overview_chart(charts.LIGHT, merge)
+
+ review_bar: str = f'width="{charts.PANEL_WIDTH * 5 / 100:.1f}"'
+ assert review_bar in svg
def test_break_even_is_the_extra_machine_cost_over_the_rounds_saved() -> None:
@@ -135,27 +146,15 @@ def test_break_even_is_the_extra_machine_cost_over_the_rounds_saved() -> None:
def test_break_even_chart_labels_the_threshold_and_the_example_round() -> None:
merge: dict[str, dict[str, float]] = {
"none": {"runs": 10.0, "total_cost": 1.0, "fix_rounds_per_run": 0.5},
- "chef152": {"runs": 10.0, "total_cost": 2.0, "fix_rounds_per_run": 0.1},
+ "chef152": {"runs": 10.0, "total_cost": 2.5, "fix_rounds_per_run": 0.2},
+ "chef16": {"runs": 10.0, "total_cost": 2.0, "fix_rounds_per_run": 0.1},
}
svg: str = charts.break_even_chart(charts.LIGHT, merge)
assert "costs less once a round costs more than $0.25" in svg
- assert "plain Claude $15.10 and chef 1.5.2 $11.20 per task, 26% less" in svg
- assert "Chef 1.4" not in svg
-
-
-def test_break_even_chart_draws_chef_14_beside_the_latest_chef() -> None:
- merge: dict[str, dict[str, float]] = {
- "none": {"runs": 10.0, "total_cost": 1.0, "fix_rounds_per_run": 0.5},
- "chef14": {"runs": 10.0, "total_cost": 2.5, "fix_rounds_per_run": 0.2},
- "chef152": {"runs": 10.0, "total_cost": 2.0, "fix_rounds_per_run": 0.1},
- }
-
- svg: str = charts.break_even_chart(charts.LIGHT, merge)
-
- assert "Chef 1.4: 1.20 reviews per task" in svg
- assert charts.LIGHT.old in svg
+ assert "plain Claude $15.10 and chef 1.6 $11.20 per task, 26% less" in svg
+ assert "Chef 1.5" not in svg
def test_same_reviewer_segments_breaks_the_line_where_the_reviewer_changes() -> None:
@@ -176,7 +175,7 @@ def test_time_chart_labels_each_arm_step_and_version() -> None:
"first_review_seconds": 20,
"back_and_forth_seconds": 30,
},
- "chef12": {
+ "chef16": {
"runs": 2.0,
"merged_first_time": 1.0,
"first_answer_seconds": 40,
@@ -185,30 +184,36 @@ def test_time_chart_labels_each_arm_step_and_version() -> None:
},
}
history: dict[str, Any] = {
- "versions": [{"version": "1.1.0", "seconds": 50.0}, {"version": "1.2.0", "seconds": 40.0}],
- "baseline": {"seconds": 15.0},
+ "versions": [
+ {"version": "1.1", "seconds": 45.0, "plain_seconds": 15.0},
+ {"version": "1.6", "seconds": 90.0, "plain_seconds": 45.0},
+ ],
+ "baseline": {"seconds": 45.0},
}
svg: str = charts.time_chart(charts.DARK, merge, history)
assert "Plain Claude: first answer 20 s, first review 20 s, fixes and new reviews 30 s, 50% sent back" in svg
- assert "Chef 1.2: first answer 40 s, first review 25 s, fixes and new reviews 10 s, 0% sent back" in svg
- assert "First answer by version: 1.1.0 50 s, 1.2.0 40 s; plain Claude 15 s." in svg
- assert "Chef 1.1:" not in svg
+ assert "Chef 1.6: first answer 40 s, first review 25 s, fixes and new reviews 10 s, 0% sent back" in svg
+ assert "First answer by version, as a multiple of plain Claude's: 1.1 3.0×, 1.6 2.0×." in svg
+ assert "Chef 1.4:" not in svg
assert charts.LIGHT.ink not in svg
def test_history_chart_labels_every_version_and_the_baseline() -> None:
history: dict[str, Any] = {
"tasks": ["python"],
- "versions": [{"version": "0.9.0", "cost": 0.2, "merge": 40.0}, {"version": "1.1.0", "cost": 0.15, "merge": 90.0}],
- "baseline": {"cost": 0.06, "merge": 45.0},
+ "versions": [
+ {"version": "0.9.0", "cost": 0.2, "plain_cost": 0.05, "merge": 40.0},
+ {"version": "1.1.0", "cost": 0.15, "plain_cost": 0.1, "merge": 90.0},
+ ],
+ "baseline": {"cost": 0.1, "merge": 45.0},
}
cost: str = charts.history_chart(charts.LIGHT, history, "cost")
merge: str = charts.history_chart(charts.LIGHT, history, "merge")
- assert "cost per task (median), on python: 0.9.0 $0.200, 1.1.0 $0.150. Plain Claude: $0.060." in cost
+ assert "as a multiple of plain Claude's, on python: 0.9.0 4.0×, 1.1.0 1.5×. Plain Claude: 1.0×." in cost
assert "merge it as is, on python: 0.9.0 40%, 1.1.0 90%. Plain Claude: 45%." in merge
@@ -216,8 +221,8 @@ def test_history_chart_hides_plain_claude_merge_line_judged_by_another_reviewer(
history: dict[str, Any] = {
"tasks": ["python"],
"versions": [
- {"version": "1.2.0", "cost": 0.2, "merge": 40.0, "reviewer": "old"},
- {"version": "1.3.0", "cost": 0.15, "merge": 90.0, "reviewer": "new"},
+ {"version": "1.2.0", "cost": 0.2, "plain_cost": 0.06, "merge": 40.0, "reviewer": "old"},
+ {"version": "1.3.0", "cost": 0.15, "plain_cost": 0.06, "merge": 90.0, "reviewer": "new"},
],
"baseline": {"cost": 0.06, "merge": 45.0, "reviewer": "old"},
}
@@ -225,13 +230,13 @@ def test_history_chart_hides_plain_claude_merge_line_judged_by_another_reviewer(
cost: str = charts.history_chart(charts.LIGHT, history, "cost")
merge: str = charts.history_chart(charts.LIGHT, history, "merge")
- assert ">plain Claude $0.060<" in cost
+ assert ">plain Claude 1.0×<" in cost
assert ">plain Claude 45%<" not in merge
assert cost.count(" None:
+def test_time_chart_is_tall_enough_for_the_version_panel_and_the_legend() -> None:
steps: dict[str, float] = {
"runs": 1.0,
"merged_first_time": 1.0,
@@ -239,13 +244,17 @@ def test_time_chart_grows_to_fit_the_legend_under_five_arms() -> None:
"first_review_seconds": 10,
"back_and_forth_seconds": 10,
}
- merge: dict[str, dict[str, float]] = dict.fromkeys(("none", "chef11", "chef12", "chef14", "chef152"), steps)
- history: dict[str, Any] = {"versions": [{"version": "1.4.0", "seconds": 40.0}], "baseline": {"seconds": 15.0}}
- legend_bottom: int = int(charts.HISTORY_TOP + 5 * charts.TIME_ROW_STEP + 24)
+ merge: dict[str, dict[str, float]] = dict.fromkeys(("none", "chef14", "chef152", "chef16"), steps)
+ history: dict[str, Any] = {
+ "versions": [{"version": "1.4", "seconds": 40.0, "plain_seconds": 15.0}],
+ "baseline": {"seconds": 15.0},
+ }
+ legend_bottom: float = charts.HISTORY_TOP + 4 * charts.TIME_ROW_STEP + 24
+ panel_bottom: float = charts.HISTORY_TOP + charts.HISTORY_PANEL_HEIGHT + 40
svg: str = charts.time_chart(charts.LIGHT, merge, history)
- assert f'height="{legend_bottom}"' in svg
+ assert f'height="{int(max(legend_bottom, panel_bottom))}"' in svg
def style_loop(merged_first_time: float, total_cost: float, lines: float) -> dict[str, float]:
@@ -267,3 +276,37 @@ def test_style_chart_shows_each_setup_with_its_mean_over_the_tasks_every_setup_r
assert "Caveman 4.1: first answer accepted 50%, $0.150 per task, 75 lines to review" in svg
assert "Plain Claude: first answer accepted 100%, $0.200 per task, 100 lines to review" in svg
assert ">75 lines<" in svg and ">lower is better<" in svg
+
+
+def test_minor_releases_keeps_the_latest_patch_of_each_minor_labelled_major_minor() -> None:
+ history: dict[str, Any] = {
+ "versions": [{"version": "1.4.0", "cost": 0.3}, {"version": "1.5.0", "cost": 0.2}, {"version": "1.5.2", "cost": 0.1}],
+ "baseline": {"cost": 0.05},
+ }
+
+ minor: dict[str, Any] = charts.minor_releases(history)
+
+ assert minor["versions"] == [{"version": "1.4", "cost": 0.3}, {"version": "1.5", "cost": 0.1}]
+ assert minor["baseline"] == {"cost": 0.05}
+
+
+def test_icon_scales_a_logo_drawn_on_another_viewbox_to_24_units() -> None:
+ icons: dict[str, Any] = {"paths": {"java": "M0 0h128", "go": "M0 0h24"}, "viewbox": 24, "viewboxes": {"java": 128}}
+
+ java: list[str] = charts.icon(charts.LIGHT, 10.0, 20.0, "java", icons)
+ go: list[str] = charts.icon(charts.LIGHT, 10.0, 20.0, "go", icons)
+
+ assert 'transform="translate(10.0 20.0) scale(0.1875)"' in java[0]
+ assert 'transform="translate(10.0 20.0)"' in go[0]
+
+
+def test_relative_to_plain_divides_each_version_by_its_own_plain_claude_and_sets_plain_to_one() -> None:
+ history: dict[str, Any] = {
+ "versions": [{"version": "1.4", "cost": 0.18, "plain_cost": 0.06}, {"version": "1.6", "cost": 0.27, "plain_cost": 0.135}],
+ "baseline": {"cost": 0.135},
+ }
+
+ relative: dict[str, Any] = charts.relative_to_plain(history, "cost")
+
+ assert [round(entry["cost"], 2) for entry in relative["versions"]] == [3.0, 2.0]
+ assert relative["baseline"]["cost"] == 1.0
diff --git a/export/AGENTS.md b/export/AGENTS.md
index 28e86a2..e708d33 100644
--- a/export/AGENTS.md
+++ b/export/AGENTS.md
@@ -9,8 +9,8 @@ These are the core rules of chef (https://github.com/Neotoxic-off/chef), for any
- Pick the boring, obvious solution; if it is hard to follow, rewrite it simpler first. Small focused functions, early returns, names that say what a thing is, no magic numbers or strings. Match the file's style. No dead code, debug prints or commented-out blocks.
- Comment only a non-obvious why, a workaround or an external constraint. Doc comments only on a library's public API used by other projects.
- Prevent errors instead of catching them (check first, `TryParse`, `dict.get`, `Result`). Catch only where no non-throwing API exists and around files, network and other shared resources, with the narrowest exception, handled where you can act. Never catch-all, never swallow an error, never use exceptions for control flow, never invent data to signal one. Error messages say what failed and where.
-- Every change ships with tests: unit tests for each behavior, branch and error path, integration tests at each boundary (database, HTTP, filesystem, queues). Deterministic: inject clock, random and network. Fix a bug by first writing a test that reproduces it.
+- Every change ships with tests: one unit test per public behavior and per error path the task names (a larger change also covers each branch), integration tests at each boundary (database, HTTP, filesystem, queues). Deterministic: inject clock, random and network. Fix a bug by first writing a test that reproduces it.
- Every project has a formatter, a linter and a type checker (strict in a new project), configured in the repo and run in CI when the project has one. Declare every tool you configure as a dev dependency. Warnings are errors: fix the cause. Never hide one (no suppression comments, no `|| true`, no skipped tests, no lowered thresholds).
- Type every function signature and public field. Inside functions follow the language's idiom (`:=` in Go, `var` in C#/Java and `let` in Rust when the type is obvious on the right side). No `any` or untyped escape hatches.
- Pin what you depend on: lockfiles, image digests, action SHAs, versions that support each other (plugin and compiler, peer dependencies). No new dependency without asking; the lint, format, test and coverage tools are pre-approved.
-- Before saying done, the code builds and the formatter, linter, type checker and tests pass, run in one call. Say plainly which check this task needs that you did not run.
+- Before saying done, the code builds and the formatter, linter, type checker and tests pass, run in one call; fix every failure in one batch, then rerun once. Say plainly which check this task needs that you did not run.
diff --git a/hooks/hooks.json b/hooks/hooks.json
index 1ce6010..7615862 100644
--- a/hooks/hooks.json
+++ b/hooks/hooks.json
@@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
- "command": "echo 'chef: if this prompt involves writing, fixing, debugging, refactoring, reviewing, testing or building code, config, scripts, infrastructure or CI, invoke the chef:chef skill before your first edit or command (once per session; skip if already loaded) and follow it, including in the briefs you give agents.'",
+ "command": "echo 'chef: if this prompt involves writing, fixing, debugging, refactoring, reviewing, testing or building code, config, scripts, infrastructure or CI, invoke the chef:chef skill before your first edit or command (once per session; skip if already loaded) and follow it, including in the briefs you give agents.'; if [ -f \"${CLAUDE_PROJECT_DIR:-.}/.chef.md\" ]; then echo 'chef: .chef.md'; cat \"${CLAUDE_PROJECT_DIR:-.}/.chef.md\"; fi",
"timeout": 30
}
]
diff --git a/skills/chef/SKILL.md b/skills/chef/SKILL.md
index 391c910..9375b69 100644
--- a/skills/chef/SKILL.md
+++ b/skills/chef/SKILL.md
@@ -16,27 +16,27 @@ Follow these house habits on every task, without being reminded.
- Pick the boring, obvious solution; if it is hard to follow, rewrite it simpler first. Small focused functions, early returns, names that say what a thing is, no magic numbers or strings. Match the file's style. No dead code, debug prints or commented-out blocks.
- Comment only a non-obvious why, a workaround or an external constraint. Doc comments only on a library's public API used by other projects.
- Prevent errors instead of catching them (check first, `TryParse`, `dict.get`, `Result`). Catch only where no non-throwing API exists and around files, network and other shared resources, with the narrowest exception, handled where you can act. Never catch-all, never swallow an error, never use exceptions for control flow, never invent data to signal one. Error messages say what failed and where.
-- Every change ships with tests: unit tests for each behavior, branch and error path, integration tests at each boundary (database, HTTP, filesystem, queues). Deterministic: inject clock, random and network. Fix a bug by first writing a test that reproduces it.
+- Every change ships with tests: one unit test per public behavior and per error path the task names (a larger change also covers each branch), integration tests at each boundary (database, HTTP, filesystem, queues). Deterministic: inject clock, random and network. Fix a bug by first writing a test that reproduces it.
- Every project has a formatter, a linter and a type checker (strict in a new project), configured in the repo and run in CI when the project has one. Declare every tool you configure as a dev dependency. Warnings are errors: fix the cause. Never hide one (no suppression comments, no `|| true`, no skipped tests, no lowered thresholds).
- Type every function signature and public field. Inside functions follow the language's idiom (`:=` in Go, `var` in C#/Java and `let` in Rust when the type is obvious on the right side). No `any` or untyped escape hatches.
- Pin what you depend on: lockfiles, image digests, action SHAs, versions that support each other (plugin and compiler, peer dependencies). No new dependency without asking; the lint, format, test and coverage tools are pre-approved.
-- Before saying done, the code builds and the formatter, linter, type checker and tests pass, run in one call. Say plainly which check this task needs that you did not run.
+- Before saying done, the code builds and the formatter, linter, type checker and tests pass, run in one call; fix every failure in one batch, then rerun once. Say plainly which check this task needs that you did not run.
## Stack references
-Before touching code or config in a stack, read its reference in `${CLAUDE_SKILL_DIR}/references/`, together with the project files, in one parallel batch. Common stacks: Python `python.md` · TypeScript, JavaScript, Node `typescript.md` · React `react.md` · Next.js `nextjs.md` · Go `go.md` · Rust `rust.md` · C#, .NET `csharp.md` · ASP.NET Core `aspnetcore.md` · Java `java.md` · Kotlin `kotlin.md` · Swift `swift.md` · C++ `cpp.md` · C `c.md` · PHP `php.md` · Ruby `ruby.md` · Bash `bash.md` · PowerShell `powershell.md` · SQL `sql.md` · PostgreSQL `postgres.md` · Docker `docker.md` · Kubernetes, Helm `kubernetes.md` · Terraform `terraform.md` · CI, GitHub Actions `ci.md` · Prometheus `prometheus.md` · Security `security.md`. Any other stack: `INDEX.md` in the same folder. Follow the references as strictly as this file. Never list or glob the folder. Follow a "see x.md" link only when the task covers x. Not in the index: look up the stack's official linter, formatter, type checker and test runner, and say which you picked.
+Your first tool call reads in one batch `${CLAUDE_SKILL_DIR}/lean.md`, the reference in `${CLAUDE_SKILL_DIR}/references/` of each stack the task touches, and the project files. Common stacks: Python `python.md` · TypeScript, JavaScript, Node `typescript.md` · React `react.md` · Next.js `nextjs.md` · Go `go.md` · Rust `rust.md` · C#, .NET `csharp.md` · ASP.NET Core `aspnetcore.md` · Java `java.md` · Kotlin `kotlin.md` · Swift `swift.md` · C++ `cpp.md` · C `c.md` · PHP `php.md` · Ruby `ruby.md` · Bash `bash.md` · PowerShell `powershell.md` · SQL `sql.md` · PostgreSQL `postgres.md` · Docker `docker.md` · Kubernetes, Helm `kubernetes.md` · Terraform `terraform.md` · CI, GitHub Actions `ci.md` · Prometheus `prometheus.md` · Security `security.md`. Any other stack: `INDEX.md` in the same folder. Follow the references as strictly as this file. Never list or glob the folder. Follow a "see x.md" link only when the task covers x. Not in the index: look up the stack's official linter, formatter, type checker and test runner, and say which you picked.
## Few tokens
Everything a tool prints stays in context and is paid again on every later call.
-- Run a stack's whole check in one call, with quiet flags (failures only), chained so any failure fails the call; a pipe through a filter keeps the exit code (`set -o pipefail`).
+- Run a stack's whole check in one call, with quiet flags (failures only), chained so any failure fails the call; pipes keep the exit code (`set -o pipefail`).
- Create every file with the Write tool in one message, never a shell heredoc; batch reads and lookups too.
- Do not read back a file you just wrote, and do not rerun a passing check when nothing changed since.
## Lean
-Read `${CLAUDE_SKILL_DIR}/lean.md` at the start of every task: the smallest complete change, short replies, short agent reports. Code, identifiers, comments and commit messages in English; talk to the user in their language.
+`lean.md` (read in that first batch): the smallest complete change, short replies, short agent reports. Code, identifiers, comments and commit messages in English; talk to the user in their language.
## Levels and project config
@@ -48,11 +48,11 @@ Default `full`. Set with `/chef:level`.
| `full` | Agents and council as in `team.md`; `reviewer` only on changes spanning several modules. |
| `max` | Council on every non-trivial change, `reviewer` on every change. |
-`.chef.md` at the project root holds `key: value` lines, then a `## Decisions` list: `level: lite|full|max`, `strict: on|off` (strict typing in an existing project), `coverage: ` (CI gate, default 90), `council: auto|off|always`. Read it at the start of a task with a command that succeeds when it is absent (`if [ -f .chef.md ]; then cat .chef.md; fi`); it overrides this skill and is never asked again. Append to `## Decisions` any answer that will come back. Ask once before creating the file. Never store secrets in it.
+`.chef.md` at the project root holds `key: value` lines, then a `## Decisions` list: `level: lite|full|max`, `strict: on|off` (strict typing in an existing project), `coverage: ` (CI gate, default 90), `council: auto|off|always`. The prompt hook prints it (after `chef: .chef.md`): never read it yourself; it overrides this skill and is never asked again. Append to `## Decisions` any answer that will come back. Ask once before creating the file. Never store secrets in it.
## Agents and council
-A trivial change (typo, one-line fix, rename in one file) you do yourself. Otherwise, at `full` or `max`, read `${CLAUDE_SKILL_DIR}/team.md` before splitting work across agents, convening the council (design choices, new features, new projects, unclear requests) or calling the `reviewer`. At `lite`, offer the council in one line for a new project or a `/chef:transform` plan. Every agent brief gives the absolute paths of this skill (`${CLAUDE_SKILL_DIR}/SKILL.md`), of `lean.md` and of the references the agent needs, so no agent searches the disk for them.
+A trivial change (typo, one-line fix, rename in one file) you do yourself. Otherwise, at `full` or `max`, read `${CLAUDE_SKILL_DIR}/team.md` before splitting work across agents, convening the council (design choices, new features, new projects, unclear requests) or calling the `reviewer`. At `lite`, offer the council in one line for a new project or a `/chef:transform` plan. Every agent brief gives the absolute paths of `${CLAUDE_SKILL_DIR}/SKILL.md`, `lean.md` and the references it needs, so no agent searches the disk.
## Details the core rules imply
@@ -63,13 +63,13 @@ A trivial change (typo, one-line fix, rename in one file) you do yourself. Other
- Errors: around a file, network call or other shared resource, the `try` wraps the operation itself, not a check before it (CWE-367), in the smallest block.
- Types: no `object`, `Object`, `interface{}` or `dynamic` unless the value truly is untyped (raw JSON), then narrow at once. Where syntax cannot hold a type, annotate the nearest place. Type everything you add or touch; leave untouched code alone unless the user asks.
- Strict mode (`"strict": true`, `mypy --strict`) in an existing project: ask first, it can flood the code with errors.
-- Tests: cover edge cases (empty, null, zero, max, invalid input, a value exactly at each threshold); integration tests use real dependencies in containers (Testcontainers) over mocks where possible. Names state the behavior they assert, in the language's convention (`Withdraw_WithInsufficientFunds_Throws...`, `test_withdraw_with_insufficient_funds_raises`, `withdraw with insufficient funds throws`). Arrange/Act/Assert, one behavior per test, no `if`, loops or sleep in tests. Mock only what you own, at boundaries, never the class under test.
-- Scale the setup to the task: a small library or script gets tests and its formatter, linter and type checker in the project's main config file; CI files, coverage gates, mutation testing and extra tool configs come when the project already has them or the user asks. Fix every failure of a check before rerunning it, so each check runs once or twice.
+- Tests: cover the edge cases the input allows (empty, null, zero, max, invalid input, a value exactly at each threshold), parametrized in one test where the language allows; integration tests use real dependencies in containers (Testcontainers) over mocks where possible. Names state the behavior they assert, in the language's convention (`Withdraw_WithInsufficientFunds_Throws...`, `test_withdraw_with_insufficient_funds_raises`, `withdraw with insufficient funds throws`). Arrange/Act/Assert, one behavior per test, no `if`, loops or sleep in tests. Mock only what you own, at boundaries, never the class under test.
+- Scale the setup to the task: a small library or script gets tests and its formatter, linter and type checker in the project's main config file; CI files, coverage gates, mutation testing and extra tool configs come when the project already has them or the user asks.
- Tests assert the exact contract: the exact exception type (`Assert.Throws`, `pytest.raises(T)`), message or exit code the task names, never a looser "any exception".
- A refactor keeps behavior exactly (fallbacks, defaults, error types, supported runtimes) and adds no tool a caller must install. Prove it first with characterization tests in the repo (exact outputs, exception types and messages, malformed input), run before and after.
- Bound input size before expensive work on it (big integers, regex, recursion, allocation).
-- Coverage: aim for full branch coverage of business logic; CI fails under 90% line and branch. Exclude only generated code and thin UI views, with the reason. Mutation testing on critical logic (money, security, parsing): Stryker (.NET, JS/TS), mutmut (Python), cargo-mutants (Rust).
+- Coverage: aim for full branch coverage of business logic. A 90% line and branch gate in CI and mutation testing on critical logic (money, security, parsing: Stryker, mutmut, cargo-mutants) follow "Scale the setup" above. Exclude only generated code and thin UI views, with the reason.
- Never hide a warning or error: no `eslint-disable`, `noqa`, `type: ignore`, `#pragma warning disable`, `@SuppressWarnings`, `[SuppressMessage]`, `#[allow]`, `@ts-ignore`, empty `catch`, `|| true`, errors sent to `/dev/null` or `$null` (a presence check like `command -v x >/dev/null` is fine), `-ErrorAction SilentlyContinue`, skipped or deleted tests, lowered thresholds, files excluded from the linter.
- The only allowed lint exceptions, with the reason next to them: a rule disabled in config because it contradicts a house rule, and Rust `unsafe_code` in a dedicated crate after the user agrees (`references/rust.md`). A warning that cannot be fixed (third-party code, tool bug): stop and tell the user.
- Check tool missing: run the image its reference names (`docker pull` first, alone, long timeout); no Docker, say which checks did not run.
-- Once per session, before the first build, test suite or install, check free RAM and CPU (`Get-CimInstance`, `free -m`, `vm_stat`); under 4 GB free or over 80% CPU, ask first. A hook blocks a command: report its reason, never work around it.
+- Once per session, before the first Docker build or container test suite, check free RAM and CPU (`Get-CimInstance`, `free -m`, `vm_stat`); under 4 GB free or over 80% CPU, ask first. A hook blocks a command: report its reason, never work around it.