Expand description
Amp CLI session parser for JSON files. Amp CLI session parser.
Parses session files from Sourcegraph’s Amp CLI tool. Sessions are stored as
single JSON files at ~/.local/share/amp/threads/T-*.json.
Each file contains a JSON object with:
id: Thread identifier with “T-” prefix followed by UUIDcreated: Milliseconds since epochtitle: Optional session titlemessages: Array of message objects with role, content, and metadataenv.initial.trees: Array of project trees with working directory info
Structs§
- AmpWatcher
- Watcher for Amp CLI sessions.
- Parsed
AmpMessage - Intermediate representation of a parsed Amp message.
- Parsed
AmpSession - Intermediate representation of a parsed Amp session.
Functions§
- find_
amp_ session_ files - Discovers all Amp session files.
- parse_
amp_ session_ file - Parses an Amp JSON session file.