Observed Signal · Aug 22, 2026 · Technical Release · Source: DEV Community · Impact: 2/5 · Sentiment: Positive
Large Language Models (LLM) & AI Market: agent-cost: Measure LLM Usage, Separate Task Attribution
The author describes agent-cost, a small tooling primitive that reads local logs from LLM CLIs (e.g., Claude Code and Codex) to produce auditable, machine-readable usage facts (model, token kind, timestamp, count) and an estimated price. The tool is designed to run with no network calls at runtime, carry a versioned price catalog (with SHA-256 digest), and keep session measurement distinct from task attribution. Unknown or unsupported pricing and ambiguous session-to-task bindings are surfaced (labels like "unpriced" or "lower_bound") rather than silently allocated. The author re-ran the published coding-agent-cost 0.1.0 package and notes a catalog version 2026-07-29 and workflows that validate the measure/v1 protocol and data quality.
Provides a small, auditable local measurement primitive for LLM token usage and price estimation; useful to teams needing verifiable usage facts and separation of measurement from attribution but not broadly industry-shifting.
Wichtigste Kernpunkte & Evidenz
- agent-cost reads local logs from LLM CLIs (examples: Claude Code and Codex) and normalizes usage events into facts containing model, token kind, timestamp, and count.
- At runtime agent-cost makes no network calls and declares no Python runtime dependencies; installation from PyPI still requires trust in the supply chain.
- agent-cost carries a versioned pricing catalog with a SHA-256 digest and marks unknown models/prices as 'unpriced' or 'lower_bound' instead of inventing values.
- The published package coding-agent-cost 0.1.0 was rerun (author example) and loaded catalog version 2026-07-29; the tool rejects models not present in the catalog.
- agent-cost enforces a separation of concerns: session measurement is observable, while session-to-task attribution remains an explicit, caller-supplied claim.
Verknüpfte Unternehmen
2 verknüpfte UnternehmenOpenTelemetry
Ein herstellerunabhängiger Open-Source-Standard zur konsistenten Erfassung, Verarbeitung und Weiterleitung von Telemetriedaten in komplexen Cloud-Native-Umgebungen.
“An OpenTelemetry stack is the natural choice for fleet-level metrics, logs, and traces....”
Notion
Eine vereinheitlichte All-in-One-Workspace-Plattform, die Dokumentation, Wissensdatenbanken, Datenbanken und Projektmanagement in einer kollaborativen Oberfläche konsolidiert.
“I had even built a similar view in Notion before....”
Ontology Mapping & Concepts
Track Real-Time Market Signals & Shifts
Set up custom watchlists to receive automated, evidence-grounded executive digests whenever material signals or shifts occur across your tracked landscape.
