frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentOS- a memory system for AI agents that learns what it doesn't know

1•ajstars•1h ago
Most AI agents have a memory problem.

Not the kind where they forget things. The kind where they remember everything, all at once, every time.

Every message. Full history. Appended to every prompt. The context window fills. Costs compound. And you're paying to re-sendthe same conversation on every single turn.

I wanted to fix that.

---

The insight came from thinking about how people actually remember things.

You don't replay your entire life to answer a question. You retrieve what's relevant - usually just a few facts. The detail only comes back when you need it.

So I built HAM. Hierarchical Adaptive Memory.

Memory lives in four tiers:

  L0 →   8 tokens  - topic slug, always in context
  L1 →  35 tokens  - key facts, retrieved on topic match
  L2 → 150 tokens  - full summary, retrieved when needed
  L3 → 500+ tokens - raw detail, only on deep queries
The retriever scores each incoming message against stored topics. It pulls only the tier it needs. Nothing more.

A follow-up question on a topic you discussed yesterday costs 35 tokens of memory context. The naive approach costs 1,890.

---

I benchmarked this across 5 topics, 8 questions each.

  Naive:     6,825 tokens average
  HAM:       1,205 tokens average
  Reduction: 82.3%
Anyone can reproduce it: npm run benchmark - in-memory SQLite, same questions, same seed every run.

---

L4 wasn't in the original design.

When the agent hits a question it has no memory for, it answers using the LLM. Then it asks itself: is this response worth keeping?

Criteria: longer than 180 characters, not conversational filler. If yes - it compresses the response into the tier structure and saves it.

The agent learns from what it didn't know.

Ask it something obscure. It answers. It saves. Ask again tomorrow - it already knows.

---

What I haven't fully solved:

Compression quality at L1 and L2 depends on the summarization model. Gemini Flash is fast and cheap. But on highly technical content, it sometimes loses edge-case detail in the summary. You trade token cost for precision.

Lossy compression in memory systems feels like an unsolved problem. I'd be curious if anyone has dealt with this at scale.

GitHub: https://github.com/ajstars1/agent-os MIT. SQLite + WAL. TypeScript strict. Runs local.

Your AI-generated password isn't random, it just looks that way

https://www.theregister.com/2026/02/18/generating_passwords_with_llms/
1•mooreds•1m ago•0 comments

Show HN: Portal (SPC F25) – share sandboxed browser sessions as a link

https://www.makeportals.com/
1•zach4123•1m ago•0 comments

What founders get wrong about selling to enterprises

https://a16zcrypto.substack.com/p/why-the-best-tech-dont-always-win
1•7777777phil•2m ago•0 comments

Chasing the Ivory-Billed Woodpecker (2023)

https://gardenandgun.com/feature/chasing-the-ivory-billed-woodpecker/
1•NaOH•2m ago•0 comments

Hack over 200k Systems Wiped

https://www.mirror.co.uk/news/world-news/stryker-live-iran-cyber-attack-36850867
3•ZebusJesus•2m ago•1 comments

Show HN: Saguaro: CLI that makes Claude Code fix its own mistakes

https://github.com/mesa-dot-dev/saguaro
1•Mitchem•2m ago•0 comments

How the Eon Team Produced a Virtual Embodied Fly

https://eon.systems/updates/embodied-brain-emulation
1•Gooblebrai•3m ago•0 comments

Prompt to Mothion Graphics

https://aimote.art/
1•deniscartin•3m ago•1 comments

Foreign Hacker in 2023 Accessed Epstein Files Held by FBI, Source and Docs Show

https://www.usnews.com/news/world/articles/2026-03-11/exclusive-foreign-hacker-in-2023-compromise...
2•CGMthrowaway•3m ago•0 comments

We Were Right About Havana Syndrome

https://warontherocks.com/2026/03/we-were-right-about-havana-syndrome/
1•Bender•4m ago•0 comments

Florida Senate Clears 'Medical Freedom Act,' Over-the-Counter Sale of Ivermectin

https://floridianpress.com/2026/03/florida-senate-clears-medical-freedom-act-over-the-counter-sal...
1•SilentM68•4m ago•1 comments

Show HN: Nexus – A 1KB .NET 10 core with <15μs latency for 1M parameters

https://telemetry.intelligentaudio.net
1•NexusCore•4m ago•0 comments

US Military contractor likely built iPhone hacking tools used by Russian spies

https://techcrunch.com/2026/03/10/us-military-contractor-likely-built-iphone-hacking-tools-used-b...
1•CGMthrowaway•4m ago•0 comments

CommonMain.dev – Weekly Kotlin Multiplatform Newsletter

https://commonmain.dev/kmp-newsletter/
1•bogdancodes•5m ago•0 comments

WebPKI and You

https://blog.brycekerley.net/2026/03/08/webpki-and-you.html
1•birdculture•5m ago•0 comments

Tools I Use Every Day That Would Get Me Fired If I Had a Job

https://medium.com/@neonmaxima/the-tools-i-use-every-day-that-would-get-me-fired-if-i-had-a-job-4...
1•TigerUniversity•5m ago•0 comments

Rate my privacy-first AI ad architecture (patent pending)

1•Buddhistlab•7m ago•0 comments

Tenets of Agentic Reliability Engineering

https://github.com/srex-dev/AgentReliabilityEngineering
1•jonathankershaw•7m ago•0 comments

Playful leadership development in mid-career academic mentoring and coaching

https://wonkhe.com/blogs/playful-leadership-development-in-mid-career-academic-mentoring-and-coac...
1•michalc•8m ago•0 comments

AI Will Fail Like the Music Industry [video]

https://www.youtube.com/watch?v=YTLnnoZPALI
1•sublinear•8m ago•0 comments

1B identity records exposed id verification data leak

https://www.foxnews.com/tech/1-billion-identity-records-exposed-id-verification-data-leak
2•shinryudbz•10m ago•0 comments

Show HN: I built a Mac app that converts files when you rename them

1•imfavourite•10m ago•0 comments

SQLi flaw in Elementor Ally plugin impacts 250k+ WordPress sites

https://www.bleepingcomputer.com/news/security/sqli-flaw-in-elementor-ally-plugin-impacts-250k-pl...
1•mikece•12m ago•0 comments

My journey from foreign correspondent to Uber driver in Trump's America

https://stevescherer.substack.com/p/my-journey-from-foreign-correspondent
1•only_in_america•14m ago•0 comments

Show HN: Shadowscan – see what an AI agent can access on your machine

https://github.com/LakshmiSravyaVedantham/shadowscan
1•sravyavedantham•14m ago•1 comments

Claude Code building 100 mini games with one prompt (5.3M tokens)

https://twitter.com/amgauge/status/2031809325375897931
1•august-•14m ago•0 comments

Sensational news. Fintech has published banking secrets for public access

https://sfg.media/en/a/monobank-accuses-client-collaboration-slovenian-flag-mistake/
1•Kizert•16m ago•0 comments

Vitalina: Export Your Apple Health Data as CSV/JSON

https://apps.apple.com/us/app/health-data-exporter-vitalina/id6759179139
2•MegaMaddin•20m ago•1 comments

Digital Democracy

https://calmatters.digitaldemocracy.org/
2•jruohonen•20m ago•0 comments

Kishida Prize crowns wordsmiths in the theater world

https://www.japantimes.co.jp/culture/2026/02/26/stage/kishida-prize-theater-japan/
3•PaulHoule•24m ago•0 comments