frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

TIL: You can read Claude Code quota locally (no scraping, no API)

3•micaeked•1h ago
~/.claude/settings.json:

  {
    "statusLine": {
      "type": "command",
      "command": "cat > ~/.claude/statusline_raw.tmp && mv ~/.claude/statusline_raw.tmp ~/.claude/statusline_raw.json; exit 0"
    }
  }
cat ~/.claude/statusline_raw.json | jq '.rate_limits'

  {
    "five_hour": {
      "used_percentage": 105,
      "resets_at": 1776441600
    },
    "seven_day": {
      "used_percentage": 34,
      "resets_at": 1776970800
    }
  }
A couple implementation details:

- The command must exit 0, otherwise Claude Code treats it as a failure

- It should not write anything to stdout, or it will show up in the UI

- Writing with `tmp && mv` avoids partial reads if something else is consuming the file

- The quota data is not present until the first request comes back

This is actually somewhat documented (the `statusLine` command receives structured JSON on stdin, including `rate_limits`), but I didn't notice till recently.

I was trying to build a small widget that shows current quota usage, updates live, and notifies me when the 5-hour window resets if I've run out.

Comments

magicalhippo•1h ago
We got both Claude and Codex at work, and I was very surprised that Claude Code doesn't show your limits like Codex does.

Though I guess I understand why, if you don't know it's hard to pace yourself and easier to fork out money for more tokens.

Looking for feedback on a paper about a revision-capable language model [pdf]

https://github.com/Sean-Diab/Reviser/blob/main/main.pdf
1•param-updater•1m ago•1 comments

Under the hood of MDN's new front end

https://developer.mozilla.org/en-US/blog/mdn-front-end-deep-dive/
1•caisah•3m ago•0 comments

OpenAI expands Codex beyond coding with computer use, memory, and plugins

https://www.neowin.net/news/openai-expands-codex-beyond-coding-with-computer-use-memory-and-plugins/
1•Brajeshwar•4m ago•0 comments

"AI Affiliate Campaign Builder – Auto-generates funnels,leads and promos in 60s"

https://3000-ixuoqvbqmnmkcitl7dir1-6ba1a608.us2.manus.computer
1•rooseveltc•4m ago•0 comments

Recall issued for power banks after explosion kills woman

https://www.cpsc.gov/Recalls/2026/Casely-Reannounces-Recall-of-Wireless-Portable-Power-Banks-Due-...
1•labelbabyjunior•4m ago•0 comments

Closed Source Is a Business Decision, Not Security

https://javiergonzalez.io/blog/closed-source-as-a-security-model/
1•javier123454321•7m ago•0 comments

The Patchwright – Cyberpunk Short Film [video]

https://www.youtube.com/watch?v=-Rzl7nUdEs4
1•daureg•8m ago•1 comments

International standard paper sizes: A series

https://en.wikipedia.org/wiki/International_standard_paper_sizes
1•doener•8m ago•0 comments

Anthropic's Nuclear Bomb

https://warontherocks.com/cogs-of-war/anthropics-nuclear-bomb/
1•azanar•9m ago•0 comments

Show HN: PanicLock – Close your MacBook lid disable TouchID –> password unlock

https://github.com/paniclock/paniclock/
1•seanieb•10m ago•0 comments

SETI may have been tuned to the wrong frequencies

https://iopscience.iop.org/article/10.3847/1538-4357/ae3d33
1•johnbarron•10m ago•0 comments

I built an on-premise ERP for wholesale distributors in Delphi

https://asktheledger.com/
1•josephsprei•13m ago•0 comments

Show HN: Clamp – Web analytics your AI agent can read and query

https://clamp.sh
1•sidneyottelohe•13m ago•1 comments

The Future of Testing Is Here

https://testkube.wistia.com/live/events/gigwl708fn
1•evwitmer•14m ago•1 comments

Vectary Canvas: AI-accelerated ideation across 2D, 3D and AR

https://www.vectary.com/waitlist/
2•mkoor•14m ago•0 comments

The Value of a Performance Oracle

https://wingolog.org/archives/2026/04/07/the-value-of-a-performance-oracle
1•abnercoimbre•15m ago•0 comments

The Internet's Most Powerful Archiving Tool Is in Peril

https://www.wired.com/story/the-internets-most-powerful-archiving-tool-is-in-mortal-peril/
2•doener•17m ago•0 comments

Bringing BitNet to ExecuTorch via Vulkan

https://www.collabora.com/news-and-blog/blog/2026/04/17/bringing-bitnet-to-executorch-via-vulkan/
2•losgehts•18m ago•0 comments

European Space Agency, more than 400 job opportunities in 2026

https://www.esa.int/About_Us/Careers_at_ESA/A_stellar_year_for_talent_more_than_400_job_opportuni...
2•johnbarron•19m ago•0 comments

Who will maintain the web when PHP's veterans retire?

https://thenewstack.io/php-web-skills-hiring-age/
2•Brajeshwar•19m ago•1 comments

Long-Tail Knowledge in Large Language Models

https://arxiv.org/abs/2602.16201
1•wslh•21m ago•0 comments

AI's Mainframe Moment

https://www.mjeggleton.com/blog/AIs-mainframe-moment
3•lelanthran•22m ago•0 comments

Where Enterprises Are Adopting AI

https://a16z.com/where-enterprises-are-actually-adopting-ai/
1•wslh•22m ago•0 comments

Apple's Mac Mini Went Viral. Why Can't You Buy One?

https://www.wsj.com/tech/personal-tech/apple-mac-mini-supply-3e7a7509
1•Anon84•23m ago•0 comments

Beyond Demo Day: Sorting and Value Added in Startup Accelerators

https://www.nber.org/papers/w35063
1•john_horton•24m ago•0 comments

Oil prices plunge as Iran says Strait of Hormuz 'open' during ceasefire

https://www.bbc.com/news/articles/ckg045z73z1o
3•geox•24m ago•0 comments

Hyperscalers have already outspent most famous US megaprojects

https://twitter.com/finmoorhouse/status/2044933442236776794
8•nowflux•25m ago•1 comments

Writing string.h functions using string instructions in asm x86-64

https://pmasschelier.github.io/x86_64_strings/
2•thaisstein•26m ago•0 comments

The Mystery of Rennes-Le-Château, Part 4: Non-Fiction Meets Fiction

https://www.filfre.net/2026/04/the-mystery-of-rennes-le-chateau-part-4-non-fiction-meets-fiction/
1•doppp•26m ago•0 comments

Probabilistic Record Linkage Using Pretrained Text Embeddings

https://www.cambridge.org/core/journals/political-analysis/article/probabilistic-record-linkage-u...
1•cowartc•27m ago•0 comments