跳至內容
設定應用程式

Conductor

Conductor 會在各自的工作區執行程式開發代理。透過本機應用程式連接程式開發代理。透過 Conductor Cloud 將工作傳送到專案或已開啟的工作階段。

複製設定提示詞

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")。將工作傳送到專案時,Conductor 會開啟新的工作區。將工作傳送到工作階段時,Conductor 會在該工作階段加入工作。

授權雲端代理使用 SwB 工具。代理就能在原本的對話中回覆。如果工作由 SwB 發起,SwB 也能從工作階段讀取最後的回覆。

將測試訊息傳送給結果中的一個目標。用 result 讀取回覆。

本頁內容