跳转到主要内容

hermes-agent多智能体协同

创建多职责智能体

# 列出所有智能体
hermes profile list

# 创建一个后台编码智能体
hermes profile create code-backend-worker --clone-from park-smart

# 创建一个前台编码智能体
hermes profile create code-frontend-worker --clone-from park-smart

# 创建要给测试智能体
hermes profile create code-test-worker --clone-from park-smart

# 创建一个测试智能体
hermes profile create code-review-worker --clone-from park-smart

# 创建数字员工编排者
hermes profile create code-robot-master --clone-from park-smart

启动kanban

# 定义每个智能体角色

# 定义后端智能体角色
hermes profile describe code-backend-worker  --text "后端开发专家:负责API设计、数据库模型、服务端逻辑。擅长Java/Python/FastAPI/Go/Node.js。"

# 定义前端智能体角色
hermes profile describe code-frontend-worker --text "前端开发专家:负责UI组件、页面布局、前端交互。擅长React/Vue/HTML/CSS/TypeScript。"

# 定义测试智能体角色
hermes profile describe code-test-worker --text "测试专家:负责单元测试、集成测试、测试策略。擅长pytest/Jest/Cypress。"

# 定义代码审查智能体角色
hermes profile describe code-review-worker --text "代码审查专家:负责审查代码质量、安全性、规范合规性。"

# 定义代码审查智能体角色
hermes profile describe code-robot-master --text "项目编排者:负责需求分析、任务拆分、Kanban任务分配和进度管理。不直接写代码。"

# 启动gateway
hermes gateway start

使用kanban


# 看所有任务状态
 hermes kanban list

# 看某个任务的详细输出(比如 T1 完成了什么)
 hermes kanban show t_3bf1276e

# 持续监控(类似 tail -f)
 hermes kanban tail t_4b15431d

# 统计信息
 hermes kanban stats

# 查看任务事件日志(谁在什么时候做了什么)
 hermes kanban log