Skip to main content

Track usage, costs, and efficiency across AI coding agents

Project description

aidash

Track usage, costs, and efficiency across AI coding agents.

Python 3.10+ Node 18+ License: MIT Version 0.2.0


Supported Agents

Agent Log Location Status
Claude Code ~/.claude/projects/ Supported
Gemini CLI ~/.gemini/tmp/<hash>/chats/ Supported
OpenAI Codex ~/.codex/sessions/ Supported

aidash auto-detects which agents are installed. No API keys, no config.

Installation

Python engine (required):

pip install aidash

Ink terminal UI (optional, for interactive views):

npm install -g aidash-ui

Development

git clone https://github.com/kaustubhraiiii/aidash.git
cd aidash
pip install -e .
cd frontend && npm install && npm run build

Quick Start

CLI (Python engine):

aidash                          # show available commands
aidash cost --period weekly     # last 7 days of spend
aidash score last               # rate your most recent session
aidash search "auth"            # full-text search across sessions

Ink interactive views (requires aidash-ui):

aidash-ui cost                  # interactive cost dashboard
aidash-ui replay last           # scrollable session timeline
aidash-ui score --trend         # efficiency score with trend
aidash-ui rates --compare       # model pricing comparison
aidash-ui search "auth"         # live search results

JSON output (pipe-friendly, same data as views):

aidash-ui cost --json           # structured JSON envelope
aidash-ui search "auth" --json  # use in scripts

Commands

cost

Unified cost dashboard across all agents.

aidash cost
aidash cost --period monthly --by agent
aidash cost --agent claude_code
aidash cost --export csv        # export to file

replay

Play back a coding session as a scrollable terminal timeline.

aidash replay last
aidash replay today
aidash replay a1b2c3d4

score

Rate your sessions on a 0-100 efficiency scale.

aidash score last
aidash score --trend
aidash score today

rates

Compare pricing across models and agents.

aidash rates
aidash rates --compare
aidash rates --period monthly

search

Full-text search across all sessions.

aidash search "auth migration"
aidash search --agent claude_code "database"
aidash search --project myapp "OAuth"

Claude Code Plugin

Install the aidash slash commands directly into Claude Code:

claude /plugin marketplace add kaustubhraiiii/aidash-cli

This adds five slash commands to your Claude Code sessions:

Command Description
/aidash:cost Cost breakdown with optional period/agent/project filters
/aidash:replay Session timeline playback
/aidash:score Efficiency score with trend analysis
/aidash:rates Per-model pricing from real usage
/aidash:search Full-text session search

Requires pip install aidash with Python 3 on PATH.

Scoring Methodology

Metric Weight What it measures
Prompt-to-completion ratio 30% Clarity of instructions — fewer prompts per agent reply.
Tool call efficiency 25% Diverse, purposeful tool use vs. repetitive thrashing.
Token density 25% Average meaningful output per agent turn.
Session focus 20% Sweet spot of 3–8 distinct tools per session.

How It Works

  • Detection — Scans for ~/.claude/, ~/.gemini/tmp/, and ~/.codex/.
  • Parsing — Reads JSONL/JSON session files for messages, tokens, tool calls, timestamps.
  • Normalization — Maps each agent's format into a common model (Session, Message, TokenUsage, ToolCall).
  • Analysis — Computes costs, efficiency scores, and what-if comparisons. Strictly read-only.

Tech Stack

  • Python 3.10+ — data engine, session parsing, cost calculation
  • Click 8.0+ — CLI framework
  • TypeScript / Node 18+ — Ink frontend
  • Ink — React-based terminal UI
  • termcn — terminal component library

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-feature)
  3. Commit your changes (git commit -am 'Add my feature')
  4. Push the branch (git push origin feat/my-feature)
  5. Open a Pull Request

Bugs and feature requests welcome via Issues.

License

MIT © 2026 Kaustubh Rai

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aidash-0.2.0.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aidash-0.2.0-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file aidash-0.2.0.tar.gz.

File metadata

  • Download URL: aidash-0.2.0.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aidash-0.2.0.tar.gz
Algorithm Hash digest
SHA256 daf7c2196385d4c09c3071df4dd7c458795387982b6357c85068addf2f87f4cb
MD5 1ee379f28c748ebe71221db2dea4c939
BLAKE2b-256 22ee7bb2cc6af4578c909237b9c71b5eb28d320a230c89c1594819e26b316928

See more details on using hashes here.

File details

Details for the file aidash-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aidash-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aidash-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bea3986b9714acd4f033a18866a7b7240e2733325f6f626712f63e0a22561875
MD5 a675315c42982a1d2a1d22fb497affe9
BLAKE2b-256 d4f3432a33bc432f7fbf0de8bb7db1ce7725734f5faeb12c3e8761240230f531

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page