Session Replay

Replay lets you step through past agent sessions like a debugger — see every tool call, every thought, every result.


Usage

:DwightReplay                    " Telescope picker of all sessions
:DwightReplay latest             " Jump to the most recent session
:DwightReplay 20250301           " Partial filename match

The picker shows each session's timestamp, event count, and task name. The Telescope preview pane displays the full event timeline.


KeyAction
j / / l / SpaceNext step
k / / hPrevious step
JJump to next tool call (skip thoughts/usage)
KJump to previous tool call
ggFirst step
GLast step
vToggle single/cumulative view
q / EscClose

Event Types

Each event is rendered with an icon and details:

IconEventShows
🚀Session startBackend, task prompt
🔧Bash command$ command
📖File readFile path
📝File writeFile path
✏️File editFile path
🔍SearchPattern
📋Tool resultOutput text
🔴Tool errorError message
💭Agent thoughtReasoning text
📊Token usageInput/output counts
💰Final costTotal tokens + duration
✅/❌FinishExit code, duration, output size

Events show time offsets from session start (+12s, +45s).


View Modes

Single view (default): Shows only the current event with a marker and running stats (tools used, thoughts, errors so far).

Cumulative view (toggle with v): Shows all events from session start up to the current position. Useful for seeing the full context of a tool call.

Both views include a progress bar at the top: Step 5 / 32 [████████░░░░░░░░░░]


Data Source

Replay reads JSONL log files from .dwight/agentic-logs/. These are written automatically by the agentic module during every agent session. Each line is a JSON object with a type and timestamp field.

No configuration needed — if you've run any agent tasks, the logs exist.