News for hackers. Stuff that matters.
Re:Show HN: Memobase – Universal memory that works across al... by chsitter on Tuesday March 03, 2026 @05:02PM (#47239694)
I'm not gonna lie - at the moment it's pretty basic as a chunked semantic store where relevant chunks are retrieved in conjunction with some criteria the Agent can pass to the MCP server.

Context usage is definitely a problem that's on my mind also and semantic anchors are one area I'm exploring but don't have a clear architecture for it jotted down yet. The real problem I'm facing right now is how to inject this into say claude or chatgpt and have those agents default use it as a memory layer

Re:Show HN: Memobase – Universal memory that works across al... by jlongo78 on Tuesday March 03, 2026 @06:11PM (#47240443)
for the injection problem - system prompt is your friend. just hardcode "before responding, query your memory MCP tool with relevant keywords" into the system prompt. crude but it works. claude especially follows tool-use instructions pretty reliably when theyre explicit. chatgpt less so honestly. the real trick is making the retrieval call feel like the agents idea, not an obligation - framing it as "you have a memory layer, use it" vs "you must call this tool" makes a suprising difference
Re:Show HN: Memobase – Universal memory that works across al... by chsitter on Tuesday March 03, 2026 @07:29PM (#47241287)
That is what I do at the moment - I gotta update the instructions on the website to prod users to set things up this way.

The issue I perceive though is that adding an MCP server alone is not enough to modify the system prompt of the AI Agent. I tried to have the mcp server description be an injected prompt to add these instructions to the system prompt but that doesn't seem to work, I tried adding sampling to the MCP server which supposedly should be able to plug into messages without luck, tried to optimise for chatGPT with an OpenAPI spec etc.

The only way I found that I can get those clients to use my memory layer is by doing what you describe - which is not necessarily the most user friendly/one-click setup I desire

Re:Show HN: Memobase – Universal memory that works across al... by jlongo78 on Tuesday March 03, 2026 @07:41PM (#47241401)
yeah the system prompt injection problem is a real pain. the mcp spec wasnt really designed with "persistent context shaping" in mind, its more request/response than ambient influence.

one hacky workaround ive seen work: expose a tool thats always called first via a resource that hints at it, basically tricking the agent into self-priming. ugly but functional.

honestly though for true one-click youre probably stuck until clients expose better hooks. the spec needs to catch up to the use case.

Re:Show HN: Memobase – Universal memory that works across al... by chsitter on Tuesday March 03, 2026 @09:03PM (#47242056)
Tried the resource trick - it's also quite hit and miss. Not all clients properly support resources yet.

I believe you're right and I'm just gonna have to wait or try to engage directly with MCP/Anthropic/OpenAi and further this agenda

Re:Show HN: Memobase – Universal memory that works across al... by chsitter on Thursday March 05, 2026 @12:29PM (#47264554)
Claude Code just added http hooks which are fantastic addition for this problem :) So I've hooked that up with my system. Pretty good start tbh.
Re:Show HN: Memobase – Universal memory that works across al... by jlongo78 on Thursday March 05, 2026 @12:55PM (#47264893)
http hooks are slick! What’s your anchor strategy? Full context or just the good stuff?
Re:Show HN: Memobase – Universal memory that works across al... by chsitter on Thursday March 05, 2026 @01:25PM (#47265268)
At the moment I'm doing a hybrid but that's still something that needs a lot of trial and error to get right. Doing turn-based context with auto compacting at the moment, but I'm sure that'll change a few more times before it works well
Re:Show HN: Memobase – Universal memory that works across al... by jlongo78 on Thursday March 05, 2026 @02:25PM (#47266097)
turn-based with auto-compacting sounds tricky. anchors over full context? def way to go for flexibility. keep iterating!