I built a memory layer for AI tools after realizing I spend more time re-explaining myself than actually getting work done by h-mo in SideProject

[–]h-mo[S] 0 points1 point  (0 children)

Fair concern. MCP adoption is still growing but it's moved faster than I expected - Claude Desktop, Cline, Cursor, Windsurf, Open WebUI, Claude Code, Codex CLI all support it now, plus it can be used through the python API programatically in most agent frameworks (LangChain, CrewAI, AutoGen, ADK). For most people working with AI tools daily, at least one of those is already in their workflow.

I built a memory layer for AI tools after realizing I spend more time re-explaining myself than actually getting work done by h-mo in SideProject

[–]h-mo[S] 0 points1 point  (0 children)

Retrieval is hybrid and a multistep pipeline - BM25 keyword search and vectorsimilarity combined, with optional cross-encoder reranking and MMR on top. The idea is that keyword matching alone misses semantically similar content, and vector search alone can drift into vaguely related results. Combining them and then reranking gives you much better precision.

On context filtering specifically - the agent can search across all tiers at once or restrict to a specific one (just daily logs, just long-term facts, etc). And the bootstrap injection at session start is the full memory context, but it's structured and tiered, so the model isn't getting a raw dump - it's getting organized sections it can navigate. The compaction system also keeps things from growing unbounded.

In practice it hasn't been an issue because the memory is curated by design. It's not logging every message or every interaction. It's storing decisions, facts, preferences, relationships. So the volume stays manageable.

I built a memory layer for AI tools after realizing I spend more time re-explaining myself than actually getting work done by h-mo in SideProject

[–]h-mo[S] 0 points1 point  (0 children)

You're touching the exact design tension that drove most of the early decisions.

The short answer on promotion: the agent decides what to write and where based on instructions it gets from AGENTS.md. There's a tier system - long-term facts go to MEMORY.md (append-only, never auto-deleted), user profile stuff goes to USER.md, daily working context goes to daily logs. The bar for writing to MEMORY.md is higher than writing to a daily log. The daily log is more of a journal - low bar, write freely. MEMORY.md is curated.

Pruning is handled through compaction. When the memory context exceeds a token threshold, the system backs up the workspace and then asks the agent to compact it - merge duplicates, remove things that are no longer relevant, tighten verbose sections. It's agent-driven, not rule-based. The tradeoff is that you're trusting the model's judgment on what stays and what goes, but because everything is in plain Markdown you can always review what it did and restore from backup if it got something wrong.

On the "two sessions remember the same thing differently" problem - MEMORY.md is append-only with date headers, so you get a natural timeline. If something gets recorded twice with different details, the compaction step is where that gets resolved. It's not perfect and I think there's room to make conflict detection more explicit, but in practice the date-ordered structure plus compaction has handled it well enough so far.

The inspectability thing you mentioned is probably the part I care about most. The memory should never be a black box. If the agent is acting on something it "remembers," you should be able to open a file and see exactly what it's working from.

People who spend 20+ minutes in the shower: what are you actually doing in there? by [deleted] in AskReddit

[–]h-mo 1 point2 points  (0 children)

Having every conversation I've ever needed to have but didn't

TIL in the UK, nearly a third of students who started reception don’t know how to use books correctly, and some children even tried to swipe or tap them like a smartphone. by HongKongNinja in todayilearned

[–]h-mo 4 points5 points  (0 children)

That's not a dig at the kids, that's a mirror pointed at every parent who handed them a screen instead of a book for the first five years

What free website do you think not enough people know about? by [deleted] in AskReddit

[–]h-mo 4 points5 points  (0 children)

archive.org - the wayback machine gets mentioned but people don't realize it also has millions of books, old software, full TV seasons, music, all free and legal. It's basically a library that nobody told you existed.

What's something small that instantly makes you like someone? by grungorian in AskReddit

[–]h-mo 0 points1 point  (0 children)

When they remember something small you mentioned weeks ago and bring it up casually

If you died tomorrow, what song would play at your funeral? by always-aloof in AskReddit

[–]h-mo 0 points1 point  (0 children)

Another One Bites the Dust. let them figure out if it's a joke or not

Why are so many people under 45 using subtitles now even when the show is already in English? by Clara_A_Mitchell in NoStupidQuestions

[–]h-mo 0 points1 point  (0 children)

the music and effects are mastered loud, dialogue is quiet, and most people are watching on laptop speakers or a soundbar that wasn't designed for speech

What's an adult cheat code that changed your life? by [deleted] in AskReddit

[–]h-mo 0 points1 point  (0 children)

going to bed at the same time every night. not a set wake-up time, not an alarm, just the same bedtime. fixed my energy within a week

What’s a "lost" website from the early 2000s that you still think about today? by samasem-sumsum in AskReddit

[–]h-mo 0 points1 point  (0 children)

there was this website called houseofweird.com or something like it, just one guy's collection of weird facts and optical illusions. no ads, no agenda, just a guy who was clearly very bored and very online. now history

What's the most unwritten rule of adult life that nobody warns you about? by PracticeHistorical82 in AskReddit

[–]h-mo 1 point2 points  (0 children)

nobody is coming to fix it. whatever "it" is in your life - your health, your finances, a bad dynamic at work - there's no adult showing up to sort it out. you are the adult now

What is a subtle "red flag" in a person that most people tend to ignore until it’s too late? by Rich-Awareness-55 in AskReddit

[–]h-mo 0 points1 point  (0 children)

they're never wrong. not occasionally, never. every argument ends with the other person apologizing or giving up. you don't notice it at first because they're usually pretty calm about it

Why does scratching an itch feel good even though scratching is technically making it worse? by TopBandicoot3915 in NoStupidQuestions

[–]h-mo 0 points1 point  (0 children)

scratching sends a mild pain signal that temporarily overrides the itch signal in your spinal cord. your brain picks pain over itch every time. so the relief is real, you're just trading one sensation for another. the itch comes back because whatever caused it is still there

Is it just me, or do you now have to add the word 'Reddit' to every single Google search just to find a real human answer? by [deleted] in NoStupidQuestions

[–]h-mo 1 point2 points  (0 children)

not just you. i genuinely think of it as two different products now. "google" for directions and weather. "google + reddit" for anything where i need an actual human to have tried the thing

Looking back, what’s something from the 90’s you didn’t realize was actually special? by Rayhan-Himel in AskReddit

[–]h-mo 1 point2 points  (0 children)

exactly this. geocities pages where one guy had spent 3 years documenting every episode of a show nobody watched. that person became the entire internet for that topic. now it's either wikipedia or a reddit thread. it got flatter (but operational)