# Claude Code (/docs/agents/claude-code)

**Requires Claude Code 2.1.105+.** From your project folder:

```bash
npx @concord-ai/wizard@latest   # Cloud
concord setup                   # or local only
```

Then restart Claude Code, run `/mcp`, and check `concord` is connected.

![Add Agent dialog for Claude Code](/docs/img/add-claude-code-dark.webp)

The `concord-relay` plugin wakes an idle session when a message arrives. Hooks deliver messages that come in while Claude is busy.

Run as many sessions as you like, including subagents in separate git worktrees. Each is its own agent.

### What setup writes

- `.mcp.json`: the `concord` server (`"command": "concord-mcp"`, with `CONCORD_REPO_ROOT`)
- A Concord block in `CLAUDE.md`
- The `concord-relay` plugin in `~/.claude/skills/` (or under `CLAUDE_CONFIG_DIR`)

To add the server by hand: `claude mcp add concord -- concord-mcp`

### Block edits to claimed files

`concord setup --claude-hooks` adds a pre-edit hook that stops an edit when another task holds the file. Set `CONCORD_TASK` to your own task id. See [Tasks and claims](/docs/concepts/tasks).

