explaingit

da7-tech/mind

Analysis updated 2026-05-18

6PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A single offline Python file that gives AI coding agents brain-like memory with spreading-activation recall, Ebbinghaus forgetting, and a deterministic dream cycle, no API keys, no dependencies, works with Claude Code, Codex, and Cursor.

Mindmap

mindmap
  root((mind))
    Three memory layers
      Working memory ACTIVE.md
      Hippocampus graph.json
      Cortex consolidated knowledge
    Dream cycle
      Light clears session signals
      Deep Ebbinghaus decay
      REM clusters and promotes
    Recall method
      Spreading activation
      Keyword and IDF fusion
      Fuzzy fallback
    Agent integrations
      CLAUDE.md Claude Code
      AGENTS.md Codex Cursor
      GEMINI.md
    Performance
      100pct recall at 1000 nodes
      Under 3ms median latency
      Zero dependencies offline
Click or tap to explore — scroll the page freely

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 build with it?

USE CASE 1

Give Claude Code persistent memory across sessions so it remembers your project's database choice, coding conventions, and architecture decisions without you repeating them.

USE CASE 2

Run the dream command nightly to consolidate an agent's accumulated notes, fade unimportant facts, and promote recurring patterns into durable memory.

USE CASE 3

Share one memory store across Claude Code, Codex, and Cursor so all three agents read from the same project context.

USE CASE 4

Build a bilingual (English and Arabic) agent workflow where the memory system recalls facts correctly in both languages without external embeddings.

What is it built with?

Python

How does it compare?

da7-tech/mindashishdevasia/ha-proton-drive-backupbro77xp/beginner-friendly-ai-vtuber
Stars666
LanguagePythonPythonPython
Setup difficultyeasymoderatehard
Complexity2/52/53/5
Audiencedeveloperops devopsgeneral

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

How do you get it running?

Difficulty · easy Time to first run · 5min

Single Python file with zero dependencies, download, run init, then start using remember and recall immediately.

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

In plain English

Mind is a memory system for AI coding agents that mimics how human memory works. It is a single Python file with no external dependencies and no API keys required. Everything runs offline on your machine. You install it by downloading one file, initializing a local memory store, and from that point forward your agent can remember and recall facts across sessions. The memory system has three layers, described in brain terms. Working memory holds the hottest, most recently used memories and is automatically injected into the rule files your agent reads at the start of each session (CLAUDE.md for Claude Code, AGENTS.md for Codex and Cursor, GEMINI.md for Gemini). The hippocampus layer is a weighted graph of connected concepts stored as a JSON file, searched using spreading activation across up to three hops rather than flat keyword matching. The cortex layer holds durable, consolidated knowledge that gets promoted from the graph over time. Between sessions you run a dream command that performs three passes: a light phase clears session markers, a deep phase applies the Ebbinghaus forgetting curve so unused memories fade and frequently recalled ones become more stable, and a REM phase clusters related memories together and promotes recurring themes into long-term cortex storage. The dream cycle is fully deterministic and produces no AI calls or token costs. The project has been extensively benchmarked. It reports 100% recall at rank 1 on graphs of 100 and 1,000 nodes with median latency under 3 milliseconds. The same recall figure holds across 10 languages in CI testing, with specific engineering for English and Arabic. A 180-day simulated soak test confirmed that core facts survived while junk notes were pruned correctly. The tool is engineered for EN + AR but has been measured on French, German, Spanish, Russian, Turkish, Chinese, Japanese, and Korean. The MIT-licensed project provides a suite of 165 tests including fuzz testing, mutation testing, and concurrency regression tests.

Copy-paste prompts

Prompt 1
I installed mind.py for use with Claude Code. Show me how to store my project's tech stack and architecture decisions, run a dream consolidation, and verify the facts appear in CLAUDE.md.
Prompt 2
My coding agent using mind.py is recalling the wrong fact when I ask a question. How does spreading activation search the graph.json, and how do I debug which nodes it is traversing?
Prompt 3
I want to correct a wrong memory in mind without deleting it. How does reconsolidation work and what command do I use to update a stored fact?
Prompt 4
Walk me through the 180-day soak test results for mind.py, what kinds of memories survive, which get pruned, and how do I tune the Ebbinghaus decay settings for my own workflow?

Frequently asked questions

What is mind?

A single offline Python file that gives AI coding agents brain-like memory with spreading-activation recall, Ebbinghaus forgetting, and a deterministic dream cycle, no API keys, no dependencies, works with Claude Code, Codex, and Cursor.

What language is mind written in?

Mainly Python. The stack also includes Python.

What license does mind use?

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

How hard is mind to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is mind for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub da7-tech on gitmyhub

Verify against the repo before relying on details.