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
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