streamstack icon indicating copy to clipboard operation
streamstack copied to clipboard

[feature] Agent sessions on Durable Streams

Open addu390 opened this issue 2 months ago • 0 comments

Summary

A session layer for agent harnesses on top of the existing Durable Streams listener: typed events, resume from offset, live tail, and search.

Pico already speaks DS. What agent runtimes want on top is an event envelope and a way to find things in a long session, without a separate database.

Shape

  • A session is a stream under a prefix, created on first append.
  • Events carry type, id, created_at, and a JSON body. Accept a bare object, an array, or {events: [...]}.
  • offset=now on live reads to skip history.
  • ?type= filter on reads.
  • ?q= full-text search across a session, BM25 ranked.
  • Anthropic Managed Agents compatible request and response shape, so a harness can switch by changing the base URL.

Notes

  • Search is the only piece that needs new storage. A per-stream inverted index built from the log, rebuildable, no separate service.

addu390 avatar Sep 05 '26 14:09 addu390