Agent Primitives /Log = Durable transport

Every agent action starts as a message.

Publish commands, events, and results to an ordered log that survives process restarts. Consumers can follow live, resume from an offset, or replay the full history.

const shop = laser.stream("shop")
const topic = shop.topic("orders")
await topic.ensure(2)

for (const order of ORDERS) {
  await topic.publish().json(order).send()
}

// one typed handle: Order in, Order out
const replay = await topic
  .json(ORDER_CODEC)
  .records("log-example")
const batch = await replay.poll()
for (const result of batch) {
  if (result.kind === "record") {
    console.log(result.record.value.total)
  }
}

Primitive guarantees

A durable foundation, not another integration.

01

Ordered by design

Partitions preserve the sequence that makes agent decisions explainable.

02

Replay from any offset

Rebuild state, investigate failures, or run a new consumer over existing history.

03

Independent consumers

Services and agents move at their own pace without duplicating the source of truth.

Built forAgent coordinationAudit trailsEvent-driven services

Explore the system

Eight primitives. One durable history.

Combine transport, prompt assembly, recall, relationships, and live views without stitching together disconnected systems.