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
8•zzyyxx332211•1h ago

Comments

Robin_Message•49m 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•41m ago
You could use a dumber model (luna or haiku) for compact to get around this
kinduff•20m ago
I do this + caveman and my allowed usage lasts longer.
randomblock1•25m 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•44m 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-...

x86 Kernel Shadow Stacks Worked on for Linux as Powerful Control Flow Protection

https://www.phoronix.com/news/Linux-Kernel-Shadow-Stacks
1•rbanffy•42s ago•0 comments

Acme Proxy: Managing TLS Certificates in Your Homelab

https://sapiolab.nl/acme-proxy/
1•mpiscaer•1m ago•0 comments

RingRTC (Signal): Flooded Call Event Queue Blocks Local Hang-Up

https://github.com/Imahian/Notes/tree/main/docs/CVEs/CVE-2026-113380
2•HelloUsername•1m ago•0 comments

Show HN: A Claude Code plugin that plays a song and shows a startup card

https://github.com/heyyviv/claude-boot-beats
1•heyviv•1m ago•0 comments

Sony reportedly exits UHD Blu-ray player market

https://www.flatpanelshd.com/news.php?subaction=showfull&id=1792667456
2•leotravis10•1m ago•0 comments

GitHub – mamund/tram: test runner for assertion manifests

https://github.com/mamund/tram/tree/main
1•fagnerbrack•3m ago•0 comments

Php2shell is not exploitable in real production enviroment

https://berardinellidaniele.com/posts/php2shell/
2•davtur19•3m ago•1 comments

Democracy in America

https://www.panoptica.com/democracy-in-america/
2•WaitWaitWha•4m ago•1 comments

Seed Search

https://blog.mwmbl.org/articles/introducing-seed-search/
1•Gronnfalk•5m ago•0 comments

I stopped reading bad news for 48 hours. Here's what happened

https://www.positive.news/lifestyle/i-stopped-reading-bad-news-for-48-hours-heres-what-happened/
1•f_allwein•5m ago•0 comments

Mwmbl Introduces Membership

https://blog.mwmbl.org/articles/introducing-membership-2026/
1•Gronnfalk•6m ago•0 comments

Version 2.0 of Delta game emulator for iOS released

https://explore.alt.store/@altstore/117484683621415863
1•cdrnsf•7m ago•0 comments

An Intro to Atmospheric Groups – At Protocol

https://atproto.com/blog/atmospheric-groups-intro
1•charlieok•7m ago•0 comments

MCP Is Dead

https://mcpskull.com/
2•tokozedginidze•7m ago•1 comments

Trump says Sundar Pichai talked him out of renaming the Atlantic Ocean

https://www.theverge.com/policy/1016751/trump-rename-atlantic-ocean-sundar-pichai-google
3•cdrnsf•8m ago•0 comments

Zuckerberg told Meta directors he might leave CA. Meta answered with new stock

https://fortune.com/2026/10/21/zuckerberg-meta-california-wealth-tax-billions-class-c-stock/
2•ethbr1•8m ago•0 comments

We tried reproducing Robocurve's RoboHarm results

https://robouse.ai/blog/robouse-harm-1/
1•xdotli•9m ago•1 comments

Patch the Planet Dashboard

https://trailofbits.com/patch-the-planet/dashboard/
3•jonbaer•9m ago•0 comments

Arc Sunset

https://arc.net/#faq
1•mahikshitk•10m ago•0 comments

Hello World

1•gublilities•10m ago•0 comments

Exploring dimensions of mental imagery using the ReaderBank Imagination Quiz

https://royalsocietypublishing.org/rsos/article/13/9/260390/483420/The-forces-of-the-imagination-...
2•PaulHoule•11m ago•0 comments

What the heck is the Public Suffix List?

https://ngrok.com/blog/public-suffix-list
1•EndEntire•12m ago•0 comments

The Reverse Information Paradox

https://snscratchpad.com/posts/reverse-information-paradox/
1•airhangerf15•12m ago•0 comments

Accelerating Mamba-2

https://developer.nvidia.com/blog/accelerating-mamba-2-with-high-performance-forward-pass-kernels...
2•jonbaer•12m ago•0 comments

AI found a critical PHP flaw. The bigger failure began in 2024

https://thenewstack.io/php2shell-chainguard-embargo-dispute/
1•CrankyBear•14m ago•0 comments

Unpublished Schrödinger Manuscript Reveals His Challenge to Quantum Randomness

https://thequantuminsider.com/2026/10/22/unpublished-schrodinger-manuscript-reveals-his-challenge...
1•jonbaer•15m ago•0 comments

How to spot AI science slop

https://labmuffin.com/how-to-spot-ai-science-slop/
3•speckx•16m ago•0 comments

Mary Founded a Church That Rejected Medicine and a Pulitzer-Winning Newspaper

https://www.readrecess.com/post/mary-baker-eddy-founded-a-church-that-rejected-medicine-and-a-pul...
1•joebig•16m ago•0 comments

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

https://github.com/maxilevi/project-hedra/tree/pre-ai
10•maxilevi•19m ago•2 comments

Hacker Language

https://wiki.c2.com/?HackerLanguage
3•so-cal-schemer•21m ago•2 comments