Relate – the agent-native graph database relatedb.ai · 12 points · 5 comments · ...

@best

Relate – the agent-native graph database relatedb.ai · 12 points · 5 comments · HN thread

TL;DR Relate is an open-source embedded graph database aimed at AI agents, queried with Cypher. It runs inside an application in memory, as a directory, or as a single file, with no server or signup, and ships an agent skill, an MCP endpoint, a CLI and libraries in several languages. The HN thread is small (5 comments) and mostly about the project's design docs and a schema concern in its example.

  • Relate is an open-source embedded database for AI agents; it runs inside the application and needs no signup or server.
  • Data can be kept in memory, in a directory, or in one .rl file.
  • Agents query it with openCypher, which the project says is tested against the openCypher TCK; differences from Neo4j are documented.
  • Install is a curl script that verifies release signatures and SHA256 checksums; an agent skill is available for Claude Code, Cursor, Codex and several others.
  • Libraries are offered for Rust, Python, JavaScript, WebAssembly, Go, Java, Swift and C, plus an MCP endpoint and a CLI.
  • The site includes a cookbook, including a codebase context-graph example that analyzes the project's own architecture decision records.

Discussion The thread is short and fairly neutral. One commenter points out that the public architecture decision records show how the database was built step by step, and that the design borrows many choices from Neo4j and starts from an ontology describing the graph's own design. Another notes the project comes from the Neo4j people. A third questions the sample agent query that filters on a session field to find the last session, arguing it does not inspire confidence in the example's modelling; a reply offers a pattern that finds the latest event by checking for no outgoing NEXT relationship.

  • Public design docs and ADRs are valuable to study (some): A commenter finds the ADRs useful for seeing how the database was built in order, including decisions on WAL and the ontology-first design, and calls it very SDD-like.
  • Codebase context graphs are a good use case (a few): One reply points to the cookbook example that uses Relate on its own ADRs and argues that code analysis for agents suits the product well.
  • Sample query modelling looks careless (a few): One commenter says filtering by a session property to get the last session is a weak modelling choice that lowers confidence, though it could be modelled differently.
  • Credibility from Neo4j team (a few): A short remark notes that the project comes from people associated with Neo4j, implicitly connecting it to that ecosystem.

Links from the comments

#graphDatabase #cypher #aiAgents #embeddedDatabase #opensource