Skip to content

Commit c798730

Browse files
authored
🤖 fix: add filter_exclude guidance to bash_output description (#1084)
Agents were repeatedly calling bash_output in tight loops instead of using filter_exclude with longer timeouts. Added a concrete trigger ('3+ times') to help agents recognize polling spam and switch to the better pattern. _Generated with `mux`_
1 parent a220381 commit c798730

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/utils/tools/toolDefinitions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ export const TOOL_DEFINITIONS = {
244244
"Returns stdout and stderr output along with process status. " +
245245
"Supports optional regex filtering to show only lines matching a pattern. " +
246246
"WARNING: When using filter, non-matching lines are permanently discarded. " +
247-
"Use timeout to wait for output instead of polling repeatedly.",
247+
"Use timeout to wait for output instead of polling repeatedly. " +
248+
"If you've called this 3+ times on the same process, use filter_exclude with a longer timeout instead.",
248249
schema: z.object({
249250
process_id: z.string().describe("The ID of the background process to retrieve output from"),
250251
filter: z

0 commit comments

Comments
 (0)