Skip to main content

Module session

Module session 

Source
Expand description

Session persistence — Claude Code compatible JSONL format.

Modules:

  • traits — MessageRole, AgentMessage, EntryType
  • format — PersistedMessage, parse_entry, make_persisted
  • time — ISO timestamps, UUID v7 extraction, truncation
  • store — Session struct (CRUD, trimming)
  • meta — SessionMeta, list/search/import

Re-exports§

pub use traits::AgentMessage;
pub use traits::EntryType;
pub use traits::MessageRole;

Modules§

traits
Core traits and types for the session system.

Structs§

Session
Session manager: JSONL persistence, history access, context trimming.
SessionMeta
Metadata about a saved session (lightweight, no full message load).

Functions§

import_claude_session
Import a Claude Code session JSONL into our session directory.
list_sessions
List all sessions in a directory, sorted by creation time (newest first).