ClawMetry module map

September 6, 2026 ยท View on GitHub

GENERATED FILE, do not edit by hand. Regenerate with python3 scripts/gen_module_map.py (CI fails on drift via tests/test_module_map_drift.py).

227 modules, 81 Flask blueprints. CLAUDE.md carries a short curated table of the ones you reach for most often; this is the whole list.

Size bands are deliberately coarse so this file does not churn on every PR: small is under 200 lines, medium under 1k, large under 5k, huge is 5k and up.

The Serves column is the URL space a module owns, collapsed to two path segments. A blank one means the module registers no routes of its own (it is a library, or its rules are built dynamically).

Top level

The Flask app itself plus the optional SQLite time-series companion.

ModuleSizePurpose
dashboard.pyhugeClawMetry - See your agent think ๐Ÿฆž
history.pymediumClawMetry History - Time-series data collection and storage.

HTTP routes (routes/)

One module per feature, each owning one or more Flask blueprints. New endpoints go here, never in dashboard.py.

ModuleSizeBlueprintsServesPurpose
routes/_dedupe.pysmallsibling-dedupe helper for v3 event sums (issue #1451).
routes/advisor.pymediumbp_advisor/api/advisorClawMetry Advisor: natural-language Q&A over your agent.
routes/agents.pymediumbp_agents/api/agentsMulti-agent adapter endpoints.
routes/alerts.pylargebp_alerts, bp_budget/api/_harness, /api/agents, /api/alert-channels, /api/alerts, /api/budget, /api/emergency-stopBudget + Alerts endpoints.
routes/approval_routing.pysmallbp_approval_routing/a, /a/decide, /api/approvalsOSS stub after the impl moved to clawmetry-pro.
routes/assets.pysmallbp_assets/api/assetsOSS asset registry API.
routes/attention.pymediumbp_attention/api/attention, /api/hooks"which of my agents needs me right now".
routes/audit.pysmallbp_audit/api/audit-logEnterprise audit-log query endpoint.
routes/autonomy.pymediumbp_autonomy/api/autonomyAutonomy Score endpoint.
routes/bench.pymediumbp_bench/api/benchHarness Engineering tab endpoints (Blueprint: Harness Benchmarks &
routes/bootstrap.pysmallbp_bootstrap/api/bootstrap"First Contact" bootstrap artifact endpoints.
routes/brain.pylargebp_brain/api/brain, /api/brain-history, /api/brain-stream, /api/llm-call-timelineBrain event feed endpoints.
routes/channels.pylargebp_channels/api/channel, /api/channel-delivery-health, /api/channelsPer-channel adapter endpoints.
routes/cohort.pymediumbp_cohort/api/cohort-compare, /api/sessionsCohort compare and similar runs (WO-60; requirement "Cohort compare and
routes/compliance.pysmallbp_compliance/api/complianceOSS stub after the impl lives in clawmetry-pro.
routes/components.pylargebp_components/api/componentPer-panel component detail endpoints.
routes/context_economics.pysmallbp_context_economics/api/context-coverage, /api/context-economicscontext-window economics (PRD P1-2).
routes/crons.pylargebp_crons/api/agent-intentions, /api/cron, /api/cron-health, /api/cron-run-log, /api/cronsCron CRUD + health + run-log endpoints.
routes/delegated.pysmallbp_delegated/api/cursor, /api/delegated-usageConnect a Cursor account from the dashboard, and read delegated usage.
routes/device.pymediumbp_device/api/device, /device-previewDevice snapshot โ€” a compact, screen-sized JSON for hardware companions.
routes/dives.pymediumbp_dives/api/divesClawMetry Dives: NL-to-SQL-to-chart over the local DuckDB store.
routes/entitlement.pyhugebp_entitlement/api/entitlement, /api/features, /api/license, /api/paywall, /api/runtimes, /api/tiersbp_entitlement.
routes/evals.pymediumbp_evals/api/evals, /api/evaluatorsEval (LLM-as-judge) endpoints.
routes/extensions.pysmallbp_extensions/api/extensionsdiagnostic introspection for the entry-point plugin loader.
routes/fleet_history.pymediumbp_fleet/api/nodes, /fleetMulti-node fleet endpoints.
routes/govern.pysmallbp_govern/api/governagent identity: a principal you can attach things to.
routes/guard.pymediumbp_guard/api/guardGuard โ€” live session control and enforcement policies.
routes/harness.pysmallbp_harness/api/harnessbp_harness โ€” the per-harness custom-tab API.
routes/health.pylargebp_health/api/_internal, /api/agent-presence, /api/authority-violations, /api/backups, /api/config-diagnostics, /api/diagnostics, /api/doctor-findings, /api/gateway-health, /api/handler-latency, /api/health, /api/health-stream, /api/heartbeat-ping, /api/heartbeat-status, /api/heatmap, /api/loop-detection, /api/loop-signals, /api/mcp-stats, /api/rate-limits, /api/reliability, /api/sandbox-status, /api/security-threats, /api/service-status, /api/system-health, /api/version-health, /healthzHealth / reliability / diagnostics / rate-limits endpoints.
routes/heartbeat.pymediumbp_heartbeat/api/heartbeat, /api/heartbeat-loopsHeartbeat liveness panel API endpoint (#686).
routes/hitl.pymediumbp_hitl/api/hitlHuman-in-the-loop (HITL) pause API.
routes/hooks.pylargebp_hooks/api/hooks, /api/lifecycle, /api/sessionslocal receiver for runtime pre-tool hooks.
routes/infra.pylargebp_config, bp_logs, bp_memory, bp_security/api/automation-analysis, /api/context-anatomy, /api/cost-optimization, /api/cost-optimizer, /api/file, /api/flow, /api/flow-events, /api/llmfit, /api/logs, /api/logs-stream, /api/memory, /api/memory-access, /api/memory-analytics, /api/memory-files, /api/memory-rag, /api/numbat, /api/securityInfrastructure / security / config / logs endpoints.
routes/insights.pymediumbp_insights/api/insights, /insightsWeekly Insights Digest endpoints.
routes/inventory.pymediumbp_inventory/api/inventoryAgent Inventory tab API.
routes/local_query.pylargebp_local_query/__local_query__, /api/localcoherent local query API over the DuckDB store.
routes/meta.pylargebp_auth, bp_cloud_relay, bp_gateway, bp_otel, bp_otlp_traces, bp_version, bp_version_impact/.well-known/security.txt, /api/anon-auth-fail-ping, /api/auth, /api/cloud, /api/export, /api/gw, /api/install-age, /api/otel, /api/otel-status, /api/update, /api/version, /api/version-impact, /auth, /v1/logs, /v1/metrics, /v1/tracesAuth / gateway / OTLP / version / version-impact.
routes/nemoclaw.pysmallbp_nemoclaw/api/nemoclawOSS stub after the impl moved to clawmetry-pro.
routes/onboarding.pymediumbp_onboarding/api/account, /api/onboardingthe first-run onboarding gate state machine.
routes/org_analytics.pysmallbp_org_analytics/api/org-analyticsOSS stub after the impl lives in clawmetry-pro.
routes/otel_export.pymediumbp_otel_export/api/otelPro+ OTel/OTLP export.
routes/overview.pylargebp_overview/api/activity-heatmap, /api/channels, /api/cloud-cta, /api/cloud-proxy, /api/device, /api/health-timeline, /api/overview, /api/prompt-errors, /api/sync, /api/timelineMain-dashboard endpoints.
routes/paywall_lifecycle.pysmallthe paywall beacons that reach the funnel.
routes/plugins.pymediumbp_plugins/api/pluginsPlugin registry: unified view of installed plugins (#692).
routes/policy.pymediumbp_policy/api/approvals, /api/approvals-audit, /api/policy, /api/tool-policytool-policy + sandbox + exec-approval audit (PRD P1-1).
routes/quality.pymediumbp_quality/api/qualitythe Quality tab endpoint.
routes/readiness.pysmallbp_readiness/api/repo-readinessbp_readiness โ€” repo AI-readiness.
routes/reasoning.pymediumbp_reasoning/api/reasoningReasoning chain viewer endpoint.
routes/reports.pymediumbp_reports/api/reports, /reports, /reports/export.csvClawMetry Reports: markdown + embedded DuckDB SQL.
routes/review.pymediumbp_review/api/reviewdecision sampling review surface (issue #1615).
routes/rules.pysmallbp_rules/api/v2Rule Builder backend endpoints.
routes/runtime_ingest.pysmallbp_runtime_ingest/api/v1OSS stub after the impl moved to clawmetry-pro.
routes/runtime_memory.pysmallbp_runtime_memory/api/runtimesPer-runtime Memory & Skills browser API.
routes/scheduler.pysmallbp_scheduler/api/run-ledgerOpenClaw run-ledger + queue-lane endpoints.
routes/selfconfig.pymediumbp_selfconfig/api/selfconfigSelf-configuration diff viewer endpoints.
routes/selfdiag.pysmallbp_selfdiag/api/self-reportsAgent self-diagnostics read API (WO-59).
routes/selfevolve.pysmallbp_selfevolve/api/selfevolveOSS stub after the impl moved to clawmetry-pro.
routes/selfhosted_ingest.pymediumbp_selfhosted/api/approvals, /api/cloud, /api/export, /api/ingest, /api/register, /api/selfhosted, /auth, /ingest/autonomy, /ingest/cache, /ingest/events, /ingest/heartbeat, /ingest/logs, /ingest/memory, /ingest/sessions, /ingest/stream, /ingest/system-snapshot, /selfhostedClawMetry Enterprise self-hosted ingest API.
routes/sessions.pyhugebp_sessions/api/agents, /api/authority, /api/compactions, /api/cost-split, /api/delegation-tree, /api/error-triage, /api/export, /api/fallbacks, /api/live-sessions, /api/orchestration, /api/orchestration-summary, /api/outcomes, /api/replay-tree, /api/run-compare, /api/session-errors, /api/session-governance, /api/session-insight, /api/session-lineage, /api/session-model-journey, /api/session-orchestration, /api/session-tools, /api/sessions, /api/spans, /api/subagents, /api/task-runs, /api/transcript, /api/transcript-events, /api/transcript-page, /api/transcripts, /api/waste-summarySession / transcript / sub-agent API endpoints.
routes/signals.pymediumbp_signals/api/briefs, /api/signalsBehaviour Signals read API (WO-58).
routes/skills.pymediumbp_skills/api/skillsSkills fidelity telemetry endpoints (GH #687).
routes/sla.pysmallbp_sla/api/slaSLA policy CRUD + compliance-status endpoints.
routes/spend_flow.pysmallbp_spend_flow/api/spend-flownode-wide AI spend flow (the "where does the
routes/tool_catalog.pymediumbp_tool_catalog/api/mcp-servers, /api/tool-cataloginteractive tool catalog + provenance (PRD P1-3).
routes/tracing.pylargebp_tracing/api/trace, /api/tracesPhoenix/Arize-style tracing endpoints.
routes/trail.pysmallbp_trail/api/traildecision-trail coverage, declared per runtime.
routes/trial.pymediumbp_trial/api/trialLocal free-trial activation.
routes/turn_anatomy.pymediumbp_turn_anatomy/api/turn-anatomyper-turn anatomy waterfall (PRD P0-3).
routes/update_check.pylargebp_update_check/api/update-checkAuto-update checker with changelog notification.
routes/usage.pyhugebp_usage/api/activity-today, /api/anomalies, /api/efficiency, /api/forward-progress, /api/model-attribution, /api/nemo-cap-status, /api/runtime-summary, /api/sessions, /api/skill-attribution, /api/skills, /api/token-attribution, /api/token-velocity, /api/usageUsage / analytics / anomaly / attribution endpoints.
routes/workspaces.pysmallbp_workspaces/api/workspacesMulti-profile OpenClaw workspace discovery + switcher.

Shared helpers (helpers/)

Helpers extracted out of dashboard.py. Route modules still reach the ones that have not moved yet via a late import dashboard as _d.

ModuleSizeBlueprintsServesPurpose
helpers/gateway.pymediumOpenClaw gateway WebSocket RPC + HTTP invoke client.
helpers/hardware.pysmallReal host hardware detection (CPU / cores / RAM / backend).
helpers/logs.pymediumFilesystem helpers for OpenClaw log discovery + tail + grep.
helpers/openapi.pymediumbp_openapi/api/docs, /openapi.jsonauto-generate an OpenAPI 3.1 spec from Flask routes.
helpers/pricing.pysmallPure helpers for mapping model names to providers.
helpers/streams.pysmallBounded SSE client accounting.
helpers/system.pymediumPortable system uptime helpers.

Package (clawmetry/)

The pip-installable package: CLI, sync daemon, DuckDB store, detectors, enforcement and the free runtime adapters.

ModuleSizePurpose
clawmetry/_gate.pymediumShared 402 upgrade_required decorator for entitlement-gated routes.
clawmetry/_paywall.pymediumShared 402 upgrade_required body builder for OSS stub blueprints.
clawmetry/_paywall_events.pylargeIn-process rolling store for POST /api/paywall/event client beacons.
clawmetry/alert_evaluator.pylargeLocal alert-rule evaluator โ€” pure logic, no I/O (PRD #779 PR-D part 2).
clawmetry/approval_events.pysmallThe public seam between approvals and whoever delivers them.
clawmetry/approvals.pylargecloud-mediated approval policy engine.
clawmetry/attention_hook.pysmallthe clawmetry hook attention client.
clawmetry/audit.pymediumappend-only audit log.
clawmetry/behaviour_signals.pylargeBehaviour Signals: what people and agents say about a run (WO-58).
clawmetry/brain_dedupe.pymediumShared collapse for duplicate Brain-feed events.
clawmetry/briefs.pymediumBriefs (WO-62): a saved question, a schedule, and a destination channel.
clawmetry/ccr.pysmallCCR โ€” reversible event-payload compression for the DuckDB store (#2843).
clawmetry/claude_code_gate.pymediumClaude Code pre-tool gate: policy-driven PreToolUse hook, local-first.
clawmetry/cli.pyhuge
clawmetry/cohort_compare.pymediumCohort compare and similar runs: pure math, no I/O (WO-60).
clawmetry/cohort_queries.pymediumStore reads behind cohort compare and similar runs (WO-60).
clawmetry/config.pymediumClawMetry configuration dataclass.
clawmetry/connector_health.pysmallConnector liveness โ€” turn the daemon's connector.health signal
clawmetry/context_coverage.pysmallWhich context-blowout signals we can actually see, per runtime.
clawmetry/context_windows.pymediumContext-window sizing across every runtime ClawMetry ingests.
clawmetry/cost_windows.pysmallOne definition of "today", "this week" and "this month" for every cost surface.
clawmetry/cursor_connector.pymediumOpt-in pull of Cursor cloud-agent usage, with the operator's own key.
clawmetry/daemon_registration.pymediumone place that knows how to make the
clawmetry/deepeval_bridge.pymediumoptional DeepEval metric engine (local-first).
clawmetry/delegated_usage.pymediumUsage for work a runtime handed to another vendor's agent.
clawmetry/detector_behaviour.pymediumIs this agent doing something it does not normally do?
clawmetry/detector_calibration.pymediumHow a detector decides what "too many" means, for THIS runtime and THIS team.
clawmetry/detector_money.pysmallWhat a finding costs, and therefore what to look at first.
clawmetry/detector_surface.pymediumWhat a tool call actually touched, and what a finding may repeat back.
clawmetry/detectors.pylargeresearch-backed, judge-free, CPU-cheap trajectory
clawmetry/deterministic_evaluators.pymediumcheap, code-based checks on sessions.
clawmetry/distinfo_cleanup.pysmallprune stale dist-info left by partial upgrades.
clawmetry/dives_prompt.pymediumprompt template + schema descriptor for Dives.
clawmetry/dives_sql_safety.pymediumSQL safety validator for ClawMetry Dives (AI SQL -> chart over local DuckDB).
clawmetry/doctor.pymediumclawmetry doctor โ€” enterprise network connectivity diagnostics.
clawmetry/efficiency.pymediumEfficiency grade + measured savings (pure math).
clawmetry/endpoints.pysmallclawmetry.endpoints โ€” single source of truth for cloud endpoint resolution.
clawmetry/entitlements.pyhugeopen-core entitlement resolution.
clawmetry/error_signal.pysmallOSS delegating shim after the impl moved to clawmetry-pro.
clawmetry/eval_regression_replay.pymediumPhase 3 evals: regression-replay.
clawmetry/eval_runner.pylargeLocal-first LLM-as-judge scoring of completed sessions.
clawmetry/eval_suite_runner.pymediumPhase 2 evals: golden test sets + CLI runner.
clawmetry/evaluators.pymediumthe named evaluator CATALOGUE (single source of truth).
clawmetry/event_shape.pysmallONE normalizer for every stored event shape.
clawmetry/event_shape_classify.pymediumEvent-shape classifier implementation (private to :mod:clawmetry.event_shape).
clawmetry/extensions.pymediumClawMetry extension/plugin system.
clawmetry/flow_trace.pymediumFlow trace assembly for the Harness Engineering tab (REQ-HB-006).
clawmetry/gateway_protocol.pysmallthe single source of the OpenClaw gateway
clawmetry/gateway_tap.pymediumlive OpenClaw gateway WebSocket subscriber.
clawmetry/git_outcomes.pymediumRead a repository and say whether the agent's work shipped (REQ-OBS-CEA-022).
clawmetry/guard_actuator.pymediumGuard actuator โ€” the ONE path from a decision to a process.
clawmetry/harness_bench.pymediumHarness Engineering bench: pure scoring math, no I/O.
clawmetry/harness_templates.pymediumPer-harness custom-tab template registry.
clawmetry/hook_ownership.pymediumOwnership-aware editing of a shared hooks array.
clawmetry/hooks.pymediumHook lifecycle manager โ€” install manifest and atomic install/uninstall API.
clawmetry/hooks_claude_code.pylargeClaude Code hooks โ†’ ClawMetry: pre-execution approval gate + phone pushes.
clawmetry/incident_alerts.pymediumdeliver a detector incident to a human.
clawmetry/insights.pymediumWeekly Insights Digest โ€” LLM-over-DuckDB summary of the last 7 days.
clawmetry/installs.pymediumInstall census โ€” find every clawmetry copy on this machine and flag stale ones.
clawmetry/instrument.pymediumclawmetry instrument <runtime> โ€” switch a runtime's own OpenTelemetry
clawmetry/interceptor.pymediumZero-config HTTP interceptor for LLM API cost tracking.
clawmetry/latency_tracker.pysmallPer-endpoint p50/p95 handler-latency tracker (in-memory rolling window).
clawmetry/license.pyhugeself-hosted Pro/Enterprise license client.
clawmetry/lifecycle_coverage.pymediumWhich lifecycle facts each runtime can put on a session's trail.
clawmetry/local_server.pymediumHTTP query server hosted INSIDE the sync daemon process.
clawmetry/local_store.pyhugeLocal DuckDB event store โ€” Phase 1 of the local-first refactor (#964).
clawmetry/mcp_install.pymediumRegister the ClawMetry MCP server with each runtime's MCP configuration
clawmetry/mcp_server.pymediumClawMetry MCP server โ€” exposes local telemetry as MCP tools (stdio transport).
clawmetry/narrator.pysmallLLM-narrated alert enrichment (issue #1412, Feature C).
clawmetry/net.pymediumclawmetry.net โ€” outbound TLS + proxy bootstrap for enterprise networks.
clawmetry/numbat_ingest.pymediummap Perplexity numbat NDJSON records into ClawMetry rows.
clawmetry/onboarding_state.pysmallthe ONE writer for the first-run gate's
clawmetry/org_key.pysmallThe organisation key: one secret, shared by the people in one organisation.
clawmetry/otel_exporter.pymediumOutbound OTLP trace exporter for ClawMetry.
clawmetry/otel_profiles.pysmallOTel runtime profiles โ€” the seam between the generic OTLP receiver and
clawmetry/otel_push.pysmallOSS delegating shim after the impl moved to clawmetry-pro.
clawmetry/otlp_json.pymediumstdlib OTLP/JSON decoder (issue #4781).
clawmetry/outcome_classifier.pylargeAuto-label every session with an outcome.
clawmetry/policy_engine.pymediumGuard policies โ€” turn a detector incident into an enforcement decision.
clawmetry/process_control.pylargehost-side process control for runaway agents.
clawmetry/provenance.pymediumEvery number says how it was obtained.
clawmetry/providers_pricing.pymediumClawMetry provider detection and pricing table.
clawmetry/proxy.pylargeClawMetry Proxy โ€” opt-in enforcement layer between OpenClaw and LLM providers.
clawmetry/published_benchmarks.pysmallPublished (harness, model) benchmark pairs for the Harness Engineering tab.
clawmetry/quality.pymediumthe Quality tab's plain-English layer.
clawmetry/quality_signals.pymediumevidence-bearing quality signals.
clawmetry/quality_thresholds.pysmallper-runtime threshold calibration.
clawmetry/query_contract.pymediumthe declared q/1 query contract registry.
clawmetry/question_sets.pymediumQuestion-set approvals โ€” decisions beyond yes/no (WO-52, phase 1).
clawmetry/redaction.pymediumDefense-in-depth secret redaction for the daemon ingest path.
clawmetry/relay.pysmallDEPRECATED stub.
clawmetry/replay_schema.pysmallCanonical replay-event schema.
clawmetry/repo_readiness.pymediumhow legible is this repo to an agent?
clawmetry/resume_hints.pymediumHow a human restarts a session ClawMetry can no longer control.
clawmetry/retention.pysmallHow long this node keeps event data โ€” one answer, with its reason.
clawmetry/risk.pymediumHallucination Risk Indicator (issue #567).
clawmetry/runtime_gates.pymediumPre-tool gates for Cursor and GitHub Copilot CLI โ€” "block before it runs".
clawmetry/runtime_memory.pylargePer-runtime Memory & Skills file browser.
clawmetry/runtime_probe.pymediumzero-dependency presence probes for every
clawmetry/runtime_records.pymediumWhat each runtime actually records โ€” so a surface can say "not recorded"
clawmetry/secure.pymediumclawmetry secure โ€” one-command numbat (Perplexity agent-EDR) setup.
clawmetry/security_posture.pylargeRuntime-aware security posture registry.
clawmetry/self_diagnostics.pymediumAgent self-diagnostics: reports an agent files about its own trouble, and
clawmetry/selfhosted.pysmallclawmetry.selfhosted โ€” ClawMetry Enterprise single-tenant server mode.
clawmetry/session_context.pymediumInputs & context: what the agent was actually given, per session.
clawmetry/session_titles.pymediumChatGPT-style session titles from the first real user prompt.
clawmetry/siem.pysmallOSS delegating shim after the impl moved to clawmetry-pro.
clawmetry/signal_shifts.pymediumSignal shifts (WO-62): notice when a behaviour-signal rate moves, explain
clawmetry/span_reconstruct.pymediumRuntime-agnostic span reconstruction for family runtimes (Agent Graph WS-A).
clawmetry/spend_flow.pymediumnode-wide AI spend flow (pure math).
clawmetry/sync.pyhugeCloud sync daemon for clawmetry connect.
clawmetry/telemetry.pymediumanonymous, opt-out, install-lifecycle pings.
clawmetry/token_confidence.pymediumToken Probability Visualizer (issue #563).
clawmetry/tool_risk.pymediumdeterministic call-level risk classification.
clawmetry/trace.pymediumclawmetry.trace โ€” Dependency-free Python tracing SDK for AI applications.
clawmetry/trace_auto.pymediumAutomatic PR tracing: capture, publish and comment, with no command.
clawmetry/trace_capture.pymediumBuild a PR trace bundle from local session data (PRD-pr-trace.md ยง4b).
clawmetry/trace_stamp.pymediumStamp agent-authored commits with the ClawMetry session that produced them.
clawmetry/trace_viewer.pymediumRender a trace bundle to a self-contained HTML page (PRD-pr-trace.md ยง4g).
clawmetry/track.pysmallclawmetry.track โ€” Zero-config HTTP interceptor for LLM cost tracking.
clawmetry/trail_store.pymediumTrail store methods: session intent, typed-event back-fill, per-session git join.
clawmetry/trial_enforcement.pymediumTrial-end hard-block layer.
clawmetry/update_guard.pysmallCrash-loop rollback guard for daemon self-update (firmware-OTA style).
clawmetry/update_respawn.pymediumWindows out-of-process updater.
clawmetry/waste_flags.pysmallOSS delegating shim after the impl moved to clawmetry-pro.
clawmetry/watchdog.pymediummacOS "app-vanished" watchdog.
clawmetry/winconsole.pysmallclawmetry.winconsole โ€” stop Windows console windows flashing.
clawmetry/workload_profiles.pysmallWorkload profiling for the Harness Engineering tab (REQ-HB-004).

Free runtime adapters (clawmetry/adapters/)

The runtime adapters that ship in open source. The paid ones live in clawmetry-pro and register over the clawmetry.extensions entry point; see sync._FAMILY_ADAPTER_SPECS for the load order.

ModuleSizePurpose
clawmetry/adapters/base.pymediumAdapter base class + unified schemas.
clawmetry/adapters/cost.pysmallShared cost-derivation helper for the bundled runtime adapters.
clawmetry/adapters/goose.pymediumGooseAdapter โ€” read Goose (Block / block/goose) sessions from its SQLite store.
clawmetry/adapters/nemo.pylargeNeMoAdapter โ€” push-mode telemetry exporter for NVIDIA's NeMo Agent Toolkit.
clawmetry/adapters/openclaw.pylargeThis adapter does NOT re-implement OpenClaw session parsing. It delegates
clawmetry/adapters/phase.pymediumThe session phase model: one state machine, every runtime.
clawmetry/adapters/registry.pysmallProcess-wide adapter registry.

Data providers (clawmetry/providers/)

The pluggable data-provider layer behind CLAWMETRY_PROVIDER.

ModuleSizePurpose
clawmetry/providers/base.pysmallAbstract data provider interface for ClawMetry.
clawmetry/providers/local.pymediumLocal filesystem data provider โ€” reads directly from ~/.openclaw files.
clawmetry/providers/turso.pysmallTurso cloud data provider for ClawMetry cloud dashboard.

CLI subcommands (clawmetry/cli_cmds/)

Subcommands dispatched by clawmetry/cli.py.

ModuleSizePurpose
clawmetry/cli_cmds/_common.pymediumShared plumbing for the agent-facing read CLI.
clawmetry/cli_cmds/activity.pysmallclawmetry activity โ€” the Brain event feed from the terminal.
clawmetry/cli_cmds/progress.pysmallclawmetry progress โ€” is the agent actually getting anywhere?
clawmetry/cli_cmds/selfevolve.pysmallclawmetry selfevolve โ€” OSS 402 stub for the Pro self-improvement engine.
clawmetry/cli_cmds/sessions.pymediumclawmetry sessions โ€” list sessions; drill into one with facets.
clawmetry/cli_cmds/usage.pysmallclawmetry usage โ€” token/cost analytics from the terminal.
clawmetry/cli_cmds/waste.pysmallclawmetry waste โ€” the re-read tax, from the terminal.

v2 API (clawmetry/v2/)

The versioned public API surface.

ModuleSizeBlueprintsServesPurpose
clawmetry/v2/route_map.pysmallCanonical tab-name mapping between v1 and v2 URL schemes.
clawmetry/v2/routes.pymediumbp_v2/api/v2ClawMetry v2 Flask blueprint.