By andurilcode
Sift — cross-platform AI coding assistant usage analytics, cost optimization, and session insights
Cross-platform usage analytics for AI coding tools. Sifts through local session data, computes 27 metrics, and generates reports, an interactive dashboard, and a machine-readable JSON export.
# Add the marketplace
/plugin marketplace add AndurilCode/sift
# Install the plugin
/plugin install sift@sift
Then use /sift in any conversation to analyze your AI usage.
# All time, all sources
python3 -m sift
# Last 7 days
python3 -m sift --days 7
# Since a specific date
python3 -m sift --since 2026-03-01
# Filter by source
python3 -m sift --source claude-code
python3 -m sift --source claude-code --source copilot-cli
# Filter by project (substring, case-insensitive)
python3 -m sift --project my-repo
# Combine filters
python3 -m sift --days 30 --source claude-code --project my-repo
# List available sources and projects
python3 -m sift --list
python3 -m sift --list --days 30
| Source | Data Location |
|---|---|
| Claude Code | ~/.claude/projects/ |
| Copilot CLI | ~/.copilot/session-state/ |
| VS Code Copilot Chat | ~/Library/Application Support/Code/User/workspaceStorage/ |
| Cursor | ~/.cursor/chats/ + ~/.cursor/ai-tracking/ |
| Gemini CLI | ~/.gemini/tmp/ |
| Codex CLI | ~/.codex/state_*.sqlite |
All artifacts are written to ~/.sift/:
| File | Description |
|---|---|
report.md | Full markdown report with all metric sections |
dashboard.html | Interactive HTML dashboard with filters and charts |
export.json | Machine-readable JSON with all metrics and per-session data |
prompts/ | User prompts grouped by project |
| Category | Metrics |
|---|---|
| Cost | Total cost, cost/session, cost/action, cost/minute, daily burn, platform comparison |
| Cache & Context | Cache hit rate, amortization, input freshness, context accumulation, tool definition overhead |
| Output | Output ratio (net/gross), stop reason distribution, model mix |
| Productivity | Edit/read ratio, turns before first write, lines ratio, prompt length distribution |
| Health | Session health (median/P90/bloat), session outcome (success/failure), retry ratio, duration trend |
| Adoption | Project adoption, top sessions, model routing efficiency |
Build the plugin (first run also configures git hooks for auto-rebuild on commit):
bash build_plugin.sh
After this, any commit that touches .py files will automatically rebuild analyzer.pyz and bump the plugin version.
pyyaml (for Copilot CLI parsing)No other dependencies. The dashboard uses Chart.js via CDN.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub andurilcode/sift --plugin siftAll 50 reasoning, context engineering, and professional skills in one plugin
17 skills for architecture, code quality, process design, communication, and leadership
11 skills for building, evaluating, and debugging agent context — instructions, harnesses, evals, and documentation
22 reasoning frameworks for analysis, decisions, and problem-solving — from first principles to game theory
LLM rule evaluator — gates agent actions against repo-defined rules using Ollama, Claude, or Copilot
Tracks Claude Code session usage (tokens, costs, skills, MCP, subagents) and sends data to a self-hosted dashboard.
OTel + Hooks analytics for Claude Code. Run /init-claudalytics to configure telemetry and hooks capture for this project.
Real-time session dashboard for Claude Code — cost tracking, analytics, and smart alerts
Analyze Claude Code session token usage, costs, trends, and anomalies
Design fluency for frontend development. 1 skill with 23 commands (/impeccable polish, /impeccable audit, /impeccable critique, etc.) and curated anti-pattern detection.
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls