summaryrefslogtreecommitdiff
path: root/agent/tools/edit.lua
diff options
context:
space:
mode:
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",