# Cua Driver 開放 Computer History 預覽版：加密在地保存 Agent 操作中繼資料，跨 session 延續任務

> 📖 本站完整內容索引（documentation index）：[llms.txt](/llms.txt)

> 原作者：Cua (@trycua) · 策展與摘要：EasyVibeCoding · 平台：X (Twitter) · 熱度：🔥🔥 · 日期：2026-08-19

> 原始來源：https://x.com/trycua/status/2089770780053643397

## 證據與延伸閱讀

- [Cua Driver 開放 Computer History 預覽版：加密在地保存 Agent 操作中繼資料，跨 session 延續任務。](https://x.com/trycua/status/2089770780053643397)
- [macOS 測試：啟用歷史後操作次數減少、失敗路徑歸零](https://x.com/trycua/status/2089770783224520963)
- [Windows 測試：保留應用與結果，但排除截圖與文字等隱私](https://x.com/trycua/status/2089770785116139963)
- [Linux 測試：保留 action events 與資訊，排除敏感內容](https://x.com/trycua/status/2089770787188183517)
- [Computer History 只保存固定格式的中繼資料，明確排除敏感內容](https://x.com/trycua/status/2089770789356667147)
- [歷史預設關閉，加密儲存，金鑰由系統保護，Linux 沒解鎖會 fail closed](https://x.com/trycua/status/2089770791436976492)
- [預設保留 7 天與 100 MiB 配額，屬於加密刪除](https://github.com/trycua/cua/blob/main/libs/cua-driver/docs/computer-history-preview.md) — 官方 Repository
- [提供 history_status 與 history_query 唯讀工具](https://github.com/trycua/cua/blob/main/libs/cua-driver/docs/computer-history-agent-integration-rfc.md) — 官方 Repository
- [nightly 測試步驟指令](https://x.com/trycua/status/2089770793794170976)

## 中文摘要

Cua Driver 開放 Computer History 預覽版：加密在地保存 Agent 操作中繼資料，跨 session 延續任務。

**核心功能** Cua 在 2026 年 8 月 19 日宣布推出第一個開源的 Computer History。它不是保存完整對話，而是記錄 Agent 透過 Cua Driver 執行過哪些操作、使用哪些應用程式與 Cua capabilities，以及操作是否成功。這份記錄能跨越對話重設、新 session，甚至不同的相容 Agent；但當使用者意圖不明時，Agent 仍會先詢問使用者。

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1787113508394-czxautxk.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/19f7310c2ec39a31.jpg" autoplay loop muted playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> Cua 的 Computer History 功能預覽介面，標示支援 macOS、Windows 與 Linux

**三平台測試** 發文者以 macOS、Windows 與 Linux 的實例說明 Computer History 的作用：

- macOS 測試要求「Move the white pawn from e2 to e4」。關閉歷史時，Agent 嘗試了三條失敗路徑；啟用後，它重用先前成功的路徑，操作次數少了 33.3%，失敗路徑也從 3 條降為 0 條。不過，畫面顯示 latency 沒有改善，代表歷史主要減少重複嘗試，不等於提升執行速度。
- Windows 測試要求在 context 重設後繼續先前的 Paint 任務。Computer History 提供 Paint 的應用程式歸屬、先前的行動順序與已確認的結果，但沒有保存繪圖內容、螢幕截圖、輸入文字、raw arguments、視窗標題或路徑。
- Linux 測試要求在 LibreOffice Writer 輸入提供的三行文字並套用粗體。歷史保留 6 個 Cua action events、LibreOffice 的應用程式資訊，以及使用過的 type 與 hotkey capabilities；測試畫面也顯示，文字內容、螢幕截圖、路徑、標題與 URL 不會進入歷史。

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1787113526382-fbkrwhqh.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/da524765366fdb80.jpg" controls playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> Perplexity Computer 在 Computer History 開啟與關閉狀態下的西洋棋操作對比測試

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1787113548941-xmzqeedi.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/ee56c853f1ece7b5.jpg" controls playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> 比較「COMPUTER HISTORY OFF」與「COMPUTER HISTORY ON」兩種模式下的操作差異與歷史記錄保留情況

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1787113567510-wyjpgvl1.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/e13bac7e809013d5.jpg" controls playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> Perplexity Computer 在電腦歷史開啟與關閉兩種設定下的操作差異對比影片

**記錄邊界** Computer History 只保存固定格式的中繼資料，包括 session lifecycle、Cua actions、目標應用程式識別、操作結果與 writer health。它明確排除：

- 螢幕截圖、影片、音訊、輸入文字、raw keystrokes 與剪貼簿內容；
- window titles、URL、檔案路徑、accessibility trees；
- raw tool arguments、tool results 與自由格式診斷資訊。

因此，歷史能告訴 Agent「先前在哪個應用程式使用了哪項能力、操作是否完成」，卻不能還原文件內容、棋盤狀態、使用者輸入或完整操作指令。測試中的歷史也不代表保存了棋局策略或 LibreOffice 文件本身。

![](https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/502e3ee74886de63.jpg)
> Cua 的隱私邊界說明介面，展示兩個區塊分別列出被記錄與被排除的資料項目，下方標註支援 macOS、Windows 與 Linux 且預設關閉。

**加密與控制權** 歷史預設關閉，資料只留在使用者電腦上，寫入磁碟前會加密，且不會進入產品 telemetry。儲存格式使用 CBOR Sequence、COSE_Encrypt0 與 CloudEvents；每筆記錄以 ChaCha20-Poly1305 驗證，根金鑰則由 macOS Keychain、Windows Credential Manager 或 Linux Secret Service 保護。Linux 若沒有可用且已解鎖的 Secret Service，系統會 fail closed，不建立明文檔案。

![](https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/939426e1ff2f71c5.jpg)
> Cua 的資料加密架構圖以深藍色背景呈現，透過 01 至 06 的流程方塊展示從 Cua-mediated action 經過固定欄位投影、執行緒佇列、非同步寫入、COSE 加密記錄到本地儲存的處理步驟，下方並列出記錄格式、OS 保護的金鑰儲存庫細節與產品遙測路由說明。

預設保留期限為 7 天，加密儲存配額為 100 MiB；查詢不會回傳超過 7 天的事件。儲存區會至少每小時封存目前 chunk，並在執行期間清理已封存的 chunk。即使停用歷史或 daemon 離線，過期 ciphertext 可能暫時留在磁碟上，但不會出現在查詢結果中。刪除功能屬於加密刪除，Cua 不宣稱能清除 APFS snapshots、備份、複製的 ciphertext、SSD wear leveling，或已被其他程序解密的記憶體內容。

**Agent 介面** 預覽版提供兩個唯讀、分開授權的工具：

- `history_status` 對應 `history.status`，回傳支援狀態、是否啟用或暫停、保留期限、配額、健康狀態與遺失事件數，不回傳歷史事件。
- `history_query` 對應 `history.query`，最多回傳 200 筆中繼資料事件；查詢結果可能進入目前 Agent 的 model context，並寫入一筆加密的 access-audit event。

Agent 不能透過這兩個工具啟用、暫停、恢復或刪除記錄，也不能匯出加密 chunk、讀取檔案、取得加密金鑰或直接存取 credential store。Agent runtime 必須在執行時偵測工具是否存在。遇到未授權、資料不存在、儲存服務無法讀取或事件遺失時，可在不假設歷史完整的前提下繼續工作；若儲存資料損壞或驗證失敗，則應停止取用結果，並引導使用者透過本機控制項復原。回傳的事件只能作為中繼資料證據，仍須以目前桌面狀態再次確認。

**啟用方式** 發文者提供的 nightly 測試步驟如下，功能不會在未明確同意下啟用：

```bash
cua-driver channel set nightly
cua-driver update --apply
cua-driver history enable
```

啟用流程會初始化裝置本機的 native credential、驗證加密資料的寫入與讀取，再開始擷取。使用者也可以暫停或恢復記錄、停用擷取但保留加密儲存區，或刪除歷史與金鑰。預覽指南另提供 `cua-driver history status`、`cua-driver history list 50` 與 `cua-driver history show 42`，可查看狀態、最近 50 筆事件或序號為 42 的單筆事件。

**分享立場** Cua 將這項功能定位為敏感 context 的使用者所有權實驗：Computer History 開源、在地儲存，並讓使用者檢查、控制與刪除資料。完整設定說明見 [Computer History desktop preview](https://github.com/trycua/cua/blob/main/libs/cua-driver/docs/computer-history-preview.md) ，Agent 整合規格見 [Computer History Agent Integration RFC](https://github.com/trycua/cua/blob/main/libs/cua-driver/docs/computer-history-agent-integration-rfc.md) 。

## 媒體內容

**Perplexity Computer 在電腦歷史開啟與關閉兩種設定下的操作差異對比影片**

**影片中的 Prompt 與操作**

操作步驟：

1. （00:07）點擊 LibreOffice Writer 編輯視窗
2. （00:18）在 LibreOffice Writer 輸入文字
3. （00:23）全選文字並套用粗體

## 標籤

Agent, 開源專案, 新產品, Cua Driver
