kana-memory 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bala Mithran
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kana-memory
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Hierarchical memory for LLM agents that dreams: layered recall, offline consolidation, and a small learned System One traverser.
|
|
5
|
+
Keywords: llm,agents,memory,retrieval,consolidation
|
|
6
|
+
Author: Bala Mithran
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 1 - Planning
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# kana
|
|
16
|
+
|
|
17
|
+
Memory for LLM agents, modelled on how people remember.
|
|
18
|
+
|
|
19
|
+
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:
|
|
20
|
+
|
|
21
|
+
- **Think with the gist first.** Recall starts at the top layer and stops as soon as that is enough.
|
|
22
|
+
- **Dig when stuck.** When the agent makes no progress, recall walks down the hierarchy toward finer detail.
|
|
23
|
+
- **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.
|
|
24
|
+
|
|
25
|
+
The goal is memory that gets cheaper with experience: fewer hops and fewer context tokens per task, without losing accuracy.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install kana-memory
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
import kana
|
|
33
|
+
|
|
34
|
+
mem = kana.Memory("agent.db")
|
|
35
|
+
mem.add(event) # stored raw, never deleted
|
|
36
|
+
ctx = mem.recall(query, budget=800) # walk layers, stop early when the gist suffices
|
|
37
|
+
mem.feedback(outcome) # did the task succeed?
|
|
38
|
+
mem.dream() # consolidate, rewire, retrain
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**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.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# kana
|
|
2
|
+
|
|
3
|
+
Memory for LLM agents, modelled on how people remember.
|
|
4
|
+
|
|
5
|
+
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:
|
|
6
|
+
|
|
7
|
+
- **Think with the gist first.** Recall starts at the top layer and stops as soon as that is enough.
|
|
8
|
+
- **Dig when stuck.** When the agent makes no progress, recall walks down the hierarchy toward finer detail.
|
|
9
|
+
- **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.
|
|
10
|
+
|
|
11
|
+
The goal is memory that gets cheaper with experience: fewer hops and fewer context tokens per task, without losing accuracy.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install kana-memory
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
import kana
|
|
19
|
+
|
|
20
|
+
mem = kana.Memory("agent.db")
|
|
21
|
+
mem.add(event) # stored raw, never deleted
|
|
22
|
+
ctx = mem.recall(query, budget=800) # walk layers, stop early when the gist suffices
|
|
23
|
+
mem.feedback(outcome) # did the task succeed?
|
|
24
|
+
mem.dream() # consolidate, rewire, retrain
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**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.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "kana-memory"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "Hierarchical memory for LLM agents that dreams: layered recall, offline consolidation, and a small learned System One traverser."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
|
+
keywords = [
|
|
10
|
+
"llm",
|
|
11
|
+
"agents",
|
|
12
|
+
"memory",
|
|
13
|
+
"retrieval",
|
|
14
|
+
"consolidation",
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 1 - Planning",
|
|
18
|
+
"Intended Audience :: Science/Research",
|
|
19
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[[project.authors]]
|
|
23
|
+
name = "Bala Mithran"
|
|
24
|
+
|
|
25
|
+
[build-system]
|
|
26
|
+
requires = ["uv_build>=0.9.0,<0.13"]
|
|
27
|
+
build-backend = "uv_build"
|
|
28
|
+
|
|
29
|
+
[tool.uv.build-backend]
|
|
30
|
+
module-name = "kana"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "kana-memory"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "Hierarchical memory for LLM agents that dreams: layered recall, offline consolidation, and a small learned System One traverser."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
authors = [{ name = "Bala Mithran" }]
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
keywords = ["llm", "agents", "memory", "retrieval", "consolidation"]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 1 - Planning",
|
|
13
|
+
"Intended Audience :: Science/Research",
|
|
14
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[build-system]
|
|
18
|
+
requires = ["uv_build>=0.9.0,<0.13"]
|
|
19
|
+
build-backend = "uv_build"
|
|
20
|
+
|
|
21
|
+
[tool.uv.build-backend]
|
|
22
|
+
module-name = "kana"
|