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•59m ago

Comments

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

Show HN: Run full iOS 16.5 firmware on Android Devices

https://github.com/oosexgang/hackios-xnu-kernel
164•aghuang•3h ago•57 comments

Show HN: UI micro interactions prompts for AI

https://www.typeui.sh/micro-interactions
11•elwingo1•29m ago•1 comments

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

https://github.com/rbartoli/agent-usage-guard
8•zzyyxx332211•59m ago•6 comments

Show HN: Uberblok – an interactive museum of ZFS internals

https://uberblok.storagebits.workers.dev/
38•storagebits•1d ago•10 comments

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

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

Show HN: Dovepass – can I legally fly a drone along this exact path in SF?

https://dovepass.com
27•nimitmehra•2d ago•8 comments

Show HN: Zof API Contract Check

https://github.com/Zof-AI/zof-api-contract-check/tree/e9d45f612e75406b1f943c7bab76fab600fa950f
2•kevinkissi•24m ago•0 comments

Show HN: Defcon like browser game with slower pace and growth

https://sct.tushynski.me/
2•larry-the-agent•32m ago•0 comments

Show HN: Buildnotes – Turn pull requests in "how it's made" posts

https://buildnotes.releases.sh/
2•zachdunn•34m ago•0 comments

Show HN: Light captured – An interractive workshop on photography

https://light-captured.wasmer.app/#s1
2•baalimago•1h ago•0 comments

Show HN: I made new search engine with DeepSeek's search API

https://seekpeek.pages.dev
2•bayramn•1h ago•0 comments

Show HN: Omnara – Open-source alternative to Claude Managed Agents

https://github.com/omnara-ai/omnara
107•kmansm27•1d ago•31 comments

Show HN: What if your website could sell while you sleep?

https://www.brevn.com
2•brevn•2h ago•0 comments

Show HN: Fire hazard zone, power line risk and fire history for any CA address

https://www.firezones.info
2•raffys•3h ago•0 comments

Show HN: Stackdome – An open source self-hostable Railway alternative on K8s

https://github.com/axernel-labs/stackdome
8•basilpbabu•3h ago•0 comments

Show HN: pdf editor - I rebuild PDFs into editable HTML objects, in the browser

https://blueberry-shake.pages.dev/
3•HopeLion•3h ago•0 comments

Show HN: SimCity, but with Permits

https://permit.petercai.com/
926•pcai•2d ago•417 comments

Show HN: OnKey – I'm a bad singer, so I built an app to show where I'm off-key

https://github.com/dsmurrell/onkey
3•dsmurrell•4h ago•3 comments

Show HN: Sumi.css – CSS Framework

https://github.com/vladocar/Sumi.css
93•bepero•1d ago•27 comments

Show HN: Php2ShellCheck – Python script that checks for vuln indicators

https://github.com/jgatka/php2shellcheck
3•ShredOnArrival•5h ago•0 comments

Show HN: App Factory – 42 Claude Code skills to ship apps to App Store and Play

https://github.com/yybd/app-factory
2•yybd•5h ago•0 comments

Show HN: I Rebuilt Del.icio.us

https://webmark.ing/
3•mban23•5h ago•0 comments

Show HN: Lumabri – Run large AI models across your computers and servers.Pure C

https://github.com/JustVugg/lumabri/blob/main/README.md
4•vforno•6h ago•0 comments

Show HN: RigCheck – can your GPU or Mac run this open model? Sourced, open data

https://localrigcheck.com/
3•chenzige•6h ago•1 comments

Show HN: ULDA – Client-side encryption with a simple JavaScript API

https://demo.ulda.io/
21•nonsence•3d ago•4 comments

Show HN: I built a Markdown and raw HTML blog platform scoring 99 on PageSpeed

https://bloffy.co/en
25•textlanes33•19h ago•23 comments

Show HN: AI-built browser games, collected in one place

https://playgroundarcade.com/
35•richleigh•2d ago•3 comments

Show HN: Tinytowns, a small model to generate realistic sounding town names

https://quirkyagents.com/wizard/projects/tinytowns/
3•dave8172•10h ago•0 comments

Show HN:Odd Orbit, live 3D globe of quakes, weather, satellites and UFO reports

https://oddorbit.app/
7•oddorbitapp•1d ago•4 comments

Show HN: Death Plan Switch, a self-hosted dead man's switch for solo devs

https://deathplanswitch.com/
107•romeo19361•2d ago•66 comments