Plain markdown · on your machine

A shared space for you and your AI.

Notes that you and your agent both read and write, so it stops re-deriving who you are every session. Plus a board to see what it's doing, what it learned about you and what's next.

Works with Claude Code and Codex. The notes are plain files, so any agent that can read a folder can use them. Mac app: built for you during setup.

me.mdYou wrote
## How I work
- Short answers first; details on request.
- Reminders go to the phone calendar, not the terminal.
claude/habits.mdClaude wrote

Lead with the answer, keep it short

On · Sam asked for shorter replies on Sept 3.

nudges.mdClaude wrote

Send Priya two meeting times

You told her on Sept 12 you'd send times "early next week". She's holding a sponsorship slot for the club.

Brain app running on the example notes
The board, on example/: a fictional student's notesMac · browser · phone

What's on the board

Everything is plain markdown on your machine. Python standard library, no build step.

01Cover storyClaude writes a magazine-style headline about your week after real work.
02Habits Claude followsClaude proposes habits; you switch each one on or off.
03Notes to selfReminders Claude adds only when they help. Done, snooze, or "not doing this".
04⌘K captureType a thought, to-do or person. Claude files it into the right note next session.
05Custom tilesAny tiles/*.md becomes a tile, optionally kept live by a script.
06On your phoneWorks with your laptop off, using a private GitHub repo of yours as the backend.

Set it up with one prompt.

Paste one of these into Claude Code or Codex and answer its questions. It asks before anything that touches your accounts.

Or try it in 30 seconds. example/ is a fictional student's notes. Python 3.9+, macOS, Windows and Linux.

git clone https://github.com/zacfink/brain.git
cd brain
python3 app/server.py --notes example      # opens http://127.0.0.1:4747

No notes yet, or you'd rather begin clean. Claude interviews you and writes your first notes.

Set up Brain (https://github.com/zacfink/brain) for me from scratch. Work through it step by step, tell me what each step is for in one line, and ask me before anything that touches my accounts.

1. Clone https://github.com/zacfink/brain.git into ~/Notes/.brain (keep anything already in ~/Notes), link ~/Notes/.brain/bin/brain into ~/.local/bin (create it, and add it to my shell profile's PATH if it isn't there), and read ~/Notes/.brain/README.md and FORMATS.md before going on.
2. Interview me briefly: my name, what I do, my active projects, people I work with, anything due in the next two weeks. Then write my first notes in the FORMATS.md shapes: me.md, now.md, one page per project, people pages, nudges.md, ideas.md, inbox.md and claude/habits.md (two or three habits from what I told you, status "proposed"). If you can see my projects folder, calendar or email, use them to fill gaps, and say what you took from where.
3. Connect yourself: if you're Claude Code, add the SessionStart hook from the README to ~/.claude/settings.json (merge, don't overwrite) and the README's standing instructions to my CLAUDE.md; if you're Codex, run python3 ~/Notes/.brain/codex.py. Then run python3 ~/Notes/.brain/build.py.
4. Start the app with `brain` and check it opens at http://127.0.0.1:4747. On a Mac, ask me whether I want it as an app; if yes, run ~/Notes/.brain/mac/build.sh (needs Xcode's command line tools) to make ~/Applications/Brain.app.
5. Phone (ask me first): add ".brain/" to ~/Notes/.gitignore, create a PRIVATE GitHub repo "notes" with gh, add docs/notes-workflow.yml as .github/workflows/brain.yml plus phone/queue/.gitkeep, commit and push, and wait for the Action's first run to write phone/state.json.
6. Walk me through making the phone key (README → On your phone, step 3); I paste it to you. Then give me my one-tap install link: https://brain.zacfinkelstein.ca/mobile/#c= followed by base64 of {"repo":"<me>/notes","token":"<key>"}. Tell me to open it in Safari, tap Share → Add to Home Screen, and treat the link like a password. Don't save the key anywhere.
7. Finish with a short list: what's set up, what I should try first, and anything that didn't work.
Brain's phone app on the example notes

In your pocket, laptop off.

A home-screen app with the cover, Up next, notes to self, projects, ideas and capture. It uses a private GitHub repo of yours as the backend. The setup prompt ends with a one-tap install link.