Skip to content

Add claude-token-lens to companion apps#285

Merged
rohitg00 merged 2 commits into
rohitg00:mainfrom
wassimbensalem:add-claude-token-lens
Apr 18, 2026
Merged

Add claude-token-lens to companion apps#285
rohitg00 merged 2 commits into
rohitg00:mainfrom
wassimbensalem:add-claude-token-lens

Conversation

@wassimbensalem
Copy link
Copy Markdown
Contributor

@wassimbensalem wassimbensalem commented Apr 15, 2026

What

Adds https://github.com/wassimbensalem/claude-token-lens to the companion apps table, alongside ccusage.

Why it's different

ccusage shows total usage (daily/monthly/session totals). claude-token-lens shows per-source attribution — which specific tool, agent, MCP
server, or skill consumed your tokens, in real time.

Description

Reads Claude Code's local JSONL session files and attributes every token to its source using a two-pass parser.

Features:

  • Live Ink dashboard with quota progress bar, burn rate, ETA
  • Per-source breakdown: tool: Bash, agent: lead-engineer, mcp: context7/resolve, skill: /review
  • 5h rolling window (rate-limit proxy) + 7-day weekly tracking
  • Per-session tab switching (←→)
  • report — scriptable text/JSON output
  • status — cross-project aggregate (matches /stats in Claude Code)
  • Zero telemetry, fully local, MIT license

npm install -g claude-token-lens
claude-token-lens live

587+ downloads in first day on npm.

Summary by CodeRabbit

  • Documentation
    • Added the "claude-token-lens" entry to the ecosystem/plugins table with GitHub link, capability summary (real-time/local token attribution, dashboard, burn-rate/ETA, tracking windows), and global install instruction (npm install -g claude-token-lens), improving discoverability and setup guidance for users.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 30432fd8-cebc-4659-9cac-4285eebe463e

📥 Commits

Reviewing files that changed from the base of the PR and between b76b590 and dd23b53.

📒 Files selected for processing (1)
  • README.md
✅ Files skipped from review due to trivial changes (1)
  • README.md

📝 Walkthrough

Walkthrough

Added a new ecosystem entry for claude-token-lens to the README.md Ecosystem/Plugins table, including its GitHub link, install-count metric, capability summary, and a global npm install command.

Changes

Cohort / File(s) Summary
Documentation
README.md
Inserted a new row for claude-token-lens in the Ecosystem/Plugins table with GitHub URL, install-count, capability description (real-time/local JSONL token attribution, dashboard/burn-rate/ETA, tracking windows), and npm install -g claude-token-lens command.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐇 I hopped to the table, a lens in my paw,
I counted the tokens with barely a flaw,
A GitHub link posted, install line in place,
Claude's toolkit grows brighter — a hop, then a chase! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding a new tool (claude-token-lens) to the companion apps table in the README.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Line 107: The README entry for "claude-token-lens" is placed in the Plugins
table but should be in the Companion Apps & GUIs section; update the README.md
to move or duplicate the table row for "claude-token-lens" (the line containing
the link https://github.com/wassimbensalem/claude-token-lens and the npm install
text) from the Plugins table into the Companion Apps & GUIs table next to
"ccusage" so the documentation matches the PR objective.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 983d8b42-7653-44f1-a248-14d90e9d323f

📥 Commits

Reviewing files that changed from the base of the PR and between b1253bc and b76b590.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md Outdated
| [ccmanager](https://github.com/kbwo/ccmanager) | Coding agent session manager supporting Claude Code, Gemini CLI, Codex, Cursor, Copilot, Cline, OpenCode, Kimi CLI. Smart auto-approval via Haiku, devcontainer support. 940+ stars |
| [ccpm](https://github.com/automazeio/ccpm) | Project management using GitHub Issues + Git worktrees for parallel agent execution. Issue-analyze, epic-start, epic-merge commands. 7,600+ stars |
| [ccusage](https://github.com/ryoppippi/ccusage) | CLI for analyzing Claude Code/Codex usage from local JSONL files. Daily, monthly, session, billing-window reports. Offline, zero API calls. 11,500+ stars |
| [claude-token-lens](https://github.com/wassimbensalem/claude-token-lens) | Real-time token attribution CLI — see exactly which tool, agent, MCP server, or skill is burning your quota. Live Ink dashboard, burn rate, ETA, 5h + 7-day window. Zero telemetry. `npm install -g claude-token-lens` |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Add this entry to the Companion Apps table (objective mismatch).

Line 107 adds claude-token-lens under Plugins, but the PR objective says it should be in Companion Apps & GUIs alongside ccusage. Please move or duplicate the entry there so the change matches the requested scope.

Suggested doc update
- | [claude-token-lens](https://github.com/wassimbensalem/claude-token-lens) | Real-time token attribution CLI — see exactly which tool, agent, MCP server, or skill is burning your quota. Live Ink dashboard, burn rate, ETA, 5h + 7-day window. Zero telemetry. `npm install -g claude-token-lens` |
+ | [claude-token-lens](https://github.com/wassimbensalem/claude-token-lens) | <star-count> | Real-time token attribution from local Claude Code JSONL sessions (tool/agent/MCP/skill), live dashboard, burn rate, ETA, 5h + 7-day tracking, zero telemetry. Install: `npm install -g claude-token-lens` |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 107, The README entry for "claude-token-lens" is placed in
the Plugins table but should be in the Companion Apps & GUIs section; update the
README.md to move or duplicate the table row for "claude-token-lens" (the line
containing the link https://github.com/wassimbensalem/claude-token-lens and the
npm install text) from the Plugins table into the Companion Apps & GUIs table
next to "ccusage" so the documentation matches the PR objective.

rohitg00 added a commit that referenced this pull request Apr 18, 2026
Add claude-token-lens to companion apps
@rohitg00 rohitg00 merged commit d8d5163 into rohitg00:main Apr 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants