Verbatim
How can you check what an agent says it remembers?
A memory engine for AI agents where every stored fact carries the exact passage it came from, so a reader can check the answer against the source.
- Status
- Shipped
- First public commit
- Last reviewed
The problem
When an agent says “you told me the release tag is v6.2”, there is usually no way to see where that came from. Most memory systems store a model’s summary of what was said, and a summary can drift from the original without anyone noticing.
/state/problemWhat it does
Verbatim keeps the original text and points each fact at the exact span that supports it. A search result comes back with its quote, and one more call shows the provenance behind it.1
/state/outcomeMy part
I designed and wrote Verbatim. The public history has 105 commits, 104 of them mine and one from Devin, an AI coding agent I used during the build. I published it to PyPI as verbatim-memory 1.0.0 on 7 October 2026.
/state/roleOne decision
Verbatim never writes memory content itself. It stores the source text as it arrived and derives claims that point at byte ranges inside it. If the quoted bytes do not match the stored source, the memory is not served.
/state/decisionWhat I chose against
The common approach is to have a model rewrite each conversation into tidy summary sentences and store those. That reads well and retrieves well, but the stored sentence becomes the only record, and nobody can tell a faithful summary from an invented one.
/state/alternativeIn practice
The store is a single SQLite file. Retrieval runs in named stages, and each one reports its own score and vetoes, so you can read why a sentence won or lost. When part of the system is not ready, a search says so in its status instead of quietly returning weaker results.2
/state/in_practiceLimits
A quote proves the words were said. It does not prove they were true. Verbatim shows where an answer came from and leaves the judgement about the source to the reader.
/state/limitationSomething to inspect
from verbatim import Memory
mem = Memory()
added = mem.add("the release tag is v6.2", metadata={"topic": "release"})
mem.wait_ready(added.receipt_id)
res = mem.search("what is the release tag?")
print(res.status, res.items[0].quote) # -> "the release tag is v6.2"
detail = mem.inspect(res.items[0].ref) # provenance + evidence spans
Evidence
Verbatim keeps the exact source passage for every fact it stores.
every stored fact carries the exact source span it was distilled from, so answers stay inspectable.
Open the exact passage · gitlab.com/mosesman831/verbatim README.md at
64364c5Each retrieval stage exposes why a sentence won or lost.
Nothing is a black box: you can read exactly why each sentence won or lost.
Open the exact passage · gitlab.com/mosesman831/verbatim README.md at
64364c5
Credits
- Devin. AI coding agent, one commit in the public history