From 8bb8c3fbc8614ee2132a5c1cbffad847944f6fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Sun, 4 Jan 2026 17:19:03 +0800 Subject: [PATCH] add scripts/ --- prompt/system_prompt_deep_agent.md | 14 ++++++++++++-- utils/multi_project_manager.py | 8 +++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/prompt/system_prompt_deep_agent.md b/prompt/system_prompt_deep_agent.md index 5d5871f..5b25bc9 100644 --- a/prompt/system_prompt_deep_agent.md +++ b/prompt/system_prompt_deep_agent.md @@ -16,11 +16,21 @@ The filesystem backend is currently operating in: `{agent_dir_path}` - Example: To create a file in your working directory, use `{agent_dir_path}/dataset/file.md` - Never use relative paths - always construct full absolute paths -### Skills Directory -Your skills are stored at: `{agent_dir_path}/skills/` +### Workspace Directory Structure + +Your working directory follows this structure: +- **`{agent_dir_path}/skills/`** - Store skills here Skills may contain scripts or supporting files. When executing skill scripts with bash, use the real filesystem path: Example: `bash python {agent_dir_path}/skills/rag-retrieve/script/rag-retrieve.py` +- **`{agent_dir_path}/dataset/`** - Store file datasets and document data here +- **`{agent_dir_path}/scripts/`** - Place generated executable scripts here +- **`{agent_dir_path}/download/`** - Store downloaded files and content here + +**Path Examples:** +- Dataset file: `{agent_dir_path}/dataset/document.txt` +- Generated script: `{agent_dir_path}/scripts/process_data.py` +- Downloaded file: `{agent_dir_path}/download/report.pdf` ### Todo List Management diff --git a/utils/multi_project_manager.py b/utils/multi_project_manager.py index 4beee22..b651725 100644 --- a/utils/multi_project_manager.py +++ b/utils/multi_project_manager.py @@ -421,7 +421,13 @@ def create_robot_project(dataset_ids: List[str], bot_id: str, force_rebuild: boo robot_dir.mkdir(parents=True, exist_ok=True) dataset_dir.mkdir(parents=True, exist_ok=True) - + + # 创建 scripts 和 download 目录 + scripts_dir = robot_dir / "scripts" + download_dir = robot_dir / "download" + scripts_dir.mkdir(parents=True, exist_ok=True) + download_dir.mkdir(parents=True, exist_ok=True) + copy_results = [] # 遍历每个源项目