完整实现 Swarm 多智能体协作系统
- 新增 CLIPluginAdapter 统一接口 (backend/app/core/agent_adapter.py) - 新增 LLM 服务层,支持 Anthropic/OpenAI/DeepSeek/Ollama (backend/app/services/llm_service.py) - 新增 Agent 执行引擎,支持文件锁自动管理 (backend/app/services/agent_executor.py) - 新增 NativeLLMAgent 原生 LLM 适配器 (backend/app/adapters/native_llm_agent.py) - 新增进程管理器 (backend/app/services/process_manager.py) - 新增 Agent 控制 API (backend/app/routers/agents_control.py) - 新增 WebSocket 实时通信 (backend/app/routers/websocket.py) - 更新前端 AgentsPage,支持启动/停止 Agent - 测试通过:Agent 启动、批量操作、栅栏同步 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
9
.doc/agents/arch-001/info.json
Normal file
9
.doc/agents/arch-001/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"agent_id": "arch-001",
|
||||
"name": "Architect",
|
||||
"role": "architect",
|
||||
"model": "claude-opus-4.6",
|
||||
"description": "Architect - architect",
|
||||
"created_at": "2026-03-09T17:23:06.837127",
|
||||
"status": "idle"
|
||||
}
|
||||
7
.doc/agents/arch-001/state.json
Normal file
7
.doc/agents/arch-001/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"agent_id": "arch-001",
|
||||
"current_task": "",
|
||||
"progress": 0,
|
||||
"working_files": [],
|
||||
"last_update": "2026-03-09T17:23:06.852720"
|
||||
}
|
||||
9
.doc/agents/claude-001/info.json
Normal file
9
.doc/agents/claude-001/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"agent_id": "claude-001",
|
||||
"name": "Claude Code",
|
||||
"role": "architect",
|
||||
"model": "claude-opus-4.6",
|
||||
"description": "",
|
||||
"created_at": "2026-03-05T10:17:03.114275",
|
||||
"status": "idle"
|
||||
}
|
||||
7
.doc/agents/claude-001/state.json
Normal file
7
.doc/agents/claude-001/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"agent_id": "claude-001",
|
||||
"current_task": "fixing bug",
|
||||
"progress": 68,
|
||||
"working_files": [],
|
||||
"last_update": "2026-03-05T10:17:06.914810"
|
||||
}
|
||||
9
.doc/agents/dev-001/info.json
Normal file
9
.doc/agents/dev-001/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"agent_id": "dev-001",
|
||||
"name": "Developer",
|
||||
"role": "developer",
|
||||
"model": "claude-sonnet-4.6",
|
||||
"description": "Developer - developer",
|
||||
"created_at": "2026-03-09T17:23:06.864073",
|
||||
"status": "idle"
|
||||
}
|
||||
7
.doc/agents/dev-001/state.json
Normal file
7
.doc/agents/dev-001/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"agent_id": "dev-001",
|
||||
"current_task": "",
|
||||
"progress": 0,
|
||||
"working_files": [],
|
||||
"last_update": "2026-03-09T17:23:06.867216"
|
||||
}
|
||||
9
.doc/agents/kimi-002/info.json
Normal file
9
.doc/agents/kimi-002/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"agent_id": "kimi-002",
|
||||
"name": "Kimi CLI",
|
||||
"role": "pm",
|
||||
"model": "moonshot-v1-8k",
|
||||
"description": "",
|
||||
"created_at": "2026-03-05T10:17:04.382854",
|
||||
"status": "idle"
|
||||
}
|
||||
7
.doc/agents/kimi-002/state.json
Normal file
7
.doc/agents/kimi-002/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"agent_id": "kimi-002",
|
||||
"current_task": "",
|
||||
"progress": 0,
|
||||
"working_files": [],
|
||||
"last_update": "2026-03-05T10:17:04.387780"
|
||||
}
|
||||
9
.doc/agents/qa-001/info.json
Normal file
9
.doc/agents/qa-001/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"agent_id": "qa-001",
|
||||
"name": "QA Engineer",
|
||||
"role": "qa",
|
||||
"model": "claude-haiku-4.6",
|
||||
"description": "QA Engineer - qa",
|
||||
"created_at": "2026-03-09T17:23:06.877677",
|
||||
"status": "idle"
|
||||
}
|
||||
7
.doc/agents/qa-001/state.json
Normal file
7
.doc/agents/qa-001/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"agent_id": "qa-001",
|
||||
"current_task": "",
|
||||
"progress": 0,
|
||||
"working_files": [],
|
||||
"last_update": "2026-03-09T17:23:06.880737"
|
||||
}
|
||||
9
.doc/agents/test-001/info.json
Normal file
9
.doc/agents/test-001/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"agent_id": "test-001",
|
||||
"name": "Test Agent",
|
||||
"role": "developer",
|
||||
"model": "claude-sonnet-4.6",
|
||||
"description": "Test Agent - developer",
|
||||
"created_at": "2026-03-09T17:22:39.234290",
|
||||
"status": "idle"
|
||||
}
|
||||
7
.doc/agents/test-001/state.json
Normal file
7
.doc/agents/test-001/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"agent_id": "test-001",
|
||||
"current_task": "",
|
||||
"progress": 0,
|
||||
"working_files": [],
|
||||
"last_update": "2026-03-09T17:22:39.236368"
|
||||
}
|
||||
9
.doc/agents/test-agent-001/info.json
Normal file
9
.doc/agents/test-agent-001/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"agent_id": "test-agent-001",
|
||||
"name": "Test Agent",
|
||||
"role": "developer",
|
||||
"model": "claude-opus-4.6",
|
||||
"description": "测试用的 Agent",
|
||||
"created_at": "2026-03-09T09:28:05.266992",
|
||||
"status": "idle"
|
||||
}
|
||||
7
.doc/agents/test-agent-001/state.json
Normal file
7
.doc/agents/test-agent-001/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"agent_id": "test-agent-001",
|
||||
"current_task": "修复 bug",
|
||||
"progress": 75,
|
||||
"working_files": [],
|
||||
"last_update": "2026-03-09T09:28:05.280849"
|
||||
}
|
||||
Reference in New Issue
Block a user