Hacker Newsnew | past | comments | ask | show | jobs | submit | Maciej-roboblog's commentslogin

This code was written in pure vibe-coding style — mostly for fun. I've got about 10 years of experience in IT, and even I fully agree: a 1000-line main file like this one probably deserves to be locked away in a secure facility. But hey — if it's stupid and it works, it ain't stupid.


<3


thx


Probably for API cost. It is for fixed price plans usage


I will update it in next release :D And you will be able to install the package directly.


If you have some time, feel free to open a pull request — even just with a description or clarification of what's going on! It all sounds super interesting, but I’m still trying to fully grasp the business logic behind it Once I get the idea, I’ll be happy to jump in and implement it.

Repo is here if you're curious: https://github.com/Maciek-roboblog/Claude-Code-Usage-Monitor...


Claude, "Find the hacker news discussion about github repo github.com/maciek-roboblog and implement the suggestion by bilekas. Patch format."

It produced a patch. Unfortunately it was for removing the emojis from the readme.


This code was written in pure vibe-coding style — mostly for fun. I've got about 10 years of experience in IT, and even I fully agree: a 1000-line main file like this one probably deserves to be locked away in a secure facility.

But hey — if it's stupid and it works, it ain't stupid.


The readme is the typical AI verbal diarrhoea of so many words saying so little it hurts. You should ask it to be a bit more concise.

As a separate comment, would it not be better to ask for your plan on first run and setup a config file to remember it? With a note how to change it. Rather than rely on cmd line variables?

Also, shouldn't it be able to pick up the timezone from the local computer? Why would it "default" to a fixed timezone of poland?


Always depends on the cost of failure I suppose.


Please write for me on github or create issue https://github.com/Maciek-roboblog/Claude-Code-Usage-Monitor... and we can try integrate your tool with usage monitor


I can write a blog post about this, plus in the next release, DuckDB will be implemented along with a slightly more advanced max tokens algorithm.


Greta would be proud, but I’m not sure how the number of tokens relates to energy consumption.


Soon the AI companies will have different tiers of plan based on carbon output.

For $200 per month they’ll only use carbon-free power sources for your prompts. At $100 they’ll use nuclear, then $20 per month for coal, and then there will be a free tier where your prompts are powered by throwing baby seals into a furnace.


This may be pedantic, but I'm guessing baby seals are a renewable resource.


It would be on the same level as saying burning wood for power plants would be considered renewable. Is it "Green" now.. Two different things.


<3


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: