meticulous-cli-local
meticulous local
Commands for working with Meticulous data relative to your local git branch.
local relevant-sessions
meticulous local relevant-sessions [options]
Purpose: Find recorded user sessions that exercise the code paths changed on your current branch (relative to the merge-base with the base branch). For each session, also returns the baseReplayId — the replay of that session on the merge-base commit — so you can immediately diff your local changes against it.
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--apiToken |
string | — | Meticulous API token; falls back to METICULOUS_API_TOKEN env var |
--showMaybeRelevant |
boolean | false |
Also show sessions that may be affected by the changes |
--startingPointSha |
string | — | Only consider changes since this commit SHA. The merge-base is still used to find the base test run, but the diff is computed from startingPointSha instead. Use in agentic loops to scope each iteration to only the latest changes. |
--format |
multi-file |
— | Set to multi-file to download each relevant session's data as a structured directory tree. See the use-session-data skill for details on the output structure. |
--outputDir |
string | .meticulous/sessions |
Output directory for multi-file format |
Exit behaviour: Exits with code 1 if the project cannot be retrieved or the repository is not a git repo.
Output
The command prints to stderr. Example output:
Base test run ID: tr_abc123
Base test run URL: https://app.meticulous.ai/...
Found 2 relevant sessions:
Session ID: ses_aaa111
Title: User logs in and views dashboard
Description: Covers the login form and redirect to /dashboard
Base replay ID: rpl_base_aaa
Relevance: IsRelevant
Session ID: ses_bbb222
Title: Checkout flow
Base replay ID: rpl_base_bbb
Relevance: IsRelevantBeta
Also found 3 maybe relevant sessions. Run command with --showMaybeRelevant to show these.
Key fields per session:
| Field | Description |
|---|---|
Session ID |
Pass as --sessionId to meticulous simulate |
Title / Description |
Human-readable summary of the user flow this session covers |
Base replay ID |
Replay of this session on the merge-base commit. Pass as --baseReplayId to meticulous simulate to diff your local changes against the base. May be absent if the session has never been replayed on the base branch. |
Relevance |
IsRelevant or IsRelevantBeta — directly exercises changed code. IsMaybeRelevant — may be affected (only shown with --showMaybeRelevant). |
Using --startingPointSha in an iterative loop
When implementing a multi-step change and committing after each step, pass the SHA of the most recent step's commit so the command only considers changes since that checkpoint:
# After committing step N, find sessions for step N+1's uncommitted changes
LAST_SHA=$(git rev-parse HEAD)
# ... make changes for step N+1 ...
meticulous local relevant-sessions --startingPointSha=$LAST_SHA
Without --startingPointSha, the diff is computed against the merge-base, which includes all changes on the branch so far.
Examples
# Find sessions relevant to all uncommitted + committed changes on this branch
meticulous local relevant-sessions
# Include maybe-relevant sessions
meticulous local relevant-sessions --showMaybeRelevant
# Only consider changes since a specific commit (useful after committing step N)
meticulous local relevant-sessions --startingPointSha=abc1234
# Download structured session data for relevant sessions
meticulous local relevant-sessions --format=multi-file
# Download to a custom directory
meticulous local relevant-sessions --format=multi-file --outputDir=./test-data
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