Re:Claude Code's source code has been leaked via a map file ...
by aiedwardyi on Tuesday March 31, 2026 @07:45AM
(#47585929)
interesting to see cost-tracker.ts in there. makes you wonder why they track usage internally but don't surface it to users in any meaningful way
[ Parent
| on HN ]
Re:Claude Code's source code has been leaked via a map file ...
by fcarraldo on Tuesday March 31, 2026 @08:25AM
(#47586314)
They do, you can just type /cost
Re:Claude Code's source code has been leaked via a map file ...
by jsmith45 on Tuesday March 31, 2026 @08:43AM
(#47586518)
Cost tracking is used if you connect claude code with an api key instead of a subscription. It powers the /cost command.
It is tricky to meaningfully expose a dollar cost equivlent value for subscribers in a way that won't confuse users into thinking that they will get a bill that includes that amount. This is especially true if you have overages enabled, since in a session that used overages it was likely partially covered by the plan (and thus zero-rated) with the rest at api prices, and the client can't really know the breakdown.
Re:Claude Code's source code has been leaked via a map file ...
by thebigspacefuck on Tuesday March 31, 2026 @10:43AM
(#47588085)
Configure it to show on your status line