braindump

Crates.iobraindump
lib.rsbraindump
version0.0.2
created_at2025-12-04 22:53:09.966543+00
updated_at2025-12-07 00:44:06.670635+00
descriptionAn ergonomic, opinionated memory interface for AI agents.
homepage
repositoryhttps://github.com/joshua-mo-143/braindump
max_upload_size
id1967262
size138,429
Joshua Mo (joshua-mo-143)

documentation

README

braindump

This library primarily aims to provide a reliable, competent memory engine for AI agents in Rust.

What is memory?

Memory can be defined as the ability of an AI agent to store, recall and use information from past interactions to personalise interactions with users, adapt its behaviour over time and increase its accuracy over time by reviewing conversations, summarizing them and storing facts about them.

In programming terms, this means creating an abstraction that can do the following:

  • Inject context into system/user prompts based on previous interactions with a user
  • Summarize past and current conversations, and then store them somewhere
  • Manage aforementioned memories, carrying out operations like memory compaction, consolidation, and more

The idea is primarily backed by context engineering (the practice of engineering the agent's environment rather than the prompt) becoming a very crucial aspect of agent development currently.

Features

  • Comes with an in-mem impl for 100% in-process memory storage
  • Generic interfaces for vector stores, embedding and memory generation
  • Core lib is WASM compatible (see wasm section)
  • Integration with Rig (rig-core) for hassle-free memory generation

WASM/WebAssembly compatibility

To enable WASM, you need to enable the wasm feature then compile to any kind of wasm32 target.

The following braindumpfeatures are also compatible with WASM:

  • rig-wasm (rig-core compiled with the worker feature)

WASM is incompatible with the fastembed feature due to it using some not-WASM friendly components.

Roadmap

  • Memory compaction/consolidation
  • More integrations for vector stores
  • Improving in-memory impl for better hot caching performance without a third party provider
  • More examples!
Commit count: 0

cargo fmt