Skip to content

feat(cli): Add replay command to view results from JSONL log files#192

Open
dcramer wants to merge 3 commits intomainfrom
claude/slack-session-GTvhU
Open

feat(cli): Add replay command to view results from JSONL log files#192
dcramer wants to merge 3 commits intomainfrom
claude/slack-session-GTvhU

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Feb 20, 2026

Add warden replay <file.jsonl> [file2.jsonl ...] command that renders
the interactive terminal UI from saved JSONL log files. Parses JSONL
records back into SkillReport objects, supports merging reports from
multiple files, and works with all existing output and filtering options
(--json, --report-on, --min-confidence).

Useful for re-examining past runs, re-filtering results at different
thresholds, or sharing reports without re-running analysis.

Fixes #189

Add a new CLI command `warden replay <file.jsonl> [file2.jsonl ...]` that
allows users to replay results from JSONL log files and render the
interactive UI as if Warden had just run.

This feature enables:
- Inspecting historical Warden executions without re-running them
- Sharing findings with colleagues by distributing log files
- Testing and development of rendering functionality

The replay command supports the same output modes as live execution:
- Interactive TTY mode with colored boxes
- Plain CI mode
- JSON output (--json)
- Filtering by severity (--report-on) and confidence (--min-confidence)

Closes #189

Co-Authored-By: Claude <noreply@anthropic.com>

https://claude.ai/code/session_01Wd8B1oSH4EjDTc7Kq8Rm46
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@dcramer dcramer changed the title Add replay command to render results from JSONL log files feat(cli): Add replay command to view results from JSONL log files Feb 20, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Forward original run metadata (runId, timestamp, traceId) when replaying
with --json instead of generating new values. Use max duration across
files instead of summing, which was misleading for multi-file replays.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI command to replay results from JSONL log files

2 participants

Comments