xihuai18

Agentic Metric — AI skill for Claude Code

AI community

Local-only usage monitor for Claude Code and Codex CLI sessions.

How to install Agentic Metric

This entry records only its repository, not the path inside it, so there is no exact command to give. Open xihuai18/agentic-metric and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentic Metric does

Local-only usage monitor for Claude Code and Codex CLI sessions. Live TUI dashboard, per-agent and per-model cost reports, and heatmaps — nothing leaves your machine.

Alternatives in AI

  • Power BI Agentic Development — Power BI AI skills and Power BI agents for Claude Code and GitHub Copilot: a plugin marketplace of Power BI sk 879 ★
  • Usage — macOS menu bar & Windows tray app pinning Claude Code, Codex & Antigravity quota, burn rate, and cost to your 301 ★
  • Pbi CLI — Power BI CLI - semantic models (.NET TOM) and PBIR reports for token-efficient AI agent usage, built for Claud 217 ★

README

Agentic Metric X

[![PyPI](https://img.shields.io/pypi/v/agentic-metric-x)](https://pypi.org/project/agentic-metric-x/) [![Python](https://img.shields.io/pypi/pyversions/agentic-metric-x)](https://pypi.org/project/agentic-metric-x/) [![Downloads](https://static.pepy.tech/badge/agentic-metric-x)](https://pepy.tech/project/agentic-metric-x) [![Downloads/month](https://img.shields.io/pypi/dm/agentic-metric-x)](https://pypi.org/project/agentic-metric-x/)

[中文文档](README-CN.md)

A local and SSH remote monitoring tool for AI coding agents — like `top`, but for your coding agents. Track token usage and costs across **Claude Code** and **Codex** — with a TUI dashboard and CLI.

**Supported platforms: Linux, macOS, and Windows.**

**All data stays under your control. No telemetry is sent anywhere.** By default the tool only reads local agent data files (`~/.claude/`, `~/.codex/`). If SSH remotes are configured, it reads those remote agent data files over SSH and caches a local copy for aggregation.

![Agentic Metric TUI](agentic-metric-screenshot.png)

Features

  • Cost estimation — Per-model pricing table with CLI management, calculates API-equivalent costs; supports long-context and cache-duration pricing
  • Unified report — One report command for today / week / month / custom date range, with agent × provider × model breakdown, top projects, and hourly/daily heatmaps
  • TUI dashboard — Terminal UI with auto-refresh, stacked summary cells, heatmap strip, adaptive 14-day / 12-week / 12-month cost trends, and agent → provider → model breakdown
  • Multi-agent — Plugin architecture; supports Claude Code and Codex today, extensible

Agent Data Coverage

Field Claude Code Codex
Session ID ✓ ✓
Project path ✓ ✓
Git branch ✓ ✓
Model ✓ ✓
Input tokens ✓ ✓
Output tokens ✓ ✓
Cache tokens ✓ ✓¹
User turns ✓ ✓
Message count ✓ ✓
First/last prompt ✓ ✓