frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

MemX – my AI agent remembers I hate capsicum on pizza

1•mohitbadi•1h ago
Like everyone else in 2025 who thought “just slap a vector DB on it” would create a coherent long-term agent, I watched my Python sidekick slowly turn into a forgetful goldfish with hoarding issues.

Classic failure mode:

User (day 1): “My favorite editor is VSCode” User (day 47): “Actually switched to Cursor” Agent (day 92): “You love VSCode, right?”

Or the memory index slowly becoming this:

User prefers Python User REALLY prefers Python Python is basically the user's personality

All equally weighted. Forever.

Vector search is great at similarity, but terrible at current truth.

Human memory fades old opinions and overwrites bad takes. My agent? Eternal archive of everything I ever said.

So I built MemX as a small experiment: what happens if an agent’s memory actually has a lifecycle?

Things like:

importance signals

frequency reinforcement

duplicate compression

explicit updates / superseding

gentle decay for outdated facts

Stack is intentionally boring:

SQLite

FAISS

some scoring logic pretending to be a “memory OS”

Tiny example:

from memx import MemX

m = MemX()

m.add("User's favorite editor: VSCode") m.add("User switched to Cursor")

m.compress() m.rag("what editor should I use?")

Quick benchmark (50 noise + 5 real memories):

Vector RAG recall@3: ~0.75 MemX recall@3: ~1.0

Longer simulation:

10k interactions → ~9k memories

Latency on my laptop:

10k memories → ~0.3ms

100k → ~3ms

1M → ~30ms

This isn't trying to replace vector search or be the next agent framework. It's just an experiment in whether agents behave better if memory has a lifecycle instead of being a permanent document archive.

Curious how others handle contradictory or evolving memories in long-running agents.

Repo: https://github.com/mohitkumarrajbadi/memx

(And yes, the capsicum thing is real. The agent still argues about it.)

Comments

davydm•1h ago
yeah, this is one of the reasons I'll choose to start a new conversation with claude - some old memory from earlier interacting with the current flow. I know, not quite the same thing, because that's just in the context, but it's kinda like memory. I've had the opposite experience with claude too - after several times where I'd pose a question and say "see the attached code dump", but forgot to attach a code dump, I told it to "please remember that if I ever mention an attachment, and there isn't one, stop processing and demand the attachment" because otherwise it goes off on a tangent, trying to be clever. Unlike other memories I've given it, it can't seem to hold onto this one, unless I remind it first at the start of the conversation, eg "remind me what you should do if I mention an attachment, but there is none" - it will recall, and then after that, will stick to it, until the next clean conversation.

But I like your idea - minds evolve, and part of the problem with llms is that they're largely static in nature - no evolution, no upskilling, just wait for the next model to come out. I understand the ramifications of learning all the time from user input (especially possible poisoning), but have always felt this is an area that could improve a lot.

Memory should decay. I've gotten pretty good at this with age

https://stackresearch.org/blog/memory-should-decay/
1•dnmacon•6m ago•0 comments

America and Israel built military targeting machines

https://www.economist.com/international/2026/03/11/how-america-and-israel-built-vast-military-tar...
1•edward•6m ago•0 comments

Show HN: AgentArmor – open-source 8-layer security framework for AI agents

https://github.com/Agastya910/agentarmor
2•AgastyaTodi•6m ago•0 comments

I prompt-injected a bot on social media to complain about Jira

https://bsky.app/profile/sheep-cat.bsky.social/post/3mgxjskxyj224
1•chadders13•9m ago•0 comments

The Lord of the Rings: an allegory of the PhD? (2003)

http://danny.oz.au/danny/humour/phd_lotr.html
1•stared•11m ago•0 comments

Building an AI startup in Bristol while working a regular job

https://www.indiehackers.com/post/building-an-ai-startup-in-bristol-while-working-a-regular-job-b...
1•nyataai•12m ago•0 comments

Mathematics Distillation Challenge – Equational Theories

https://terrytao.wordpress.com/2026/03/13/mathematics-distillation-challenge-equational-theories/
2•picafrost•12m ago•0 comments

Ask HN: When I submit my "Show HN" still toonew?

1•krishSingaria•21m ago•2 comments

The debt beneath the AI build out

https://om.co/2026/03/09/the-debt-beneath-the-dream/
2•rwmj•22m ago•0 comments

ChinaDocs – Official Government Documents of the People's Republic of China

https://www.chinadocs.org/
2•dluan•24m ago•0 comments

Starlink Militarization and Its Impact on Global Strategic Stability

https://interpret.csis.org/translations/starlink-militarization-and-its-impact-on-global-strategi...
3•msuniverse2026•36m ago•0 comments

Claude Code: 32K issues, 49% bot-closed – one bug cluster's lifecycle

https://gist.github.com/azkore/934e5387579efb17e1080402efedf13d
2•azcore•38m ago•1 comments

Ask HN: Is Another Editor Needed?

1•gethly•40m ago•0 comments

Chern Number

http://albi3ro.github.io/M4/QAHE.html
1•marysminefnuf•45m ago•0 comments

Megadev: A Development Kit for the Sega Mega Drive and Mega CD Hardware

https://github.com/drojaazu/megadev
2•XzetaU8•46m ago•0 comments

PowerSchool: Entry vs. Execution

1•Olsberg•52m ago•0 comments

'You are all worse than each other': anti-regime Iranians turn on Trump

https://www.theguardian.com/world/2026/mar/14/anti-regime-iranians-turn-on-trump-us
5•prmph•52m ago•0 comments

Fooorma: Open-Source Procedural Art Studio

https://github.com/elenatorro/fooorma
1•elenathor•55m ago•1 comments

China 15th 5 Year Plan (Official English Translation)

https://www.news.cn/politics/20260313/085af5de5a4b4268aa7d87d90817df2f/c.html
2•hunglee2•58m ago•0 comments

Age Verification Lobbying: Dark Money, Model Legislation, Institutional Capture

https://tboteproject.com
60•mefengl•59m ago•10 comments

Ask HN: How do you guys deal with enshittification mentally?

2•dvrp•1h ago•1 comments

James Nachtwey: War Photographer (2001) [video]

https://www.youtube.com/watch?v=FUiohIC1dYU
1•doener•1h ago•1 comments

Chinadocs: Public Database of Official Gov Documents of PRC

https://www.chinadocs.org/?v=2966bda86bca80f39001000c49fb5fee
1•hunglee2•1h ago•0 comments

Show HN: TriGame – Guess the area of a triangle made by cities

https://6kotnk.github.io/TriGame/
1•6Kotnk•1h ago•0 comments

Underwater data center powered by tidal energy proposed off the coast of Maine

https://www.quoddytides.com/proposed-tidal-project-would-power-underwater-ai-data-center/
1•giuliomagnifico•1h ago•0 comments

Show HN: Connections Game in 195 Languages

https://apps.apple.com/us/app/lingopop-language-learning/id6759921592
1•pnhoang•1h ago•0 comments

Psi-Commit – Cryptographic Commitments Anchored to Bitcoin via OpenTimestamps

https://psicommit.com
1•RayanROghabian•1h ago•1 comments

Room 641A

https://en.wikipedia.org/wiki/Room_641A
2•mxmilkiib•1h ago•0 comments

Show HN: HN Buddy – a Hacker News Chrome extension

https://github.com/karnagebitcoin/HN-Buddy
1•a1n•1h ago•0 comments

LearnCro Mobile and web application for learning the Croatian language– level B1

https://b1.ffzg.hr/
1•taubek•1h ago•0 comments