augmented brain

How it works

augmented brain is one small program and a folder of notes. This is how the pieces fit:

augmented brain in four layers

Four layers

LayerWhat it isWhere it lives
3 · You and your assistantYou talk to Claude Code as usual. No new commands to learn.Your terminal
2 · The pluginThe doors Claude uses to reach the program: two hooks and an MCP server.Inside Claude Code, which installs it
1 · The programaugmented-brain, a single file. It guards commands, keeps tasks, rebuilds the index and runs the backup.~/.local/bin/augmented-brain
0 · Your filesPlain text: the configuration, your notes and, if you want, their backup.~/.config/augmented-brain/, ~/augmented-brain/ and your git repo

Put another way: your notes are a notebook, the program keeps it in order and the plugin is the door. You only talk to Claude; Claude comes in through the door and the program writes in the notebook.

Two words that come up a lot:

A session, step by step

A session, step by step

1. You open Claude. The start hook looks at the folder you are in and picks your space. Before you type anything, it hands Claude your profile, your rules and the list of live tasks. That is how it knows where you left off.

2. You say “park it”. Claude uses the task_park tool. The program writes down in the task file where it stopped and what the next step is, and rebuilds the index. The next session starts from there. Opening, resuming and closing work the same way.

3. Claude is about to run a command. The guard hook reads it first and decides:

It also looks inside ssh, bash -c and loops. It reads the shell, not PowerShell, so it stops every PowerShell command too, and Claude runs it in Bash instead. It is a net against slips, not a security wall: read the disclaimer.

What is due that day. If a task has a watch date for today or tomorrow, or you said “remind me on Thursday” about something, Claude tells you as soon as you start. And when the last review is a week old or more and there are captures in the inbox or stalled tasks, it offers the weekly review: about ten minutes going through each of them with you.

4. You close the session. The end hook starts the backup of the space, in the background, if you set one up. You wait for nothing. If it fails, Claude tells you at the start of the next one.

Your files

Everything lives in ~/augmented-brain, one folder per space. You work inside it, and its notes go in notes/:

~/augmented-brain/
├── work/                 open Claude here for work
│   ├── notes/
│   │   ├── MEMORY.md     the index Claude reads at the start (written by the program)
│   │   ├── inbox.md      quick notes, to sort out later
│   │   ├── areas/        what you always look after: "the website", "the servers"
│   │   ├── tasks/        one file per task
│   │   ├── knowledge/    how things work and what you learned
│   │   ├── people/       who you deal with, so it knows who "Marcos" is
│   │   ├── rules/        rules for this space only
│   │   ├── reviews/      weekly reviews
│   │   └── archive/      old stuff; never loaded, never deleted
│   └── (your projects)
└── personal/             and here for personal things, with its own notes/

Your profile, who you are and how you like to work, is one for every space: ~/.config/augmented-brain/profile.md. You don't write it by hand: the first time you open Claude, it asks six quick questions, saying why it asks each one. With your answers it saves the profile, creates your areas, tells the guard what is production and which machines must not be touched, and notes the people you work with. To change anything, tell it.

A task is a text file. At the top, between the --- lines, the data the program uses. Below, what you and Claude write:

---
id: task-add-a-contact-form
type: task
title: Add a contact form
area: area-website
status: parked
waiting_on: me
next: Write the plan
created: "2026-10-15"
updated: "2026-10-15"
---
## Essentials
Name, email and message, sent by email.

## Journal
- 2026-10-15 — Task opened.
- 2026-10-15 — Parked. Next: Write the plan

You can open and edit everything with any editor. The full format is in memory-format.md.

Work and personal, apart

A space is a full set of notes, rules and backup. The installer creates two, work and personal. The folder where you open Claude picks the space, following your configuration:

# ~/.config/augmented-brain/config.toml
default_space = "personal"

[spaces.work]
memory = "~/augmented-brain/work/notes"
work_folders = ["~/augmented-brain/work"]

[spaces.personal]
memory = "~/augmented-brain/personal/notes"
work_folders = ["~/augmented-brain/personal"]

In ~/augmented-brain/work/website, Claude sees your work notes. In ~/augmented-brain/personal/blog, your personal ones. They never mix.

What if you open Claude in another folder? For example, the desktop app starts each new session in a scratch folder of its own. Then the default space, personal, is used, and Claude tells you in one line, with how to switch to work. You can change it in default_space, or remove it.

Do your projects already live elsewhere, like ~/code? Add that folder to the work_folders of the right space. For a new space (a client, say): augmented-brain space add client.

The backup

The notes folder of each space is also a git repository. The backup pushes it to a private repository of yours, one per space.

Setting it up: ask Claude. Say “set up the backup” (it offers at the end of the interview). It creates a private repository in your GitHub account, augmented-brain-<space>, connects it and makes the first copy. For that it uses gh, GitHub's official command line: if you don't have it, Claude tells you how to install it and walks you through the one step that needs your browser, logging in. Rather somewhere else (GitLab, your company's git)? Give it the repository's address, or do it yourself:

augmented-brain backup setup git@gitlab.com:you/my-brain.git

From then on it runs by itself every time a Claude session ends, in the background. If it fails (no network, no access to the repository), Claude tells you at the start of the next one. You can also run it by hand:

augmented-brain backup          # this space
augmented-brain backup --all    # every space

On a new machine

  1. Install augmented brain with the usual command. It creates the spaces, empty. If Claude opens at the end, close it without doing the interview: your profile comes in the backup.
  2. Bring each space back from its backup:
    augmented-brain restore https://github.com/you/augmented-brain-work.git
    It replaces the empty space with yours: notes, tasks, rules, your profile and the space's settings. If that space already had notes of yours, it leaves it alone.
  3. Open Claude. It carries on where you left off, and the backup keeps running by itself.

If the repository is on GitHub, log in once with gh auth login before restoring, so git has access.

What you get:

To turn the automatic backup off: AB_NO_AUTO_BACKUP=1.

What it does not do

Update it

When a new version is out, Claude tells you at the start of a session and offers to update it. You can also do it yourself:

augmented-brain update

It updates the program and the Claude plugin. Your notes and your configuration are not touched. Then close and open Claude so it uses the new version.

Remove it

augmented-brain uninstall

It removes the Claude plugin and the program, after asking. Your notes stay in ~/augmented-brain/: they are yours. Your configuration stays too (to remove it: augmented-brain uninstall --config), and so do Claude Code, its app and git. If you install it again, you find everything as it was.

← Back to augmented brain