Your memory,
in a folder any LLM can read

Markdown notes about you, your projects, people and ideas, plus skills that teach your agent to search them, fill them and keep them tidy. Every session starts knowing what you decided last month, on any project, on any machine.

Claude Code Codex Gemini CLI any agent that reads AGENTS.md
The brain viewer's home page: a capture box, what needs attention, recent notes, scheduled jobs and the brain's history

A memory that looks after itself

You talk to your agent; the brain keeps what matters, files it where it belongs and stays small enough to read whole.

Light sessions

Nothing loaded up front but a short AGENTS.md. A hook adds the paths of the notes matching each prompt; skills load only when a request needs them.

No duplicated data

Live data stays in its app: sources.md records which CLI reads it (gh, cf, bw…) and agents run it. Never a copy that goes stale.

Tidies itself

Agents save what you tell them without asking; at night, when it is due, a background agent files the inbox, merges duplicates and drops what is no longer true.

No secrets

brain lint and a pre-commit hook refuse tokens, keys and passwords: a note names the vault item instead.

Saves itself

After each reply, changes are committed and pushed to your private remote; a session starts by pulling what another machine pushed.

From any project

A small user-level skill lets a session in any repo search your brain and save to it: "as on my other project" just works.

A quick tour

The viewer (brain web) over a made-up brain (pnpm screenshots): Sam, a freelance developer with a client shop, a homelab and a blog.

Every note, with its links

  • Rendered Markdown, [[links]] followed, broken ones marked
  • Backlinks and the note's neighbourhood beside it
  • Ctrl K anywhere: notes, pages, actions
A project note with its links, backlinks and neighbourhood graph

Todos from every note

  • Every - [ ] line of the brain, sorted by due: date: late, today, coming
  • Checked off, deleted or added from here, each change committed
The todos page: late, today, coming, no date

Projects and where their code is

  • Each project note with its status
  • Its clone found on this machine, by its remote or its name
  • Agents hand code work to a session started in that repo
The projects page: status, local clone and remote of each project

The graph of your links

  • Notes coloured by folder, linked by their [[links]]
  • Highlight a search, click a note to open it
The graph of the notes and their links

Light or dark

  • Follows your system, or the toggle in the sidebar
  • A tray icon on Windows: synced, running or failed at a glance
  • Remote Control: chat with your brain from the Claude app
The viewer's home page in the light theme

Install

  1. Node.js 20+, then the one-line installer: it installs the brain CLI and creates ~/brain.
    # macOS, Linux, WSL
    curl -fsSL https://raw.githubusercontent.com/lxtzfr/brain/main/install.sh | sh
    
    # Windows (PowerShell)
    irm https://raw.githubusercontent.com/lxtzfr/brain/main/install.ps1 | iex
  2. Open a session there (cd ~/brain && claude) and say "set up my brain": the agent interviews you, lists your projects and finds the CLIs on your machine.
  3. brain web opens the viewer; brain daemon autostart on keeps it syncing and tidying from login.
~/brain
├─ AGENTS.md          rules for every agent; CLAUDE.md imports it
├─ sources.md         tools and CLIs, how to read them
├─ me/                you: profile, preferences
├─ projects/<slug>/   a README per project, one note per subject
├─ people/  notes/    everything else; notes/inbox/ for raw captures
└─ .claude/           skills and hooks

Every command, the agents supported and the daemon's jobs are in the README. Plain files in a git repository you push wherever you want, or nowhere.