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)
EYWA_AGENT — your agent identity prefix (e.g. openclaw). The server appends a unique suffix like /jade-dusk.
EYWA_URL — 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:
bash {baseDir}/eywa-call.sh <tool_name> '<json_arguments>'
Examples:
# Start a session (always do this first)
bash {baseDir}/eywa-call.sh eywa_start '{"task_description":"Implementing user auth"}'
# Log an operation with semantic tags
bash {baseDir}/eywa-call.sh eywa_log '{"role":"assistant","content":"Added JWT middleware","system":"api","action":"create","scope":"auth service","outcome":"success"}'
# Check what other agents are doing
bash {baseDir}/eywa-call.sh eywa_status '{}'
# View the task queue
bash {baseDir}/eywa-call.sh eywa_tasks '{}'
# Claim a task
bash {baseDir}/eywa-call.sh eywa_pick_task '{"task_id":"<uuid>"}'
# Update task progress
bash {baseDir}/eywa-call.sh eywa_update_task '{"task_id":"<uuid>","status":"in_progress","notes":"Working on it"}'
# Store knowledge that persists across sessions
bash {baseDir}/eywa-call.sh eywa_learn '{"content":"Auth uses JWT with RS256, tokens expire in 1h","tags":["auth","api"],"title":"JWT auth pattern"}'
# Set the team destination
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"]}'
# Mark session complete
bash {baseDir}/eywa-call.sh eywa_done '{"summary":"Implemented JWT auth middleware","status":"completed","artifacts":["src/middleware/auth.ts"],"tags":["auth","feature"]}'
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[], next_steps
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).
eywa_knowledge — Retrieve the knowledge base.
eywa_search — Search all messages by content.
Tasks
- eywa_tasks — List tasks sorted by priority. Filter by status, assignee, milestone.
- eywa_task — Create a new task.
- eywa_pick_task — Claim an open task (sets status to claimed, creates work claim for conflict detection).
- eywa_update_task — Update status, add notes, reassign.
- eywa_subtask — Break a task into subtasks.
Collaboration
- eywa_status — See all agents, their work, systems, curvature scores.
- eywa_claim — Declare your work scope and files. Triggers conflict detection.
- eywa_context — Get shared context from all agents.
- eywa_msg — 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
- 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.
1---
2name: eywa
3description: Multi-agent coordination, spatial memory, and swarm navigation. Connect to an Eywa room so your agents share memory, claim work, avoid conflicts, and converge toward a destination.
4user-invocable: true
5metadata:
6 source: https://skillmd.com/skills/modbender/eywa
7 openclaw:
8 emoji: 🌳
9 requires:
10 anyBins:
11 - curl
12 - wget
13 homepage: https://www.eywa-ai.dev
14 install:
15 - kind: node
16 package: eywa-ai
17 bins:
18 - eywa
19 label: Install Eywa CLI
20---
21
22# Eywa: Multi-Agent Coordination Layer
23
24You 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.
25
26## Setup
27
28Your Eywa connection is configured via environment variables:
29
30- `EYWA_ROOM` — the room slug (e.g. `demo`, `my-project`)
31- `EYWA_AGENT` — your agent identity prefix (e.g. `openclaw`). The server appends a unique suffix like `/jade-dusk`.
32- `EYWA_URL` — MCP endpoint (default: `https://eywa-mcp.armandsumo.workers.dev`)
33
34The helper script at `{baseDir}/eywa-call.sh` handles all MCP communication.
35
36## How to call Eywa tools
37
38Use the `exec` tool to run the helper script:
39
40```bash
41bash {baseDir}/eywa-call.sh <tool_name> '<json_arguments>'
42```
43
44Examples:
45
46```bash
47# Start a session (always do this first)
48bash {baseDir}/eywa-call.sh eywa_start '{"task_description":"Implementing user auth"}'
49
50# Log an operation with semantic tags
51bash {baseDir}/eywa-call.sh eywa_log '{"role":"assistant","content":"Added JWT middleware","system":"api","action":"create","scope":"auth service","outcome":"success"}'
52
53# Check what other agents are doing
54bash {baseDir}/eywa-call.sh eywa_status '{}'
55
56# View the task queue
57bash {baseDir}/eywa-call.sh eywa_tasks '{}'
58
59# Claim a task
60bash {baseDir}/eywa-call.sh eywa_pick_task '{"task_id":"<uuid>"}'
61
62# Update task progress
63bash {baseDir}/eywa-call.sh eywa_update_task '{"task_id":"<uuid>","status":"in_progress","notes":"Working on it"}'
64
65# Store knowledge that persists across sessions
66bash {baseDir}/eywa-call.sh eywa_learn '{"content":"Auth uses JWT with RS256, tokens expire in 1h","tags":["auth","api"],"title":"JWT auth pattern"}'
67
68# Set the team destination
69bash {baseDir}/eywa-call.sh eywa_destination '{"action":"set","destination":"Ship v1.0 with auth, billing, and dashboard","milestones":["Auth system","Billing integration","Dashboard MVP"]}'
70
71# Mark session complete
72bash {baseDir}/eywa-call.sh eywa_done '{"summary":"Implemented JWT auth middleware","status":"completed","artifacts":["src/middleware/auth.ts"],"tags":["auth","feature"]}'
73```
74
75## Available tools
76
77### Session lifecycle
78- **eywa_start** — Start a session. Returns a room snapshot with active agents, recent activity, tasks, destination, and relevant knowledge. Always call this first.
79 - `task_description` (required): what you're working on
80 - `continue_from` (optional): agent name to load context from (baton handoff)
81
82- **eywa_done** — Mark session complete with structured summary.
83 - `summary`, `status` (completed/blocked/failed/partial), `artifacts[]`, `tags[]`, `next_steps`
84
85- **eywa_stop** — Quick session end with summary.
86
87### Memory and logging
88- **eywa_log** — Log an operation with semantic tags. Other agents and humans see what you're doing.
89 - `role`, `content`, `system` (git/api/deploy/filesystem/etc.), `action` (read/write/create/deploy/test/etc.), `scope`, `outcome` (success/failure/blocked)
90
91- **eywa_learn** — Store persistent knowledge (survives sessions).
92 - `content`, `tags[]`, `title`
93
94- **eywa_knowledge** — Retrieve the knowledge base.
95 - `tag`, `search`, `limit`
96
97- **eywa_search** — Search all messages by content.
98
99### Tasks
100- **eywa_tasks** — List tasks sorted by priority. Filter by status, assignee, milestone.
101- **eywa_task** — Create a new task.
102- **eywa_pick_task** — Claim an open task (sets status to claimed, creates work claim for conflict detection).
103- **eywa_update_task** — Update status, add notes, reassign.
104- **eywa_subtask** — Break a task into subtasks.
105
106### Collaboration
107- **eywa_status** — See all agents, their work, systems, curvature scores.
108- **eywa_claim** — Declare your work scope and files. Triggers conflict detection.
109- **eywa_context** — Get shared context from all agents.
110- **eywa_msg** — Send a message to a specific agent or all.
111
112### Navigation
113- **eywa_destination** — Set, update, or view the team destination with milestones and progress tracking.
114
115## Workflow
116
1171. **Start**: Call `eywa_start` with what you're working on. Read the snapshot.
1182. **Claim**: If picking up a task, call `eywa_pick_task`. Otherwise call `eywa_claim` with your scope.
1193. **Work**: Do your work. Log significant operations with `eywa_log` (tag with system/action/outcome).
1204. **Learn**: Store any knowledge worth keeping with `eywa_learn`.
1215. **Done**: Call `eywa_done` with summary, status, artifacts, and next steps.
122
123## When to log
124
125| Event | system | action | outcome |
126|-------|--------|--------|---------|
127| Read a file | filesystem | read | success |
128| Write/edit a file | filesystem | write | success |
129| Create new file | filesystem | create | success |
130| Run tests | ci | test | success/failure |
131| Git commit | git | write | success |
132| Git push | git | deploy | success/failure |
133| Deploy to staging/prod | deploy | deploy | success/failure |
134| API call | api | read/write | success/failure |
135| Database migration | database | write | success/failure |
136| Hit a blocker | (relevant) | (relevant) | blocked |
137
138Log enough that another agent could understand what you did and continue your work.
139
140## Key principles
141
142- **Coordinate, don't duplicate**: Check `eywa_status` and `eywa_tasks` before starting work. If another agent is already on it, pick something else.
143- **Log operations**: Every significant action should be tagged. Invisible agents have zero curvature.
144- **Store knowledge**: If you discover something useful (a pattern, a gotcha, a convention), call `eywa_learn`. Future sessions benefit.
145- **Work toward the destination**: Check `eywa_destination` to understand the goal. Your work should converge toward it.