Logseq for managing agent context

Does anyone have any insight into the ease of agent interaction in the case of DB cli vs markdown file? I am most familiar with Codex, so my intuition is it would be easiest to give it access to md files to read directly. I haven’t used much local-first llm, so I don’t have a sense of how good it is at file reading vs too calling. I am trying to set up a logseq-llm system myself, and trying to decide if I should go with the DB or MD version.