meticulous-cli-debug
meticulous debug
Commands for setting up self-contained debug workspaces that bundle replay data, session recordings, diffs, analysis artifacts, and AI agent context files. The workspace is designed to be opened in an AI coding tool (Claude Code, Cursor, etc.) for assisted debugging.
Workspaces are created under ~/.meticulous/debug-sessions/ by default.
debug replay-diff
meticulous debug replay-diff <replayDiffId> [options]
Purpose: Debug a specific replay diff. Downloads the head and base replays, session data, diff results, and PR diff, then generates a workspace with analysis artifacts and AI context.
Required arguments:
| Argument | Type | Description |
|---|---|---|
replayDiffId |
string (positional) | The replay diff ID to debug |
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--apiToken |
string | — | Meticulous API token; prompts OAuth login if omitted |
--sessionId |
string | — | Override the session ID for this replay diff |
--workspaceName |
string | timestamp | Custom name for the debug workspace directory |
--screenshot |
string | — | Screenshot filename to focus analysis on |
Example:
meticulous debug replay-diff rd_abc123
meticulous debug replay-diff rd_abc123 --screenshot="checkout-page.png"
debug replay
meticulous debug replay <replayId> [options]
Purpose: Debug a replay by ID, optionally comparing it against a base replay. Useful when you have replay IDs from simulation output rather than a replay diff ID.
Required arguments:
| Argument | Type | Description |
|---|---|---|
replayId |
string (positional) | The replay ID to debug (head replay) |
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--apiToken |
string | — | Meticulous API token; prompts OAuth login if omitted |
--baseReplayId |
string | — | Base replay ID to compare against |
--sessionId |
string | — | Override the session ID |
--workspaceName |
string | timestamp | Custom name for the debug workspace directory |
--screenshot |
string | — | Screenshot filename to focus analysis on |
Example:
# Debug a single replay
meticulous debug replay rpl_aaa
# Debug with comparison against a base replay
meticulous debug replay rpl_aaa --baseReplayId=rpl_bbb
debug clean
meticulous debug clean [--all]
Purpose: Clean up debug workspaces. By default, opens an interactive menu to select which workspaces to delete. Use --all for non-interactive deletion (e.g. from scripts or AI agents).
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--all |
boolean | false |
Delete all workspaces without prompting (useful for non-interactive environments) |
Interactive mode (default): Lists all workspaces with their sizes, then offers three choices:
- Delete all workspaces (with confirmation)
- Select individual workspaces to delete
- Cancel
Non-interactive mode (--all): Lists all workspaces and deletes them immediately without prompting.
Example:
# Interactive cleanup
meticulous debug clean
# Non-interactive — delete everything
meticulous debug clean --all
Workspace Contents
Each debug workspace contains:
| Directory | Contents |
|---|---|
debug-data/ |
Replay archives, session recordings, diff results, filtered logs, and analysis artifacts |
.claude/ |
AI agent context files (CLAUDE.md, rules, skills, hooks) for assisted debugging |
project-repo/ |
A git worktree of your codebase at the relevant commit (only if run from within a git repository) |
The workspace path is copied to the clipboard on creation. Open it in your preferred tool:
# Claude Code
cd "<workspace-path>" && claude
# Cursor
cursor "<workspace-path>"
Git Worktree
When run from within a git repository, the command detects the repository root, fetches the relevant commit SHA (from the replay diff or replay), and creates a git worktree at project-repo/ inside the workspace. This is automatically cleaned up by debug clean.
More from alwaysmeticulous/skills
meticulous-cli
Overview of the Meticulous CLI tool and its global options. Use when asking about the meticulous CLI in general, available commands, or global flags that apply to all commands.
25test-with-meticulous
Run after implementing any frontend change to verify its visual impact. Triggers a Meticulous test run, then inspects screenshot diffs to classify each visual change as intended or unintended. Use this before marking a frontend task as complete.
21meticulous-simulate-and-diff
Run a Meticulous session simulation against a live URL and analyze the visual output — either by inspecting screenshots directly (quick-check mode) or by comparing pixel and HTML diffs against a base replay. Use when checking whether a code change has introduced visual regressions for a specific session.
20meticulous-cli-schema
Meticulous CLI schema command for outputting the full CLI command structure as JSON. Use when you need to programmatically inspect available commands and their options, or when building tooling that drives the Meticulous CLI.
19meticulous-cli-download
Meticulous CLI download commands for fetching recorded sessions, replays, and test runs to the local data directory. Covers `meticulous download session`, `meticulous download replay`, and `meticulous download test-run`.
19meticulous-cli-auth
Meticulous CLI authentication commands. Use when logging in, checking who is authenticated, or logging out of the Meticulous CLI. Covers `meticulous auth whoami` and `meticulous auth logout`.
19