You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d5a46f
Browse filesBrowse the repository at this point in the historyBrowse files
Keep archive search on primary prompts, payloads, and the search budget
Workers have no archive plugin, so advertising archive:/// sent grep
onto the filesystem. Matching the formatted URI line also made
pattern archive hit every occurrence. Sit archive search after
shell-guard and abort the walk so the same 10s budget applies.
Copy file name to clipboardExpand all lines: src/agent/prompts.ts
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -226,16 +226,16 @@ export function buildPromptDisciplineBlock(
226
226
227
227
constTOOL_SUMMARIES: Record<string,string>={
228
228
read_file:
229
-
"read a file, tool-output:///{callId} from a prior tool result, or archive:///{occurrenceId} (prefer over cat/head/tail in the shell). Only read_file a tool-output:// URI if the truncation notice named one",
229
+
"read a file or tool-output:///{callId} from a prior tool result (prefer over cat/head/tail in the shell). Only read_file a tool-output:// URI if the truncation notice named one",
230
230
write_file: "create or overwrite a file (never shell redirects or heredocs)",
231
231
edit_file:
232
232
"make a surgical edit (exact old_string match, or start_line/end_line line-range mode; never include read_file's NNNNNN\\t line prefix; substring failures include nearby file text; prefer over sed/awk in the shell)",
233
233
delete_file: "delete one file with an explicit outcome (never shell rm)",
234
234
run_shell:
235
235
"run a shell command (builds, tests, git; pass timeout ms to bound long commands; never to read/write/delete files, search trees, or talk to the user)",
236
236
search_files:
237
-
"find files by name or pattern (bounded; timeout + output caps — safer than open-ended shell find); path archive:/// lists evidence-archive refs",
"read a file, tool-output:///{callId} from a prior tool result, or archive:///{occurrenceId} (prefer over cat/head/tail in the shell). Only read_file a tool-output:// URI if the truncation notice named one",
269
+
search_files:
270
+
"find files by name or pattern (bounded; timeout + output caps — safer than open-ended shell find); path archive:/// lists evidence-archive refs",
0 commit comments