zkr
Evidence-backed temporal memory for personal agents.
zkr keeps source evidence authoritative, represents facts as temporal claims, and produces bounded retrieval packs with citations. Embeddings and search indexes are projections that can be rebuilt from the stored evidence.
Principles
- Sources and evidence are authoritative; indexes are disposable.
- Claims keep both when they were true and when they were recorded.
- Corrections supersede history instead of silently rewriting it.
- Retrieval is bounded, tenant-scoped, and cited.
- Reflection proposes durable changes; it does not bypass evidence.
See the architecture, embedding design, and memory-system research.
Install
The library is consumed as the zkr crate. The CLI reads one JSON object from stdin and writes one JSON object to stdout.
|
|
Run zkr --help for correct, delete, review, reviews, and embed.
Agent plugins
OpenClaw
Link or copy plugins/openclaw into an OpenClaw extension location, install it with Bun, then enable the zkr plugin. Its optional command and database settings default to zkr and ~/.zkr/memory.db.
Hermes Agent
Link or copy plugins/hermes to $HERMES_HOME/plugins/zkr, then set:
memory:
provider: zkr
Both plugins expose store, search, correction, deletion, and cited reflection through the neutral CLI. They do not add framework dependencies to the Rust crate.
Development
License
Acknowledgements
The systems and research that informed zkr are listed in ACKNOWLEDGEMENTS.md.