clawmetry AGENTS.md

A short set of instructions for coding agents working in the ClawMetry repository. It explains the product, repository layout, required preparation, and important project rules.

In plain words
What is it for?
Use it when modifying ClawMetry, an observability dashboard for AI agents, especially when planning, implementing, testing, and releasing changes.
Why use it?
It gives agents the project context they need before changing code and helps them choose the correct repository area.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/vivekchand/clawmetry/agents-md
Clone the repo
git clone --depth 1 https://github.com/vivekchand/clawmetry

Made for: Codex, OpenCode.

Per session 1,608 This file is loaded in full into every session.
When invoked 1,608 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01608 $0.01608
Opus 5 $0.00804 $0.00804
Sonnet 5 $0.00322 $0.00322
Haiku 4.5 $0.00161 $0.00161

Measured 2d ago against content hash 53279963fd3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

clawmetry AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — For AI Coding Agents

Before code: write the product record in 8090 (FLYWHEEL.md section 0c). The requirement is where a change is justified, the blueprint is where it is designed, the code is where it is built -- in that order.

Read FLYWHEEL.md first. It is how you ship a change end to end in this repo (code → PR → green CI → [RELEASE] → PyPI → cloud → verified live) and the non-negotiable "done" bar. Then CLAUDE.md for the architecture deep-dive. This file is the short "what to do"; those two carry the detail.

Quick context

ClawMetry is an open-source, real-time observability dashboard for OpenClaw (and other) AI agents. pip install clawmetry && clawmetry — zero config, observation by default. It's a Flask app with an embedded, no-build vanilla-JS frontend; a sync daemon ingests filesystem/gateway/OTLP data into a local DuckDB store, and the app reads from DuckDB to serve the UI.

Where new code goes (open-core split)

ClawMetry is open-core — there are four repos. Pick the right one before writing code; see FLYWHEEL.md §1b for the full decision tree.

  • clawmetry (this repo, public OSS) — OpenClaw runtime + NeMo governance + 21 chat channels + entitlement gate (clawmetry/entitlements.py) + license client (clawmetry/license.py) + Enterprise feature endpoints (entitlement-gated; impl may defer to clawmetry-pro). Examples: routes/otel_export.py, routes/audit.py.
  • clawmetry-pro (private; not on public PyPI; shipped via the license-server wheel download) — the 10 gated runtime adapters (Claude Code, Codex, Cursor, …), Pro paid CLI capabilities, advanced-feature implementations. Plugs in via clawmetry.extensions entry point.
  • clawmetry-cloud (private) — cloud SaaS app + license server (clawmetry-cloud/routes/license.py) + Stripe + admin + closed-wheel hosting (wheels/).
  • clawmetry-landing (private, public site) — marketing + pricing page + Buy buttons. No gated code.

Read the full file on GitHub · 49 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 49 lines · 1,608 tokens per session scan A 53279963fd3e

Subscribe to this mod's changes

clawmetry AGENTS.md is an instructions file published in the GitHub repository vivekchand/clawmetry (401 stars, last pushed 2d ago), licensed MIT. It adds 1,608 tokens to every session, about $0.0080 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.