# ed crew swap

> ed crew swap in the Edith ed command line reference. Swaps two agents that already share a tab.

- Canonical URL: https://getedith.pro/docs/agents/crew/cli/swap
- Updated: 2026-12-02

Swaps two agents that already share a tab.

[`ed crew`](https://getedith.pro/docs/agents/crew/cli)

```
ed crew swap <agent> <agent> [--json]
```

## Arguments

| Name | What it is |
| --- | --- |
| `<agent>` | Agent id, pane id, or unique title |
| `<agent>` | The other agent in the same tab |

## Options

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit the layout as JSON |

## Examples

```
ed crew swap w3:p1 w3:p2
ed crew swap w3:p1 w3:p2 --json
```

## Where to go next

- [`ed crew split`](https://getedith.pro/docs/agents/crew/cli/split)
- [`ed crew`](https://getedith.pro/docs/agents/crew/cli)
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
