Skip to content

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

Python

eval(mcp): quiet-print and no-hint Linear variants

Cursor Agentedd0f4ede8ac
diff --git a/graff-evals/README.md b/graff-evals/README.md
index 78c96f33..ddf3cf44 100644
--- a/graff-evals/README.md
+++ b/graff-evals/README.md
@@ -20,7 +20,7 @@ harness under test spends model calls.
| `core` | sequential single-file work (instruction, debug, git, schema, …) |
| `rlm` | scatter-gather / multi-file reads (where default rlm can overlap) |
| `swe` | DeepSWE-shaped multi-file bugfixes, distilled from [deepswe.datacurve.ai/run](https://deepswe.datacurve.ai/run) (no Harbor/Docker) |
-| `mcp` | Linear-shaped fixture MCP (Blacksmith code-mode + muscle memory). Use `--no-lean` harnesses. |
+| `mcp` | Linear-shaped fixture MCP (Blacksmith code-mode + muscle memory). Use `--no-lean` harnesses. Variants include warm shapes, quiet `print()`, and no-`each()` prompts. |
```sh
./run.py --suite swe --harness graff-dev-old,graff-dev --model grok-4.6 -j 12
diff --git a/graff-evals/tasks/28-linear-quiet.json b/graff-evals/tasks/28-linear-quiet.json
new file mode 100644
index 00000000..bd4bd3f7
--- /dev/null
+++ b/graff-evals/tasks/28-linear-quiet.json
@@ -0,0 +1,12 @@
+{
+ "id": "linear-quiet",
+ "suite": "mcp",
+ "category": "mcp-shapes",
+ "prompt": "This workspace has a Linear-shaped MCP server named linear (stdio, deferred). Load its schemas, then fetch all 8 issues and every issue's comments. Write report.json as {\"issue_count\": N, \"issues\": [{\"id\", \"title\", \"comment_count\", \"latest_author\"}, ...]} in ISS-1..ISS-8 order. latest_author is the author.name of the newest comment (last in that issue's list). Do not invent ids or authors. If rlm is available, prefer one script after load_tool_schemas: issues = list_issues(); comments = each(issues, list_comments, \"id\"). Never print() raw issue or comment arrays — those payloads are huge. Write report.json. If you print, print only the mapped counts.",
+ "files": {
+ ".mcp.json": "{\"mcpServers\":{\"linear\":{\"command\":\"python3\",\"args\":[\"linear_fixture_mcp.py\"]}}}\n"
+ },
+ "setup": ["python3 -c \"import pathlib,shutil; p=pathlib.Path('.').resolve(); root=next(x for x in p.parents if (x/'scripts'/'linear_fixture_mcp.py').exists()); shutil.copy(root/'scripts'/'linear_fixture_mcp.py','.')\""],
+ "check": "python3 \"$TASK_ROOT/hidden/check_linear_report.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/29-linear-quiet-warm.json b/graff-evals/tasks/29-linear-quiet-warm.json
new file mode 100644
index 00000000..7d0e39e3
--- /dev/null
+++ b/graff-evals/tasks/29-linear-quiet-warm.json
@@ -0,0 +1,13 @@
+{
+ "id": "linear-quiet-warm",
+ "suite": "mcp",
+ "category": "mcp-shapes",
+ "prompt": "This workspace has a Linear-shaped MCP server named linear (stdio, deferred). Load its schemas, then fetch all 8 issues and every issue's comments. Write report.json as {\"issue_count\": N, \"issues\": [{\"id\", \"title\", \"comment_count\", \"latest_author\"}, ...]} in ISS-1..ISS-8 order. latest_author is the author.name of the newest comment (last in that issue's list). Do not invent ids or authors. If rlm is available, prefer one script after load_tool_schemas: issues = list_issues(); comments = each(issues, list_comments, \"id\"). Never print() raw issue or comment arrays — those payloads are huge. Write report.json. If you print, print only the mapped counts.",
+ "files": {
+ ".mcp.json": "{\"mcpServers\":{\"linear\":{\"command\":\"python3\",\"args\":[\"linear_fixture_mcp.py\"]}}}\n",
+ ".graff/mcp-shapes.json": "{\"mcp__linear__list_issues\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"keys\":{\"id\":\"string\",\"identifier\":\"string\",\"title\":\"string\",\"description\":\"string\",\"team\":\"object\",\"labels\":\"array\",\"cycle\":\"object\",\"project\":\"object\",\"state\":\"object\",\"estimate\":\"number\",\"priority\":\"number\",\"url\":\"string\",\"createdAt\":\"string\",\"updatedAt\":\"string\",\"dueDate\":\"null\",\"parentId\":\"null\",\"subscriberIds\":\"array\",\"assignee\":\"object\",\"sla\":\"object\",\"customFields\":\"object\",\"attachments\":\"array\",\"metadata\":\"object\"}}},\"mcp__linear__list_comments\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"keys\":{\"id\":\"string\",\"issueId\":\"string\",\"body\":\"string\",\"author\":\"object\",\"createdAt\":\"string\",\"updatedAt\":\"string\",\"url\":\"string\",\"edited\":\"bool\",\"parentId\":\"null\",\"reactions\":\"array\",\"metadata\":\"object\"}}}}\n"
+ },
+ "setup": ["python3 -c \"import pathlib,shutil; p=pathlib.Path('.').resolve(); root=next(x for x in p.parents if (x/'scripts'/'linear_fixture_mcp.py').exists()); shutil.copy(root/'scripts'/'linear_fixture_mcp.py','.')\""],
+ "check": "python3 \"$TASK_ROOT/hidden/check_linear_report.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/30-linear-nohint.json b/graff-evals/tasks/30-linear-nohint.json
new file mode 100644
index 00000000..f174f053
--- /dev/null
+++ b/graff-evals/tasks/30-linear-nohint.json
@@ -0,0 +1,12 @@
+{
+ "id": "linear-nohint",
+ "suite": "mcp",
+ "category": "mcp-shapes",
+ "prompt": "This workspace has a Linear-shaped MCP server named linear (stdio, deferred). Load its schemas, then fetch all 8 issues and every issue's comments. Write report.json as {\"issue_count\": N, \"issues\": [{\"id\", \"title\", \"comment_count\", \"latest_author\"}, ...]} in ISS-1..ISS-8 order. latest_author is the author.name of the newest comment (last in that issue's list). Do not invent ids or authors.",
+ "files": {
+ ".mcp.json": "{\"mcpServers\":{\"linear\":{\"command\":\"python3\",\"args\":[\"linear_fixture_mcp.py\"]}}}\n"
+ },
+ "setup": ["python3 -c \"import pathlib,shutil; p=pathlib.Path('.').resolve(); root=next(x for x in p.parents if (x/'scripts'/'linear_fixture_mcp.py').exists()); shutil.copy(root/'scripts'/'linear_fixture_mcp.py','.')\""],
+ "check": "python3 \"$TASK_ROOT/hidden/check_linear_report.py\"",
+ "timeout_s": 240
+}
diff --git a/graff-evals/tasks/31-linear-nohint-warm.json b/graff-evals/tasks/31-linear-nohint-warm.json
new file mode 100644
index 00000000..0c20b25f
--- /dev/null
+++ b/graff-evals/tasks/31-linear-nohint-warm.json
@@ -0,0 +1,13 @@
+{
+ "id": "linear-nohint-warm",
+ "suite": "mcp",
+ "category": "mcp-shapes",
+ "prompt": "This workspace has a Linear-shaped MCP server named linear (stdio, deferred). Load its schemas, then fetch all 8 issues and every issue's comments. Write report.json as {\"issue_count\": N, \"issues\": [{\"id\", \"title\", \"comment_count\", \"latest_author\"}, ...]} in ISS-1..ISS-8 order. latest_author is the author.name of the newest comment (last in that issue's list). Do not invent ids or authors.",
+ "files": {
+ ".mcp.json": "{\"mcpServers\":{\"linear\":{\"command\":\"python3\",\"args\":[\"linear_fixture_mcp.py\"]}}}\n",
+ ".graff/mcp-shapes.json": "{\"mcp__linear__list_issues\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"keys\":{\"id\":\"string\",\"identifier\":\"string\",\"title\":\"string\",\"description\":\"string\",\"team\":\"object\",\"labels\":\"array\",\"cycle\":\"object\",\"project\":\"object\",\"state\":\"object\",\"estimate\":\"number\",\"priority\":\"number\",\"url\":\"string\",\"createdAt\":\"string\",\"updatedAt\":\"string\",\"dueDate\":\"null\",\"parentId\":\"null\",\"subscriberIds\":\"array\",\"assignee\":\"object\",\"sla\":\"object\",\"customFields\":\"object\",\"attachments\":\"array\",\"metadata\":\"object\"}}},\"mcp__linear__list_comments\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"keys\":{\"id\":\"string\",\"issueId\":\"string\",\"body\":\"string\",\"author\":\"object\",\"createdAt\":\"string\",\"updatedAt\":\"string\",\"url\":\"string\",\"edited\":\"bool\",\"parentId\":\"null\",\"reactions\":\"array\",\"metadata\":\"object\"}}}}\n"
+ },
+ "setup": ["python3 -c \"import pathlib,shutil; p=pathlib.Path('.').resolve(); root=next(x for x in p.parents if (x/'scripts'/'linear_fixture_mcp.py').exists()); shutil.copy(root/'scripts'/'linear_fixture_mcp.py','.')\""],
+ "check": "python3 \"$TASK_ROOT/hidden/check_linear_report.py\"",
+ "timeout_s": 240
+}
diff --git a/scripts/eval-mcp-shapes.py b/scripts/eval-mcp-shapes.py
index 8653d4eb..64758ef4 100755
--- a/scripts/eval-mcp-shapes.py
+++ b/scripts/eval-mcp-shapes.py
@@ -64,6 +64,30 @@ VARIANTS = [
"task": "linear-split",
"label": "two sibling subagents split 8 issues",
},
+ {
+ "id": "F",
+ "harness": "graff-dev-nolean",
+ "task": "linear-quiet",
+ "label": "rlm+MCP host, cold, no fat print()",
+ },
+ {
+ "id": "G",
+ "harness": "graff-dev-nolean",
+ "task": "linear-quiet-warm",
+ "label": "rlm+MCP host, warm, no fat print()",
+ },
+ {
+ "id": "H",
+ "harness": "graff-dev-nolean",
+ "task": "linear-nohint",
+ "label": "rlm+MCP host, cold, no each() recipe",
+ },
+ {
+ "id": "I",
+ "harness": "graff-dev-nolean",
+ "task": "linear-nohint-warm",
+ "label": "rlm+MCP host, warm, no each() recipe",
+ },
]
@@ -100,11 +124,15 @@ def main() -> int:
ap = argparse.ArgumentParser()
ap.add_argument("--mock", action="store_true", help="skip live provider (print harness plan only)")
ap.add_argument("--model", default="grok-4.6")
+ ap.add_argument("--only", default="", help="comma-separated variant ids (A,D,F,...)")
args = ap.parse_args()
+ wanted = {x.strip().upper() for x in args.only.split(",") if x.strip()}
+ variants = [v for v in VARIANTS if not wanted or v["id"] in wanted]
+
if args.mock:
print("mock: not driving a provider. Unit tests cover dispatch/shapes; live A/B needs SuperGrok.")
- for v in VARIANTS:
+ for v in variants:
print(f" {v['id']} {v['harness']} {v['task']} {v['label']}")
return 0
@@ -114,7 +142,7 @@ def main() -> int:
return 2
rows = []
- for v in VARIANTS:
+ for v in variants:
cmd = [
sys.executable,
str(EVALS / "run.py"),