Agent primitivesState

Durable session state, with safe branches.

Keep point reads, compare-and-swap updates, and TTLs next to the log. Copy-on-write branches let agents explore a change before promoting it or discarding it.

store = laser.kv("config")
await (
    store.set("service:auth")
    .json({"log_level": "info"})
    .ttl(86_400_000)
    .send()
)

# compare-and-swap on the stored version
entry = await store.get_entry("service:auth")
if entry is None:
    raise RuntimeError("missing")
await (
    store.set("service:auth")
    .json({"log_level": "debug"})
    .expect_version(entry.version)
    .commit()
)

Keyed working data

A durable foundation. Not another integration.

Atomic updates

Compare-and-swap guards shared state against lost updates from concurrent workers.

Lifecycle controls

TTLs keep sessions and temporary working data bounded without a separate cleanup system.

Copy-on-write branches

Test alternate state safely, then promote the branch only when the result is valid.

Built forAgent sessionsFeature flagsWhat-if simulations

Eight primitives. One durable history.

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

Try every primitive on your laptop. Then run it in production.

Laser Stack runs the whole stack locally in Docker. LaserData Cloud runs it for you.