summaryrefslogtreecommitdiff
path: root/agent/tools/edit.lua
diff options
context:
space:
mode:
authorT <t@tjp.lol>2026-05-27 20:39:45 -0600
committert <t@tjp.lol>2026-05-30 16:29:43 -0600
commit5c016cfdbcb122e2b4f0496ef946642d68953c4b (patch)
tree81feb6ac75045361e8e61d609e4e34d14cecb3b6 /agent/tools/edit.lua
parent48651e123ef0cf1d02eac781902517c0628b310a (diff)
tool names prefixed with `std.`
Diffstat (limited to 'agent/tools/edit.lua')
-rw-r--r--agent/tools/edit.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/agent/tools/edit.lua b/agent/tools/edit.lua
index a56c334..7ad39c2 100644
--- a/agent/tools/edit.lua
+++ b/agent/tools/edit.lua
@@ -1,5 +1,5 @@
--- Apply a batch of exact-text replacements to a file. Pi-style terse
--- tool description; the rules are enforced here rather than re-stated
+-- Apply a batch of exact-text replacements to a file. Keep the tool
+-- description terse; the rules are enforced here rather than re-stated
-- in prose, with the rejection message naming exactly which rule each
-- entry tripped so the model can self-correct on the next call.
--
@@ -11,7 +11,7 @@
-- progressively against the result of earlier entries.
return {
- name = "edit",
+ name = "std.edit",
description = "Apply exact-text replacements to a file. Each entry's `old` must match exactly once in the original file (not progressively). Edits whose ranges overlap, match zero times, or match multiple times reject the entire call — no partial edits, file untouched. Keep `old` minimal but unique; widen with surrounding context if needed.",
schema = {
type = "object",