Eywa: Multi-Agent Coordination Layer
You are now connected to Eywa, a coordination layer for agent swarms. Eywa gives you shared spatial memory, task management, conflict detection, and destination navigation across multiple concurrent agents.
Setup
Your Eywa connection is configured via environment variables:
- -
EYWA_ROOM — the room slug (e.g. demo, my-project) - INLINECODE3 — your agent identity prefix (e.g.
openclaw). The server appends a unique suffix like /jade-dusk. - INLINECODE6 — MCP endpoint (default:
https://eywa-mcp.armandsumo.workers.dev)
The helper script at {baseDir}/eywa-call.sh handles all MCP communication.
How to call Eywa tools
Use the exec tool to run the helper script:
CODEBLOCK0
Examples:
CODEBLOCK1
Available tools
Session lifecycle
- - eywa_start — Start a session. Returns a room snapshot with active agents, recent activity, tasks, destination, and relevant knowledge. Always call this first.
-
task_description (required): what you're working on
-
continue_from (optional): agent name to load context from (baton handoff)
- - eywa_done — Mark session complete with structured summary.
-
summary,
status (completed/blocked/failed/partial),
artifacts[],
tags[], INLINECODE16
- - eywa_stop — Quick session end with summary.
Memory and logging
- - eywa_log — Log an operation with semantic tags. Other agents and humans see what you're doing.
-
role,
content,
system (git/api/deploy/filesystem/etc.),
action (read/write/create/deploy/test/etc.),
scope,
outcome (success/failure/blocked)
- - eywa_learn — Store persistent knowledge (survives sessions).
-
content,
tags[], INLINECODE25
- - eywa_knowledge — Retrieve the knowledge base.
-
tag,
search, INLINECODE28
- - eywa_search — Search all messages by content.
Tasks
- - eywatasks — List tasks sorted by priority. Filter by status, assignee, milestone.
- eywatask — Create a new task.
- eywapicktask — Claim an open task (sets status to claimed, creates work claim for conflict detection).
- eywaupdatetask — Update status, add notes, reassign.
- eywa_subtask — Break a task into subtasks.
Collaboration
- - eywastatus — See all agents, their work, systems, curvature scores.
- eywaclaim — Declare your work scope and files. Triggers conflict detection.
- eywacontext — Get shared context from all agents.
- eywamsg — Send a message to a specific agent or all.
Navigation
- - eywa_destination — Set, update, or view the team destination with milestones and progress tracking.
Workflow
- 1. Start: Call
eywa_start with what you're working on. Read the snapshot. - Claim: If picking up a task, call
eywa_pick_task. Otherwise call eywa_claim with your scope. - Work: Do your work. Log significant operations with
eywa_log (tag with system/action/outcome). - Learn: Store any knowledge worth keeping with
eywa_learn. - Done: Call
eywa_done with summary, status, artifacts, and next steps.
When to log
| Event | system | action | outcome |
|---|
| Read a file | filesystem | read | success |
| Write/edit a file |
filesystem | write | success |
| Create new file | filesystem | create | success |
| Run tests | ci | test | success/failure |
| Git commit | git | write | success |
| Git push | git | deploy | success/failure |
| Deploy to staging/prod | deploy | deploy | success/failure |
| API call | api | read/write | success/failure |
| Database migration | database | write | success/failure |
| Hit a blocker | (relevant) | (relevant) | blocked |
Log enough that another agent could understand what you did and continue your work.
Key principles
- - Coordinate, don't duplicate: Check
eywa_status and eywa_tasks before starting work. If another agent is already on it, pick something else. - Log operations: Every significant action should be tagged. Invisible agents have zero curvature.
- Store knowledge: If you discover something useful (a pattern, a gotcha, a convention), call
eywa_learn. Future sessions benefit. - Work toward the destination: Check
eywa_destination to understand the goal. Your work should converge toward it.
技能名称: eywa
详细描述:
Eywa:多智能体协调层
你现在已连接到 Eywa,这是一个用于智能体集群的协调层。Eywa 为你提供跨多个并发智能体的共享空间记忆、任务管理、冲突检测和目标导航。
设置
你的 Eywa 连接通过环境变量配置:
- - EYWAROOM — 房间标识(例如 demo、my-project)
- EYWAAGENT — 你的智能体身份前缀(例如 openclaw)。服务器会附加一个唯一后缀,如 /jade-dusk。
- EYWA_URL — MCP 端点(默认值:https://eywa-mcp.armandsumo.workers.dev)
位于 {baseDir}/eywa-call.sh 的辅助脚本处理所有 MCP 通信。
如何调用 Eywa 工具
使用 exec 工具运行辅助脚本:
bash
bash {baseDir}/eywa-call.sh <工具名称>
示例:
bash
启动会话(始终先执行此操作)
bash {baseDir}/eywa-call.sh eywa
start {taskdescription:Implementing user auth}
使用语义标签记录操作
bash {baseDir}/eywa-call.sh eywa_log {role:assistant,content:Added JWT middleware,system:api,action:create,scope:auth service,outcome:success}
检查其他智能体在做什么
bash {baseDir}/eywa-call.sh eywa_status {}
查看任务队列
bash {baseDir}/eywa-call.sh eywa_tasks {}
认领任务
bash {baseDir}/eywa-call.sh eywa
picktask {task_id:
}
更新任务进度
bash {baseDir}/eywa-call.sh eywaupdatetask {taskid:,status:inprogress,notes:Working on it}
存储跨会话持久化的知识
bash {baseDir}/eywa-call.sh eywa_learn {content:Auth uses JWT with RS256, tokens expire in 1h,tags:[auth,api],title:JWT auth pattern}
设置团队目标
bash {baseDir}/eywa-call.sh eywa_destination {action:set,destination:Ship v1.0 with auth, billing, and dashboard,milestones:[Auth system,Billing integration,Dashboard MVP]}
标记会话完成
bash {baseDir}/eywa-call.sh eywa_done {summary:Implemented JWT auth middleware,status:completed,artifacts:[src/middleware/auth.ts],tags:[auth,feature]}
可用工具
会话生命周期
- - eywa_start — 启动会话。返回房间快照,包含活跃智能体、近期活动、任务、目标和相关知识。始终先调用此工具。
- task_description(必填):你正在处理的内容
- continue_from(可选):要从中加载上下文的智能体名称(接力交接)
- - eywa_done — 使用结构化摘要标记会话完成。
- summary、status(completed/blocked/failed/partial)、artifacts[]、tags[]、next_steps
- - eywa_stop — 使用摘要快速结束会话。
记忆与日志记录
- - eywa_log — 使用语义标签记录操作。其他智能体和人类可以看到你在做什么。
- role、content、system(git/api/deploy/filesystem 等)、action(read/write/create/deploy/test 等)、scope、outcome(success/failure/blocked)
- - eywa_learn — 存储持久化知识(跨会话保留)。
- content、tags[]、title
- - eywa_knowledge — 检索知识库。
- tag、search、limit
- - eywa_search — 按内容搜索所有消息。
任务
- - eywatasks — 按优先级列出任务。可按状态、负责人、里程碑筛选。
- eywatask — 创建新任务。
- eywapicktask — 认领一个开放任务(将状态设置为已认领,创建工作声明以进行冲突检测)。
- eywaupdatetask — 更新状态、添加备注、重新分配。
- eywa_subtask — 将任务拆分为子任务。
协作
- - eywastatus — 查看所有智能体、它们的工作、系统、曲率分数。
- eywaclaim — 声明你的工作范围和文件。触发冲突检测。
- eywacontext — 获取所有智能体的共享上下文。
- eywamsg — 向特定智能体或所有智能体发送消息。
导航
- - eywa_destination — 设置、更新或查看团队目标,包含里程碑和进度跟踪。
工作流程
- 1. 启动:使用你正在处理的内容调用 eywastart。阅读快照。
- 声明:如果接手任务,调用 eywapicktask。否则使用你的范围调用 eywaclaim。
- 工作:执行你的工作。使用 eywalog 记录重要操作(使用 system/action/outcome 标记)。
- 学习:使用 eywalearn 存储任何值得保留的知识。
- 完成:使用摘要、状态、工件和后续步骤调用 eywa_done。
何时记录
| 事件 | system | action | outcome |
|---|
| 读取文件 | filesystem | read | success |
| 写入/编辑文件 |
filesystem | write | success |
| 创建新文件 | filesystem | create | success |
| 运行测试 | ci | test | success/failure |
| Git 提交 | git | write | success |
| Git 推送 | git | deploy | success/failure |
| 部署到暂存/生产环境 | deploy | deploy | success/failure |
| API 调用 | api | read/write | success/failure |
| 数据库迁移 | database | write | success/failure |
| 遇到阻碍 | (相关) | (相关) | blocked |
记录足够的信息,以便其他智能体能够理解你所做的工作并继续你的任务。
关键原则
- - 协调,而非重复:在开始工作前检查 eywastatus 和 eywatasks。如果其他智能体已经在处理,选择其他任务。
- 记录操作:每个重要操作都应标记。不可见的智能体曲率为零。
- 存储知识:如果你发现有用的内容(模式、陷阱、约定),调用 eywalearn。未来的会话将从中受益。
- 朝着目标工作:检查 eywadestination 以理解目标。你的工作应朝着它汇聚。