frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Hmem v2 – Persistent hierarchical memory for AI agents (MCP)

https://github.com/Bumblebiber/hmem
1•Bumblebiber•1h ago
Last week I posted hmem here and got some good feedback. I've been heads-down since then and v2 is out.

Quick recap of the idea: AI coding agents forget everything between sessions. Worse, if you switch machines or tools, even in-session memory is gone. Hmem fixes this with a 5-level hierarchy — agents load only L1 summaries on startup (~20 tokens), then drill deeper on demand. Like how you remember "I was in Paris once" before you recall the specific café.

What's new in v2: The tree structure is now properly addressable. Every node gets a compound ID (L0003.2.1), so you can update or append to any branch without touching siblings. update_memory and append_memory work in-place — no delete-and-recreate.

Obsolete entries are never deleted, just archived. They stay searchable and teach future agents what not to do. A summary line shows what's hidden.

Access-count promotion with logarithmic age decay. Frequently-used entries surface automatically — but newer entries aren't buried just because older ones have more history.

Session cache with Fibonacci decay. Bulk reads suppress already-seen entries so you don't get the same context dumped every call. Two modes: discover (newest-heavy, good for session start) and essentials (importance-heavy, kicks in after context compression).

TUI viewer for browsing .hmem files — mirrors exactly what the agent sees at session start, including all markers and scoring.

Curator role — a dedicated agent that runs periodically, audits all memory files, merges duplicates, marks stale entries, prunes low-value content. Also accesible via skill "hmem-self-curate". Still MIT, still npx hmem-mcp init. GitHub: https://github.com/Bumblebiber/hmem

Comments

Bumblebiber•1h ago
Some core features worth calling out:

  5-level lazy loading instead of flat RAG. On spawn, agents receive only L1 — one-line summaries of every memory entry.
   When something looks relevant, they drill into L2, L3, etc. on demand. This keeps startup context small (~2k tokens
  for 200 entries) while still having full verbatim detail available at L5.

  Tab indentation maps directly to tree levels. No schema to think about — just write:

  write_memory(prefix="L", content="Always restart MCP server after recompiling TS
      Running process holds old dist — tool calls return stale results
      Fix: kill $(pgrep -f mcp-server)")

  Indented lines become children. Siblings at the same depth are siblings in the tree. append_memory adds children to
  any existing node without overwriting.

  Smart bulk-read selection. Not all L1 entries are shown equally. The V2 selection expands (shows children) for: newest
   N entries per prefix, most-accessed M entries (time-weighted score), and all favorites. Everything else shows as a
  compact title with a [+7 →] hint. This mirrors how human working memory works — recent and frequently-used things are
  immediately accessible.

  Obsolete, not deleted. When a lesson turns out wrong or a decision gets reversed, you mark it obsolete with a
  correction reference ([E0076]). The old entry gets hidden from bulk reads but stays searchable. Past mistakes still
  teach — you just don't pay tokens for them every session.

  Per-agent isolation + optional shared store. Each agent has its own .hmem SQLite file. There's also a company.hmem
  with role-based access control (worker/al/pl/ceo) for knowledge that should be shared across agents.

  The whole thing is a single MCP server, ~3k lines of TypeScript, backed by SQLite with WAL mode. No vector embeddings,
   no external services. Works offline.
OpenClaw users: you can integrate hmem directly by pointing your Claw at the GitHub repo — it'll figure out the rest. npx hmem-mcp init gets you running in under a minute.

Show HN: A simple dark mode Hacker News reader client built with Htmx and Go

https://news.wingman.actor
1•ChaseRensberger•26s ago•0 comments

What Even Are Breeze, QtQuick, QtWidget, Union..?

https://akselmo.dev/posts/what-are-breeze-widgets-quick-union/
1•todsacerdoti•37s ago•0 comments

Don't blame AI for your job woes

https://www.economist.com/finance-and-economics/2025/11/06/dont-blame-ai-for-your-job-woes
1•paulpauper•1m ago•0 comments

Greg Knauss Is Losing Himself

https://shapeof.com/archives/2026/2/greg_knauss_is_losing_himself.html
1•wallflower•1m ago•0 comments

Neutrino – Single-file, polyglot cross-platform webview launcher

https://github.com/alganet/neutrino
1•gaigalas•2m ago•1 comments

Stop Meeting Students Where They Are

https://www.theatlantic.com/ideas/2026/02/youth-reading-books-professors/685825/
1•paulpauper•3m ago•0 comments

Widespread cheating on university essays is an 'open secret'

https://www.thetimes.com/uk/education/article/widespread-cheating-university-essays-open-secret-d...
1•paulpauper•4m ago•0 comments

The Coming AI Cataclysm

https://www.compactmag.com/article/the-coming-ai-cataclysm/
1•andsoitis•4m ago•0 comments

MKdocs Version 2

https://github.com/mkdocs/mkdocs/discussions/4077
1•BerislavLopac•5m ago•0 comments

How the Psychedelic Drug Ibogaine Changed Me Forever

https://www.nytimes.com/2026/03/01/magazine/ibogaine-psychedelic-treatment-trauma-mental-health.html
1•WarOnPrivacy•8m ago•1 comments

US Military reportedly used Claude in Iran strikes despite Trump's ban

https://www.theguardian.com/technology/2026/mar/01/claude-anthropic-iran-strikes-us-military
3•enceladus06•8m ago•1 comments

The Long Afterlife of the Console Modchip

https://hackaday.com/2026/03/01/the-long-afterlife-of-the-console-modchip/
1•umairnadeem123•9m ago•0 comments

Show HN: Boucle – A self-dogfooding autonomous AI agent framework in Rus

https://github.com/Bande-a-Bonnot/Boucle-framework
1•ElFitz•9m ago•0 comments

An audio modem in 5 lines of Awk

https://pagedout.institute/webview.php?issue=8&page=24&article=An+AWKward+Modem
1•beefburger•11m ago•0 comments

Be the Village Rome Can't Read

https://abiawomosu.substack.com/p/be-the-village-rome-cant-read
1•laurex•13m ago•0 comments

To launch an online business in 2026 you needed

https://www.demeria.app
1•portudov•14m ago•1 comments

How to enforce contracts in API development?

1•arter45•15m ago•0 comments

The Claw – The First AI-Powered Digital Media Publication

https://theclawnews.ai/
1•ulrischa•16m ago•0 comments

How to Run a Small Social Network Site for Your Friends

https://runyourown.social/
2•TigerUniversity•16m ago•0 comments

Show HN: Fail-closed execution guard for AI agents (Python, pip installable)

https://github.com/Nick-heo-eg/ai-execution-boundary-core
1•echo_os•17m ago•0 comments

DealMaker Uses Morning Brew and Robinhood to Lure Retail Investors

https://hntrbrk.com/shark-tank/
1•amadeuspagel•18m ago•0 comments

A cellular atlas of aging comes into focus

https://longevity.technology/news/a-cellular-atlas-of-aging-comes-into-focus/
1•Bender•18m ago•0 comments

P3: Reputation-based lending with developer API

https://developers.p3lending.space/
1•p3lending•18m ago•1 comments

Supabase Blocked in India: random proxies are on market

https://harshanu.space/en/tech/dumb-vibe-coders/
1•anxiousvater•18m ago•0 comments

Show HN: I Built Context+ AST and Embeddings for Codebase Understanding

https://contextplus.vercel.app/
1•forloopcodes•18m ago•0 comments

Republican Steve Hilton surges ahead in California governor's race

https://ktla.com/news/politics/inside-california-politics/california-governor-poll-february-2026/
1•Bender•20m ago•0 comments

'Enshittification' blamed for fewer NZers feeling positive about the internet

https://www.rnz.co.nz/news/national/588339/enshittification-blamed-for-fewer-nzers-feeling-positi...
3•billybuckwheat•20m ago•0 comments

MicroGPT Explained Interactively

https://growingswe.com/blog/microgpt
1•andsoitis•22m ago•0 comments

I Programmed an AI Bot to Help Me Run for President (2020)

https://medium.com/linebyline/presidential-speech-algorithm-ec755995887a
1•simonebrunozzi•22m ago•0 comments

US and Israel strike Iran, raising oil supply security risks

https://www.spglobal.com/energy/en/news-research/latest-news/crude-oil/022826-us-and-israel-strik...
1•vedantnair•23m ago•0 comments