@amitxlabs/ai-lens
v0.1.0
Published
AI Developer Intelligence Suite — inspect Claude Code, Cursor, GitHub Copilot, Aider and Continue from one terminal command
Downloads
26
Maintainers
Readme
AI Lens
AI Developer Intelligence Suite — inspect Claude Code, Cursor, GitHub Copilot, Aider and Continue from a single terminal command.
npx ai-lensWhat it shows
Terminal output
- Detected AI tools with version, config paths, storage usage
- Claude Code: hooks, memory files, projects, MCP servers, subagents, plugins, cost tracking status
- Activity heatmap (GitHub-style, 24 weeks) and 30-day sparkline
- Per-tool health score with recommendations
- Storage breakdown across all AI tools
Web dashboard (--web)
- Sidebar navigation: Overview · Activity · Tools · Config
- Glowing metric strip (sessions, active days, streak, subagents, MCPs, health score)
- Sessions-over-time area chart with 30d / 90d toggle
- Config health radar across 6 dimensions
- Weekday and hour-of-day distribution charts
- GitHub-style heatmap (26 weeks)
- Tool completeness rings with per-tool breakdowns
- Storage donut, model detection, full hooks table, env var optimizer
All charts are pure SVG — no CDN dependencies, works fully offline.
Usage
# Scan all tools (terminal output)
npx ai-lens
# Open browser dashboard
npx ai-lens --web
# Scan a single tool
npx ai-lens --tool claude
npx ai-lens --tool cursor
# JSON output (pipe-friendly)
npx ai-lens --json
npx ai-lens --json | jq '.claude.sessionCount'
# Export JSON report to file
npx ai-lens --export report.json
# Extended output (storage breakdown, allowed tools, permissions)
npx ai-lens --verboseTools scanned
| Tool | Config paths inspected |
|---|---|
| Claude Code | ~/.claude/settings.json, costs.jsonl, history.jsonl, projects, hooks, MCP auth cache |
| Cursor | ~/.cursor/, ~/Library/Application Support/Cursor, extensions dir, MCP config |
| GitHub Copilot | ~/.config/gh-copilot/config.yml, VS Code / Cursor extensions |
| Aider | ~/.aider.conf.yml, ./aider.conf.yml, binary detection |
| Continue | ~/.continue/config.yaml, ~/.continue/config.json |
Install globally
npm install -g ai-lens
ai-lens --webRequirements
- Node.js ≥ 16
- macOS or Linux (Windows: terminal output works; web dashboard works; some paths differ)
License
MIT
