agent-Specialization/prompts
JOJO 08d9812f45 feat(docker): support isolated projects in web mode
Implement Docker Web project management on top of workspace_id while keeping host mode workspace behavior intact.

Backend changes:

- Move Docker user files to users/<user>/projects/<project_id>/{project,data,logs} and shared user state to users/<user>/personal.

- Add automatic legacy migration from old project/data/logs/agentskills layouts and from the temporary project/shared layout.

- Generate project IDs server-side from the project name, reserve internal IDs, and hide project paths from the UI.

- Add project rename/delete APIs; deleting a Docker project removes its project directory and releases terminal/container state.

- Add host workspace rename/delete APIs; deleting a host workspace only removes catalog entries and keeps files on disk.

- Scope Docker containers, terminals, uploads, conversations, storage, and running task metadata by workspace_id.

- Store private skills under users/<user>/personal/agentskills and sync them into each project workspace.

- Inject the current project/workspace name through prompts/workspace_system.txt.

Frontend changes:

- Replace Docker file-tree area with project management UX and reuse host multi-workspace running-task behavior.

- Add a management dialog for creating, renaming, and deleting projects/workspaces.

- Show project labels instead of internal IDs in toasts and project lists.

- Clear stale conversation history during project/workspace switching and show loading until the new list is ready.

- Keep running-task loader/check behavior consistent across host workspaces and Docker projects.

Validation:

- python3 -m py_compile modules/user_manager.py modules/host_workspace_manager.py modules/skills_manager.py core/main_terminal_parts/tools_execution.py server/auth.py server/context.py server/status.py server/conversation.py server/tasks.py utils/context_manager.py

- python3 -m unittest test.test_server_refactor_smoke

- npm run build --silent 2>&1 | tail -n 20
2026-05-29 19:49:48 +08:00
..
agents_md_inject.txt feat: 添加AGENTS.md自动注入的prompt模板 2026-04-12 16:34:06 +08:00
deep_thinking_mode_guidelines.txt feat: expand model support and qwen-vl ux 2026-01-03 07:01:24 +08:00
execution_mode.txt feat(security): harden host execution model with sandbox/direct controls 2026-05-10 19:19:01 +08:00
human_like_style.txt feat: 添加智能体交流风格选项 2026-04-14 01:47:06 +08:00
main_system_qwenvl.txt refactor(messages): 统一运行期消息插入为 [系统通知|source] 前缀的 user 消息 2026-05-23 02:01:36 +08:00
main_system.txt refactor(messages): 统一运行期消息插入为 [系统通知|source] 前缀的 user 消息 2026-05-23 02:01:36 +08:00
permission_mode.txt feat: 权限模式支持管道命令并优化prompt注入 2026-04-13 16:23:24 +08:00
personalization.txt fix: refine title prompt and sandbox config 2026-01-29 11:54:24 +08:00
recent_conversations.txt feat(memory): refactor proactive memory and conversation recall 2026-05-27 03:09:42 +08:00
skills_system.txt feat: add read_skill tool and frontend read-skill rendering 2026-04-19 16:57:02 +08:00
sub_agent_guidelines.txt feat: 添加 terminal-guide 和 sub-agent-guide skills 2026-03-16 21:17:02 +08:00
thinking_mode_guidelines.txt feat: expand model support and qwen-vl ux 2026-01-03 07:01:24 +08:00
title_generation_prompt.txt fix(prompt): improve title generation wording 2026-05-28 13:17:55 +08:00
todo_guidelines.txt fix: update run_command limits and planning guidance 2026-04-14 14:12:11 +08:00
workspace_system.txt feat(docker): support isolated projects in web mode 2026-05-29 19:49:48 +08:00