From 75b17d1e41d2534a6b36cf89b41114b98f60a2c1 Mon Sep 17 00:00:00 2001 From: zbigniew sobiecki Date: Fri, 2 Jan 2026 01:44:16 +0100 Subject: [PATCH] fix: replace non-existent SearchDirectory with working search commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The implementation prompt referenced SearchDirectory("mobile", "path") which doesn't exist as a gadget. This caused confusion for agents. Changed to use actual working tools: - Tmux with find command for filename searches - Tmux with ripgrep for content searches This fix addresses agent struggles observed in session analysis where agents tried to use SearchDirectory and had to fall back to other methods. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/agents/prompts/templates/implementation.eta | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agents/prompts/templates/implementation.eta b/src/agents/prompts/templates/implementation.eta index 9b5d4d5b..64d62d8c 100644 --- a/src/agents/prompts/templates/implementation.eta +++ b/src/agents/prompts/templates/implementation.eta @@ -50,7 +50,8 @@ Before implementing ANYTHING, search for existing examples: **Search strategies:** - List the directory first: `ListDirectory(packages/e2e/tests/)` -- Search for similar functionality: `SearchDirectory("mobile", "packages/e2e/")` +- Find files by name: `Tmux: find packages/e2e -name "*mobile*" -type f` +- Search file contents: `Tmux: rg -l "mobile" packages/e2e` - Read multiple examples before writing anything ### Step 2: Study the Patterns Deeply