The context-budget engine for AI agents — persistent typed memory with token-budget curation. Name-holding pre-release; v0.1 in active development.
Project description
Tulving
The context-budget engine for AI agents.
Status: pre-release (0.0.1) — name-holding release; v0.1 is in active development.
Tulving is a model-agnostic Python SDK that gives an AI agent persistent, structured, searchable working memory — and, as its headline capability, curates that memory back into a fixed token budget:
ctx = memory.curate("resuming work on the auth refactor", token_budget=4000)
Named after Endel Tulving, the psychologist who established that memory has types (episodic vs semantic). Typed memories — facts, decisions, observations, plans, summaries, each with its own lifecycle — are Tulving's core data model.
What v0.1 will ship
- Core memory engine — store / get / semantic search over typed memories; zero infrastructure (one SQLite file, local vectors optional, no API key required)
- Token-budget context curation —
curate(query, token_budget)selects, ranks, and trims memories into a prompt-ready block;orientmode for cold starts - Lazy decay & eviction — importance fades per-type over time; decisions never decay; nothing is destroyed, only archived
- Sessions — per-agent session tracking, end-of-session summarization, abandoned-session recovery
- MCP server — six tools for Claude Code and other MCP clients, with single-writer safety
- Adapters & export — pluggable embeddings/LLM, JSON round-trip export
By the same author: Kairos (kairos-ai) — contract-enforced AI workflows. A kairos-ai-tulving integration plugin is planned.
License
TBD (MIT or Apache 2.0) — will be finalized with the v0.1 release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tulving-0.0.1.tar.gz.
File metadata
- Download URL: tulving-0.0.1.tar.gz
- Upload date:
- Size: 95.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9531c88190b1e76e8fbcfbf08e17122e88faff56900bae735bce784a2cebbe31
|
|
| MD5 |
1d4f95a065e776c861b48da258ba48b3
|
|
| BLAKE2b-256 |
94ea346d6b889ee8f0562ba57e00b707949c0f176499b6e00ff46eacb9fe4d3a
|
File details
Details for the file tulving-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tulving-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f96419b508611065ef9031ac2a5afe0498e5ec4ef7c6cfa5771c1515e6e6fc5
|
|
| MD5 |
27dcd01d76664fc6d350e348a0910652
|
|
| BLAKE2b-256 |
3b4d3b9e322674b4b8e972b79f11ddb08965cac9e010c671c6231af97e8607b7
|