---
title: "搭配 Codex 與 Claude Code 使用 Comma · Comma 部落格"
description: "在你連接的 Mac 或 Linux 機器上把 Codex 和 Claude Code 當作 Worker 執行，從聊天、Linear 或手機協調平行的 Task，並讓每個程式庫固定在自己的裝置上。"
url: https://comma.surf/zh-tw/blog/comma-for-codex-and-claude-code
language: zh-TW
---

[返回部落格](https://comma.surf/zh-tw/blog)

Comma Team · 2026 年 10 月 23 日 · 閱讀約 2 分鐘

# 搭配 Codex 與 Claude Code 使用 Comma

在你連接的 Mac 或 Linux 機器上把 Codex 和 Claude Code 當作 Worker 執行，從聊天、Linear 或手機協調平行的 Task，並讓每個程式庫固定在自己的裝置上。

[開始使用](https://app.comma.surf/) [閱讀文件](https://comma.surf/zh-tw/docs/salix/agent-runtimes)

許多工程師早已在本機終端機裡依賴 **Codex** 或 **Claude Code**，也立刻撞上同一個天花板：你得坐在那台筆電前、一次顧著一個終端機分頁，還要手動把每個程式設計工作階段連回 Linear issue、Slack 對話串和 pull request。

Comma 把 **Codex** 和 **Claude Code** 變成由全天候 Router 編排的一等 **Worker**。從手機、Slack 對話串或 Linear 中的 `@Comma` 留言交出一個 bug；Comma 會把 Task 派給你選定電腦上安裝的程式設計 AI 代理，並一路追蹤到 draft PR。

## 在 `Settings › Devices` 中設定

1. 在 **Settings › Devices** 中連接你的 Mac 或 Linux 工作站（或在聊天中執行一行 station 安裝指令）。
2. 在該裝置的卡片上分別設定 **Codex** 和/或 **Claude Code**，選擇你的 **Mac 登入**、**本機模型伺服器**或**工作區帳戶**（選 `none` 則停用其中任一執行環境）。
3. 你的 **Router** 模型與程式設計 **Worker** 各自獨立：讓聊天在一個模型上保持快速，同時由 Codex 或 Claude Code 處理繁重的程式庫編輯。

## 工程師搭配 Comma 使用 Codex 和 Claude Code 的四種方式

### 1. 在改程式碼之前先理解一個子系統

text

```
Using Claude Code on my Mac Studio, trace how webhook signature
verification works in systems/apps/comma_web/. Explain the failure
modes and check whether raw request bytes are verified before JSON
parsing. Do not edit any files yet.
```

在授權任何一次編輯之前，你會先拿到一份附有檔案路徑、有憑有據的程式碼導覽。

### 2. 用回歸測試和 draft PR 修 bug

text

```
Hand ENG-314 to Codex on my Linux dev box:
1. Reproduce the pagination off-by-one bug with a failing unit test.
2. Fix the query cursor without changing the public response schema.
3. Run the package test suite and typecheck.
4. Open a draft PR linked to ENG-314 and post the test summary here.
```

### 3. 讓 Codex 和 Claude Code 在各自的 Task 上並肩工作

由於 Comma 會為每個請求建立一個獨立的 Task，你可以從同一個聊天同時委派兩條互不相干的分支：

- **Task 1（Codex）**：在上傳 SDK 中加入重試退避和測試。
- **Task 2（Claude Code）**：檢查新手引導流程中的錯誤訊息，並開一個細修 PR。

Comma 在你的 Tasks 側欄追蹤這兩個 Task，只有在 PR 準備好，或有設計取捨需要你在 **Needs Review** 中決定時才通知你。

Codex 和 Claude Code 並肩工作，各自負責自己的 Task。

### 4. 隨時隨地審查和引導

出門買咖啡前先啟動一次重構。當 Codex 或 Claude Code 完成並開好 draft PR 時，在 iPhone 或 Telegram 上查看摘要，然後回覆「把 schema 重新命名拆成另一個提交，再重跑 CI」，Comma 會把你的後續指示送回完全相同的 Task 和裝置。

## 裝置綁定與信任界線

- **嚴格的裝置親和性**：如果某個 Task 綁定在你的 Mac 或 Linux 機器上，而那台電腦離線了，Comma 會公開地等待，而不是悄悄把程式庫工作搬到另一台機器上。
- **明確選擇登入方式**：只有在你於裝置卡片上選擇該選項後，Comma 才會讀取本機的 Mac 登入；本機模型伺服器的位址只留在那個 station 上。
- **先開 draft PR**：讓 CI 和真人程式碼審查作為你的合併關卡。

**下一步：**[給工程團隊的 Comma](https://comma.surf/zh-tw/blog/comma-for-engineering) · [搭配 MCP 與自訂工具使用 Comma](https://comma.surf/zh-tw/blog/comma-for-mcp-and-custom-tools)

指南

[返回部落格](https://comma.surf/zh-tw/blog)

分享

## 相關文章

2026 年 12 月 3 日

### [Comma 入門](https://comma.surf/zh-tw/blog/comma-101)

2026 年 12 月 2 日

### [給管理員的 Comma](https://comma.surf/zh-tw/blog/comma-for-admins)

2026 年 12 月 1 日

### [聊天 App 裡的 Comma](https://comma.surf/zh-tw/blog/comma-in-your-chat-apps)

## Try Comma, Now.

[開始使用](https://app.comma.surf/)
