From 83b0b59a0ad5f9b8819467f68a22f2417db7b623 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 13 Aug 2026 12:02:27 +0200 Subject: [PATCH] prompts: remove /home/user path examples that bias tilde expansion - file_grep.meta: replace /home/user/project with /abs/path - system_prompt.md: use $XDG_CONFIG_HOME instead of ~ - agent-copilot.md: use relative path in code block example --- cmd/olliesrv/internal/prompts/system_prompt.md | 2 +- data/prompts/agent-copilot.md | 2 +- data/tools/file_grep.meta | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/olliesrv/internal/prompts/system_prompt.md b/cmd/olliesrv/internal/prompts/system_prompt.md index 40a6fdb..7cfdd42 100644 --- a/cmd/olliesrv/internal/prompts/system_prompt.md +++ b/cmd/olliesrv/internal/prompts/system_prompt.md @@ -33,7 +33,7 @@ Tools are loaded at startup. Additional tools can be loaded at runtime via the ` - To search: call `file_grep` directly, NOT `grep` via shell - To edit: call `file_edit` directly, NOT `sed` via shell -The tool scripts in `~/.config/ollie/tools/` are already exposed as callable functions. Never invoke them via their filesystem path — call them by name through the tool interface. +The tool scripts in `$XDG_CONFIG_HOME/ollie/tools/` are already exposed as callable functions. Never invoke them via their filesystem path — call them by name through the tool interface. Shell is for system commands that have no native tool equivalent: builds, git, package managers, interpreters, etc. diff --git a/data/prompts/agent-copilot.md b/data/prompts/agent-copilot.md index 3d6d477..4822d3c 100644 --- a/data/prompts/agent-copilot.md +++ b/data/prompts/agent-copilot.md @@ -47,7 +47,7 @@ Example response: > The null check on line 42 is inverted — it should guard against nullptr, not assert it. > -> ```cpp /home/user/src/main.cpp:42-44 +> ```cpp src/main.cpp:42-44 > if (ptr == nullptr) { > return; > } diff --git a/data/tools/file_grep.meta b/data/tools/file_grep.meta index 7d64f97..9a79acf 100644 --- a/data/tools/file_grep.meta +++ b/data/tools/file_grep.meta @@ -1,6 +1,6 @@ { "description": "Search file contents with ripgrep. Capped at 50 matches by default.", - "prompt": "## file_grep\n\nSearch file contents with ripgrep. Capped at 50 matches by default.\n\n**Args**: `pattern` (required), plus optional named params.\n\n```\nfile_grep(pattern=\"pattern\", path=\"/abs/dir\")\nfile_grep(pattern=\"TODO\", path=\"src/\", glob=\"*.go\", case_insensitive=true)\nfile_grep(pattern=\"func main\", path=\"/home/user/project\")\n```\n\n- `path`: search directory (not a positional arg)\n- `glob`: file glob filter\n- `case_insensitive`: boolean\n\n**Params**: `path`, `mode` (content|files_with_matches|count), `glob`, `type`, `case_insensitive`, `before`, `after`, `context`, `multiline`, `head`, `offset`.", + "prompt": "## file_grep\n\nSearch file contents with ripgrep. Capped at 50 matches by default.\n\n**Args**: `pattern` (required), plus optional named params.\n\n```\nfile_grep(pattern=\"pattern\", path=\"/abs/dir\")\nfile_grep(pattern=\"TODO\", path=\"src/\", glob=\"*.go\", case_insensitive=true)\nfile_grep(pattern=\"func main\", path=\"/abs/path\")\n```\n\n- `path`: search directory (not a positional arg)\n- `glob`: file glob filter\n- `case_insensitive`: boolean\n\n**Params**: `path`, `mode` (content|files_with_matches|count), `glob`, `type`, `case_insensitive`, `before`, `after`, `context`, `multiline`, `head`, `offset`.", "args": { "type": "object", "required": [