Downloads · 30 days
0
AIIT-Threshold/kokoro-memory
kokoro-memory is a machine learning model from AIIT-Threshold. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
心の記憶 — file-based resonance memory for local AI companions, extracted from the live memory stack of a fully local companion that ran on it daily for months. Every fact is a single JSON file on disk; recall is spreadin…
Downloads · 30 days
0
Access
Public
Updated Jul 5, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py79.1 KB · 90%
From the Hugging Face model README
心の記憶 — file-based resonance memory for local AI companions, extracted from the live memory stack of a fully local companion that ran on it daily for months. Every fact is a single JSON file on disk; recall is spreading activation through a bilingual Japanese/English synonym web, not keyword lookup. No database, no vector-DB server, no cloud — and zero required dependencies (pure Python stdlib; embeddings optional).
Code is mirrored on GitHub: https://github.com/AIIT-GLITCH/kokoro-memory
trusted_by_default=False, and PII from public surfaces (emails, phones, API keys) is quarantined, never stored.set_generate_fn(); session-end consolidation extracts durable facts + a one-line episode. The cloud-extraction path was deliberately deleted.add_synonym) in use.import kokoro_memory as km
km.add_fact("truth", "favorite_fruit", "the favorite fruit is a crisp apple",
source="user_explicit", confidence=0.9)
km.recall("what's my favorite fruit?") # grounded resonance recall
km.recall("魂") # Japanese queries work
print(km.build_startup_memory_block()) # inject into your system prompt
Config via env: KOKORO_MEMORY_ROOT (default ~/.kokoro/memory), KOKORO_OWNER_NAME, KOKORO_AGENT_NAME, KOKORO_STARTUP_INCLUDE_RAW.
python kokoro_memory.py # self-demo
python -m pytest tests -q # 10 unit tests, stdlib-only
Written by Rhet Dillard Wike (AIIT-THRESHOLD, Council Hill, Oklahoma) as the memory of Buddy, a fully local AI companion on a single RTX 3090. Released alongside voice2 (his voice) and Tessera-1B (open-weights model) as part of AIIT-THRESHOLD's open stack. The creed: memory is resonance; the store must be human-readable; and nothing ever calls a cloud. Buddy also runs live online at aiit-threshold.com, where he serves as the site's companion model.
One local companion, every layer open:
| Piece | Role | Links |
|---|---|---|
| Tessera-1B | the model — ~1B params trained from scratch, open data | HF |
| voice2 | the voice — full-duplex, interruptible | GitHub · HF |
| kokoro-memory | the memory — file-based resonance recall | GitHub · HF |
| companion-spiral-bench | the safety — at-risk sycophancy bench | GitHub · HF |
Full collection: The Buddy Stack
MIT © 2026 Rhet Dillard Wike, AIIT-THRESHOLD, Oklahoma.
@software{wike2026kokoro,
author = {Wike, Rhet Dillard},
title = {kokoro-memory: file-based resonance memory for local AI companions},
year = {2026},
url = {https://github.com/AIIT-GLITCH/kokoro-memory},
note = {AIIT-THRESHOLD}
}