# Add projects and agents

> Describe the project and agents you want in sc create or sc system, launch them by name, and fold in vaults, vault plugins and checks when you need them.
>
> Describe the project and agents you want, answer a few questions, and the agent writes each workspace. You need sc system to have run once.

A workspace is one agent's directory, `<vault>/p/<project>/a/<agent>`. A vault is a registered directory that holds projects. You do not write workspaces by hand: an agent interviews you and writes the files, including a manifest (`.claude/superclaude.toml`) that says who the agent is and which plugins it loads.

1. Describe what you want

   Put your request, in your own words, in quotes after `sc create`:

   ```sh
   sc create "a research project with two agents, scout and writer"
   ```

   The agent asks a couple of questions at a time and creates nothing until you agree on a shape. Inside `sc system`, typing the same request does the same thing.

2. Check that it is listed

   ```sh
   sc list
   ```

   The new project and its agents appear in the list.

3. Launch an agent by name

   ```sh
   sc research scout
   ```

   Claude Code starts in that workspace.

- There is no `sc new` command. Creation is a conversation.
- Leave out `in vault <name>` to use your default vault. If you named another vault, add `-v <name>` to steps 2 and 3.
- To change a workspace later, use `sc <project> <agent> --sc-agent` or `--sc-edit`. See [Change an agent](/docs/editing-agents).

**What the agent does before it builds**

`sc create` opens the system workspace, the one `sc system` launches, with a guided new-workspace flow already in its system prompt. Words after `create`, up to the first flag, become your opening request. Bare `sc create` starts the flow with no opening request, and the agent asks what to create.

```sh
sc create
```

`sc create` needs a bootstrapped profiles home (`~/.superclaude/`). On a fresh machine run `sc system` once first; until then `sc create` exits with a message telling you to.

The session runs in this order:

1. **Orientation, read-only.** The agent checks memory for preferences you have already stated, then runs `sc vault ls` and `sc list`. `sc list` doubles as a collision check: a project named like an `sc` subcommand cannot be reached by name.
2. **A short interview**, a couple of questions at a time. It skips anything your opening request or memory already answered:
   - which vault, if more than one is registered;
   - a new project, or another agent under an existing one;
   - the name, what the agent is responsible for, and what is out of scope;
   - whether a code repo sits behind it;
   - what the agent must never do.
3. **Authoring.** The agent runs `sc prompt example` and `sc help philosophy` and writes the manifest from their output, never from memory.
4. **Verification** with the checks in the last fold below.
5. **A report back:** what it created and where, the names of the prompt sections it added, and how to change them later.

The flow creates nothing until you agree to a concrete shape. Every registered vault is granted to the session, so the agent writes into whichever one you choose.

**Add an agent from inside sc system**

Inside `sc system`, describe what you want in free text. The system workspace's prompt treats any request to set up or fix a project as workspace authoring, done in the conversation.

```text
create project acme with agents backend and release in vault work
```

```text
add a docs agent to project acme
```

The same conversation creates a new workspace or repairs an existing one. The agent reads the project's state on disk to tell which it is, so it does not ask you. Ask for a new plugin instead, and the same agent scaffolds one into the vault.

**What the agent writes, and where a code repo goes**

For each agent, it:

- creates `<vault>/p/<project>/a/<agent>/.claude/`;
- writes the manifest (`.claude/superclaude.toml`) in the shape `sc prompt example` prints;
- names an existing plugin in `plugins` before it writes new prose for a capability;
- packages a capability that exists nowhere yet as a vault-scoped plugin, not as loose files under `.claude/`.

It keeps three kinds of fact in three places. The manifest holds what is structurally true, `CLAUDE.md` holds the operating contract for the directory, and memory holds what is currently true. A volatile fact written into the manifest or `CLAUDE.md` goes stale while the prompt keeps asserting it.

If the project has a code repo, the `sc create` flow asks where the workspace lives:

- **In the vault, with `code_repo` pointing at the repo.** Claude runs from the workspace, which holds only a `.claude/`, so the repo stays free of `.claude/` and `CLAUDE.md`. The repo goes in `permissions.additionalDirectories` in the workspace's `settings.json`. `code_repo` must be absolute or `~/`-rooted; it is what [worktree](/docs/concepts) fan-out resolves against.
- **Inside the repo.** Use this when the setup should be committed and shared with everyone who clones the repo.

The agent saves your answer as a preference with [sc-memory](/docs/memory), so it does not ask again.

> [!NOTE]
> `sc <project> <agent>` resolves only the `p/<project>/a/<agent>` layout. A workspace at another depth launches, but only by running `sc` from inside it.

**Make a new vault**

`sc vault new <name>` creates the vault at `~/.superclaude/<name>` and registers it in `config.toml`. [How it fits together](/docs/concepts) explains the model behind vaults, projects and agents. With `--bare` it makes an empty container for an agent to fill:

```sh
sc vault new work --bare
```

```text
created vault `work` at ~/.superclaude/work
  plugins:   ~/.superclaude/work/plugins  (vault-scoped, $SC_VAULT_PLUGINS — vendoring never touches it)
  workspace: none (--bare) — the vault is a container only
registered in ~/.superclaude/config.toml
next: `sc system`, then describe the projects and agents you want created in vault `work` — creation is conversational, not a CLI verb
```

It always creates the container:

| Path | What it is |
|---|---|
| `memories/` | the vault's [memory hub](/docs/memory), with a starter `INDEX.md` |
| `plugins/` | vault-scoped plugins, reached from a manifest as `$SC_VAULT_PLUGINS` |
| `workflows/` | the per-vault store for the multi-agent workflow scripts sessions run |

Without `--bare` it also writes one starter workspace at `p/<name>/a/main`, with a manifest that launches as written. The starter lists sc-harness and sc-memory in `plugins`, each only if it is already vendored, and names no plugin sections, because each loaded plugin's default prose is appended to the prompt automatically; naming one in `system_prompt` would make `sc doctor` report a `redundant-plugin-prose` note. If the shared library (`$SC_PROMPTS/core.toml`) is installed, it imports that library's sections and names them in `system_prompt` after `identity`. It writes no `settings.json`.

| Flag | Effect |
|---|---|
| `--workspace <project>/<agent>` | put the starter workspace there instead; a bare `<project>` means agent `main` |
| `--bare` | create the container only, with no workspace |

`--bare` and `--workspace` are mutually exclusive. A vault name cannot contain `/`, cannot start with `.` or `-`, and cannot be `_global`, `system` or `plugins`. `sc vault new` refuses to overwrite a directory that already exists; register that directory with `sc vault add` instead.

**Use a directory I already have as a vault**

`sc vault add <name> <path>` registers a directory you already have. The path must exist. A `~/` path is stored as you typed it and expanded when read.

```sh
sc vault add work ~/vaults/work
```

`sc` refuses a name that is already registered unless you pass `--force`. It also refuses a path nested inside, or containing, another registered vault, because sibling-vault isolation would then lock a vault out of its own subtree.

Registration lands in `config.toml` as a `[vaults.<name>]` table. There is no auto-discovery: a directory is a vault only if it is listed.

```toml
default = "personal"

[vaults.personal]
path = "~/.superclaude/personal"

[vaults.work]
path = "~/vaults/work"
```

**List vaults and pick the default**

```sh
sc vault ls
```

```text
personal → ~/.superclaude/personal  (default)
work → ~/vaults/work
```

A vault whose directory is gone is marked `(missing)`. Show or set the default with `sc vault default`. Setting it checks that the vault is registered and exists on disk.

```sh
sc vault default
sc vault default work
```

Pick a vault for one launch with `-v <name>`:

```sh
sc -v work <project> <agent>
```

The resolution order is `-v <name>`, then `$SUPERCLAUDE_VAULT`, then the `default` key, then an error. If no `default` key is set, a vault registered as `default` is used. Bare `sc` from inside a workspace ignores all of this and reads the manifest in the current directory.

**Give an agent its own skills, subagents or MCP servers**

Skills, subagents, hooks and MCP servers that a workspace needs go in a plugin at `<vault>/plugins/<name>/`, which a manifest names as `$SC_VAULT_PLUGINS/<name>`. Vendoring never touches that directory. Two plugin paths exist because they have different lifetimes:

| Variable | Resolves to | Who writes it |
|---|---|---|
| `$SC_PLUGINS` | `~/.superclaude/plugins` | `sc system`, which replaces the tree on every run |
| `$SC_VAULT_PLUGINS` | `<vault>/plugins` | you; vendoring never touches it |

Never hand-edit under `$SC_PLUGINS`. The next `sc system` reverts the change.

These are manifest variables, not shell variables. `sc` computes them when it renders the manifest. An exported `$SC_VAULT_PLUGINS` overrides the computed value; otherwise it is `$SUPERCLAUDE_VAULT/plugins`.

To make one, ask the agent for a plugin in this vault, then add it to the manifest. One `plugins` array mixes both axes:

```toml
plugins = [
  "$SC_PLUGINS/sc-memory",
  "$SC_VAULT_PLUGINS/release-tools",
]

system_prompt = ["identity"]

[section.identity]
content = """
## Identity

You are the release agent for the acme project. You cut release branches,
write changelogs and tag versions. Application code is out of scope.
"""
```

Root keys such as `plugins` and `system_prompt` must sit above the first `[section.*]` header. A key written after a table header parses as a member of that table. A `plugins` entry whose directory does not exist fails the whole launch, not only that plugin.

If the plugin ships a `plugin.toml`, its sections become available to the manifest as `<plugin>:<section>`. List the ones you want in `system_prompt`. The full grammar is on the [superclaude.toml](/docs/superclaude-toml) page.

**Check that a workspace renders**

The agent runs these before it reports back; run them yourself after any change. The report selectors render the real launch without starting Claude Code:

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

`--prompt` shows the assembled system prompt and where each section came from, `--plugins` shows each plugin directory it resolved, and `--doctor` runs the conformance checks for that one workspace. The agent uses these commands:

| Command | What it is for |
|---|---|
| `sc prompt example` | the manifest grammar, printed live by the binary |
| `sc validate` | checking a manifest it wrote |
| `sc <project> <agent> --prompt --plugins --doctor` | rendering the real launch before it says the workspace works |
| `sc doctor <project>` | reviewing an existing project's setup |

For every workspace in every registered vault, or for one project, run `sc doctor`:

```sh
sc doctor
sc doctor <project>
```

`sc validate` renders a manifest across a matrix of model families and reports errors and lints. Run it from the workspace, or pass the directory:

```sh
sc validate <dir> --strict
```

`--sc-edit` opens the manifest in your editor. `--sc-agent` opens the system workspace with an agent pointed at that workspace, oriented and waiting for what you want changed. [Change an agent](/docs/editing-agents) covers both:

```sh
sc <project> <agent> --sc-edit
sc <project> <agent> --sc-agent
```
