Hey! I want to integrate datahike as a tool for an agent (for factual knowledge retrieval). Is there any prior-art in this area?
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
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.
I used datascript-mcp as a reference and with minimal prompting on the shape of the data and some examples it answer questions 🙂
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.
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...
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.
I would be very interested to see what you are doing, in case you make this public lmk.
If there is something needed to make datascript-mcp work better with datahike I can also help with that.
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.
In production you then don't ship the dev MCP tools.