frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ccusage: A CLI tool for analyzing Claude Code usage from local JSONL files

https://github.com/ryoppippi/ccusage
47•kristianp•6h ago

Comments

thebestmoshe•5h ago
I really like how easy it is to run using bunx, pnpx, npx, etc.

But does anyone have thoughts on the security aspect. Getting people used to just running code like this that has full access to the system is slightly concerning.

On the other hand it’s no different than installing npm packages

simonw•4h ago
Maybe this kind of thing would be better written in Deno?

Deno has mechanisms for allow-listing the exact files the process can access - in this case you would want to give it read-only access to the log files in the ~/.claude directory and nothing else.

ghuntley•4h ago
> anyone have thoughts on the security aspect

Yes, you need to run these agents in a sandboxed environment when running full AFK [1] yolo. That could be a Docker container or it could be remote developer environment.

[1] https://ghuntley.com/ralph

pjm331•3h ago
They are talking about the fact that you can run this npm tool without installing it - not running code agents
ghuntley•3h ago
Ah, that's the least of their issues!
extr•5h ago
Have been using this for awhile, I'm on the $100/mo Max plan and have been running $600-800/mo in terms of usage, and I'm hardly pushing it to the limits (missing lots of billing windows).

It makes me wonder what Anthropic's true margins are. I could believe they are overcharging via the API, Sonnet is $3/$15/Mtok and Opus at an ABSURD $15/$75/Mtok. But to break even for me, that would mean that they're overcharging by a factor 5x-10x, which doesn't seem possible. Is the music going to stop for Claude Code the same way it did for Cursor? I have to imagine every incentive in the world is pushing them to lower inference cost rather than introduce stricter limits, and unlike Cursor they can actually can reach into their stack and do this. But I'm not sure they're capable of miracles.

Regardless, I'm bullish Anthropic. Sonnet and Opus don't benchmark as well as O3/Grok4 at pure coding, and aren't as cheap as Kimi K2 for theoretically similar perf, but as any user knows they are top tier at instruction following, highly reliable and predictable, and have a certain intangible theory of mind that is unique to Anthropic.

wyldfire•5h ago
> Sonnet and Opus don't benchmark as well as O3/Grok4 at pure coding

Do any of the others have a "claude code" local agent? Seems like a big gap IMO. Though, it should be pretty easy for them to close that gap.

I don't usually take too many moral stances but I feel like I can't use Grok. It's bad enough Musk did his Nazi salute but his AI product itself is a Nazi too? It might be good at coding but I really can't stomach using it.

sothatsit•4h ago
FWIW, people report that Grok 4 is not very good at coding, and xAI admit this themselves when they said they will be releasing a separate coding model in "the next few weeks".

Also, Google does have Gemini CLI, OpenAI does have Codex CLI, and then there is Aider which can support any model. I think the big difference is that Anthropic's models are the best for this use-case right now, and Anthropic has the Max plan which makes a massive difference to the cost of using Claude Code compared to competitors (although the Gemini CLI has insane free tiers).

I'm not sure how this will play out in the future, because it seems to me that Claude Code does not have much of a moat beyond Anthropic having the best coding models right now, and them offering model usage at heavily discounted prices.

ghuntley•4h ago
> people report that Grok 4 is not very good at coding

There are agentic models and oracle models. It can be modelled on a four-way quadrant of agent vs oracle and high safety vs low safety.

https://ghuntley.com/cars

Grok is oracle and low safety.

perfmode•5h ago
perhaps there are enough inactive subscribers to compensate for the heavy users.
buremba•4h ago
I doubt that there are many inactive subscribers, as Claude Code / Max Plan is relatively new. They might be hoping that way in a couple of months, though.
sothatsit•5h ago
> but as any user knows they are top tier at instruction following, highly reliable and predictable

This is spot on. Reliability is really the #1 priority for me when it comes to coding agents, and Sonnet, and especially Opus, really deliver on it. It makes such a huge difference when it comes to agents. Anthropic really nailed it on this.

My process has become: get Opus to generate a plan, use o3 to help me review the plan, and then get Opus to implement the plan. This works extremely well for me, and is the first time where I've felt AI being actually useful for coding anything more than small prototypes.

buremba•4h ago
How do you switch to o3 to review the plan?
drakenot•4h ago
Have CC output a plan.md file.
extr•4h ago
Personally, I use Repoprompt for this + deeper context integration.
sothatsit•4h ago
I have a workflow that tells Claude Code to generate a planning markdown document: https://gist.github.com/Sothatsit/c9fcbcb50445ebb6f367b0a6ca...
shmoogy•38m ago
I use zenMCP to collaborate with opus
swyx•4h ago
any dropoff in usage limits for you recently? https://techcrunch.com/2025/07/17/anthropic-tightens-usage-l...

cant help but think that you guys yelling about it so loudly from the rooftops is really really not helping your case lol

core-utility•4h ago
I started on the Pro plan a week ago and was already contemplating jumping to Max. When I hit a limit yesterday I upgraded to Max and hit a limit again before seeing the news of the changed usage limit.

For what it's worth, everything seems fixed today.

ghuntley•4h ago
Exactly, swyx. Any flat rate pricing plan is effectively a bet against the future. It's a grab for engineers that's subsidised. Now, the problem is that GPUs are expensive; they are a costly resource to use. Inferencing is expensive.

So what happens is inevitable:

- Wild promises of unlimited usage and consumers feeling tricked when the impossible is impossible to deliver (Cursor pricing changes).

- Quasi-unlimited usage with rate-caps, but the models get quantised to all hell? [search Twitter for folks reporting Claude feels dumber around/near outages].

- Engineers sharing tools and techniques on how to squeeze pounds out of a flat-rate plan (original post), which results in more power users doing that, which puts more pressure on margins.

In goose meme format, "What are the margins?"

https://x.com/GeoffreyHuntley/status/1945636266009399414

kristianp•2h ago
> Any flat rate pricing plan is effectively a bet against the future

How quickly we forget Moore's law, or at least what has replaced Moore's law.

extr•3h ago
People have been saying this since it first came out. I don’t doubt there are occasional bugs/service disruptions but personally I really doubt Anthropic is silently decreasing the limits.
nidnogg•4h ago
What do you mean by music stopping for Cursor? Almost every single developer I run into is transitioning/transitioned to it today. It's stinks like the new VS Code.
ghuntley•4h ago
There's a predictable journey: people start with Cursor when they are new to AI, and quickly move on to something more powerful once they realise that the IDE [1] is holding em back and that forking VSCode is [2][3] tech-debt.

[1] https://ghuntley.com/overton

[2] https://ghuntley.com/fracture

[3] https://ghuntley.com/amazon-kiro-source-code/

extr•4h ago
Their pricing change recently has people reaching for alternatives.

AI Color Palette and Image2Palette Designer

https://www.colorpanda.io/
1•dev_klaus•5m ago•0 comments

Lenia: A new family of cellular automata

https://en.wikipedia.org/wiki/Lenia
1•ycollet•8m ago•0 comments

Intel is shutting down Clear Linux OS

https://www.neowin.net/news/intel-is-shutting-down-clear-linux-os/
2•mikece•15m ago•0 comments

Will robots take my job

https://willrobotstakemyjob.com/
1•FuturisticGoo•16m ago•0 comments

AssistX Now Supports OpenAI and DeepSeek

https://assistx.app/blog/assistx-now-supports-openai-and-deepseek
1•assistx•16m ago•1 comments

What people are vibe coding (and actually using)

https://www.lennysnewsletter.com/p/what-people-are-vibe-coding-and-actually
1•mizzao•24m ago•0 comments

The Great Unracking: Saying goodbye to the servers at our physical datacenter

https://stackoverflow.blog/2025/07/16/the-great-unracking-saying-goodbye-to-the-servers-at-our-physical-datacenter/
3•treve•25m ago•1 comments

Lawyer argues CoD maker can't be held responsible for actions of school shooter

https://www.theguardian.com/us-news/2025/jul/18/call-of-duty-case-texas-school-shooting
2•c420•30m ago•0 comments

Patterns That Eventually Fail (2018)

https://johncarlosbaez.wordpress.com/2018/09/20/patterns-that-eventually-fail/
1•danilor•35m ago•0 comments

We aren't worried about misalignment as self-fulfilling prophecy

https://blog.ai-futures.org/p/against-misalignment-as-self-fulfilling
1•nsoonhui•35m ago•0 comments

Just Found a Site That Auto-Writes Ebooks for You

https://genboox.com/
1•certifiedyn•40m ago•1 comments

Amazon and the "Profitless Business Model" Fallacy

https://www.eugenewei.com/blog/2013/10/25/amazon-and-the-profitless-business-model-narrative
1•serviette•54m ago•0 comments

-

https://meimei168.com
1•nikolayasdf123•1h ago•0 comments

Microsoft Office is using an artificially complex XML schema as a lock-in tool

https://blog.documentfoundation.org/blog/2025/07/18/artificially-complex-xml-schema-as-lock-in-tool/
8•firexcy•1h ago•3 comments

Not Even Bronze: Evaluating LLMs on 2025 International Math Olympiad

https://matharena.ai/imo/
1•amichail•1h ago•0 comments

Ask HN: Is clearing browser data (cookies, cache, history) enough?

1•givemeethekeys•1h ago•4 comments

Hyatt Hotels are using algorithmic Rest "smoking detectors."

https://threadreaderapp.com/thread/1945959030851035223.html
14•RebeccaTheDev•1h ago•2 comments

Stable Act of 2025

https://www.congress.gov/bill/119th-congress/house-bill/2392/text
2•Animats•1h ago•1 comments

Link between Grand Canyon landslide and Meteor Crater impact

https://news.unm.edu/news/unm-study-finds-link-between-grand-canyon-landslide-and-meteor-crater-impact
2•gmays•1h ago•0 comments

GHC will start maintaining an LTS release/branch in the near future

https://blog.haskell.org/ghc-lts-releases/
2•TheWiggles•1h ago•0 comments

Trump Sues Wall Street Journal Publisher Dow Jones over Jeffrey Epstein Article

https://www.wsj.com/business/media/trump-sues-wall-street-journal-publisher-dow-jones-over-jeffrey-epstein-article-0257afee
12•doener•1h ago•0 comments

Scalable Chrysopoeia via Reactions Driven by Deuterium-Tritium Fusion Neutrons [pdf]

https://www.marathonfusion.com/alchemy.pdf
1•hnburnsy•1h ago•0 comments

Gen Z doesn't want to say 'hello' when answering the phone

https://www.businessinsider.com/gen-z-phone-ansewring-hello-2025-7
2•indigodaddy•1h ago•2 comments

Fortescue Halts New U.S. Green Energy Projects

https://oilprice.com/Latest-Energy-News/World-News/Fortescue-Halts-New-US-Green-Energy-Projects.html
2•testrun•1h ago•0 comments

Cold outreach doesn't fail because of bad copy

1•lindseypham•1h ago•0 comments

The Big Oops: Anatomy of a Thirty-Five Year Mistake

https://www.computerenhance.com/p/the-big-oops-anatomy-of-a-thirty
2•SerCe•2h ago•0 comments

Adulthood in the Zone

https://freddiedeboer.substack.com/p/adulthood-in-the-zone
2•paulpauper•2h ago•0 comments

Show HN: Medici, a minimal, open-source, dead-simple Splitwise alternative

https://github.com/mrkaye97/medici
2•mrkaye97•2h ago•0 comments

I'm a Climate Activist. I'm Not Giving Up Just Yet

https://www.nytimes.com/2025/07/18/opinion/clean-energy-solar-wind-power.html
3•dotcoma•2h ago•1 comments

Why did you hide Reddit account? Indian student faces US visa scrutiny

https://www.indiatoday.in/world/us-news/story/us-student-visa-f1-applicant-maharashtra-consular-office-social-media-reddit-indian-explained-more-2757208-2025-07-17
3•hliyan•2h ago•1 comments