kana
Memory for LLM agents, modelled on how people remember.
Storage is cheap; context is not. Kana never deletes a memory. It keeps every experience at several layers of resolution, from a one-line gist down to the raw trace, and pulls in only as much as the current step needs:
- Think with the gist first. Recall starts at the top layer and stops as soon as that is enough.
- Dig when stuck. When the agent makes no progress, recall walks down the hierarchy toward finer detail.
- Dream. Offline, Kana replays what happened, consolidates episodes into abstractions and skills, adds shortcuts to memories that turned out useful, and retrains its small System One traverser on which memories actually helped.
The goal is memory that gets cheaper with experience: fewer hops and fewer context tokens per task, without losing accuracy.
pip install kana-memory
import kana
mem = kana.Memory("agent.db")
mem.add(event) # stored raw, never deleted
ctx = mem.recall(query, budget=800) # walk layers, stop early when the gist suffices
mem.feedback(outcome) # did the task succeed?
mem.dream() # consolidate, rewire, retrain
Status: planning. This release reserves the name; the API above is the target, not yet implemented. Part of an IIT Madras MTech thesis on adaptive memory for autonomous LLM agents.
Metadata
Release files for kana-memory 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kana_memory-0.0.1.tar.gz | 2.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kana_memory-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / kana_memory-0.0.1.tar.gz
| Download URL | kana_memory-0.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89f74d94c854361e2f7fdb11d7406c0cee16e50522f8d76a195590fea8666781
|
|
BLAKE2b-256 checksum How to use checksums |
6b064f3160d9b26c62c3535661bdf71648fb52a6600a65151628c692be7c0f9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / kana_memory-0.0.1-py3-none-any.whl
| Download URL | kana_memory-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9220fc7d3008be6b932c69f719f8593f35a1d47d232692e05ebfd7bbd68ab0e3
|
|
BLAKE2b-256 checksum How to use checksums |
2da3002e4cf2b0fbd4e1f240aa495a104e79f7ceed37a62944810a0adf26e306
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for kana-memory 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.