mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 19:47:12 +01:00
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
21 lines
633 B
Python
21 lines
633 B
Python
"""Measure what Claude Code sessions actually cost, from local transcripts.
|
|
|
|
Deterministic analysis with no model in the loop: the CLI parses
|
|
``~/.claude/projects/*/*.jsonl`` and ranks spend by project, tool, MCP server,
|
|
skill, subagent and session shape. Running the audit therefore costs nothing,
|
|
which is the point — an LLM summarising its own token usage would be the
|
|
expense it is trying to measure.
|
|
|
|
Usage::
|
|
|
|
python3 -m token_audit # rolling 7 days
|
|
python3 -m token_audit --days 30
|
|
python3 -m token_audit --json
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
__all__ = ["__version__"]
|
|
|
|
__version__ = "0.1.0"
|