frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: agent-usage-guard – a Claude Code mod to protect your usage window

https://github.com/rbartoli/agent-usage-guard
10•zzyyxx332211•1h ago

Comments

Robin_Message•1h ago
I was under the impression a compact resurrected the session anyway so it is not a good idea on a cold session. Is that true or is it actually cheaper?
bhu8•1h ago
You could use a dumber model (luna or haiku) for compact to get around this
kinduff•45m ago
I do this + caveman and my allowed usage lasts longer.
randomblock1•50m ago
Yes, it's better to compact before it gets out of cache. I think new versions of Claude Code can do that automatically. It can be cheaper if you switch to Haiku or something
zzyyxx332211•1h ago
After consuming my whole usage window in a few minutes multiple times, I realised I needed a hook to do some checks for me and prompt me before submitting when cache had expired and content is too big, so that it can suggest me to "compact then send". It can also prevent sub-agents from spawning when above 80% usage window. Control is handed over to the user.

The first I built, based on hooks (run for 75 days), the biggest burst fell from 365 agent spawned to 27, and requests over 500k tokens of context from 14.5% to 0.6%. Lockouts still went up, because lots of parallel main sessions use up the window too. The strength is that it counts agents across every session on the machine.

I built https://github.com/rbartoli/agent-usage-guard, MIT-licensed, makes no network calls, needs Claude Code 2.1.287 or later.

I have also a post on this: https://rblab.com/what-stops-claude-code-burning-your-usage-...

donfuzius•28m ago
interesting, I think that's a needed lever of control that's currently missing. Can you state against what plan you think the defaults make sense (pro / max 5x / max 20x)? A nice addition might be presets which are meaningful for each plan (i.e roughly scaled accordingly where it makes sense).

Quad9 (DNS Resolver) to Exit France

https://quad9.net/news/blog/au-revoir-france/
566•farrokhi•4h ago•203 comments

eMudhra to exit global SSL/TLS certificate business

https://emudhra.com/en/press-release/emudhra-to-exit-global-ssl-tls-certificate-business
741•bo0tzz•5h ago•533 comments

Nvidia OpenShell

https://github.com/NVIDIA/OpenShell
95•niemandhier•1h ago•40 comments

Show HN: Run full iOS 16.5 firmware on Android Devices

https://github.com/oosexgang/hackios-xnu-kernel
189•aghuang•4h ago•67 comments

Getting ready to operate GNU Taler in Germany

https://www.taler.net/en/news/2026-13.html
108•dewey•3h ago•33 comments

Award-Winning AI Literature

https://jamesyu.org/award-winning-ai-literature/
21•jamesjyu•1h ago•4 comments

What's Getting Pwned

https://pwn.watch/
253•mrkd•5h ago•130 comments

Show HN: UI micro interactions prompts for AI

https://www.typeui.sh/micro-interactions
19•elwingo1•55m ago•3 comments

What Is Gridifcation

https://musicalform.substack.com/p/what-is-gridifcation
307•gumby•3d ago•148 comments

Jailbreaking the Switch 2

https://pepsipu.com/blog/2026-10-switch2-jailbreak-ns2jb/
583•ledoge•11h ago•209 comments

AI and the Enclosure of the Scientific Commons

https://arxiv.org/abs/2610.27251
19•jrepinc•1h ago•2 comments

Dungeon Generation in the Gnomish Mines of NetHack

https://www.boristhebrave.com/2026/10/18/dungeon-generation-in-the-gnomish-mines-of-nethack/
76•ibobev•3d ago•9 comments

A farewell to Arc browser

https://arc.net/
139•suhdonghwi•3h ago•105 comments

AI analysis of CT scans finds 42.9% of patients have coronary inflammation

https://www.biograph.com/newsroom/biograph-completes-first-u.s.-study-with-caristo-diagnostics%E2...
28•brandonb•1h ago•18 comments

Google cleared 300 hectares of Finnish forest

https://www.techspot.com/news/114100-google-cleared-300-hectares-finnish-forest-data-center.html
260•wetwater•3h ago•180 comments

Hedra is a 3D open world game I wrote from scratch while in highschool

https://github.com/maxilevi/project-hedra/tree/pre-ai
20•maxilevi•44m ago•4 comments

Show HN: agent-usage-guard – a Claude Code mod to protect your usage window

https://github.com/rbartoli/agent-usage-guard
10•zzyyxx332211•1h ago•6 comments

Mini brain organoids 'reading' Braille key step towards biohybrid computing

https://www.frontiersin.org/news/2026/10/16/mini-brain-organoids-reading-braille-biohybrid-comput...
17•CharlesW•3h ago•4 comments

Faster than earcut: triangulating 3.7M map polygons in 489 ms

https://globus.software/blog/2026/10/16/cutting-map-polygons/
172•molind•9h ago•35 comments

Show HN: Turn regular JavaScript into a neural net

https://chenglou.me/handwired/
4•chenglou•1d ago•1 comments

MPs moving to restrict gambling ads in Canada

https://www.cbc.ca/news/investigates/gambling-ads-restrictions-canada-9.7388888
162•Teever•5h ago•69 comments

Show HN: Build a world on your phone, explore it in XR on Vision Pro and Quest

https://3d.camilleworld.com/play/
3•suejunghuh0•49m ago•0 comments

Show HN: Uberblok – an interactive museum of ZFS internals

https://uberblok.storagebits.workers.dev/
41•storagebits•1d ago•12 comments

The Last Museum: Semantic search across 5.8M artworks from major museums

https://lastmuseum.com/
73•surprisetalk•6h ago•25 comments

WorldTUI: I trained a 360M model to pretend to be a terminal

https://simedw.com/2026/10/21/world-model-terminal/
454•alphax314•17h ago•144 comments

VMMouse for NT 3.x: QEMU/VMware mouse integration driver

https://github.com/rhargreaves/vmmouse-nt3
39•kiyouta•3d ago•6 comments

Startup taps underwater volcano as energy source in "proof point" test

https://arstechnica.com/science/2026/10/startup-taps-underwater-volcano-as-energy-source-in-proof...
104•wffurr•2d ago•40 comments

Security Disclosure

https://blog.railway.com/p/security-disclosure-wednesday-october-21st
566•passenger•21h ago•327 comments

The recently proposed o(n log n) integer multiplication algorithm [pdf]

https://web.maths.unsw.edu.au/~davidharvey/research/subnlogn.pdf
295•craigcitro•16h ago•259 comments

Pentulive (Puppy Live) [video]

https://yle.fi/t/18-332106/fi
60•NaOH•3d ago•9 comments