From 44a1b5009767f93eddfbbcbbcda426e230cf54d8 Mon Sep 17 00:00:00 2001 From: argszero Date: Sun, 19 Jul 2026 05:39:13 +0800 Subject: [PATCH] emrg: fix bash tool description and add workdir hint to glob system prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - bash tool: remove misleading 'project' qualifier from working directory description — the bash tool runs in the daemon's CWD, not necessarily a project directory. - system prompt: add workdir parameter mention to glob tool entry for cross-directory file discovery. --- emrg/server/daemon.py | 2 +- emrg/tools/bash_tool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emrg/server/daemon.py b/emrg/server/daemon.py index 91097e9e..0b30e811 100644 --- a/emrg/server/daemon.py +++ b/emrg/server/daemon.py @@ -68,7 +68,7 @@ "Use `ignore_case`, `context_before`/`context_after`, and `glob` " "filtering to narrow results.\n" "- **glob for file discovery**: use glob with patterns like '**/*.py' to find " - "files by name\n" + "files by name. Use `workdir` to search in a specific directory.\n" "- **edit for targeted changes**: prefer edit over write for existing files — " "it's safer and shows diffs\n" "- **write for new files**: use write for creating new files or full rewrites\n" diff --git a/emrg/tools/bash_tool.py b/emrg/tools/bash_tool.py index abd3f2e6..25a0bdd6 100644 --- a/emrg/tools/bash_tool.py +++ b/emrg/tools/bash_tool.py @@ -26,7 +26,7 @@ def definition(self) -> ToolDefinition: "Execute a shell command and return stdout and stderr. " "Use for running tests, git commands, listing files, " "installing packages, and other shell operations. " - "Commands run in the project working directory by default; " + "Commands run in the working directory by default; " "use the `workdir` parameter to override." ), parameters={