Be

BetterDB, MIT Valkey-native context layer for AI agents

Hacker News

BetterDB, MIT Valkey-native context layer for AI agents

Today we released an open, Valkey-native context layer for AI agents as part of our packages at BetterDB (agent memory, semantic + multi-tier caching, typed retrieval) that run on a Valkey instance no matter where it is - no vendor lock-in. We even started provisioning Valkey instances starting today. Packages are shipped on npm and PyPi. Why we made it: BetterDB originally started as a monitoring and observability platform for Valkey, Redis and any RESP compatible db. This is still the core of the product, but in the process of building this, we kept seeing that one of the fastest-growing uses of Valkey was AI - vector store and cache behind agents and RAG. So about a month and half ago we published MIT semantic and agent cache libraries for that, with the agent cache library not even requiring any modules and being able to run on vanilla Valkey. Today we are extending this to agent memory. Because we started with observability, it also runs everywhere - every cache, memory and retrieval emits OTel and Prometheus, plus it integrates well with our own monitoring and mcp server, exposing it to the agent. What we actually shipped: - agent memory: short-term tiers (session/LLM/tool, exact-match) plus a semantic long-term layer - semantic caching over valkey-search, with per-category thresholds and confidence bands - typed retrieval over valkey-search - a self-tuning loop and OTel/Prometheus observability (more below) What's not done yet: a Helm chart for one-command self-hosting, and a detailed benchmark writeup. Both next week. Self-tuning cache. The cache logs similarity scores, and a separate service reads the distribution and proposes threshold/TTL changes (with reasoning, weighted by cost). A human approves the change, and the running cache picks it up in under a second with no restart. An agent can read the live cache state and propose changes over MCP. I haven't found another cache library that closes this loop; most use a static, hand-tuned threshold, which is the documented failure mode for semantic caches. Observability at the operation level. OTel spans and Prometheus metrics on each cache/memory/retrieval operation, not just request-level LLM tracing. So you can actually see per-lookup similarity distributions and whether your threshold is wrong, rather than guessing. On benchmarks, the number isn't a flex: I ran LongMemEval on the memory layer. In the process of building our harness I found multiple things surpressing the scores. Even tweaking the prompt to the reader (the reader was told to answer only from literal excerpts so it abstained on whole question types), on a matched gpt-4o config the improvement was over 5 points. We'll be actively working on QA next week. Re-run everything and then publish a comprehensive write up. Retrieval recall is near-perfect at 98.4%, so the gap is reader/reasoning-side, not retrieval. The best part is ofc latency as Valkey's performance is great. What I'd genuinely like feedback on: does the Valkey-native bet make sense to you, or would you rather a context layer be storage-agnostic? And for those running agents in prod, would you trust automated self tuning recommendations, or prefer to keep it manual? Is cost or latency a bigger issue to be solved? We have a public unscripted demo at chat.betterdb.com btw, if anyone wants to see these libraries in action.

Share card

Actual performance

5points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agents, agent, mcp · Missing: mac, macos, cursor
96%96% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: started, para, compatible · Missing: supports, reddit linkedin, podcasting
77%77% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Strong signals: month, para · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
38%38% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: plus, platform, host · Missing: intuitive, reviews, exclusive
36%36% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
22%22% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Twigg
Twigg76%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The context layer you never have to build

Product Hunt+123API
Ma
Marmot, context layer for agents and humans71%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Marmot, context layer for agents and humans

Hacker News17
Kt
Ktx – Open-source executable context layer for data agents54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ktx – Open-source executable context layer for data agents

Hacker News93
Specify App
Specify App92%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The shared context layer for you and your coding agents

Product Hunt+2
Unabyss
Unabyss84%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MCP-native self-updating context layer for your AI

Product Hunt+713Productivity
Dawiso AI Context Layer
Dawiso AI Context Layer87%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Connect AI agents to governed metadata via MCP

Product Hunt+82Analytics
Team Mantle
Team Mantle20%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The context layer for every AI agent

Indie Hackerscommitment-full-time
A
A human-curated, CLI-driven Context Layer for AI agents29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A human-curated, CLI-driven Context Layer for AI agents

Hacker News2
Airbyte Agents
Airbyte Agents93%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The context layer for production-grade AI agent

Product Hunt+82Productivity
BaseThread
BaseThread26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Unified context layer for teams using AI tools.

Indie Hackers