Agent Communication Hub
Provide agent-to-agent communication for OpenClaw skills with direct messaging, broadcast delivery, pub/sub events, session tracking, offline queues, and SQL...
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 176 · 1 current installs · 1 all-time installs
by@imgolye
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
The name and description match the code and SKILL.md: the package implements messaging, pub/sub, session tracking, offline queues, and SQLite-backed persistence. All required functionality (message queueing, event subscriptions, session management) is implemented in the included sources.
Instruction Scope
Runtime instructions in SKILL.md stay within scope (create hub, register/connect agents, send/subscribe/publish, drain queues). The instructions do not ask the agent to read unrelated files, environment variables, or send data to external network endpoints. The code also contains no network calls or references to external endpoints.
Install Mechanism
The registry metadata lists no install spec (instruction-only), but the package includes TypeScript sources and a package.json with a native dependency (better-sqlite3). Building/running this skill in practice requires npm/yarn and a native build step for better-sqlite3; there is no untrusted URL download or obfuscated installer. This is expected for a local TypeScript library but worth noting because installing npm dependencies and compiling native modules has operational implications.
Credentials
The skill requires no environment variables or credentials, which is appropriate. One proportionality note: the hub persists to a SQLite file path provided by the caller (dbPath). That capability is necessary for durable storage but means a caller-provided path determines where files are written—avoid passing sensitive system paths or locations with privileged data.
Persistence & Privilege
The skill does not request persistent platform privileges (always is false) and does not modify other skills or global agent settings. Its persistence is limited to its own SQLite DB and normal file system access when a dbPath is supplied.
Assessment
This skill appears internally consistent and implements the described messaging hub. Before installing or running it: (1) be prepared to run npm install/build (better-sqlite3 is a native dependency that may compile), (2) supply a safe dbPath (do not point it at system-critical files or directories), (3) review the included source if you have security concerns (there are no network calls or env-var access), and (4) run the tests/examples in an isolated environment if you want to validate behavior before using it in production. Autonomous invocation is allowed by default on the platform (disable if you do not want the agent to call the skill without explicit user prompts), but that is a platform-level behavior and not specific to this skill.Like a lobster shell, security has layers — review code before you run it.
Current versionv0.1.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
Agent Communication Hub
Use this skill when multiple agents need a shared communication layer with durable delivery and session awareness.
What It Provides
- Point-to-point, private, and broadcast messaging
- Event publish/subscribe with subscription filters
- Agent registration, presence tracking, and session history
- Offline message queueing, persistence, and acknowledgements
- SQLite-backed audit history for messages and events
Project Layout
src/CommunicationHub.ts: Main entry point that coordinates messaging, storage, queueing, and acknowledgementssrc/EventBus.ts: Event publish/subscribe, replay, and filter evaluationsrc/SessionManager.ts: Agent lifecycle, presence, and session historytests/: Vitest coverage for messaging, sessions, queueing, and eventsexamples/: Minimal runnable example
Workflow
- Create a
CommunicationHubwith a SQLite database path. - Register agents through
SessionManager. - Connect or disconnect agents to update presence state.
- Send direct, private, or broadcast messages through
CommunicationHub. - Subscribe agents to event types through
EventBus. - Publish events and replay history when needed.
- Acknowledge delivered messages to complete queue processing.
Notes
- Broadcast delivery fans out to all registered agents except the sender.
- Offline direct messages remain queued until the recipient connects or explicitly drains the queue.
- Event filters use exact key/value matching against event payload fields.
- Message and event payloads are stored as JSON for flexible schemas.
Files
12 totalSelect a file
Select a file to preview.
Comments
Loading comments…
