Skip to main content

Verbatim

Evidence-first, local-first memory for AI agents. SQLite-backed, host-neutral, and built around one rule: every memory traces back to byte-exact evidence. Verbatim never generates memory content - it stores verbatim source text, derives claims with pointers to exact spans, and reports degraded lanes honestly instead of silently serving weaker results.

Install & first memory

pip install verbatim-memory
from verbatim import Memory

mem = Memory()                                    # or Memory("path/to/store.vdb")

added = mem.add("the release tag is v6.2", metadata={"topic": "release"})
mem.wait_ready(added.receipt_id)                  # bounded wait for indexing

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

mem.forget(res.items[0].ref)                      # targeted, CAS-guarded
# or query preview -> confirmation token -> execute exactly that selection:
# preview = mem.forget(query="release tag")
# mem.forget(confirmation=preview.confirmation_token)

mem.close()

Readiness, honestly

add is durable when it returns, but derived work (lexical indexing, optional embeddings) settles asynchronously - the receipt is the handle. wait_ready(receipt) blocks until ready/partial/blocked; search with the default consistency="session" already waits up to ready_timeout_ms and reports res.status (ready/partial/pending/blocked/unavailable) plus warnings rather than pretending. mem.status() reports what this build actually provisioned - never config-implied health.

How it works

Retrieval runs in explicit stages over a fixed lane set (lex, fuzzy, dense, ent, time, graph, typed, obs, exact_id, source). Eligibility decides which sentences may answer at all (temporal, entity and scope filters applied before ranking). Lanes score the eligible candidates in parallel, each publishing its own score and vetoes. Fusion and verdict merge lane evidence into a final ranking, resolve conflicts (a newer fact superseding an older one), and emit the answer with its evidence and trace. Nothing is a black box: you can read exactly why each sentence won or lost, and a lane that cannot apply eligibility reports an error with zero candidates rather than unfiltered output.

Surfaces

  • HTTP service - verbatim-service --path store.vdb --user me --token SECRET serves the bearer-authenticated /v2/memory/* routes (add/search/inspect/forget/status/readiness/capabilities) on loopback. Unauthenticated requests fail closed with 401. python -m verbatim.service is the same launcher.
  • MCP - verbatim-mcp serves the consumer tool profile (v5_capture/v5_recall) over stdio for agent hosts.
  • TypeScript client - clients/ts/memory-client (@verbatim/memory-client): zero-dependency fetch client mirroring the /v2/memory shapes.
  • CLI - verbatim exposes the operator surface (ingest, inspect, status, doctor, export, purge, jobs).

Properties

  • Evidence-preserving - source revisions, byte-range spans, HMAC-verified digests, claim->evidence edges; read-time integrity fails closed (STORE_CORRUPT) rather than serve unverified content.
  • Local-first - one SQLite file, no server, no GPU, no vector database; cryptography is the only hard dependency.
  • Host-neutral - Python Memory facade, HTTP service, MCP server, and a Hermes memory-provider entry point; hosts are thin adapters.
  • Honest capabilities - every operation reports healthy / degraded / unavailable; optional lanes (semantic embeddings, neural encoder) degrade explicitly instead of silently serving weaker results.
  • Deletion closure - forget suppresses and purges through the dependency graph; scoped partitions fence every read.

Optional extras: pip install verbatim-memory[semantic] (numpy embedding lane), verbatim-memory[dev] (pytest, pytest-xdist, pyyaml).

Benchmarks

Measured on the agent-memory-benchmark harness (deterministic retrieval, mimo reader + nemotron judge at temperature 0; MCQ rows unjudged):

dataset score
locomo locomo10 94.94% - all categories >=90
precisionmembench 100% (P = R = 1.00)
sdebench boltons 100% - first measured row
lifebench en 83.2% - all 10 units
longmemeval s 87.80%
personamem 32k / 128k 73.0% / 67.9%
beam 100k 67.5%
msc_memfuse 98.6%
membench reflective 74.7%

Published rows on the same harness: locomo 94.94% vs MemMachine 91.7%; lifebench 83.2% vs MemOS 55.22%; precisionmembench 100% vs open-knowledge-format 46.75%; longmemeval-s 87.80% vs Chronos 95.6% and Mastra 92.8%. Those rows use a different reader/judge pairing than ours, so the comparison is directional rather than strict apples-to-apples - the longmemeval row is a genuine loss. Full matrix, per-dataset recipes, judge-churn bounds and the freeze-verification gate live in BENCHMARKS.md and eval/amb/RECOMMENDED_ENV.md.

Development

python -m pytest tests/ -n auto     # full suite, parallel (recommended)
python -m pytest tests/             # same suite, serial
python -m eval.v3.run               # internal eval harness (see eval/v3/)

The suite runs offline against tiny fixtures in tests/ - no server, no network. CI (.github/workflows/ci.yml) runs it on Python 3.11 and 3.12, plus a packaging job that builds the distributions, checks metadata with twine, installs the wheel into a clean environment and runs tools/ci_smoke.py (capture -> readiness -> recall -> inspect -> deletion closure, plus a bearer-auth check on the HTTP surface).

Releases are cut by pushing a v* tag: .github/workflows/release.yml builds, verifies the wheel, publishes to PyPI via trusted publishing, and attaches the distributions to the GitHub release.

License

MIT - see LICENSE.

Metadata

Release files for verbatim-memory 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verbatim-memory 1.0.0
File Size Uploaded Provenance Actions
verbatim_memory-1.0.0.tar.gz 2.0 MB With provenance Details for verbatim_memory-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for verbatim-memory 1.0.0
File Interpreter ABI Platform Actions
verbatim_memory-1.0.0-py3-none-any.whl Python 3 none any Details for verbatim_memory-1.0.0-py3-none-any.whl

Total release size: 4.1 MB

Release files / verbatim_memory-1.0.0.tar.gz

Download URL verbatim_memory-1.0.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
16cb0affef51de62f4a533bec88a4d1cede620d71ebdfd0c90f7ba66a71a183f
BLAKE2b-256 checksum
How to use checksums
7c9d2dff0d44df3ed9896cf5fdf5e8e0f9d7791f4a1c6e7368a1e5d0f31ebb80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / verbatim_memory-1.0.0-py3-none-any.whl

Download URL verbatim_memory-1.0.0-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
238845e05ed36d7e61bace681ac0335131ec4bc33932e8b9a17290aca80a56e6
BLAKE2b-256 checksum
How to use checksums
241416f710095605b6b56599f49090782d948d72943216944fd0359cbaae122c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for verbatim-memory 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for verbatim_memory-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page