Meticulous for coding agents
This page is addressed to AI coding agents. If you're a human setting Meticulous up for your agent, you probably want the setup guide instead — it covers the same ground, aimed at you rather than at the agent.
Instructions
For agents: the Meticulous web app doesn't present results in an agent-friendly format. Interact with Meticulous through the CLI or MCP instead: they expose the same test runs, diffs and screenshots in a machine-readable form.
Check whether the CLI or MCP is set up.
- CLI: run
meticulous --version(ornpx @alwaysmeticulous/cli --version, in which case call the CLI this way instead of viameticulous)- Compare the version against
npm view @alwaysmeticulous/cli versionand, if it isn't up to date, suggest the user update it:npm install --global @alwaysmeticulous/cli@latest
- Compare the version against
- MCP: check whether a Meticulous MCP server is available (URL: https://app.meticulous.ai/api/mcp)
- If neither is set up, suggest the user either install the CLI (
npm install --global @alwaysmeticulous/cli@latest) or add the MCP server (https://app.meticulous.ai/api/mcp) - ask which they'd prefer - and also point them to the setup docs.
- CLI: run
Authenticate. If using the CLI, check whether it's logged in: run
meticulous auth whoami. If not logged in:- On the user's own machine:
meticulous auth login --non-interactive(prints a URL for them to open) - On a remote or sandboxed machine (cloud agent, SSH, container), where a browser on another device can't reach this machine's localhost:
meticulous auth login --device
- On the user's own machine:
Investigate the results.
- Check for the
meticulous-reviewskill and follow its instructions.- If not installed, suggest the user install the Meticulous skills:
npx skills add alwaysmeticulous/skills --skill "*" --agent claude-code --agent codex --agent cursor -y - Re-running that same command is also how to update: it refreshes the installed skills and adds any new ones
- If not installed, suggest the user install the Meticulous skills:
- If the skill isn't available, here's the rough approach:
- Find the test run ID:
- CLI:
meticulous agent test-run-for-commit(optionally--commitSha <sha>; defaults to the current git HEAD) - MCP:
get_test_run_for_commit(commitSha="<sha>") - Test run page URL:
/projects/<organization>/<project>/test-runs/<testRunId>
- CLI:
- Get the diffs for that test run:
- CLI:
meticulous agent test-run-diffs --testRunId <testRunId> - MCP:
get_test_run_diffs(testRunId="<testRunId>")
- CLI:
- Investigate each diff, using the
replayDiffIdandscreenshotNamefrom the diffs list:- CLI:
meticulous agent image-files(downloads the images) ormeticulous agent image-urls(signed URLs instead), with--replayDiffId <replayDiffId> --screenshotName <screenshotName>- If needed:
meticulous agent dom-diff --replayDiffId <replayDiffId> --screenshotName <screenshotName> - If needed:
meticulous agent timeline-diff --replayDiffId <replayDiffId>
- If needed:
- MCP:
get_image_urls(...)- If needed:
get_dom_diff(...),get_timeline_diff(...)
- If needed:
- CLI:
- Find the test run ID:
- Check for the