chriswu727

MemBrain — AI skill for Claude Code

AI community

A human-inspired memory engine for AI agents.

How to install MemBrain

This entry records only its repository, not the path inside it, so there is no exact command to give. Open chriswu727/memBrain and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What MemBrain does

A human-inspired memory engine for AI agents.

Alternatives in AI

README

memBrain

English | [简体中文](README.zh-CN.md)

memBrain gives Claude Code, Codex and other supported agents one shared memory on your own computer: it keeps what you said apart from what the assistant suggested, shows which messages a note came from, and lets you look through and delete what it keeps.

![Demo of the memBrain memory page with fictional data: the 3D Showcase, then the Memories graph, a picked note, and the page opened at that note with the messages it came from](.github/assets/demo.gif)

*The real memory page with fictional data recorded through the plugin's hooks, one recording sped up in parts, with the pointer drawn in. The brain shell and glow are decoration, and the travelling light is simulated, not agent activity ([what the demo shows](.github/assets/README.md)).*

**Try it in Claude Code** ([Codex and other hosts](#claude-code-plugin)). Install [uv](https://docs.astral.sh/uv/), then run:

claude plugin install membrain --marketplace chriswu727/membrain

Then start a new session. It downloads about 260 MB, memory starts working within about a minute and a half, and messages sent before memBrain has installed itself are not kept ([first run](#what-is-and-is-not-verified)).

**What is different**

  • One local memory for Claude Code and Codex: both use the same embedded database on your computer, with no cloud account, no API key and no model of memBrain's own.
  • Your words are kept apart from the assistant's: automatic recall leaves the assistant's earlier replies out unless you ask about them.
  • You can see what a memory rests on: the local memory page (membrain plugin ui) shows the messages a note came from and the note it replaced.
  • You can delete it from the page, or tell your agent to forget it, and either way you are told what goes with it, such as the agent's reply and the notes resting on a message.

**What is and is not verified**

  • First run. Measured in a Linux