Quick Start
Architecture
SnapshotHookData
Snapshot Callbacks
Register callbacks to be notified at every LLM boundary:Hash Verification
Verify snapshot matches actual payload:Snapshot Timing
Configure when snapshots are taken:| Timing | Description |
|---|---|
pre_optimization | Before any optimization |
post_optimization | After optimization (default) |
both | Capture both states |
Drift Detection
Detect if context drifted between snapshot and LLM call:Integration with Monitor
Snapshots are automatically included in monitor output:CLI Usage
Use Cases
- Debugging - Verify exact state sent to LLM
- Auditing - Log all LLM calls with hashes
- Testing - Assert snapshot == expected payload
- Replay - Reproduce exact LLM calls

