git404hub

what is cai fr?

piot5/cai — explained in plain English

Analysis updated 2026-05-18

2PythonAudience · developerComplexity · 4/5LicenseSetup · moderate

tl;dr

A personal memory system for AI coding assistants that stores searchable notes, a growing file archive, and automatically finds and reuses patterns from past sessions.

vibe map

mindmap
  root((CAI))
    What it does
      Persistent memory
      Pattern detection
      Auto tool creation
    Tech stack
      Python
      LanceDB
      Ollama
    Storage layers
      Vector store
      Mycelium archive
      Workspace config
    Use cases
      Assistant memory
      Semantic search
      Automation

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Give a coding assistant persistent memory that carries over between separate sessions.

VIBE 2

Search past notes and decisions by meaning instead of exact keywords.

VIBE 3

Automatically turn repeated coding patterns into reusable tools.

VIBE 4

Run a set of background services that manage memory, files, and messaging for an assistant.

what's the stack?

PythonLanceDBOllamaMCPVS Code

how it stacks up fr

piot5/cai0-bingwu-0/live-interpreter0cm-labs/tokenizer-benchmark
Stars222
LanguagePythonPythonPython
Setup difficultymoderatemoderatemoderate
Complexity4/52/52/5
Audiencedevelopergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires Ollama with two pulled models plus a Python virtual environment before first run.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice (MIT license).

in plain english

CAI, short for Context Aware Infrastructure, is a personal memory and automation system for developers who use AI coding assistants. It is built in Python and is meant to give an AI assistant a persistent memory that survives across separate coding sessions, instead of starting fresh every time you open a project. The system stores information in several layers. A vector database called LanceDB holds text turned into searchable embeddings, so related past notes can be found by meaning rather than exact keywords. A second storage layer, called Mycelium, keeps a plain markdown file archive that grows and branches over time like a small file based graph. These layers sit underneath a set of small background services, described as MCP servers, that handle jobs like reading and writing memory, managing the filesystem archive, watching for changes, and relaying messages through a service called Threema. There is also a scheduled batch process that reviews the last one hundred stored memory entries once a day, looks for repeating patterns using a local language model, and can turn those patterns into new reusable tools that get loaded automatically. The project ships with a full VS Code setup, including recommended extensions and launch configurations, and includes its own test suite. Setup requires Python 3.10 or newer, the Ollama tool for running local models, and pulling two specific models for embeddings and analysis before installing Python dependencies from a requirements file. Some automation pieces, such as the autostart component, are written for Windows specifically. The project is licensed under the MIT license, which allows free use, including commercial use, as long as the copyright notice is kept. It has a small number of stars so far and appears to be an individual developer's personal infrastructure project rather than a widely adopted tool.

prompts (copy fr)

prompt 1
Walk me through installing CAI, including the Ollama models it needs before I install Python dependencies.
prompt 2
Explain how CAI's four storage layers work together and when each one is used.
prompt 3
Show me how to run CAI's daily batch consolidation process manually with a dry run.
prompt 4
Help me adapt CAI's autostart component so it works outside of Windows.

Frequently asked questions

what is cai fr?

A personal memory system for AI coding assistants that stores searchable notes, a growing file archive, and automatically finds and reuses patterns from past sessions.

What language is cai written in?

Mainly Python. The stack also includes Python, LanceDB, Ollama.

What license does cai use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice (MIT license).

How hard is cai to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is cai for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.