# Moving from the old SuperClaude

> Move projects from the old SuperClaude to superclaude. Leave the old setup alone, point new workspaces at the same code, and start the prompt and memory fresh.
>
> Bring your old SuperClaude projects over without touching the old setup. You need sc installed and the old root readable.

The old SuperClaude kept each agent at `p/<project>/a/<agent>/` under a root such as `/opt/superclaude`, with its prompt in `.claude/system-prompt.md` and its memory in `.claude/memory/`.

1. Start the system agent

   ```sh
   sc system
   ```

   Claude Code opens with the agent that creates workspaces for you.

2. Tell it what to bring over

   Say where the old root is, for example `/opt/superclaude`, and ask it to migrate your projects. Ask it to list each project with its code repository and memory folder, so you can pick which ones to bring over. For example, say:

   > Migrate my projects from /opt/superclaude. List each with its code repository and memory folder, and let me pick which to bring over.

3. Check what it built

   ```sh
   sc doctor <project>
   sc <project> <agent> --prompt --plugins --doctor
   ```

   `sc doctor <project>` checks that project's workspaces. The second command renders the real launch: the assembled prompt, the plugins and where each resolved, and the conformance verdict.

4. Launch it

   ```sh
   sc <project> <agent>
   ```

   Claude Code opens as that agent, in its new workspace.

Each project is moved on four rules:

- The old root is never touched. superclaude keeps its files in its own [profiles home](/docs/concepts) (`~/.superclaude/`) and your vaults (the folders `sc vault ls` lists), so both keep working.
- The code stays where it is. The workspace's manifest (`.claude/superclaude.toml`) names the repository with `code_repo`.
- The prompt starts fresh. The old `system-prompt.md` is not ported.
- Memory starts fresh. No old memory is copied; the workspace can read the old folder as history.

**What will the agent do for each project?**

Given this page, the agent:

1. Finds your old projects, usually under `/opt/superclaude`, and lists each with its code repository and memory folder.
2. Creates each workspace at `<vault>/p/<project>/a/<agent>/`, with `code_repo` set to the same repository and the repository added to `permissions.additionalDirectories` in the workspace's `.claude/settings.json`.
3. Runs the prompt audit and writes the manifest: the `$SC_PROMPTS/core.toml` import, a new identity section, and extra sections only for what the library does not cover.
4. Writes the workspace's own `CLAUDE.md` from the audit and the code. Changes to the repository's `CLAUDE.md` wait for your yes.
5. Adds the old memory folder to `additionalDirectories`, with a short manifest section that names it as read-only history.
6. Checks each workspace and ends with a table of project, launch command, code repository and old memory path.

**Do it by hand**

### 1. Find what you have

Each old agent sits at `<old-root>/p/<project>/a/<agent>/`. Inside its `.claude/`:

- `system-prompt.md` is the old prompt. Read it for context; do not copy it.
- `memory/` is the old memory. It is often a symlink into `<old-root>/memories/`, so note the path it resolves to.

Note the code repository each agent works on.

### 2. Create the workspace

```sh
sc vault ls
mkdir -p <vault>/p/<project>/a/<agent>/.claude
```

### 3. Audit the repository

In a Claude Code session, run `/claude-api prompt-audit <repo path>`. It is the prompt audit bundled with Claude Code, and it audits the repository's `CLAUDE.md` files, skills, agents and commands for prompting patterns written for older models. Use what it finds, plus the code itself, for the identity section and the workspace's `CLAUDE.md`: build and test commands, conventions, and what must never happen.

### 4. Write the manifest

Write `<vault>/p/<project>/a/<agent>/.claude/superclaude.toml`. `code_repo` takes an absolute or `~/` path. `sc prompt example` prints the full grammar, and [The shared system prompt](/docs/system-prompt) lists every section `core.toml` defines. A starting point:

```toml
code_repo = "<repo path>"

import = [
  { from = "$SC_PROMPTS/core.toml", use = [
    "discover_dont_recall",
    "git_policy",
    "communication",
  ] },
]

system_prompt = [
  "identity",
  "discover_dont_recall",
  "git_policy",
  "communication",
  "previous_memory",
]

plugins = [
  "$SC_PLUGINS/sc-memory",
]

[section.identity]
content = """
<identity>
You own <what this agent is responsible for>. The code is in <repo path>.
Out of scope: <what this agent must not touch>.
</identity>
"""

[section.previous_memory]
content = """
<previous_memory>
<old memory path> holds this project's memory from the old SuperClaude. It is
read-only history: consult it when a topic comes up, and never copy it wholesale.
</previous_memory>
"""
```

A loaded plugin renders its own prose in the main prompt, so `system_prompt` does not name the `sc-memory:` sections.

### 5. Grant access

Write `<vault>/p/<project>/a/<agent>/.claude/settings.json` with absolute paths:

```json
{
  "permissions": {
    "additionalDirectories": [
      "<repo path>",
      "<old memory path>"
    ]
  }
}
```

Then run the checks from step 3 above and launch.

**Check the manifest on its own**

`sc validate <workspace dir>` renders the manifest across a model-family matrix and reports errors and lints. It loads plugins as a launch does, so a line such as `sc-memory:memory_protocol` resolves. The `--prompt --plugins --doctor` report in step 3 stays the one to trust, because it shows the real launch. Older `sc` builds did not load plugins here and rejected such lines.

**Where did each old thing go?**

| | Old SuperClaude | superclaude |
|---|---|---|
| Home | `/opt/superclaude` | `~/.superclaude/` plus your vaults |
| Prompt | `.claude/system-prompt.md`, one file per agent | `.claude/superclaude.toml`, importing shared sections from `core.toml` |
| Skills, hooks, subagents | files under each agent's `.claude/` | plugins listed in the manifest's `plugins` |
| Memory | `.claude/memory/`, linked into a `memories/` folder | sc-memory, with a memory hub at `<vault>/memories` |
| Code | the repository | the same repository, named by `code_repo` |
