Mithril — Session — The Chronicles




Purpose
📜
Persistent conversation state with multi-frontend handoff (terminal ↔ telegram ↔
Files
1
LOC
453

Key Concept

A SharedSession can be claimed by one frontend at a time. Messages persist as JSON. Auto-title from first message.

What a Session Contains

Multi-Frontend Handoff

A session can be used by ONE frontend at a time:

Persistence

Sessions are saved as JSON in ~/.mithril/sessions/{id}.json. Auto-saved after every assistant response. Can be listed, resumed, and deleted.

FilePurpose
mod.rsShared chat session — the single source of truth for history, provider, and active frontend.