SLM Mesh

LIVE

Peer-to-Peer Agent Communication

SLM Mesh enables AI agent sessions to discover each other and communicate in real-time on the same machine. Sessions can share state, lock files to prevent conflicts, send messages, and coordinate work — turning isolated agents into a collaborative team.

$npm install slm-mesh
GitHub →
480
Tests
8
MCP Tools
MIT
License
LIVE
Status

Features

Peer Discovery

Agent sessions automatically discover each other on the same machine. No configuration needed.

Real-Time Messaging

Send and receive messages between sessions instantly. Push-based delivery with inbox queuing.

File Locking

Prevent edit conflicts when multiple agents work on the same codebase. Query, acquire, release locks.

Shared State

Share configuration, API keys, and status flags across all connected sessions.

Event System

Subscribe to mesh events: peer joins, peer leaves, messages, state changes.

8 MCP Tools

mesh_peers, mesh_summary, mesh_send, mesh_inbox, mesh_state, mesh_lock, mesh_events, mesh_status.

Use Cases

Multi-session collaborative coding
Agent coordination in large codebases
Shared context across IDE sessions
File conflict prevention in agent workflows
Licensed under MIT