agent-comms from jeremys-labs
Runtime-neutral communication primitives for local agent runtimes, including a durable SQLite mailbox and a Discord bridge.
At a Glance
Engagement
Available On
Listed Nov 2026
About agent-comms from jeremys-labs
agent-comms is a set of small TypeScript packages from the jeremys-labs GitHub organization that give local agent runtimes a shared communication layer. It provides a durable mailbox, a Discord Gateway bridge, an external-event inbox and outbound routing, each usable from a CLI or as a library. The README marks it as pre-1.0 and expects breaking changes while the packages are extracted from real usage.
What It Is
agent-comms is infrastructure underneath agent runtimes, not an agent framework. It targets setups such as Claude Code and Codex running side by side, where questions, handoffs and review requests need a durable thread both agents can inspect and close. It also covers using Discord as the front door for a local agent, with messages routed into local inbox files.
The repository describes these packages:
- A durable SQLite mailbox with message threads, lifecycle events, a CLI (agent-mail) and a library API.
- A Discord bridge that routes Discord messages into local agent inbox files and reuses the DISCORD_BOT_TOKEN env var used by Claude Code's native Discord channel configuration.
- An event inbox with webhook routing for GitHub and Home Assistant-style events.
- An outbound router with governed envelopes, policy checks, adapter routing, retries and idempotency.
- A BlueBubbles adapter that delivers through the outbound router behind a hard allowlist gate.
How the Workflow Runs
An agent sends a mailbox message through the CLI with sender, recipient, type, subject and body, optionally requiring a response, and the recipient lists its inbox filtered by status. Runtime adapters are thin shims that watch mailbox or bridge inbox state, convert events into structured prompts, inject them into the local runtime and acknowledge delivery after successful injection. Runtime-specific PTY shims are not yet a public package.
Multi-Agent and Configuration Setup
A single agent uses plain DISCORD_BOT_TOKEN. When one bridge process hosts several agents, bindings in a JSON config map each agent to its own token env var and channel or thread subscriptions. The mailbox database defaults to ~/.agent-comms/mailbox/agent_mail.db and can be redirected with AGENT_MAIL_DIR. Bridge state and config paths can be overridden with AGENT_COMMS_CONTENT_ROOT and DISCORD_BRIDGE_CONFIG.
Who It Is For
The README addresses people running Claude Code and Codex together locally, people who want Discord as the inbox for a local agent fleet, and builders of multi-agent local stacks. It says it is not for hosted agent platforms, teams whose orchestration layer already owns inter-agent communication, or people seeking a full agent framework.
Community Discussions
Be the first to start a conversation about agent-comms from jeremys-labs
Share your experience with agent-comms from jeremys-labs, ask questions, or help others learn from your insights.
Pricing
Public Source — License Unspecified
The public pre-1.0 repository provides setup instructions for local use, but no repository-wide reuse license or commercial price was verified. Confirm permission with the maintainer before reuse or redistribution. This null-price entry does not assert a fee or an open-source entitlement.
- Durable mailbox and Discord bridge primitives
- Local CLI and library interfaces
- External-event inbox and outbound routing
- Pre-1.0 APIs may change
Capabilities
Key Features
- Durable SQLite mailbox with message threads and lifecycle events
- agent-mail CLI and library API
- Discord Gateway bridge routing messages into local agent inbox files
- Compatible with Claude Code's DISCORD_BOT_TOKEN convention
- Multi-agent bindings with per-agent bot tokens and channel subscriptions
- Durable external-event inbox with GitHub and Home Assistant-style webhook routing
- Outbound router with policy checks, retries and idempotency
- BlueBubbles adapter with allowlist gate
- Configurable storage paths via environment variables
