Skip to content
Arxo Arxo

CI/CD Integration

Integrate Arxo into your CI/CD pipeline to run Agent Architecture and OpenClaw Architecture analysis, enforce policy gates, and produce JSON or HTML reports.

GuideDescription
GitHub ActionsBasic setup, caching, reports, and PR comments
GitLab, Jenkins, CircleCIGitLab CI, Jenkins, and CircleCI examples
Pre-commit HooksRun analysis before commits
DockerDockerfile and Docker Compose
Configuration & TipsConfig strategies, performance, notifications
Exit CodeMeaning
0Success — no violations
1Policy violations detected
2Configuration error
3Analysis error
4Invalid arguments
Terminal window
# Fail on violations
arxo analyze || exit 1
# Fail fast (stop at first violation)
arxo analyze --fail-fast
  1. Start with loose policies — Tighten gradually.
  2. Use a shared config — e.g. .arxo.ci.yaml for consistency.
  3. Cache analysis results — Faster CI runs.
  4. Generate HTML reports — For visual debugging.
  5. Document policies — Why rules exist.
  • Analysis too slow — Exclude test/build directories in config; cache results; use --path for a smaller subdirectory.
  • False positives — Adjust policy thresholds; exclude specific patterns.
  • Memory issues — Exclude large dependencies; increase CI machine size.

Use the MCP server to run analysis from your IDE or AI assistant. Ask: “Run architecture analysis on this project”. See MCP Workflows and analyze_architecture.