AGENT SKILL

swarm-node

Unified voice interface to your local AI agent swarm. Routes spoken tasks to VoiceCommit, ClawHound, LifePulse, ThreatScope, GhostWriter, MeetingMind, StandupBot, EmailTriage, and NetRecon. Falls back to the R1 built-in AI for creative and unmatched tasks. Returns spoken results via the OpenClaw bridge.

License 许可
MIT
最近更新
2026-09-04
Stars
★ 0
Forks
0

01 前言 Front Matter

name
swarm-node
author
rabbit-r1-skillz
version
1.0.0
description
Unified voice interface to your local AI agent swarm. Routes spoken tasks to VoiceCommit, ClawHound, LifePulse, ThreatScope, GhostWriter, MeetingMind, StandupBot, EmailTriage, and NetRecon. Falls back to the R1 built-in AI for creative and unmatched tasks. Returns spoken results via the OpenClaw bridge.

02 资源文件 3

03 SKILL.md 正文

SwarmNode — OpenClaw Skill Setup

SwarmNode is the command-and-control layer for your entire local AI agent swarm. You speak a task into the R1; SwarmNode's on-device router decides which agent (or agents) should handle it, dispatches the work over the OpenClaw bridge, and reads the result back to you.


Prerequisites

  • OpenClaw installed and running on your local machine (openclaw start)
  • Node.js 18+ on your PATH
  • One or more of the target skills installed under ~/.openclaw/skills/

Supported target skills

Skill directory Handles
voice-commit Git status, commits, pushes, PRs, CI, GitHub notifications
clawhound Security scans, skill audits, threat detection
life-pulse Morning brief, reminders, daily schedule
threat-scope Security news, CVE feed, threat intelligence
ghost-writer Writing drafts, blog posts, emails
meeting-mind Meeting notes, action items, summaries
standup-bot Daily standup, blocker tracking
email-triage Inbox triage, unread counts, drafting replies
net-recon Network recon, DNS, port scans

Each skill must be installed separately. SwarmNode falls back to the R1's built-in AI for creative tasks (stories, art, music) and any unmatched task.


Installation

  1. Copy the SwarmNode skill adapter into your OpenClaw skills directory:

    cp -r swarm-node/ ~/.openclaw/skills/swarm-node/
    
  2. Install the Node dependencies for each target skill you want to use:

    cd ~/.openclaw/skills/voice-commit && npm install
    cd ~/.openclaw/skills/clawhound     && npm install
    # repeat for each skill
    
  3. Start OpenClaw:

    openclaw start
    
  4. Open the SwarmNode Creation on your R1. The LED will turn green when the swarm is ready.


How routing works

SwarmNode uses keyword-weight scoring to pick the right agent:

  1. The transcript is matched against routing rules (regex patterns with weights).
  2. Agents that match accumulate weight. The highest-weight agent is dispatched.
  3. If the top two agents are tied (within 1 weight point) and both score ≥ 3, both are dispatched in parallel and the R1 reads the best response.
  4. If no agent matches, the task is sent to the R1 built-in AI for generative handling.
  5. The user can override auto-routing at any time via long-press (opens the manual agent picker) or by scrolling the agent chip strip at the top of the screen.

Example auto-routing

You say Routes to
"Summarize my GitHub notifications" VoiceCommit
"Scan my skills for threats" ClawHound
"What's my morning brief" LifePulse
"What's the latest security news" ThreatScope
"Write a draft for my newsletter" GhostWriter
"Recap last week's meeting" MeetingMind
"What are my blockers today" StandupBot
"How many unread emails do I have" EmailTriage
"Scan my home network" NetRecon
"Write me a short story about a robot" AI Creative (R1 built-in AI)

OpenClaw command protocol

SwarmNode writes commands to the shared storage key openclaw:cmd. Each command has the shape:

{
  "ts":      1718000000000,
  "skill":   "voice-commit",
  "command": "voice-task",
  "params": {
    "task":      "Summarize my GitHub notifications",
    "source":    "swarmnode",
    "timestamp": 1718000000000
  },
  "status": "pending"
}

The target skill's daemon processes the command and writes its response to openclaw:resp:

{
  "status": "done",
  "ts":     1718000000500,
  "data": {
    "output":  "You have 3 unread GitHub notifications: 1 PR review request on repo/project, 2 issue mentions.",
    "summary": "3 notifications · 1 PR · 2 issues"
  }
}

SwarmNode reads the output or summary field and speaks it via TTS.


Parallel dispatch protocol

When SwarmNode routes to two agents simultaneously, it writes one openclaw:cmd entry per skill in rapid succession (200ms apart). Each skill must consume its own command and respond independently to openclaw:resp with its own ts. SwarmNode collects all responses within a 30-second window and presents them on-screen as a scrollable list.

Note: The current shared-storage bridge uses a single openclaw:resp key. For parallel dispatch to work cleanly, the OpenClaw host daemon should fan out each command to the correct skill and aggregate the responses. See the OpenClaw documentation on multi-skill dispatch.


Fallback behavior

If the OpenClaw bridge is not running or times out (30 seconds):

  1. SwarmNode falls back to the R1's built-in LLM.
  2. It sends the task as a prompt with the target agent's persona prepended.
  3. The LLM response is spoken and displayed as the result.
  4. The LED turns green and the task is saved to history normally.

This means SwarmNode is fully functional without OpenClaw running — it simply uses the R1's LLM directly.


Storage keys (creationStorage.plain)

Key Contents
sn:history JSON array of last 30 task results ([{ts, agentId, task, result, elapsedMs}])
sn:agentstatus JSON object of last-known agent status map (`{agentId: 'idle'
openclaw:cmd Current outbound command (shared with all OpenClaw skills)
openclaw:resp Latest inbound response (shared with all OpenClaw skills)

Custom routing rules

You can add custom routing rules by editing the ROUTING_RULES array in index.html. Each rule has the shape:

{ pattern: /your-regex/i, agentId: 'skill-id', weight: 3 }

Higher weight wins when multiple agents match the same transcript. Weight ≥ 3 is required for a tie to trigger parallel dispatch.


Interaction reference

Action Result
PTT (tap) Start listening · Dispatch task · New task (from result)
PTT (tap, listen state) Stop recording and dispatch
Long-press (idle) Open manual agent picker
Long-press (listen) Force-stop and dispatch now
Long-press (result) Re-open agent picker to reroute task
Long-press (parallel) Dismiss parallel view, go to idle
Long-press (override picker) Restore auto-routing
Scroll (idle) Down = Swarm Registry · Up = Task History
Scroll (listen) Cycle through agents to override routing
Scroll (result) Scroll result text
Scroll (registry) Browse agents (PTT to select as manual target)
Scroll (history) Browse past tasks (PTT to replay)
Scroll (override picker) Navigate agent list
Scroll (working) Open Swarm Registry while task runs
Scroll (parallel) Browse individual agent results

LED reference

Color Meaning
Green (#639922) Ready / result delivered
Blue (#378ADD) Listening for voice input
Amber (#EF9F27) Routing or single agent working
Purple (#8040c0) Parallel agents working
Teal (#1D9E75) Browsing registry or history
Red (#E24B4A) Agent error or no match

Security notes

  • SwarmNode does not log voice transcripts beyond local creationStorage.plain.
  • All OpenClaw communication is local-machine-only; no data leaves your network.
  • The manual override picker requires an explicit PTT confirmation before taking effect.
  • Each target skill enforces its own command allowlist — SwarmNode cannot invoke arbitrary shell commands.

Troubleshooting

"Agent unreachable" on every task

  • Verify OpenClaw is running: openclaw status
  • Confirm the target skill is installed: ls ~/.openclaw/skills/
  • Check that openclaw:cmd is being cleared between runs (stale pending entries block new commands)

Auto-routing sends tasks to the wrong agent

  • Review the ROUTING_RULES array in index.html
  • Add higher-weight rules for your specific vocabulary
  • Use manual override (long-press) to force the correct agent while you refine rules

Parallel dispatch only ever uses one agent

  • The tie threshold is: top-two scores within 1 point AND both ≥ 3
  • Speak tasks that clearly mix two domains (e.g., "check my email and run a security scan")
  • Or lower the tie threshold in computeRoutes() in index.html

TTS reads back garbled results

  • The first 80 characters of the result are spoken; full text is visible on screen
  • If the OpenClaw skill returns JSON instead of a string output field, SwarmNode JSON-stringifies it — fix the skill's response format to include an output string

History not persisting between sessions

  • Verify window.creationStorage.plain is available (requires HTTPS in the Creations runtime)
  • In local dev/preview mode, history is held in memory only

04 同仓库更多 Skills

ajohnsonnow
ajohnsonnow/r1-warren

whisper-quiz

WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

walk-cast

Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters / Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-novel

Local machine skill for VoiceNovel — handles story export to disk.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-guide

Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people/vehicles/food/hazards/exits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-draft

Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.

★ 0
ajohnsonnow
ajohnsonnow/r1-warren

voice-commit

Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git/CI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.

★ 0