AI 程式設計教學中文版
官方教學中文版產品入口

調整 App 設定

Codex App 的 settings panel 用來調整 App 行為、檔案開啟方式,以及外部工具連線方式。

📖 本篇術語速查表
英文 / 縮寫中文一句話解釋
Agent configuration代理設定App 裡對 Codex 行為的設定。
Git 設定git settingsApp 內 Git 操作相關的設定。
通知notifications任務狀態提醒的設定。

不想讀完?把下面這段提示詞丟給 AI 幫你跑完——幫你調好 App 設定,先配對 Agent 和 Git 這些關鍵項。

你是 Codex App 設定顧問,幫我調好 App 設定,先配對 Agent configuration 和 Git 這些關鍵項。

【角色】
你熟悉 App 的各類設定:General、通知、Agent configuration、Appearance、Git,知道哪些最該先調。

【輸入】
- 我的使用習慣和場景:___
- 我想改善的體驗點:___
- 對 Git 行為的要求:___
- 是否在意通知打擾:___

【工作流程】
1. 給最該先調的關鍵設定(Agent / Git)
2. 配通知,避免打擾或漏提醒
3. 調 Appearance 等體驗項
4. 給推薦設定流程

【輸出規範】
▌一、關鍵設定(Agent / Git)+ 建議值
▌二、通知設定
▌三、體驗項調整
▌四、推薦設定流程

【硬約束】
- 先調關鍵項,不一次全改
- Git 相關設定謹慎,避免誤操作
- 改前提醒瞭解預設行為
- 不確定的設定項標註需查官方文件
- 給的值可直接用

Codex App 的 settings panel 用來調整 App 行為、檔案開啟方式,以及外部工具連線方式。

開啟方式:

  • 在 App menu 中開啟 Settings
  • 使用快捷鍵 Cmd+,

General

General 設定用於控制檔案在哪裡開啟,以及 thread 中顯示多少 command output。

你也可以在這裡啟用兩個常用行為:

  • multiline prompts 必須按 Cmd+Enter 才傳送。
  • thread 正在執行時,阻止電腦 sleep。

通知

Notifications 設定用於選擇 turn completion notifications 何時出現,以及 App 是否要提示 notification permissions。

Agent configuration

Codex App 中的 agents 會繼承和 IDE、CLI extension 相同的 configuration。

常用設定可以在 App 內直接調整;高階選項仍然編輯 config.toml

相關官方文件:

Appearance

Settings 中,你可以調整 Codex App 的外觀:

  • base theme
  • accent color
  • background color
  • foreground color
  • UI font
  • code font

你也可以把 custom theme 分享給朋友。

官方截圖:

Codex pets

Codex pets 是 App 中可選的 animated companions。

選擇方式:

  1. 開啟 Settings
  2. 進入 Appearance
  3. 選擇 Pets
  4. 選擇 built-in pet,或從本地 Codex home refresh custom pets。

你也可以用這些方式控制 floating overlay:

  • 在 composer 中輸入 /pet
  • Settings > Appearance 中使用 Wake PetTuck Away Pet
  • Cmd+KCtrl+K 開啟 command palette,執行同樣的 commands。

overlay 會讓 active Codex work 在你使用其他 apps 時仍保持可見。它會顯示 active thread,反映 Codex 目前是 running、waiting for input,還是 ready for review,並配合一段短 progress prompt,讓你不用重新開啟 thread 也能看到發生了什麼。

要建立自己的 pet,先安裝 hatch-pet skill:

$skill-installer hatch-pet

然後從 command menu reload skills:

  1. Cmd+KCtrl+K
  2. 選擇 Force Reload Skills
  3. 讓 skill 建立 pet:
$hatch-pet create a new pet inspired by my recent projects

Git

Git settings 可以統一 branch naming,並選擇 Codex 是否使用 force pushes。

你也可以設定 Codex 生成 commit messages 和 pull request descriptions 時使用的 prompts。

Integrations & MCP

透過 MCP,也就是 Model Context Protocol,Codex 可以連線 external tools。

在 App 中你可以:

  • 啟用 recommended servers。
  • 新增自己的 MCP server。
  • 在 server 需要 OAuth 時,讓 App 啟動 auth flow。

這些 settings 同樣適用於 Codex CLI 和 IDE extension,因為 MCP configuration 存在 config.toml 中。

官方 MCP 文件:

https://developers.openai.com/codex/mcp

瀏覽器使用

Browser use settings 用來安裝或啟用 bundled Browser plugin,並管理 allowed websites 和 blocked websites。

預設,Codex 在使用一個 website 前會先詢問你,除非你已經 allow 這個網站。把網站從 blocked list 中移除後,Codex 下次會重新詢問是否可以使用它。

browser preview、comment 和 browser use workflows 見:

https://developers.openai.com/codex/app/browser

Computer Use

在 macOS 上,Computer Use settings 用來檢查 desktop-app access 和相關 preferences。

如果你要撤銷 system-level access,需要到 macOS Privacy & Security settings 中修改:

  • Screen Recording permissions
  • Accessibility permissions

該功能 launch 時不面向 EEA、United Kingdom 或 Switzerland 提供。

Personalization

你可以把預設 personality 設為:

  • Friendly
  • Pragmatic
  • None

選擇 None 會停用 personality instructions。這個設定之後可以隨時改。

你還可以新增自己的 custom instructions。編輯 custom instructions 會更新 AGENTS.md 中的 personal instructions

上下文-aware suggestions

Context-aware suggestions 會在你啟動或回到 Codex 時,提示可能需要繼續的 follow-ups 和 tasks。

記憶

Memories 可用時,你可以啟用它,讓 Codex 把過去 threads 中有用的 context 帶到未來工作裡。

setup、storage 和 per-thread controls 見:

https://developers.openai.com/codex/memories

Archived threads

Archived threads section 會列出 archived chats,並顯示 dates 和 project context。需要恢復時使用 Unarchive

本頁目錄