Skip to content

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

Python

chore: agent_tools.zig back under the 600-line guard

Rach Pradhan52d9c11eafa8
diff --git a/src/agent_tools.zig b/src/agent_tools.zig
index 13165968..7d47e251 100644
--- a/src/agent_tools.zig
+++ b/src/agent_tools.zig
@@ -296,8 +296,7 @@ fn clockSleepInterruptedText(arena: std.mem.Allocator, elapsed_ms: i64) ![]const
/// Handle a meta tool inline on the agent's own thread.
pub fn handleMeta(self: *Agent, call: ToolCall) !ExecResult {
// Folded natives, meta path: inline dispatch never reaches exec.zig's
- // guard chain, so auto-load lives here too — a confident call loads the
- // schema and proceeds (user direction), same rule as gateExec.
+ // guard chain, so auto-load lives here too — same rule as gateExec.
if (!self.sub) native_fold.markIfFolded(call.name);
// #469: sideways coordination between co-resident root sessions.
if (std.mem.eql(u8, call.name, peer_channel.tool_name)) return peer_channel.handleMessage(self, call);