datahike

2025-08-12T15:27:14.597499Z

Hey! I want to integrate datahike as a tool for an agent (for factual knowledge retrieval). Is there any prior-art in this area?

whilo 2025-08-12T18:48:56.755599Z

I am working on it, this is a note taking agent integrated into my prototype simmis code base for example: https://github.com/whilo/simmis/blob/main/src/is/simm/runtimes/notes.clj

whilo 2025-08-12T18:50:15.316259Z

I also work on https://github.com/simm-is/repl-mcp, which so far allows a coding agent to use the Clojure REPL, and they are knowledgeable enough to use Datomic/Datahike from there. If coding agent is what you are interested in. I want to integrate Datahike's memory model there as well, this is why I am doing the JS work right now, because I want it to have a frontend as well and be able to query Datahike.

2025-08-12T18:55:03.092929Z

I used datascript-mcp as a reference and with minimal prompting on the shape of the data and some examples it answer questions 🙂

whilo 2025-08-12T18:56:15.594549Z

I think repl-mcp can do this as well, at least Claude is very good at using Clojure libraries including Datahike through the eval-MCP tool, I need to try Qwen Coder, but I guess it is as well.

2025-08-12T18:58:31.205499Z

I'm guessing it can, I'm not doing a classic coding agent so I can't use a repl-mcp. I still feel like it could use a more extensive context focusing on datalog to be extremely powerful...

whilo 2025-08-12T19:00:21.351809Z

True, it will help to provide examples. One benefit of Datahike is that it is highly Datomic compatible (except for the database configuration schema you use to create and connect to the db). So any LLM that is trained on Datomic code should already know a lot.

whilo 2025-08-12T19:01:07.345209Z

I would be very interested to see what you are doing, in case you make this public lmk.

whilo 2025-08-12T19:01:55.725389Z

If there is something needed to make datascript-mcp work better with datahike I can also help with that.

whilo 2025-08-12T19:16:10.244029Z

As a side note, repl-mcp is written in a way (or at least aiming for), that you can prototype tools like this inside out, i.e. you should be able to prototype a datahike MCP tool interactively and test it without restarts.

whilo 2025-08-12T19:16:23.725949Z

In production you then don't ship the dev MCP tools.