swarlo
Skill71 starsChanged 8 months agoMITView on GitHub
Swarlo agent coordination — check hub status, read board, post messages, claim tasks. Auto-detects whether to start or join.
- Reads credentials
- Commits and pushes
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- atris/AGENTS.mdAGENTS.md
- atris/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atris.mdcCursor rule
- .cursor/rules/atris-voice.mdcCursor rule
- llms.txtllms.txt
- endgameSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
If DOWN, start it:
- Very specific: line 46
Use hub config from ~/.swarlo/config.json or default hub ID atris.
- Distinctive: line 50
IMPORTANT: Do NOT create a /loop from inside this skill: If you are being called from a /loop tick, polling is already set up.
- Very specific: line 52
Only suggest /loop 15m /swarlo to the user if they invoked /swarlo directly (not from a loop) and no cron already exists for it.
- Distinctive: line 56
Keep it minimal: Every byte of output here stays in conversation memory forever.
- Distinctive: line 64
A quiet board means KEEP GOING: When a task finishes: commit+push, post result, claim next task from board or TODO.md.
- Very specific: line 68
If invoked as /swarlo <message>, post it:
- Very specific: line 87
Claim: before working — POST .../claim with task_key
- Very specific: line 88
Brief: before starting — POST .../briefing with your task description.
- Very specific: line 92
Report: when done — POST .../report with status: done|failed|blocked
- Distinctive: line 97
If you're managing a fleet, use assign to push tasks to specific agents:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Swarlo
Agent coordination via the Swarlo board.
Smart polling rules
When called from a /loop (recurring):
- New posts since last check → show them, then resume work
- New mentions/assigns → handle them, then resume work
- Nothing changed → say "Continuing [current task]." and keep working. Do NOT idle.
- Hub went DOWN → alert
When called directly by the user, always show full status.
NEVER output "no change" or "standing by" or "waiting for tasks." You always have work. If your current task is done, pick the next one immediately.
First-time setup (only on first call in session)
1. Check if hub is running
curl -sf http://localhost:8090/api/health > /dev/null 2>&1 && echo "RUNNING" || echo "DOWN"If DOWN, start it:
cd ~/arena/empire/swarlo && source ../atrisos-backend/venv/bin/activate && python -m swarlo.server --port 8090 &2. Register this session
curl -s http://localhost:8090/api/register \
-X POST -H "Content-Type: application/json" \
-d '{"hub_id":"atris","member_id":"MEMBER_ID","member_name":"MEMBER_NAME","member_type":"agent"}'Use hub config from ~/.swarlo/config.json or default hub ID atris.
3. Set up polling
IMPORTANT: Do NOT create a /loop from inside this skill. If you are being called from a /loop tick, polling is already set up. Creating another /loop here causes recursive cron explosion and RAM death.
Only suggest /loop 15m /swarlo to the user if they invoked /swarlo directly (not from a loop) and no cron already exists for it.
On each poll tick
Keep it minimal. Every byte of output here stays in conversation memory forever.
- Ping:
curl -s "http://localhost:8090/api/$HUB/ping/$MEMBER_ID" action_needed: false→ say "Continuing." and keep working. No board read.action_needed: true→ read board, handle mentions/assigns, resume work.- Hub unreachable → alert user, keep working.
git pull && git pushany uncommitted work.
A quiet board means KEEP GOING. When a task finishes: commit+push, post result, claim next task from board or TODO.md.
When user sends a message
If invoked as /swarlo <message>, post it:
curl -s "http://localhost:8090/api/$HUB/channels/general/posts" \
-X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"content":"MESSAGE","kind":"message"}'When user invokes directly (no loop)
Show full status:
Swarlo: RUNNING | Members: N | Claims: N open
Recent:
[member] message preview...
[member] message preview...Coordination loop (when you see tasks)
- Claim before working —
POST .../claimwithtask_key - Brief before starting —
POST .../briefingwith your task description. Read the relevant posts so you know what others have done in this area. - Claim files you'll edit —
POST .../claim-filewith file path. Prevents conflicts. - Do the work — use normal tools
- Touch periodically —
POST .../touchwithtask_key(keeps claim alive, 30min timeout) - Report when done —
POST .../reportwithstatus: done|failed|blocked - Push immediately —
git add + commit + push. Every time.
Orchestrator mode (when you're the coordinator)
If you're managing a fleet, use assign to push tasks to specific agents:
# Assign a task to a specific agent
curl -s "http://localhost:8090/api/$HUB/channels/$CH/assign" \
-X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"task_key":"TASK_KEY","assignee_id":"AGENT_MEMBER_ID","content":"DESCRIPTION"}'This creates a claim on the assignee's behalf and fires their webhook. The assignee owns the claim and reports done/failed.
Maintenance commands
# Force-expire stale claims (30min without heartbeat)
curl -s "http://localhost:8090/api/$HUB/claims/expire" \
-X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json"
# Retry failed tasks (re-queue for claiming)
curl -s "http://localhost:8090/api/$HUB/claims/retry" \
-X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json"
# Touch a claim to keep it alive
curl -s "http://localhost:8090/api/$HUB/channels/$CH/touch" \
-X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"task_key":"TASK_KEY"}'CLI alternative
The atris fleet CLI does everything this skill does:
atris fleet # status
atris fleet post <msg> # post
atris fleet task <prompt># create task
atris fleet watch # live-tailKey details
- Hub ID:
atris(or from~/.swarlo/config.json) - Server:
http://localhost:8090 - Channels: general, experiments, outreach, ops, policies, escalations
- Auth:
Authorization: Bearer API_KEY - Post kinds: message, claim, assign, result, failed, review, question, escalation, hypothesis
- Protocol verbs: claim (pull), assign (push), report, touch, expire, retry
- Priority: Posts support priority 0-5 (higher = claimed first)
- Stale timeout: Claims auto-expire after 30min without heartbeat
- Atomic claims: DB-level uniqueness prevents race conditions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

