Introduction

Universal Git telemetry and digital receipts for AI coding agents.

Qodewk is an open-source, universal telemetry and digital receipt generator built for the AI coding agent era.

The Git revision graph and local filesystem constitute the single source of truth across all coding agents. Qodewk extracts mutations from your repository, harvests provider telemetry (Claude Code, Cursor, Codex, Windsurf, Aider, Antigravity), computes dual-engine token and cost estimations, and generates verifiable digital receipts.

Prime Directive:
"Git tells Qodewk what changed. Provider telemetry, when available, tells Qodewk what was consumed. Qodewk must never present an inference as exact usage."

Features

Qodewk provides a comprehensive telemetry suite designed with cryptographic boundaries and zero code exfiltration:

Universal Agent Telemetry

Harvest session logs from Claude Code, Cursor, Codex, Windsurf, Aider, and Antigravity.

Privacy by Construction

Zero raw source code or diff hunks ever leave your local machine.

Git-Native Telemetry

Non-blocking background Git hooks (<5ms) and local Git Notes (refs/notes/qodewk).

Dual-Engine Cost Estimation

Deterministic session token counting with AST-calibrated token density fallback.

Cryptographic Proof

HMAC-SHA256 salted digital receipts verifying commit, mutations, and agent provenance.

Thermal Receipts

Retro monospace box-drawing terminal receipts and interactive web cards.

Autonomous CI/CD

Composite GitHub Actions posting sticky pull-request cost and attribution breakdowns.

Multi-Model Rate Cards

Versioned rate registry tracking input, output, cache-read, and cache-write pricing.

Offline & Local First

Full terminal receipts and SQLite state without needing cloud connectivity.


Invariant Engineering Principles

  1. Never Fake Precision: All metrics are explicitly labeled by provenance (observed, estimated, imported, verified, or unknown). Costs always include confidence bounds.

  2. Privacy by Construction: Raw source code and diff hunks never leave your machine. Public receipts transmit only file counts, line mutations, language ratios, token counts, and HMAC-SHA256 salted hashes under a strict 50 KB payload cap.

  3. Git Hooks Under 5ms: Hooks (post-commit, post-rewrite) spawn background processes detached from standard streams and exit immediately, coexisting cleanly with Husky and Lefthook.

  4. 100% Offline & Local First: Generate terminal thermal receipts and persist to SQLite (~/.qodewk/state.db) and Git Notes (refs/notes/qodewk) without needing internet connectivity or a cloud account.