RFC 0001 · SessionQL 1.0 and Query IR 1.0
GitHub Stars

One durable session record for every agent runtime.

USL normalizes runtime-specific logs into a canonical append-only record. RFC 0001 specifies the SessionQL query plane that can be built on top.

sessionql
from sessions
| search hybrid $question top 3
| where provenance.runtime in $runtimes
| project sessionId, title, search.hits
| sort by search.score desc
| limit 20

Portable semantics

Keep one durable record across runtimes.

The L1 log stays simple. Typed query semantics, evidence, and policy-aware sidecars compose above it without taking ownership of the facts.

SessionQL

A typed pipeline language for events, search, bounded patterns, lineage, and aggregation.

One source of truth

The append-only L1 log remains canonical; every index and projection is rebuildable.

Fixed snapshots

Every result and cursor is pinned to one asOfSeq, policy, and set of index generations.

Evidence-first search

Text, semantic, and hybrid results link highlights and offsets back to canonical events.

Runtime lineage

Traverse fork, resume, handoff, and subagent edges without losing provenance.

Replay + tail

Bounded subscriptions move from deterministic replay into an at-least-once live stream.

Product scenarios

What session data can power.

SESDB turns agent history into reusable infrastructure—for model improvement, personal intelligence, unified operations, and portable work.

Train and distill better models

System architecture

Trace a session from capture to storage and handoff.

Select a module to inspect its responsibilities, dependencies, runtime flow, and source-backed implementation notes.

Open full screen