From 5c016cfdbcb122e2b4f0496ef946642d68953c4b Mon Sep 17 00:00:00 2001 From: T Date: Wed, 27 May 2026 20:39:45 -0600 Subject: tool names prefixed with `std.` --- agent/tools/read.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'agent/tools/read.lua') diff --git a/agent/tools/read.lua b/agent/tools/read.lua index e6192ae..05661c4 100644 --- a/agent/tools/read.lua +++ b/agent/tools/read.lua @@ -1,14 +1,14 @@ -- Read a file from disk and return its text verbatim. -- --- Output cap: 50 KB and 2000 lines, whichever is hit first. Matches --- pi's defaults; large enough to be useful, small enough to keep the --- model's context manageable. A single tool result that blows out the +-- Output cap: 50 KB and 2000 lines, whichever is hit first. Large +-- enough to be useful, small enough to keep the model's context +-- manageable. A single tool result that blows out the context window is -- context window is worse than one that silently asks for a follow-up -- scoped read. -- -- The slicing knobs are `offset` (1-based line to start at) and -- `limit` (max lines to return). SQL-shaped — models recognize the --- idiom — and matches pi's tool surface. When the cap is hit, a +-- idiom. When the cap is hit, a -- `[truncated: ...]` marker names the next `offset` for a follow-up -- call. The file body itself is byte-for-byte what's on disk, so -- `edit` anchors round-trip exactly. @@ -17,7 +17,7 @@ local MAX_BYTES = 50 * 1024 -- 50 KB local MAX_LINES = 2000 return { - name = "read", + name = "std.read", description = "Read a file from disk. Output is truncated to the first 50KB or 2000 lines, whichever is hit first; on truncation a marker names the next offset for a follow-up call. Use offset/limit to slice.", schema = { type = "object", -- cgit v1.3