For basic persistence, use
Agent(memory={"session_id": "my-session"}). See Session Persistence.Quick Start
Multi-Worker Safety
Multiple processes can share one session directory — reads reload when the on-disk file changes.| Operation | Safe under concurrency |
|---|---|
get_extended_session() | Yes — mtime-checked cache |
add_message() | Yes — locked read-modify-write |
fork_session() | Yes — reloads parent first |
create_snapshot() / revert_to_snapshot() | Yes — atomic under lock |
Fork, Snapshot, Revert
Related
Session Store
Default and hierarchical store APIs
Session Protocol
Custom Redis/Postgres backends

