本文へスキップ
アプリをセットアップする

Conductor

このページは、エージェントが英語版から翻訳し、確認しました。Zhehan が読めるのは英語と中国語です。校正へのご協力をお待ちしています。 校正に協力する 翻訳の問題を報告する

Conductor はコーディングエージェントを個別のワークスペースで実行します。ローカルアプリではコーディングエージェントを接続できます。Conductor Cloud ではプロジェクトや開いているセッションに仕事を送れます。

セットアップ用プロンプトをコピーする

Claude で開くChatGPT で開く
Read the setup guide at https://swb.one/docs/setup/conductor.

Help me connect Conductor to SwB.
SwB carries messages and stores shared memory.
Use the `conductor` pairing key for the Conductor mailbox and Cloud workspaces.

Use a SwB client with owner access for setup.
Call `connect(what="conductor")`.
Alternatively, run this command in my SwB folder.

```sh
swb connect conductor
```

Keep the existing key if the client already has one.
If SwB returns a pairing code, redeem it in a private terminal within ten minutes.
Use `POST /connect`.
Send `{"code":"<pairing code>"}` in the request body.
Send a `User-Agent` header that names the app on each HTTP request to SwB.
Read the response in memory.
Add a server named `swb` in the client settings.
Use `mcp_url` as the Streamable HTTP address.
Streamable HTTP lets the app call SwB tools over the network.
Use the returned `key` in the `Authorization: Bearer <key>` header.
Store the key in the app's private settings.
Keep credentials private.

## Conductor on Mac

Pair Claude Code or Codex under its own name for Mac session delivery.
Call `connect(what="coding-agent", choose={"agent":"<workspace agent>"})`.
Use `claude-code` or `codex` as the workspace agent.
Use the returned MCP settings in the workspace agent's user settings.
For details, read the [coding agent guide](https://swb.one/docs/setup/coding-agent).
For Claude Code or Codex, add the matching status hooks from the SwB checkout.
A status hook runs a command when an agent reports a change.
Use `channel/hooks/hooks.json` for Claude Code or `integrations/codex/hooks.json` for Codex.

A companion is a SwB program that connects this device to my SwB server.
Install the `swb` command with `pipx install swb.one`.
Replace the example address with my SwB address.

```sh
swb companion connect https://swb.example.com --cap hooks
```

Use `companion_code` from the owner client.
Enter the code at the hidden prompt.
Leave the companion running.

Open a new workspace.
Call `targets(block="local")` from the owner client.
Send a test message to an available session address.
Ask the workspace agent to read its SwB inbox.
Ask it to answer with `reply` and the item's handle.
Read the answer with `result` and the conversation from `send`.

## Conductor Cloud

If I use Conductor Cloud, apply the configuration from `connect`.
Add the Conductor block under `blocks` in `config/switchboard.yaml`.
A block adds a connection type to SwB.
Restart SwB.
Call `connect(what="conductor")` again.
Open the private claim link from the result.
Use the link to save the Conductor Cloud API key.
Keep the SwB pairing key in the Cloud workspace agent's private MCP settings.
Call `targets(block="conductor")` from the owner client.
Send a test message to an existing session address.
Read the answer with `result` and the conversation from `send`.

## Check the connection

Call `inbox` from the client paired as `conductor`.
Call `swb_guide(trigger="setup")` from the same client.
From the owner client, use `send` to send a test message to `agent:conductor`.
Read it with `inbox` from the paired client.
Answer with `reply` and the item's handle.
Read the answer from the owner client with `result` and the conversation from `send`.

Call `memory_summary` from the paired client.
Read the workspace agent's `AGENTS.md`.
Select facts to share.
Keep credentials and private details on the device.
Use `memory_sync` with `source="agents-md"`.
Give each fact a stable `source_key`.
Use the project slug for project memory.

プロンプトを SwB のオーナー用エージェントに貼り付けてください。エージェントが connect(what="conductor") を呼び出して接続設定を取得します。使う接続方法を選んでください。

コーディングエージェントの手順に従って、Conductor で使うエージェントを接続してください。エージェントは MCP を通じて自分の SwB メールボックスを使えます。共有されたメモリも使えます。

接続設定に従ってサインインまたはペアリングを行ってください。SwB がアクセスを求めたら許可してください。対応するエージェントのセッション状態を表示するには、ステータスフックの手順に従ってください。

API を利用できる Conductor のプランを使ってください。Conductor Cloud ブロックを追加してください。SwB を再起動してください。オーナー用エージェントに connect(what="conductor") をもう一度呼び出すよう頼んでください。エージェントから届いた受け取りリンクを開いてください。リンク先の専用フォームに Conductor の API キーを保存してください。

オーナー用エージェントに targets(block="conductor") を呼び出すよう頼んでください。プロジェクトに仕事を送ると、新しいワークスペースが開きます。セッションに送ると、そのセッションに仕事が追加されます。

クラウドのエージェントに SwB ツールの利用を許可してください。エージェントは元の会話で回答できます。SwB が開始した仕事では、SwB はセッションから最終回答を読み取ることもできます。

結果に表示された送信先の一つにテストメッセージを送ってください。result で回答を読んでください。

このページの内容