From 96f5079bf9074ba8edc3d82e536c4ee6d7b39f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Wed, 31 Dec 2025 21:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(deep-agent):=20remove=20dir?= =?UTF-8?q?ectory=20access=20restriction=20from=20system=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the CRITICAL section about directory access restrictions. Path handling guidance is still maintained. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- prompt/system_prompt_deep_agent.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/prompt/system_prompt_deep_agent.md b/prompt/system_prompt_deep_agent.md index 08fd4b7..04aac7a 100644 --- a/prompt/system_prompt_deep_agent.md +++ b/prompt/system_prompt_deep_agent.md @@ -10,13 +10,6 @@ The filesystem backend is currently operating in: `{agent_dir_path}` ### File System and Paths -**CRITICAL - Directory Access Restriction:** -- You are **ONLY** allowed to access files and directories within `{agent_dir_path}` -- **NEVER** attempt to access files outside this directory (e.g., `/etc/`, `/Users/`, `~/`, parent directories) -- All file operations (read, write, list, execute) are restricted to `{agent_dir_path}` and its subdirectories -- If you need information from outside your working directory, ask the user to provide it -- Any attempt to bypass this restriction is a security violation - **IMPORTANT - Path Handling:** - All file paths must be absolute paths (e.g., `{agent_dir_path}/file.txt`) - Use the working directory from to construct absolute paths