Second Brain app › Guides › Claude Code
On your Mac · about 10 minutes

Connect Claude Code to Second Brain

Claude Code installed on your Mac. Your Second Brain folder must be in a cloud folder on that Mac.

Steps

Do these in order

  1. In the Second Brain app press Add an AI. Name it, choose Claude Code, press Continue, then press Copy the paragraph.The Second Brain app on its Set up Claude Code screen, with the paragraph to copy and a Copy the paragraph button at the bottom.
  2. In the folder you work in, create a file called CLAUDE.md and paste the paragraph into it. Claude Code reads this file at the start of every session.A file called CLAUDE.md open in a text editor, holding the pasted paragraph.
  3. Open Terminal. Go to your work folder, then start Claude Code with permission to use your Second Brain folder and to save your entries: type claude --add-dir, then the path of your Second Brain folder in quotes, then --permission-mode acceptEdits. Press Enter. The app shows that path on its Health page. The first time in a folder, Claude Code asks whether you trust it: choose Yes, I trust this folder. Already running Claude Code? Type /exit and start it again this way.A Terminal window with the command claude --add-dir, the path of the Second Brain folder in quotes, then --permission-mode acceptEdits, ready to press Enter.
  4. Give it a job. Claude Code reads your Second Brain before it starts. When it finishes it saves an entry without asking you.Claude Code in Terminal after a job, reporting that it recorded an entry in its diary, with accept edits on shown at the bottom.
Check it works

Give it a test job

Tell your AI: Mr Patel accepted our kitchen quote. The agreed price is £4,200 and work starts on 3 November. Confirm the job in one sentence.

Open the Second Brain app. Within about a minute a new entry appears on that AI's card saying Mr Patel accepted the quote at £4,200. If it does, you are done. Entries are never deleted, so leave it or ignore it.

The Second Brain app on the Claude Code page, showing the entries Claude Code wrote.
If it does not work

3 things to try

What we tested

Tested 6 October 2026 in a live session started with the command in step 3

Tested 6 October 2026 in a live session started with the command in step 3: Claude Code wrote a correct entry without asking permission. Started with --add-dir alone, a run with nobody at the keyboard could read the folder but could not write. It said so.

Other guides: Claude on claude.ai or in the Claude app · ChatGPT desktop app (Codex) and Codex · Cursor · Hermes · Grok Bot · Grok and ChatGPT on the web

Not got Second Brain yet?

£99 once, for a limited launch period

The normal price is £499. £99 is the price for a limited launch period. With the app you do it yourself in about 10 minutes.

Buy Contigi's Second Brain for Mac  £99