Skip to main content
What is Session Replay? Record every put, find, and ask operation during an agent session, then replay it with different parameters, models, or frozen context for debugging and auditing.

Overview

1

Record

Start a session and perform operations (put, find, ask). Every action is captured with full context.
2

Save

End the session. Frames, results, answers, tokens, cost, and grounding scores are persisted.
3

Replay

Re-run the session with different parameters or frozen context to debug or audit.

Debug Mode

Re-execute searches with different --top-k or --adaptive settings to find why results were missed

Audit Mode

Freeze retrieval context and replay with different LLMs using --audit --use-model --diff

Key Features

Quick Example

How It Works

1. Start Recording

2. Perform Operations

All operations are recorded with full context:

3. End Session

4. View Session Details

Replay Modes

Standard replay re-runs retrieval to compare results:

Audit Replay (Frozen Context)

Audit mode uses the exact frames from the original session:
Output shows frozen frames:

Model A/B Testing

Compare different models with identical context:
Output shows comparison:

Replay Options

Token & Cost Tracking

Every ask operation tracks token usage and estimated cost:

Supported Models & Pricing (Dec 2025)

Grounding & Hallucination Detection

Every answer is scored for grounding - how well it’s supported by the retrieved context:
When grounding is low, you’ll see a warning:

Answer Caching

Repeated questions with the same context return cached answers instantly:
Cache key is based on: model + query + context hash

Use Case Examples

1. Debug Missing Results

2. Compliance Audit Trail

3. Model Comparison

CLI Commands Reference

SDK Support

Python SDK (Full Support)

Node.js SDK

Best Practices

  1. Use descriptive session names: Include date and purpose, e.g., “Fraud Detection Audit 2024-12-27”
  2. Record minimal reproductions: Capture just enough to reproduce the issue
  3. Use audit mode for compliance: Frozen context ensures reproducibility
  4. Compare models with identical context: Use --audit --use-model --diff for fair comparisons
  5. Monitor grounding scores: Low scores indicate potential hallucination

Next Steps

CLI Reference

Full CLI reference for session commands

Python SDK

Session recording in Python

LLM Providers

Configure OpenAI, Claude, Gemini, and more

Adaptive Retrieval

Learn about adaptive retrieval strategies