A writer, a few reviewers and a coordinator, exchanging letters on one cluster. Every letter lands in an append-only log that replays offline.
From the Fermat council report in this repository: one machine, a light load, not a capacity benchmark.
A run from 2026-12-02: model deepseek-v4.1-flash, one machine. Letters are replayed in log order with the waits shortened; each dot is one letter. The coordinator is open source in the the write-review team example, and takes any model Codex can reach.
Use cases
Every agent gets its own mailbox. You and your code decide who does what; Pulsing delivers the letters and keeps their state straight.
A writer drafts the change and one reviewer per checklist item checks it. A coordinator collects the verdicts and decides: send it back, or wrap up.
Mailbox prototype →Each Codex gets a companion Pulsing process. It and its subagents get mailboxes, and the MCP tools are injected for you.
Companion launcher →AutoGen, LangGraph or the native @agent decorator: the same code from one process to a cluster.
Distributed agents →Ray handles scheduling and resources; Pulsing handles communication: streaming, actor discovery, direct calls that skip the object store.
Ray + Pulsing →Protocol
A mailbox is an actor. Delivery, reading, claiming and finishing all run inside it, one at a time, so the state cannot disagree with itself.
The second letter is claimed straight from unread. Its lease runs out, another worker takes it over, and it still ends as failed. Reviewers and workers use these seven MCP tools to send and read mail; no model changes needed.
Every letter carries an idempotency key. The same key with the same content returns the original letter; different content is rejected.
Claiming a task returns a token and a lease. When the lease runs out someone else can take over, and the old token can no longer overwrite the result.
A reply keeps the thread and the id of the letter it answers, so the discussion continues without anyone carrying context between sessions.
Reading only marks a letter read. Work starts with a claim and ends with a finish backed by the token.
Measured
Single runs, not success rates. Both event logs replay offline, with no model calls.
The coordinator is a program, not a model. Code moves the work forward on events and timeouts: dispatch, fan out, collect, send back, wrap up.
The coordinator, the checklist and the prompts: write-review team
The report is in this repository; these are its own numbers.
Mailbox delivery was not the main bottleneck; agent startup, waiting for mail and wrapping up reports were slower.
Read the full report →Runtime
A Rust core with a Python interface. Add @remote to a class and it is an actor the cluster can find by name.
import asyncio
import pulsing as pul
@pul.remote
class Counter:
def __init__(self, value=0):
self.value = value
def inc(self):
self.value += 1
return self.value
async def main():
await pul.init()
try:
counter = await Counter.spawn(value=0, name="counter")
print(await counter.inc()) # 1
print(await counter.inc()) # 2
finally:
await pul.shutdown()
asyncio.run(main())
Pure Rust and Tokio. No Redis, etcd, NATS or Consul; one pip package is all of it.
pip install pulsingSWIM and gossip find nodes and detect failures. To add a machine, give it one seed address.
pul.init(addr=…, seeds=[…])Local or remote, it is await actor.method(). Named actors are found by name with resolve.
await Actor.resolve("name")Streaming responses with backpressure. Per-actor restarts and backoff are configurable; there is no supervision tree yet.
spawn(…, restart_policy=…)Limits
This is the honest state of the current version, so you do not find out the hard way.
Persistence is on the roadmap.
Get started
None of these needs a model or a cluster. The mailbox example in step three uses the deterministic role functions shipped in the repository.
pip install pulsing
Replace the pul.shutdown() at the end of the code above with a wait, so the node stays up. A second process joins through the seed address and finds the same actor, which lives in the first process, by name.
# terminal 1: start a node and keep it alive
await pul.init(addr="127.0.0.1:18111")
counter = await Counter.spawn(value=0, name="counter")
print(await counter.inc()) # 1
# terminal 2: join through the seed, find the same actor
await pul.init(addr="127.0.0.1:18112", seeds=["127.0.0.1:18111"])
counter = await Counter.resolve("counter")
print(await counter.inc()) # 2
Quick start →
Each Codex gets a companion Pulsing process, with mailboxes for its agents and subagents. On several machines, point them at the same seed.
pip install 'pulsing[mailbox]'
pulsing -- codex
# first machine
SEED=10.0.0.10:8100 pulsing -- codex
# another machine
SEED=10.0.0.10:8100 pulsing -- codex
Companion launcher →
A distributed actor runtime built in Rust and designed for Python. Streaming first, zero dependencies, built-in discovery: it connects agents and services across machines without Redis, etcd or YAML.
They complement each other. Ray is good at distributed scheduling and resource management; Pulsing adds streaming, cross-node actor discovery and direct actor-to-actor calls that skip the object store. pul.mount() connects a Ray actor to the Pulsing network.
No. It is a prototype for trusted machines and private clusters. Mailboxes are in memory by default; a state directory lets them survive a process crash, but there is no cross-machine replication or HA, and no authentication. The limits section above lists all of it.
One pip package. No cluster and no model needed to run your first actor.