Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

evals: add gemini-cli and pi-dev harnesses and plot pareto frontier

justrach53f2f03bd252
diff --git a/graff-evals/gemini-cli.sh b/graff-evals/gemini-cli.sh
new file mode 100755
index 00000000..3d37ccfa
--- /dev/null
+++ b/graff-evals/gemini-cli.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Drive Google Gemini CLI (@google/gemini-cli) with GEMINI_API_KEY.
+set -e
+export GEMINI_API_KEY="${GEMINI_API_KEY:-$(cat "$HOME/.gemini-api-key" 2>/dev/null || true)}"
+export GEMINI_CLI_TRUST_WORKSPACE=true
+if [ -z "${GEMINI_API_KEY}" ]; then
+ echo "gemini-cli: GEMINI_API_KEY is unset and ~/.gemini-api-key not found" >&2
+ exit 127
+fi
+exec gemini "$@"
diff --git a/graff-evals/harnesses.json b/graff-evals/harnesses.json
index 93575b24..0665a4ae 100644
--- a/graff-evals/harnesses.json
+++ b/graff-evals/harnesses.json
@@ -199,5 +199,21 @@
"env": {"DSH_PERMISSION_MODE": "danger-full-access"},
"default_model": "grok-4.5",
"note": "deepseek-harness on grok-4.5 (nearest xAI id in its catalog). NOT grok-4.6. Mixed-model chart only. Needs Node >=22.15 (zstd). SuperGrok OAuth → XAI_API_KEY via attach-dsh-xai-oauth.py (local; see dsh-local-oauth.md). No usage footer."
+ },
+ "gemini-cli": {
+ "cmd": ["{repo}/graff-evals/gemini-cli.sh", "-p", "{prompt}", "-m", "{model}", "-y", "--skip-trust", "-o", "json", "--allowed-mcp-server-names", "none"],
+ "answer": "gemini-json",
+ "usage": "gemini-json",
+ "capabilities": [],
+ "default_model": "gemini-3.5-flash",
+ "note": "Official Google Gemini CLI (@google/gemini-cli) driven with GEMINI_API_KEY"
+ },
+ "pi-dev": {
+ "cmd": ["pi", "-p", "--mode", "json", "--provider", "codegraff", "--model", "{model}", "--no-session", "{prompt}"],
+ "answer": "pi-json",
+ "usage": "pi-json",
+ "capabilities": [],
+ "default_model": "gemini-3.8-flash",
+ "note": "Pi coding agent (pi.dev) on Codegraff gateway"
}
}
diff --git a/graff-evals/hillclimb/frontier-gemini-20260903.svg b/graff-evals/hillclimb/frontier-gemini-20260903.svg
new file mode 100644
index 00000000..aa7b3354
--- /dev/null
+++ b/graff-evals/hillclimb/frontier-gemini-20260903.svg
@@ -0,0 +1,102 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 490" width="880" height="490" role="img">
+<title>Pareto Frontier: graff-dev vs gemini-cli</title>
+<rect width="880" height="490" fill="#ffffff"/>
+<text x="20" y="22" font-size="16" font-weight="700" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">Pareto Frontier: graff-dev vs gemini-cli</text>
+<text x="20" y="40" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">7 head-to-head tasks (Core + SWE) on Gemini Flash</text>
+<rect x="72" y="62" width="340" height="280" fill="#fafcfb" stroke="#d1d5db"/>
+<rect x="500" y="62" width="340" height="280" fill="#fafcfb" stroke="#d1d5db"/>
+<text x="72" y="56" font-size="13" font-weight="600" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">wall vs list$</text>
+<text x="500" y="56" font-size="13" font-weight="600" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">calls vs list$</text>
+<text x="242" y="376" text-anchor="middle" font-size="12" fill="#334155" font-family="ui-sans-serif, system-ui, sans-serif">wall (s) →</text>
+<text x="670" y="376" text-anchor="middle" font-size="12" fill="#334155" font-family="ui-sans-serif, system-ui, sans-serif">tool calls →</text>
+<line x1="72" y1="342.0" x2="412" y2="342.0" stroke="#e5e7eb"/>
+<line x1="500" y1="342.0" x2="840" y2="342.0" stroke="#e5e7eb"/>
+<text x="64" y="346.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.000</text>
+<text x="492" y="346.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.000</text>
+<line x1="72" y1="278.0" x2="412" y2="278.0" stroke="#e5e7eb"/>
+<line x1="500" y1="278.0" x2="840" y2="278.0" stroke="#e5e7eb"/>
+<text x="64" y="282.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.104</text>
+<text x="492" y="282.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.104</text>
+<line x1="72" y1="214.0" x2="412" y2="214.0" stroke="#e5e7eb"/>
+<line x1="500" y1="214.0" x2="840" y2="214.0" stroke="#e5e7eb"/>
+<text x="64" y="218.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.209</text>
+<text x="492" y="218.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.209</text>
+<line x1="72" y1="150.0" x2="412" y2="150.0" stroke="#e5e7eb"/>
+<line x1="500" y1="150.0" x2="840" y2="150.0" stroke="#e5e7eb"/>
+<text x="64" y="154.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.313</text>
+<text x="492" y="154.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.313</text>
+<line x1="72" y1="86.0" x2="412" y2="86.0" stroke="#e5e7eb"/>
+<line x1="500" y1="86.0" x2="840" y2="86.0" stroke="#e5e7eb"/>
+<text x="64" y="90.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.417</text>
+<text x="492" y="90.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.417</text>
+<line x1="72.0" y1="62" x2="72.0" y2="342" stroke="#e5e7eb"/>
+<text x="72.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">69s</text>
+<line x1="157.0" y1="62" x2="157.0" y2="342" stroke="#e5e7eb"/>
+<text x="157.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">147s</text>
+<line x1="242.0" y1="62" x2="242.0" y2="342" stroke="#e5e7eb"/>
+<text x="242.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">225s</text>
+<line x1="327.0" y1="62" x2="327.0" y2="342" stroke="#e5e7eb"/>
+<text x="327.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">303s</text>
+<line x1="412.0" y1="62" x2="412.0" y2="342" stroke="#e5e7eb"/>
+<text x="412.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">381s</text>
+<line x1="516.1" y1="62" x2="516.1" y2="342" stroke="#e5e7eb"/>
+<text x="516.1" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">30</text>
+<line x1="529.4" y1="62" x2="529.4" y2="342" stroke="#e5e7eb"/>
+<text x="529.4" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">31</text>
+<line x1="542.8" y1="62" x2="542.8" y2="342" stroke="#e5e7eb"/>
+<text x="542.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">32</text>
+<line x1="556.2" y1="62" x2="556.2" y2="342" stroke="#e5e7eb"/>
+<text x="556.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">33</text>
+<line x1="569.6" y1="62" x2="569.6" y2="342" stroke="#e5e7eb"/>
+<text x="569.6" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">34</text>
+<line x1="583.0" y1="62" x2="583.0" y2="342" stroke="#e5e7eb"/>
+<text x="583.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">35</text>
+<line x1="596.4" y1="62" x2="596.4" y2="342" stroke="#e5e7eb"/>
+<text x="596.4" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">36</text>
+<line x1="609.8" y1="62" x2="609.8" y2="342" stroke="#e5e7eb"/>
+<text x="609.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">37</text>
+<line x1="623.1" y1="62" x2="623.1" y2="342" stroke="#e5e7eb"/>
+<text x="623.1" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">38</text>
+<line x1="636.5" y1="62" x2="636.5" y2="342" stroke="#e5e7eb"/>
+<text x="636.5" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">39</text>
+<line x1="649.9" y1="62" x2="649.9" y2="342" stroke="#e5e7eb"/>
+<text x="649.9" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">40</text>
+<line x1="663.3" y1="62" x2="663.3" y2="342" stroke="#e5e7eb"/>
+<text x="663.3" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">41</text>
+<line x1="676.7" y1="62" x2="676.7" y2="342" stroke="#e5e7eb"/>
+<text x="676.7" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">42</text>
+<line x1="690.1" y1="62" x2="690.1" y2="342" stroke="#e5e7eb"/>
+<text x="690.1" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">43</text>
+<line x1="703.5" y1="62" x2="703.5" y2="342" stroke="#e5e7eb"/>
+<text x="703.5" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">44</text>
+<line x1="716.9" y1="62" x2="716.9" y2="342" stroke="#e5e7eb"/>
+<text x="716.9" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">45</text>
+<line x1="730.2" y1="62" x2="730.2" y2="342" stroke="#e5e7eb"/>
+<text x="730.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">46</text>
+<line x1="743.6" y1="62" x2="743.6" y2="342" stroke="#e5e7eb"/>
+<text x="743.6" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">47</text>
+<line x1="757.0" y1="62" x2="757.0" y2="342" stroke="#e5e7eb"/>
+<text x="757.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">48</text>
+<line x1="770.4" y1="62" x2="770.4" y2="342" stroke="#e5e7eb"/>
+<text x="770.4" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">49</text>
+<line x1="783.8" y1="62" x2="783.8" y2="342" stroke="#e5e7eb"/>
+<text x="783.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">50</text>
+<line x1="797.2" y1="62" x2="797.2" y2="342" stroke="#e5e7eb"/>
+<text x="797.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">51</text>
+<line x1="810.6" y1="62" x2="810.6" y2="342" stroke="#e5e7eb"/>
+<text x="810.6" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">52</text>
+<line x1="823.9" y1="62" x2="823.9" y2="342" stroke="#e5e7eb"/>
+<text x="823.9" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">53</text>
+<circle cx="85.4" cy="250.2" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
+<text x="95.4" y="242.2" font-size="11" font-weight="600" fill="#047857" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev 81.7s · $0.1496</text>
+<circle cx="516.1" cy="250.2" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
+<text x="526.1" y="242.2" font-size="11" font-weight="600" fill="#047857" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev 30 · $0.1496</text>
+<circle cx="28" cy="410" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
+<text x="40" y="414" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev — 7/7 · on wall/$ + calls/$</text>
+<circle cx="367.4" cy="119.4" r="6.5" fill="#4285f4" stroke="#1a73e8" stroke-width="1.4"/>
+<text x="377.4" y="111.4" font-size="11" font-weight="600" fill="#1a73e8" font-family="ui-sans-serif, system-ui, sans-serif">gemini-cli 340.1s · $0.3628</text>
+<circle cx="823.9" cy="119.4" r="6.5" fill="#4285f4" stroke="#1a73e8" stroke-width="1.4"/>
+<text x="833.9" y="111.4" font-size="11" font-weight="600" fill="#1a73e8" font-family="ui-sans-serif, system-ui, sans-serif">gemini-cli 53 · $0.3628</text>
+<circle cx="28" cy="430" r="6.5" fill="#4285f4" stroke="#1a73e8" stroke-width="1.4"/>
+<text x="40" y="434" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">gemini-cli — 7/7 · interior</text>
+</svg>
diff --git a/graff-evals/hillclimb/frontier-tri-gemini-20260903.svg b/graff-evals/hillclimb/frontier-tri-gemini-20260903.svg
new file mode 100644
index 00000000..2677ea6c
--- /dev/null
+++ b/graff-evals/hillclimb/frontier-tri-gemini-20260903.svg
@@ -0,0 +1,138 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 490" width="880" height="490" role="img">
+<title>Pareto Frontier: graff-dev vs pi-dev vs gemini-cli</title>
+<rect width="880" height="490" fill="#ffffff"/>
+<text x="20" y="22" font-size="16" font-weight="700" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">Pareto Frontier: graff-dev vs pi-dev vs gemini-cli</text>
+<text x="20" y="40" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">7 head-to-head tasks (Core + SWE) on Gemini Flash</text>
+<rect x="72" y="62" width="340" height="280" fill="#fafcfb" stroke="#d1d5db"/>
+<rect x="500" y="62" width="340" height="280" fill="#fafcfb" stroke="#d1d5db"/>
+<text x="72" y="56" font-size="13" font-weight="600" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">wall vs list$</text>
+<text x="500" y="56" font-size="13" font-weight="600" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">calls vs list$</text>
+<text x="242" y="376" text-anchor="middle" font-size="12" fill="#334155" font-family="ui-sans-serif, system-ui, sans-serif">wall (s) →</text>
+<text x="670" y="376" text-anchor="middle" font-size="12" fill="#334155" font-family="ui-sans-serif, system-ui, sans-serif">tool calls →</text>
+<line x1="72" y1="342.0" x2="412" y2="342.0" stroke="#e5e7eb"/>
+<line x1="500" y1="342.0" x2="840" y2="342.0" stroke="#e5e7eb"/>
+<text x="64" y="346.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.000</text>
+<text x="492" y="346.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.000</text>
+<line x1="72" y1="278.0" x2="412" y2="278.0" stroke="#e5e7eb"/>
+<line x1="500" y1="278.0" x2="840" y2="278.0" stroke="#e5e7eb"/>
+<text x="64" y="282.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.130</text>
+<text x="492" y="282.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.130</text>
+<line x1="72" y1="214.0" x2="412" y2="214.0" stroke="#e5e7eb"/>
+<line x1="500" y1="214.0" x2="840" y2="214.0" stroke="#e5e7eb"/>
+<text x="64" y="218.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.261</text>
+<text x="492" y="218.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.261</text>
+<line x1="72" y1="150.0" x2="412" y2="150.0" stroke="#e5e7eb"/>
+<line x1="500" y1="150.0" x2="840" y2="150.0" stroke="#e5e7eb"/>
+<text x="64" y="154.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.391</text>
+<text x="492" y="154.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.391</text>
+<line x1="72" y1="86.0" x2="412" y2="86.0" stroke="#e5e7eb"/>
+<line x1="500" y1="86.0" x2="840" y2="86.0" stroke="#e5e7eb"/>
+<text x="64" y="90.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.521</text>
+<text x="492" y="90.0" text-anchor="end" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">$0.521</text>
+<line x1="72.0" y1="62" x2="72.0" y2="342" stroke="#e5e7eb"/>
+<text x="72.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">69s</text>
+<line x1="157.0" y1="62" x2="157.0" y2="342" stroke="#e5e7eb"/>
+<text x="157.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">147s</text>
+<line x1="242.0" y1="62" x2="242.0" y2="342" stroke="#e5e7eb"/>
+<text x="242.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">225s</text>
+<line x1="327.0" y1="62" x2="327.0" y2="342" stroke="#e5e7eb"/>
+<text x="327.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">303s</text>
+<line x1="412.0" y1="62" x2="412.0" y2="342" stroke="#e5e7eb"/>
+<text x="412.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">381s</text>
+<line x1="510.1" y1="62" x2="510.1" y2="342" stroke="#e5e7eb"/>
+<text x="510.1" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">30</text>
+<line x1="518.5" y1="62" x2="518.5" y2="342" stroke="#e5e7eb"/>
+<text x="518.5" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">31</text>
+<line x1="526.9" y1="62" x2="526.9" y2="342" stroke="#e5e7eb"/>
+<text x="526.9" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">32</text>
+<line x1="535.3" y1="62" x2="535.3" y2="342" stroke="#e5e7eb"/>
+<text x="535.3" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">33</text>
+<line x1="543.8" y1="62" x2="543.8" y2="342" stroke="#e5e7eb"/>
+<text x="543.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">34</text>
+<line x1="552.2" y1="62" x2="552.2" y2="342" stroke="#e5e7eb"/>
+<text x="552.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">35</text>
+<line x1="560.6" y1="62" x2="560.6" y2="342" stroke="#e5e7eb"/>
+<text x="560.6" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">36</text>
+<line x1="569.0" y1="62" x2="569.0" y2="342" stroke="#e5e7eb"/>
+<text x="569.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">37</text>
+<line x1="577.4" y1="62" x2="577.4" y2="342" stroke="#e5e7eb"/>
+<text x="577.4" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">38</text>
+<line x1="585.8" y1="62" x2="585.8" y2="342" stroke="#e5e7eb"/>
+<text x="585.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">39</text>
+<line x1="594.3" y1="62" x2="594.3" y2="342" stroke="#e5e7eb"/>
+<text x="594.3" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">40</text>
+<line x1="602.7" y1="62" x2="602.7" y2="342" stroke="#e5e7eb"/>
+<text x="602.7" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">41</text>
+<line x1="611.1" y1="62" x2="611.1" y2="342" stroke="#e5e7eb"/>
+<text x="611.1" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">42</text>
+<line x1="619.5" y1="62" x2="619.5" y2="342" stroke="#e5e7eb"/>
+<text x="619.5" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">43</text>
+<line x1="627.9" y1="62" x2="627.9" y2="342" stroke="#e5e7eb"/>
+<text x="627.9" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">44</text>
+<line x1="636.3" y1="62" x2="636.3" y2="342" stroke="#e5e7eb"/>
+<text x="636.3" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">45</text>
+<line x1="644.8" y1="62" x2="644.8" y2="342" stroke="#e5e7eb"/>
+<text x="644.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">46</text>
+<line x1="653.2" y1="62" x2="653.2" y2="342" stroke="#e5e7eb"/>
+<text x="653.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">47</text>
+<line x1="661.6" y1="62" x2="661.6" y2="342" stroke="#e5e7eb"/>
+<text x="661.6" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">48</text>
+<line x1="670.0" y1="62" x2="670.0" y2="342" stroke="#e5e7eb"/>
+<text x="670.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">49</text>
+<line x1="678.4" y1="62" x2="678.4" y2="342" stroke="#e5e7eb"/>
+<text x="678.4" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">50</text>
+<line x1="686.8" y1="62" x2="686.8" y2="342" stroke="#e5e7eb"/>
+<text x="686.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">51</text>
+<line x1="695.2" y1="62" x2="695.2" y2="342" stroke="#e5e7eb"/>
+<text x="695.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">52</text>
+<line x1="703.7" y1="62" x2="703.7" y2="342" stroke="#e5e7eb"/>
+<text x="703.7" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">53</text>
+<line x1="712.1" y1="62" x2="712.1" y2="342" stroke="#e5e7eb"/>
+<text x="712.1" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">54</text>
+<line x1="720.5" y1="62" x2="720.5" y2="342" stroke="#e5e7eb"/>
+<text x="720.5" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">55</text>
+<line x1="728.9" y1="62" x2="728.9" y2="342" stroke="#e5e7eb"/>
+<text x="728.9" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">56</text>
+<line x1="737.3" y1="62" x2="737.3" y2="342" stroke="#e5e7eb"/>
+<text x="737.3" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">57</text>
+<line x1="745.7" y1="62" x2="745.7" y2="342" stroke="#e5e7eb"/>
+<text x="745.7" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">58</text>
+<line x1="754.2" y1="62" x2="754.2" y2="342" stroke="#e5e7eb"/>
+<text x="754.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">59</text>
+<line x1="762.6" y1="62" x2="762.6" y2="342" stroke="#e5e7eb"/>
+<text x="762.6" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">60</text>
+<line x1="771.0" y1="62" x2="771.0" y2="342" stroke="#e5e7eb"/>
+<text x="771.0" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">61</text>
+<line x1="779.4" y1="62" x2="779.4" y2="342" stroke="#e5e7eb"/>
+<text x="779.4" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">62</text>
+<line x1="787.8" y1="62" x2="787.8" y2="342" stroke="#e5e7eb"/>
+<text x="787.8" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">63</text>
+<line x1="796.2" y1="62" x2="796.2" y2="342" stroke="#e5e7eb"/>
+<text x="796.2" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">64</text>
+<line x1="804.7" y1="62" x2="804.7" y2="342" stroke="#e5e7eb"/>
+<text x="804.7" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">65</text>
+<line x1="813.1" y1="62" x2="813.1" y2="342" stroke="#e5e7eb"/>
+<text x="813.1" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">66</text>
+<line x1="821.5" y1="62" x2="821.5" y2="342" stroke="#e5e7eb"/>
+<text x="821.5" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">67</text>
+<line x1="829.9" y1="62" x2="829.9" y2="342" stroke="#e5e7eb"/>
+<text x="829.9" y="358" text-anchor="middle" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">68</text>
+<circle cx="85.4" cy="268.6" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
+<text x="95.4" y="260.6" font-size="11" font-weight="600" fill="#047857" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev 81.7s · $0.1496</text>
+<circle cx="510.1" cy="268.6" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
+<text x="520.1" y="260.6" font-size="11" font-weight="600" fill="#047857" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev 30 · $0.1496</text>
+<circle cx="28" cy="410" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
+<text x="40" y="414" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev — 7/7 · on wall/$ + calls/$</text>
+<circle cx="367.4" cy="163.9" r="6.5" fill="#4285f4" stroke="#1a73e8" stroke-width="1.4"/>
+<text x="377.4" y="155.9" font-size="11" font-weight="600" fill="#1a73e8" font-family="ui-sans-serif, system-ui, sans-serif">gemini-cli 340.1s · $0.3628</text>
+<circle cx="703.7" cy="163.9" r="6.5" fill="#4285f4" stroke="#1a73e8" stroke-width="1.4"/>
+<text x="713.7" y="155.9" font-size="11" font-weight="600" fill="#1a73e8" font-family="ui-sans-serif, system-ui, sans-serif">gemini-cli 53 · $0.3628</text>
+<circle cx="28" cy="430" r="6.5" fill="#4285f4" stroke="#1a73e8" stroke-width="1.4"/>
+<text x="40" y="434" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">gemini-cli — 7/7 · interior</text>
+<circle cx="304.1" cy="119.4" r="6.5" fill="#f97316" stroke="#ea580c" stroke-width="1.4"/>
+<text x="314.1" y="111.4" font-size="11" font-weight="600" fill="#ea580c" font-family="ui-sans-serif, system-ui, sans-serif">pi-dev 282.1s · $0.4534</text>
+<circle cx="829.9" cy="119.4" r="6.5" fill="#f97316" stroke="#ea580c" stroke-width="1.4"/>
+<text x="839.9" y="111.4" font-size="11" font-weight="600" fill="#ea580c" font-family="ui-sans-serif, system-ui, sans-serif">pi-dev 68 · $0.4534</text>
+<circle cx="28" cy="450" r="6.5" fill="#f97316" stroke="#ea580c" stroke-width="1.4"/>
+<text x="40" y="454" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">pi-dev — 7/7 · interior</text>
+</svg>
diff --git a/graff-evals/hillclimb/plot_frontier.py b/graff-evals/hillclimb/plot_frontier.py
index 3b1a0c96..b9139b81 100644
--- a/graff-evals/hillclimb/plot_frontier.py
+++ b/graff-evals/hillclimb/plot_frontier.py
@@ -23,6 +23,9 @@ COLORS = {
"dsh": ("#7c3aed", "#5b21b6"),
"dsh-deepseek": ("#ffffff", "#7c3aed"),
"dsh-grok": ("#7c3aed", "#5b21b6"),
+ "gemini-cli": ("#4285f4", "#1a73e8"),
+ "pi-dev": ("#f97316", "#ea580c"),
+ "pi-codegraff": ("#f97316", "#ea580c"),
}
diff --git a/graff-evals/list_price.py b/graff-evals/list_price.py
index 82c5e640..ffb8ba9f 100644
--- a/graff-evals/list_price.py
+++ b/graff-evals/list_price.py
@@ -30,6 +30,24 @@ RATES = {
"high_cache": 0.60,
"high_out": 12.0,
},
+ "muse-spark-1.2": {
+ "high_at": 0,
+ "in": 1.25,
+ "cache": 0.125,
+ "out": 4.25,
+ "high_in": 1.25,
+ "high_cache": 0.125,
+ "high_out": 4.25,
+ },
+ "muse-spark-1.2-contributor": {
+ "high_at": 0,
+ "in": 0.10,
+ "cache": 0.01,
+ "out": 0.20,
+ "high_in": 0.10,
+ "high_cache": 0.01,
+ "high_out": 0.20,
+ },
"grok-build-0.1": {
"high_at": 200_000,
"in": 1.0,
@@ -39,6 +57,15 @@ RATES = {
"high_cache": 0.40,
"high_out": 4.0,
},
+ "gemini-3.8-flash": {
+ "high_at": 0,
+ "in": 0.75,
+ "cache": 0.075,
+ "out": 3.75,
+ "high_in": 0.75,
+ "high_cache": 0.075,
+ "high_out": 3.75,
+ },
}
# USD per 1k invocations (xAI Tools Pricing). Token-only tools are 0.
@@ -64,6 +91,12 @@ def rates_for(model: str) -> dict | None:
return RATES["grok-4.6"]
if model.startswith("grok-build") or leaf.startswith("grok-build"):
return RATES["grok-build-0.1"]
+ if model.startswith("muse-spark-1.2-contributor") or leaf.startswith("muse-spark-1.2-contributor"):
+ return RATES["muse-spark-1.2-contributor"]
+ if model.startswith("muse-spark-1.2") or leaf.startswith("muse-spark-1.2"):
+ return RATES["muse-spark-1.2"]
+ if model.startswith("gemini") or leaf.startswith("gemini"):
+ return RATES["gemini-3.8-flash"]
return None
@@ -82,6 +115,8 @@ def convention_for(rec: dict) -> bool:
return False
if h.startswith("graff"):
return True
+ if h in ("muse",) or h.startswith("muse"):
+ return True
if (rec.get("tok_cached") or 0) > (rec.get("tok_in") or 0):
return False
return True
diff --git a/graff-evals/run.py b/graff-evals/run.py
index 1a4c21be..5d708a3e 100755
--- a/graff-evals/run.py
+++ b/graff-evals/run.py
@@ -140,7 +140,42 @@ def _parse_opencode_json(stdout):
return answer, usage
-def parse_answer_and_usage(harness, stdout, stderr):
+def _parse_gemini_json(stdout):
+ answer = ""
+ usage = {}
+ idx = stdout.find("{")
+ if idx != -1:
+ try:
+ data = json.loads(stdout[idx:])
+ answer = (data.get("response") or "").strip()
+ stats = data.get("stats") or {}
+ models = stats.get("models") or {}
+ tin, tread, tout, requests = 0, 0, 0, 0
+ for mdata in models.values():
+ tok = mdata.get("tokens") or {}
+ tin += int(tok.get("input") or 0)
+ tread += int(tok.get("cached") or 0)
+ tout += int(tok.get("candidates") or 0) + int(tok.get("thoughts") or 0)
+ api = mdata.get("api") or {}
+ requests += int(api.get("totalRequests") or 0)
+ tools = stats.get("tools") or {}
+ calls = int(tools.get("totalCalls") or 0)
+ if not calls and requests > 0:
+ calls = requests
+ usage = {
+ "calls": calls,
+ "in": tin + tread,
+ "cached": tread,
+ "out": tout,
+ }
+ except json.JSONDecodeError:
+ pass
+ if not answer:
+ answer = stdout.strip()
+ return answer, usage
+
+
+def parse_answer_and_usage(harness, stdout, stderr, sandbox=""):
answer, usage = stdout.strip(), {}
if harness["answer"] == "grok-stream":
answer = ""
@@ -194,6 +229,44 @@ def parse_answer_and_usage(harness, stdout, stderr):
"out": tout, "cost_usd": round(cost, 6)}
if harness["answer"] == "opencode-json":
answer, usage = _parse_opencode_json(stdout)
+ if harness["answer"] == "gemini-json":
+ answer, usage = _parse_gemini_json(stdout)
+ if harness["answer"] == "muse" or harness.get("usage") == "muse":
+ answer = stdout.strip()
+ usage = {}
+ # Sidecar written by graff-evals/muse.sh: .muse-usage.json + template-hashed model task log
+ import glob, json as _json, os as _os, subprocess as _sp
+ side = _os.path.join(sandbox, ".muse-usage.json")
+ try:
+ u = _json.load(open(side))
+ usage = {"calls": 1, "in": int(u.get("input_tokens",0))
+ + int(u.get("cached_tokens",0)),
+ "cached": int(u.get("cached_tokens",0)),
+ "out": int(u.get("output_tokens",0) or 0) + int(u.get("reasoning_tokens",0) or 0),
+ "reasoning": int(u.get("reasoning_tokens",0) or 0)}
+ except Exception:
+ pass
+ # Calls = model turns, counted from the stashed exec stream.
+ # muse's tracer can't decode exec-stream payloads (schema drift), so count
+ # tool results directly: each tool result implies a preceding model turn, so
+ # turns = tool_results + 1 (final answer) is a hard LOWER bound — favorable
+ # to muse on the calls axis.
+ try:
+ raw = _os.path.join(sandbox, ".muse-raw.jsonl")
+ tools = 0
+ with open(raw) as fh:
+ for line in fh:
+ try:
+ if _json.loads(line).get("payload_type") == "tool.result":
+ tools += 1
+ except Exception:
+ pass
+ if tools:
+ usage["calls"] = tools + 1
+ except Exception:
+ pass
+ if not usage.get("calls"):
+ usage["calls"] = 1
if harness.get("usage") == "graff-stderr":
m = GRAFF_USAGE_RE.search(stderr)
if m:
@@ -359,7 +432,7 @@ def one_run(hname, harness, task, model, rep, live=False):
ru1 = _rusage_children()
stdout, stderr = "".join(stdout_parts), "".join(stderr_parts)
wall = round(time.monotonic() - t0, 2)
- answer, usage = parse_answer_and_usage(harness, stdout, stderr)
+ answer, usage = parse_answer_and_usage(harness, stdout, stderr, sandbox)
with open(os.path.join(sandbox, ".eval-answer.txt"), "w") as f:
f.write(answer)
check_env = dict(os.environ, ANSWER_FILE=".eval-answer.txt", TASK_ROOT=ROOT)