Skip to content
Arxo Arxo

Introduction to Arxo

Arxo is a comprehensive architecture analysis tool that helps you understand, measure, and enforce architectural patterns in your codebase. It supports TypeScript/JavaScript and Python from a single binary.

Arxo parses your source code, builds dependency and call graphs, and runs published metrics — today that means Agent Architecture and OpenClaw Architecture — to give you scores, findings, and policy guardrails for agent systems and OpenClaw-based skill platforms.

Agent Architecture

Reliability, governance, safety, and coordination for multi-agent and tool-calling systems.

OpenClaw Architecture

Config security, skill governance, observability, and supply chain for OpenClaw skill ecosystems.

Arxo supports two language ecosystems:

  • TypeScript / JavaScript — React, Next.js, Node.js, Bun
  • Python — Django, Flask, FastAPI

Only the following metrics are included in the public build:

MetricWhat it covers
agent_architectureAgent and orchestration: reliability, governance, safety, coordination (scores and findings).
openclaw_architectureOpenClaw platforms: config security, skill governance, observability, supply chain (scores and findings).

Define architectural rules in YAML and enforce them in CI/CD to prevent regressions:

policy:
invariants:
- metric: agent_architecture.overall_agent_health
op: ">="
value: 70
message: "Agent architecture health at least 70"
- metric: openclaw_architecture.overall_openclaw_health
op: ">="
value: 60
message: "OpenClaw architecture health at least 60"
FormatUse case
ConsoleHuman-readable terminal output with pass/fail indicators
JSONMachine-readable for CI/CD pipelines and custom tooling
HTMLInteractive web reports with dependency graph visualization
  • Parallel computation — Metrics run concurrently across available cores.
  • Cached results — Repeated analysis returns instantly until the cache TTL expires.
  • Config-based — Use a config file or defaults to run agent_architecture and openclaw_architecture.

Install the pre-built binary from GitHub Releases, or use npm:

Terminal window
npm install -g arxo

See Installation for other options (Docker, direct download).

Terminal window
# Agent and OpenClaw architecture (published metrics)
arxo analyze
Analyzing project...
Parsed 247 files
Built dependency and call graph
Results:
agent_architecture.overall_agent_health: 72 ✓
agent_architecture.governance_readiness: 85 ✓
openclaw_architecture.overall_openclaw_health: 68 ✓
No policy violations
  1. Compute Metrics

    Run the published metrics: agent_architecture (reliability, governance, safety, coordination) and openclaw_architecture (config, skill governance, observability, supply chain).

  2. Evaluate Policies

    Check each policy invariant against computed metric values. Report violations with expected vs. actual values.

  3. Report

    Output results in your chosen format — Console, JSON, or HTML — and exit with a non-zero code if any invariant fails.

The public build includes two metrics:

  • agent_architecture — Scores and findings for agent and orchestration code: reliability (loop guards, retries, observability), governance (tool policy, validation), safety (sandbox, MCP, A2A), and coordination (routing, fanout, state).
  • openclaw_architecture — Scores and findings for OpenClaw-based skill platforms: config security, skill governance, observability, and supply chain (e.g. ClawHub provenance, metadata validation).

Deep links:

Each metric emits numeric scores (e.g. 0–100) and optional findings (warnings with evidence).

Declarative invariants that must hold. Each invariant references a metric value, a comparison operator, and a threshold:

invariants:
- metric: agent_architecture.overall_agent_health
op: ">="
value: 70
- metric: openclaw_architecture.overall_openclaw_health
op: ">="
value: 60

When an invariant fails, the CLI exits with a non-zero code and reports the violation — making it easy to use as a CI gate.

Run arxo analyze to execute the published metrics (agent_architecture and openclaw_architecture). Use an arxo.yaml config file to customize which metrics run and policy thresholds; see Configuration.

  • Pre-commit hooks — Run arxo analyze to gate on agent and OpenClaw architecture health.
  • IDE integration — The VS Code extension shows violations inline and provides a metrics dashboard.
  • MCP for AI assistants — The MCP server lets Cursor, Claude, and other AI tools call architecture analysis directly.
  • Pull request gates — Enforce policies automatically with --fail-fast.
  • Reports — Export JSON or HTML reports for CI artifacts and review.
  • Agent systems — Score reliability, governance, safety, and coordination; use findings to fix gaps.
  • OpenClaw platforms — Score config security, skill governance, observability, and supply chain; improve over time with policy gates.
arxo.yaml
policy:
invariants:
- metric: agent_architecture.overall_agent_health
op: ">="
value: 70
message: "Agent architecture health at least 70"
Terminal window
arxo analyze --fail-fast
policy:
invariants:
- metric: openclaw_architecture.overall_openclaw_health
op: ">="
value: 60
message: "OpenClaw architecture health at least 60"
Terminal window
arxo analyze --fail-fast
  • CI/CD Integration — Automate checks in GitHub Actions, GitLab CI, and Jenkins.
  • VS Code Extension — Real-time analysis, inline violations, and metrics dashboard.
  • MCP Server — Architecture analysis for AI assistants (Cursor, Claude Desktop).