Skip to content
reaatech

reaatech/session-continuity-kit

0Last commit: Jun 21, 2026GitHub →

These packages give you a complete session management layer for multi-turn AI agent conversations, handling conversation history windowing, token budget enforcement, context compression, and agent handoff. You'd adopt them to avoid rebuilding the same session lifecycle logic—create, update, end, delete, and list sessions with participants and messages—that every agent system needs. The most distinctive thing is the pluggable storage adapter interface with production backends for Firestore, DynamoDB, and Redis, each implementing optimistic concurrency with version-checked writes and deterministic message ordering, plus three compression strategies (sliding window, summarization, hybrid) with cached summaries so the summarizer isn't re-invoked on every fetch.

Packages

6 packages

@reaatech/session-continuity

v0.1.0
A typed session lifecycle manager for multi-turn AI conversations, providing `SessionManager` with token budget enforcement, configurable context compression (sliding window, summarization, or hybrid), optimistic concurrency, and a storage-agnostic `IStorageAdapter` interface.
status
published
published
29 days ago

@reaatech/session-continuity-storage-dynamodb

v0.1.0
A DynamoDB storage adapter implementing `IStorageAdapter` from `@reaatech/session-continuity`, providing session and message persistence using a single-table design with composite keys and two global secondary indexes. It pairs with `@aws-sdk/client-dynamodb` and `@aws-sdk/lib-dynamodb` at runtime.
status
published
published
29 days ago

@reaatech/session-continuity-storage-firestore

v0.1.0
A Firestore storage adapter implementing `IStorageAdapter` from `@reaatech/session-continuity`, providing session and message persistence in Firestore collections with TTL support, batch operations, and optimistic concurrency via transactions.
status
published
published
29 days ago

@reaatech/session-continuity-storage-memory

v0.1.0
An in-memory storage adapter implementing `IStorageAdapter` from `@reaatech/session-continuity`, using `Map`-based storage with optional simulated TTL expiration for development, testing, and single-process prototypes.
status
published
published
29 days ago

@reaatech/session-continuity-storage-redis

v0.1.0
A Redis storage adapter implementing `IStorageAdapter` from `@reaatech/session-continuity`, providing session and message persistence using Redis hashes, sorted sets, and native TTL with optimistic concurrency via `WATCH`/`MULTI`/`EXEC` transactions. Requires a `redis` v4+ client instance and the `@reaatech/session-continuity` package.
status
published
published
29 days ago

@reaatech/session-continuity-tokenizers

v0.1.0
A set of token counter implementations (exact WASM-based tiktoken for OpenAI, exact Anthropic, and a fast heuristic estimator) that implement the `TokenCounter` interface from `@reaatech/session-continuity`, plus a factory that auto-selects the right tokenizer by model name.
status
published
published
29 days ago

Comments

Sign in with GitHub to comment and vote.

Loading comments…