Skip to content

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

Python

chore(spec): lean keep-list drops read_tool_result

Cursor Agent0135e27b2d92
diff --git a/lean-proofs/Graff/ToolCatalog.lean b/lean-proofs/Graff/ToolCatalog.lean
index f2050517..1b7d1a9e 100644
--- a/lean-proofs/Graff/ToolCatalog.lean
+++ b/lean-proofs/Graff/ToolCatalog.lean
@@ -27,8 +27,7 @@ def localTools : List String :=
def leanTools : List String :=
["bash", "read_file", "edit_file", "write_file", "codedb",
- "read_tool_result", "subagent", "attempt_completion",
- "load_tool_schemas"]
+ "subagent", "attempt_completion", "load_tool_schemas"]
def optionalTools : List String :=
["imagegen"]
diff --git a/spec/kernels/tool_catalog.json b/spec/kernels/tool_catalog.json
index 999b11e6..7d7726ba 100644
--- a/spec/kernels/tool_catalog.json
+++ b/spec/kernels/tool_catalog.json
@@ -54,7 +54,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"subagent",
"attempt_completion",
"load_tool_schemas"
@@ -605,7 +604,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
@@ -656,7 +654,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
@@ -707,7 +704,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
@@ -758,7 +754,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
@@ -809,7 +804,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
@@ -857,7 +851,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
@@ -905,7 +898,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
@@ -953,7 +945,6 @@
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"attempt_completion",
"load_tool_schemas",
"subagent"
diff --git a/spec/kernels/tool_catalog.md b/spec/kernels/tool_catalog.md
index bff02465..c734fd9a 100644
--- a/spec/kernels/tool_catalog.md
+++ b/spec/kernels/tool_catalog.md
@@ -11,7 +11,7 @@ always in this order:
two compile-time optional rows).
2. **Add** every `#352` optional whose flag is on (`imagegen` today).
3. **Subtract** `#330` `--no-local-tools` (host-touching built-ins).
-4. **Keep** `--lean` (nine one-shot tools). Description compaction does
+4. **Keep** `--lean` (eight one-shot tools). Description compaction does
not change names.
A subagent starts from `base_specs` only (no meta, no `subagent`), then
@@ -27,7 +27,7 @@ run the keep-list.
| root extras | `subagent` `workflow` `agent_output` `learn_candidate` `peer_message` `workspace` |
| optional | `imagegen` |
| local (`#330`) | `bash` `bash_output` `bash_kill` `read_file` `edit_file` `write_file` `codedb` `read_tool_result` `imagegen` |
-| lean keep | `bash` `read_file` `edit_file` `write_file` `codedb` `read_tool_result` `subagent` `attempt_completion` `load_tool_schemas` |
+| lean keep | `bash` `read_file` `edit_file` `write_file` `codedb` `subagent` `attempt_completion` `load_tool_schemas` |
`webfetch`, every meta tool except the lean keepers, and every `mcp__*`
name are **not** local. MCP is outside this kernel.
diff --git a/spec/ref/tool_catalog.py b/spec/ref/tool_catalog.py
index 2822004e..4f09fdde 100644
--- a/spec/ref/tool_catalog.py
+++ b/spec/ref/tool_catalog.py
@@ -27,7 +27,6 @@ LEAN_TOOLS = (
"edit_file",
"write_file",
"codedb",
- "read_tool_result",
"subagent",
"attempt_completion",
"load_tool_schemas",
diff --git a/src/cli.zig b/src/cli.zig
index c0cccd8d..650b128a 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -251,7 +251,7 @@ pub const usage_text =
\\ --yolo skip all permission prompts for the session
\\ --rlm advertise the rlm REPL (default; persistent binds, subagent(), llm_query, mid-stream spec-ptc; GRAFF_RLM=1)
\\ --old, --no-rlm restore the pre-rlm structured-only catalog (GRAFF_OLD=1 or GRAFF_RLM=0)
- \\ --lean slim tool surface (9 core tools) + MCP deferred behind load_tool_schemas — the DEFAULT for -p one-shots (GRAFF_LEAN=1)
+ \\ --lean slim tool surface (8 core tools) + MCP deferred behind load_tool_schemas — the DEFAULT for -p one-shots (GRAFF_LEAN=1)
\\ --no-lean opt a one-shot out of the implied --lean: full tool surface + eager MCP, the pre-default -p behavior
\\ --no-local-tools embedder mode: hard-disable the built-in bash/bash_output/bash_kill/read_file/edit_file/write_file/codedb tools for the whole process (subagents included), so graff can run outside the sandbox and get its coding tools from an MCP server instead; webfetch, orchestration and MCP tools still work (GRAFF_NO_LOCAL_TOOLS=1)
\\ -p, --print one-shot print mode (answer on stdout, progress on stderr)