Skip to content

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

Python
7.6 KB
Raw Blame
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 470" width="880" height="470" role="img" aria-labelledby="t d">
  <title id="t">Pareto projections of the live 3-task set (run-20260830-042417)</title>
  <desc id="d">Two minimize-minimize scatter plots from graff-evals/results/run-20260830-042417.jsonl. Left: wall seconds vs list-price USD — only graff-dev is on that 2D frontier. Right: tool calls vs list-price USD — grok-build (fewer calls) and graff-dev (cheaper) are on the frontier; graff-dev-repl is interior, dominated by -p. REPL first-token is composer echo and is not an axis. The 5-axis score is not strict Pareto: grok still wins calls.</desc>
  <rect width="880" height="470" fill="#ffffff"/>
  <text x="20" y="22" font-size="16" font-weight="700" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">Live 3-task frontier · run-20260830-042417 · lower-left is better</text>
  <text x="20" y="40" font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">Pass is 3/3 all around. REPL first-token (0.03s) is composer echo — not plotted. Not strict Pareto on the 5-axis score: grok still wins calls.</text>

  <!-- left: wall vs $ -->
  <rect x="72" y="62" width="340" height="280" fill="#fafcfb" stroke="#d1d5db"/>
  <g stroke="#e5e7eb" stroke-width="1">
    <line x1="72" y1="342" x2="412" y2="342"/>
    <line x1="72" y1="278" x2="412" y2="278"/>
    <line x1="72" y1="214" x2="412" y2="214"/>
    <line x1="72" y1="150" x2="412" y2="150"/>
    <line x1="72" y1="86" x2="412" y2="86"/>
    <line x1="102" y1="62" x2="102" y2="342"/>
    <line x1="176" y1="62" x2="176" y2="342"/>
    <line x1="249" y1="62" x2="249" y2="342"/>
    <line x1="323" y1="62" x2="323" y2="342"/>
    <line x1="397" y1="62" x2="397" y2="342"/>
  </g>
  <g font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">
    <text x="64" y="346" text-anchor="end">$0</text>
    <text x="64" y="282" text-anchor="end">$0.04</text>
    <text x="64" y="218" text-anchor="end">$0.08</text>
    <text x="64" y="154" text-anchor="end">$0.12</text>
    <text x="64" y="90" text-anchor="end">$0.16</text>
    <text x="102" y="358" text-anchor="middle">20s</text>
    <text x="176" y="358" text-anchor="middle">25s</text>
    <text x="249" y="358" text-anchor="middle">30s</text>
    <text x="323" y="358" text-anchor="middle">35s</text>
    <text x="397" y="358" text-anchor="middle">40s</text>
  </g>
  <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="18" y="202" text-anchor="middle" font-size="12" fill="#334155" font-family="ui-sans-serif, system-ui, sans-serif" transform="rotate(-90 18 202)">list $</text>
  <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="80" y="80" font-size="10" fill="#059669" font-family="ui-sans-serif, system-ui, sans-serif">only −p is on this 2D front</text>

  <!-- right: calls vs $ -->
  <rect x="500" y="62" width="340" height="280" fill="#fafcfb" stroke="#d1d5db"/>
  <g stroke="#e5e7eb" stroke-width="1">
    <line x1="500" y1="342" x2="840" y2="342"/>
    <line x1="500" y1="278" x2="840" y2="278"/>
    <line x1="500" y1="214" x2="840" y2="214"/>
    <line x1="500" y1="150" x2="840" y2="150"/>
    <line x1="500" y1="86" x2="840" y2="86"/>
    <line x1="564" y1="62" x2="564" y2="342"/>
    <line x1="670" y1="62" x2="670" y2="342"/>
    <line x1="776" y1="62" x2="776" y2="342"/>
  </g>
  <g font-size="11" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">
    <text x="492" y="346" text-anchor="end">$0</text>
    <text x="492" y="282" text-anchor="end">$0.04</text>
    <text x="492" y="218" text-anchor="end">$0.08</text>
    <text x="492" y="154" text-anchor="end">$0.12</text>
    <text x="492" y="90" text-anchor="end">$0.16</text>
    <text x="564" y="358" text-anchor="middle">7</text>
    <text x="670" y="358" text-anchor="middle">8</text>
    <text x="776" y="358" text-anchor="middle">9</text>
  </g>
  <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>
  <text x="446" y="202" text-anchor="middle" font-size="12" fill="#334155" font-family="ui-sans-serif, system-ui, sans-serif" transform="rotate(-90 446 202)">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="508" y="80" font-size="10" fill="#059669" font-family="ui-sans-serif, system-ui, sans-serif">grok and −p share this 2D front</text>

  <!-- 2D frontier (calls vs $): grok (7, $0.1474) → graff-dev (8, $0.0374) -->
  <polyline points="564,106 670,282" fill="none" stroke="#059669" stroke-width="1.6" stroke-dasharray="5 4" opacity="0.85"/>

  <!--
    Coordinates from the live JSONL sums (wall 22.17 / 36.97 / 25.23;
    list$ 0.03741 / 0.14735 / 0.11855; calls 8 / 7 / 9).
    x_wall = 72 + (wall-18)/(41-18)*340
    x_calls = 500 + (calls-6.4)/(9.6-6.4)*340
    y_$ = 62 + 280 - usd/0.175*280
  -->
  <circle cx="134" cy="282" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
  <text x="146" y="268" font-size="11" font-weight="600" fill="#047857" font-family="ui-sans-serif, system-ui, sans-serif">−p  22.2s · $0.0374</text>
  <circle cx="352" cy="106" r="6.5" fill="#334155" stroke="#1e293b" stroke-width="1.4"/>
  <text x="230" y="100" font-size="11" font-weight="600" fill="#1e293b" font-family="ui-sans-serif, system-ui, sans-serif">grok  37.0s · $0.1474</text>
  <circle cx="179" cy="152" r="5.5" fill="#ffffff" stroke="#64748b" stroke-width="1.6" stroke-dasharray="2.5 2"/>
  <text x="191" y="168" font-size="11" font-weight="600" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">repl  25.2s · $0.1185</text>

  <circle cx="670" cy="282" r="6.5" fill="#059669" stroke="#047857" stroke-width="1.4"/>
  <text x="582" y="268" font-size="11" font-weight="600" fill="#047857" font-family="ui-sans-serif, system-ui, sans-serif">−p  8 · $0.0374</text>
  <circle cx="564" cy="106" r="6.5" fill="#334155" stroke="#1e293b" stroke-width="1.4"/>
  <text x="576" y="100" font-size="11" font-weight="600" fill="#1e293b" font-family="ui-sans-serif, system-ui, sans-serif">grok  7 · $0.1474</text>
  <circle cx="776" cy="152" r="5.5" fill="#ffffff" stroke="#64748b" stroke-width="1.6" stroke-dasharray="2.5 2"/>
  <text x="668" y="168" font-size="11" font-weight="600" fill="#64748b" font-family="ui-sans-serif, system-ui, sans-serif">repl  9 · $0.1185</text>

  <circle cx="28" cy="430" r="6" fill="#059669" stroke="#047857" stroke-width="1.4"/>
  <text x="40" y="434" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev (−p) — on the 5-axis frontier via wall / tokens / list$ / RSS</text>
  <circle cx="28" cy="450" r="6" fill="#334155" stroke="#1e293b" stroke-width="1.4"/>
  <text x="40" y="454" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">grok-build — on the 5-axis frontier via fewer calls (7 vs 8 / 9)</text>
  <circle cx="500" cy="430" r="5.5" fill="#ffffff" stroke="#64748b" stroke-width="1.6" stroke-dasharray="2.5 2"/>
  <text x="512" y="434" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">graff-dev-repl — interior (dominated by −p)</text>
  <line x1="500" y1="450" x2="528" y2="450" stroke="#059669" stroke-width="1.6" stroke-dasharray="5 4"/>
  <text x="536" y="454" font-size="12" fill="#0f172a" font-family="ui-sans-serif, system-ui, sans-serif">2D frontier (calls vs $)</text>
</svg>