measure
Collects what coding agents do: a collector service, and telemetry turned on in each harness on each workstation. Method: METHOD.md.
- Input: OTLP over HTTP/JSON from harnesses; optionally full session transcripts (
transcripts.md). - Output: raw records, one JSON line per request (
/tmp/claude-otel.jsonltoday), each{ts, path, data}. - Data it touches: whatever the harnesses send. Default: no prompts, no code. Nothing is filtered or added.
Files
collector.pyreceives OTLP and appends it unmodified.python3 collector.py, listens on127.0.0.1:7811, settings as constants at the top, stdlib only. Still embeds the first dashboard (GET /,GET /data,POST /consolefor its browser errors).from-transcripts.pysummarizes local Claude Code session logs (last N days) into usage JSON for../00-docs/demo/. Reads usage metadata only, never prompts or code.claude-code-with-telemetryrunsclaudewith telemetry on for that process only.harnesses.mdhow to turn telemetry on in each harness.transcripts.mdopt-in push of full session transcripts (placeholder).storage.mdwhere records live, retention (placeholder).adoption.mdwho has telemetry on vs everyone who should (placeholder).
Install: service (whoever owns the data)
- Ask where it runs: this machine, a cloud VM/container (
../01-deploy/), or an existing OTLP backend (Datadog, Grafana, OpenTelemetry Collector). - Run
collector.pythere, or configure the existing backend to accept OTLP HTTP/JSON. - Choose ingest auth: none (local trial), shared token, or corporate login (
../06-optional/identity.md). - Verify: send a test OTLP record and confirm it is stored.
- Hand over to workstations: endpoint URL, auth, harnesses to enable.
Never change anything outside the chosen host without asking.
Install: each workstation or agent instance
Needs the endpoint URL and auth from the service step.
- Detect installed harnesses.
- For each, apply the matching entry in
harnesses.md, preferring per-user settings files over shell env. - Optionally enable git metadata for repos the user names (
../04-auto-analysis/git.md). - Optionally apply token configs (
../03-analyze/recommendations.md); ask first, they change agent behavior. - Verify: one short prompt per harness, records arrive at the endpoint.
- Report what changed and how to undo it.
Show the user every file before modifying it. Never send prompt or code content unless the owner enabled it explicitly.
To do
- per-day files and a durable store instead of
/tmp - drop or hash repeated identity attributes (email) on ingest
- move the embedded dashboard to
../05-dashboards/