How to Compare Before and After Changes with OpenClaw
Track Lighthouse score changes with OpenClaw and ToolRouter. Before/after deployment comparison.
ToolLighthouse AuditOpenClaw automates before/after Lighthouse comparisons across multiple pages, producing a structured delta report showing score changes, new failures, and resolved issues for each URL. Integrate into your CI/CD pipeline to block deployments that degrade performance and maintain an automated audit trail of every release.
Connect ToolRouter to OpenClaw
1Install the CLI
npm install -g toolrouter-mcp2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp toolsSteps
Once connected (see setup above), use the Lighthouse Audit tool:
- Run a baseline audit before making changes
- Deploy your changes
- Re-run the audit and ask OpenClaw to compare results
- Review improvements and address any regressions
Example Prompt
Try this with OpenClaw using the Lighthouse Audit tool
Run Lighthouse on mysite.com/page now and after I deploy. Compare the scores.
Tips
- Keep a log of before/after comparisons to track optimization progress over time
- Ask for the percentage change in each metric, not just the raw scores
- Use comparisons to build a case for continued performance investment