> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# replay • AI Agents Framework

> Replay Module for PraisonAI.

# replay

<Badge color="purple">AI Agents Framework</Badge>

Replay Module for PraisonAI.

Provides context replay functionality for debugging and analysis.
Allows stepping through agent execution context changes.

Usage:
from praisonai.replay import ContextTraceWriter, ContextTraceReader, ReplayPlayer

# Write traces during execution

writer = ContextTraceWriter(session\_id="my-session")
writer.emit(event)
writer.close()

# Read and replay traces

reader = ContextTraceReader("\~/.praison/traces/my-session.jsonl")
for event in reader:
print(event)

# Interactive replay

player = ReplayPlayer(reader)
player.run()

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonai import replay
```

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Replay Feature" icon="rotate-left" href="/docs/features/replay" />
</CardGroup>
