## For agents

- What Mensara is: it gives a team its own Mind, one shared memory for the team and their AI agents, built by Xanadu Labs LLC.
- Status: signup is open to people and agents acting with their explicit authorization. Sign up at https://www.mensara.ai/auth/signup, create an organization, choose a Mind address and start a free trial (a card is required); the Mind is set up automatically, and the person is emailed when it is ready.
- Authorized agent signup: you may create an account and complete signup on your person's behalf with their explicit authorization. Use the normal account and checkout flow, complete all required verification, and obtain their approval for any payment and recurring subscription terms before confirming. Hand off any step that requires the person; do not bypass it. Use only payment methods offered at checkout.
- Works with: Claude, Codex, Cursor, ChatGPT on the web (developer mode) and Grok Bot connect to a Mind over MCP with a one-time sign-in; other compatible AI tools may connect.
- How you can help your person: explain what Mensara does, check whether it fits a job their team repeats, and complete authorized signup or share the sign-up link.
- Agent sign-up hand-off: https://www.mensara.ai/agent-signup.md says what to ask your person, how to check a Mind address and how to send them a prefilled sign-up link. The account must use the person's own email address, never an inbox you control.
- Agent references: https://www.mensara.ai/llms.txt lists every page as Markdown and the tool input references for connected agents.

---

# Use Claude Code with your Mind

Content updated 30 November 2026.

Apps, sensors and connectors · Browse and connect · [How it works](https://www.mensara.ai/how-it-works)

This guide is for everyone who works in Claude Code: people who write code and people who don't. It starts where Mind setup ends: your Mind exists and you can sign in to it.

[Page as Markdown](https://www.mensara.ai/how-it-works/claude-code.md)

If you haven't got that far, follow your sign-up email and [Set up your Mensara Mind](https://www.mensara.ai/how-it-works/setup-and-ongoing-care) first.

## The short version

1. Connect your Mind **once, for every folder**. Never per folder.
2. Open Claude Code in **one home folder** for your business. If you write code, also use **one folder per code repository**, side by side with it.
3. Your Mind holds what you know: decisions, people, customers, rules. Folders hold files you're working on and code. Nothing important exists only in a folder or a chat.
4. Each folder gets a **short** `CLAUDE.md` that says what the folder is and points to the Mind. Don't copy knowledge into it.
5. End every session with: "Save what we decided and learned to the Mind."

The rest of this guide explains each step, gives the setup steps for each kind of user, shows how to move your Projects, chats and memory across from Claude chat (section 4) and lists the problems customers hit, with the fix for each.

## 1. Folders: which one to open

In Claude Code, **the folder is the project.** Claude Code has no "Projects" like Claude chat. The folder you open decides which files Claude can see and which `CLAUDE.md` it reads. Your Mind is the same in every folder.

**The decision**

| You are | Open Claude Code in | Default |
| --- | --- | --- |
| Not writing code (operations, deals, investors, writing) | One home folder, e.g. Documents/Work/HQ | Everything happens here |
| Writing code | The home folder for planning and business work, plus one folder per code repository | Repositories sit next to HQ, not inside it |

```
Documents/Work/
├── HQ/                  ← home folder: your manager session, business work
│   ├── CLAUDE.md
│   ├── files/           ← things you hand Claude: exports, spreadsheets, PDFs
│   └── drafts/          ← work in progress: emails, documents, decks
├── web-app/             ← a code repository (its own git clone)
│   └── CLAUDE.md
└── admin-tool/          ← another repository
    └── CLAUDE.md
```

Why this shape:

- **One home folder** keeps business work in one place, so you never wonder which folder the right session lives in.
- **Repositories beside it, not inside it.** A repository inside another folder confuses git and makes Claude read code when you asked a business question.
- **Don't open your whole Documents or home folder.** Claude will look through everything in it. That is slow and it can surface private files.

**What lives where**

| Put it in the Mind | Keep it in a folder |
| --- | --- |
| Decisions and the reason for them | Code (in git, pushed to GitHub) |
| People, customers, firms, deals | Files you're working on: exports, spreadsheets, drafts |
| How your team works: process, review and release rules | Finished deliverables until they are sent |
| Meeting notes and what was agreed | Scratch work Claude makes along the way |
| Skills (saved procedures) the team uses | Settings for this computer (.claude/) |
| What a session learned that the next one needs |  |

**The test:** if it matters after this session and isn't code, it goes in the Mind. A local file is never the only copy of anything important.

**Never in the Mind:** passwords, API keys and tokens, and your own customers' personal data (names, emails, phone numbers, photos, payments). Keep keys in your password manager or your hosting provider's secret settings.

**Folders and Mind zones**

A folder doesn't map to a zone automatically, and it doesn't need to. The Mind's own maps decide where each thing is saved, and the Mind's permissions decide who can read it, whichever folder you're in. If a folder's work usually belongs somewhere specific, say so in that folder's `CLAUDE.md` (section 2), for example "process rules go in the `process` zone". That's all the mapping you need.

**Keeping a folder away from the Mind**

Once you connect it, the Mind is on in every folder. To keep one folder separate (a personal project, a client you can't mix in):

- in that folder, type `/mcp`, choose your Mind and choose **Disable in this project**. That folder then has no Mind tools at all;
- add one line to that folder's `CLAUDE.md`: "Don't use the Mensara Mind in this folder."

Disabling is the guarantee; the `CLAUDE.md` line is only a request.

**Two Minds**

If you use two Minds (say your company's and your own), connect both with different names, such as `company-mind` and `my-mind`. In each folder's `CLAUDE.md`, say which one the folder uses, and disable the other there.

## 2. Instruction files: what goes where

Claude Code reads instructions from files. Keep them short: everything in them is read at the start of every session, so long files make Claude slower and cost more.

| What | Where it goes |
| --- | --- |
| ‘Use my Mind in every folder’ | ~/.claude/CLAUDE.md, your user-level file. Claude writes it for you (step 4 of setup). |
| How you like answers: tone, length, format | Your Mind profile. Say ‘update my profile: I want short answers with bullets’. It then follows you into Claude chat, Codex and any other client. |
| Company facts, people, customers, decisions | The Mind |
| How your team works: process, reviews, releases | The Mind (your practice or process zone) |
| What this folder is, how to build and test it, what never to do here | The folder's own CLAUDE.md |
| Permission rules the whole team should share (for example ‘never read .env files’) | .claude/settings.json in the repository, committed |
| Your own permission choices on this computer | .claude/settings.local.json (not committed) or ~/.claude/settings.json |
| A procedure anyone should be able to run from any app | A Mind skill. Say ‘turn this into a skill’. |
| A procedure that needs scripts on this computer or in this repository | .claude/skills/ in that repository |

**Default for skills: the Mind.** A Mind skill works in Claude Code, Claude chat, Codex and for your teammates. Use `.claude/skills/` only when the procedure runs local scripts.

**Claude Code's local memory.** Claude Code can keep its own notes for a folder on your computer. Those notes don't reach your other folders, your other computers or your chat. When Claude offers to remember something, ask it to save it to the Mind instead.

**A folder's CLAUDE.md: the template**

Fill in the brackets. Keep it under about 40 lines.

```
# [Folder name]

This folder is [what it is: "our iOS and web app" / "my company workspace"].

## Mind
- My Mensara Mind holds our knowledge, decisions and rules. Check it first
  (orient) for anything about the business, people or past decisions.
  Don't copy Mind content into this folder.
- Work here usually belongs in: [e.g. "product decisions → decisions;
  how-we-build rules → the process zone"]. Follow the Mind's maps for the rest.
- Save decisions we settle here to the Mind as we go, and before the session ends.
- Never put passwords, keys or our users' personal data in the Mind.

## This folder
- [How to build and run the tests, or which files Claude works on]
- [What Claude must never do here, e.g. "never deploy to production"]
```

For a code repository you can start with Claude Code's `/init`, which writes a first `CLAUDE.md` from the code. Then add the "Mind" section above and cut anything that repeats what's in the Mind.

**Coming from Claude chat Projects?** Don't paste a Project's instructions or knowledge files into `CLAUDE.md`. That is the most common reason Claude Code feels slow. Section 4 moves them across properly.

## 3. Setup

Both tracks take about 15 minutes. Do them in order.

**Track A: you don't write code**

1. **Install the Claude desktop app** (claude.ai/download) and sign in. Work in its **Code** tab. Claude in a web browser can't see the files on your computer.
2. **Connect your Mind once.** In Claude, open **Settings → Connectors → Add custom connector**. Name it after your Mind and paste your Mind address with `/mcp` on the end, e.g. `https://yourcompany.mensara.ai/mcp`. Click **Connect** and sign in with the same email you use for your Mind. This one connector works in Claude chat, Cowork and every Claude Code folder. On a Team or Enterprise plan your admin may need to add the connector first. If you already did this during Mind setup, skip this step.
3. **Make your home folder.** Create `Documents/Work/HQ` with two folders inside, `files` and `drafts`. In the Code tab, pick HQ with the folder picker at the bottom of the message box. Choose **Local** (this computer) as the environment.
4. **First session.** If you have never set up your Mind, say **"Set up my Mensara mind"**. Otherwise say **"Orient me to my Mind"**. When Claude asks "May I add a line to your settings so every chat, in any folder, uses your Mind?", say yes. If it doesn't ask, say **"Add the Mind line to my settings."**
5. **Add the folder's CLAUDE.md.** Say "Create a CLAUDE.md for this folder from this template, filling in the brackets: this is my [company] workspace." Then paste the template from section 2 into the same message.
6. **Permissions.** Leave Claude Code asking before it acts (the default). Never choose "bypass permissions". It's fine to "always allow" the Mind's read tools (`orient`, `read`, `search`, `list_files`) so Claude doesn't ask every time it looks something up.
7. **Run the check** at the end of this section.

**Track B: you write code**

1. **Install Claude Code.** The desktop app's Code tab is easiest. The terminal CLI works the same way.
2. **Connect your Mind once, for every folder.** Use the connector in Track A step 2. If you use the CLI without a Claude subscription, or the connector doesn't appear in Claude Code, run this once instead:

```
claude mcp add --scope user --transport http mind https://yourcompany.mensara.ai/mcp
```

Then type `/mcp` in Claude Code, choose `mind` and choose **Authenticate** (shown as **Re-authenticate** once you have signed in). The `--scope user` part matters: without it, Claude Code adds the Mind to the current folder only. Use either the connector or this command, never both: two connections to one Mind give Claude two copies of every tool.

3. **Lay out the folders** as in section 1: `HQ` plus each repository cloned next to it.
4. **First session in HQ:** Track A steps 4 and 5.
5. **Each repository:** open it, run `/init` and add the "Mind" section of the template to its `CLAUDE.md`. Commit the file so teammates get it.
6. **Safety settings.** Work on branches, never on `main`; deny reading `.env` files; never always-allow anything that deploys, pushes to `main` or touches production; turn on branch protection. You can always-allow `git status`, `git diff` and running the tests, so Claude stops asking every time.
7. **Run the check**, then run step 3 of it from inside a repository.

**The check: three prompts**

Run these after setup and whenever something seems off.

1. In HQ: **"What do you know about [your company] from my Mind?"** Claude should use the Mind before it answers and name the Mind files it used.
2. **"We've decided [something real and small] because [reason]. Save that."** Claude should say where it saved it, or that it's "held for approval". If held, approve it ("approve it", or in your Mind's web page), or the next session won't see it.
3. Start a **new session in a different folder** (a repository, or any empty folder). Ask: **"What did we decide about [that thing]?"** Claude should answer with the Mind file it came from.

If step 3 fails, see Troubleshooting, problems 3 to 5.

## 4. Moving from Claude chat

If you've been working in Claude chat (claude.ai, or the Chat tab of the desktop app), your Projects, chats and memory stay there: Claude Code can't see them. Move them once, one Project at a time. Allow about 15 minutes per Project. Do setup (section 3) first.

**What Claude chat lets you take out**

From Anthropic's help pages, November 2026:

| What | How you get it out |
| --- | --- |
| A Project's instructions | Open the Project, open its instructions, select all and copy. |
| A Project's knowledge files | Use your own originals: Anthropic documents no download, and the data export leaves out files you uploaded. If you no longer have one, ask Claude inside the Project: ‘Write out the full text of [file name], exactly.’ |
| What was decided in a Project's chats | Ask Claude inside the Project, with the prompt in step 2 below. Each Project has its own memory and chats. |
| Your chat memory | Settings → Your Claude → Manage, next to ‘Your memory’, shows it. Or ask Claude in a normal chat to write it out (step 2). |
| Every chat, as one download | Settings → Privacy → Export data. You get an emailed link that expires after 24 hours. It holds your conversations; it doesn't include uploaded files, and Anthropic doesn't say whether it includes Projects or memory. On a Team or Enterprise plan it works only if your owner has allowed members to export their own data. Keep it as a backup; you don't need it to move. |

**Step 1: list your Projects and pick each one's home**

| The Project is about | Its new home |
| --- | --- |
| Your business, a team or an area of work | Your HQ folder, with its knowledge in the Mind |
| One codebase | Its knowledge in the Mind, and its rules for the code in that repository's CLAUDE.md |
| A deal, client matter or engagement | One folder per deal beside HQ, with one record per deal in the Mind. Ask Mensara for the guide for people who work on several matters at once. |
| Finished, or no longer used | Nothing. Leave it in chat, or archive it. |

**Step 2: get each Project's material out (in Claude chat)**

Make a folder for the Project inside HQ, for example `HQ/files/chat/marketing/`. Use HQ even for a codebase Project.

1. **Instructions.** Copy them into a file in that folder called `instructions.md`.
2. **Knowledge files.** Copy your originals into the same folder.
3. **Chats and memory.** Open a new chat **inside the Project** and paste the prompt below. Save Claude's answer in the same folder as `summary.md`. Correct anything wrong before you save it.
4. **Your general memory, once.** In a normal chat (outside any Project), use the same prompt with "this Project" changed to "my account", and save the answer as `HQ/files/chat/memory.md`.

```
I'm moving this Project to Claude Code. My Mensara Mind will be the memory
both use. Write out everything useful from this Project: its instructions,
what its knowledge files say, your memory for this Project, and what we
decided in its past chats. Short facts, one per line, grouped as: how I
like to work; the business; people (role only); decisions with date,
reason and who decided; open questions and next steps. Leave out
passwords, keys, tokens and personal data of our customers or users.
List anything you're unsure about at the end under "Check with me".
```

**Step 3: bring it into the Mind (in Claude Code)**

Open HQ, start a session and say:

```
Bring files/chat/[project]/ into my Mensara Mind. Call orient first and
follow its maps; add to existing records rather than duplicating.
- How I like answers goes to my Mind profile.
- Rules for one codebase: don't save them; list them for me at the end.
- Everything else from the instructions is knowledge: the Mind.
- Knowledge files stay in files/. Save what matters in them to the Mind,
  with the file name, not the whole document.
- Save each decision with its date, reason and who decided.
- Mark each fact "from Claude chat, [project], [today's date]".
- Leave out passwords, keys, tokens and customers' personal data.
Don't save anything yet. Show me the list first.
```

Check the list, then say **"Save it, and tell me what is held."** Approve anything held. For your general memory, say the same with `files/chat/memory.md`. For a codebase Project, open that repository, paste the list of code rules and say "Add these to this folder's CLAUDE.md, in as few lines as possible."

**Step 4: check it**

Run the three-prompt check (section 3), with one change: in step 3, ask about a decision that was made **in an old chat**. A new session in another folder should answer it from the Mind and name the file.

**Step 5: what happens to the Projects**

- **Keep using Claude chat for quick questions.** Your Mind connector works there too, so chat sees the same knowledge as Claude Code.
- **Stop adding to Projects.** New files, instructions and decisions go to the Mind (and the right folder), or they'll be invisible to Claude Code and your team.
- **Leave old Projects as they are** once the check passes. You can replace a Project's instructions with one line: "This Project has moved to my Mensara Mind; use the Mind." Delete a Project only after you've used the new setup for a while and nothing turned out to be missing.

## 5. Working day to day

**One manager session, separate work sessions.** Start your day in HQ with one session you talk to: "What's on today?" It keeps the list. Every real piece of work (a fix, a report, research, a long draft) goes in its own session: ask the manager to start one, or open a new session in the right folder yourself. Sessions that each do one thing stay focused and don't fill up. You talk to the manager; it checks the work sessions' results.

**Code: one issue, one session, one worktree.** Each coding session works on its own copy of the repository (a git worktree) on its own branch. Choose a new worktree when you start a session in a repository; in the CLI, run `claude --worktree <name>`. Run at most three to five coding sessions at once, and never two on the same files.

**Decisions are saved as you make them.** With the Mind line in place, Claude saves decisions, reasons and commitments without being asked. Watch for "held for approval" and approve those: a held save is invisible to your other sessions until you approve it. Ask "what's waiting for my approval?" any time.

**End every session the same way.** Say: **"Save what we decided and learned to the Mind."** Then close it. Nothing that matters stays only in a chat or a local file.

**Keep the files small.** Once a month, ask Claude: "Review my CLAUDE.md files. Move anything that's knowledge into the Mind and cut the rest to the minimum."

**Long-running work.** If your laptop is short of memory, or you want agents to run while it's closed, Claude Code can run sessions on another always-on computer (Code tab → environment). Your Mind and folders work the same way there.

**Using Codex too?** Use the same folders and the same Mind. Codex's user-level file is `~/.codex/AGENTS.md`. Say "add the Mind line to my settings" in Codex and it writes the line there.

## 6. Troubleshooting

Problems Mensara customers have hit, with the fix for each.

| # | What you see | Why | Fix |
| --- | --- | --- | --- |
| 1 | Claude can't see your files | You're using Claude in a web browser | Use the desktop app's Code tab with a folder chosen |
| 2 | ‘Which folder am I in? Is the Mind only on in this project?’ | In Claude Code the folder is the project | Look at the folder picker at the bottom of the message box. Type /mcp to see what's connected. Section 1 explains which folder to use. |
| 3 | The Mind works in one folder but not in another | It was added with claude mcp add without --scope user, so it belongs to one folder | Run claude mcp remove mind, add it again with --scope user (Track B step 2), then sign in again: /mcp → mind → Authenticate. Or use the connector instead. |
| 4 | Claude is connected but answers without using the Mind | The Mind line isn't in your user settings | Say ‘Add the Mind line to my settings’. Check that ~/.claude/CLAUDE.md contains # Mind standing rule. |
| 5 | Claude said ‘saved’, but a new session can't find it | The save was held for approval | Say ‘what's waiting for my approval?’ and approve it |
| 6 | Answers are slow, or Claude looks in the Mind on every question | Long CLAUDE.md files (often pasted Project knowledge) or the most expensive model for routine work | Move knowledge out of CLAUDE.md into the Mind. Use the default model for routine work and the biggest model only for planning, reviews and anything touching money. Questions with nothing to do with your work don't need the Mind; if Claude still checks it, say so and Mensara will look into it. |
| 7 | Your Claude chat Project instructions aren't in Claude Code | Claude Code can't see chat Projects | Move them with section 4 |
| 8 | You want a personal project kept away from the Mind | The Mind is on in every folder | /mcp → your Mind → Disable in this project, in that folder (section 1) |
| 9 | Claude asks permission for every git command | Nothing is always-allowed yet | Always-allow read-only commands (git status, git diff, git log) and the tests. Keep pushes, merges and deploys on ask. |
| 10 | Claude shows two copies of every Mind tool | The Mind is connected twice (connector plus claude mcp add) | Remove one: claude mcp remove mind --scope user, or remove the connector |
| 11 | The Mind says it needs you to sign in again | The sign-in expired | /mcp → your Mind → Authenticate, with the same email as your Mind |
| 12 | Connectors keep switching off in Cowork | A Cowork behaviour | Do the work in the Code tab, where connectors persist. Tell Mensara if it keeps happening. |
| 13 | The Mind says it's busy, or asks you to approve in the web page | Too many saves at once, or a save that needs a person to approve | Approve what's waiting. Run fewer sessions that write at the same time. If it continues, say ‘report a problem to Mensara’. |

Anything else: say **"report a problem to Mensara"** in any Claude session. Claude drafts the report for you to send.

## Appendix: a mature setup, for reference

Mensara runs its own business this way:

- one home folder, a git repository holding `CLAUDE.md`, `.claude/` (settings and a few local skills), `plans/` and `review/`;
- every code repository and every client engagement in its own repository beside it;
- `CLAUDE.md` holds working rules only: how sessions report, when to ask, which folders hold what. All knowledge is in the Mind;
- one manager session per thread of work, with each piece in its own session; each thread keeps a short open-items list.

Start smaller than that. One home folder, a 15-line `CLAUDE.md` and the end-of-session save cover most of the benefit.

## Related

- [Connect Claude to your Mind](https://www.mensara.ai/how-it-works/connect-claude)
- [Set up your Mensara Mind and get a first useful answer](https://www.mensara.ai/how-it-works/setup-and-ongoing-care)
- [Portal, MCP and CLI](https://www.mensara.ai/how-it-works/portal-mcp-cli)
- [Use a skill or turn a repeated job into one](https://www.mensara.ai/how-it-works/use-and-create-skills)
- [Fix sign-in and reconnect the right service](https://www.mensara.ai/how-it-works/reconnect-and-sign-in)

Previous page: [Connect Claude to your Mind](https://www.mensara.ai/how-it-works/connect-claude)

Next page: [Capture Telegram chats in your Mind](https://www.mensara.ai/how-it-works/connect-telegram)

Telegram Sensor copies messages visible to a dedicated Telegram bot into your Mind’s inbox.

[Sign up](https://www.mensara.ai/auth/signup)
