> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/zhong-wen-fan-ti/advanced-basic/agent-workspace/permissions-memory-background.md).

# 權限、記憶同後台任務

Agent 可以執行文件、終端同網絡操作，亦可以調用子智能體同後台任務。權限決定「要唔要先問」，記憶決定「下次仲知唔知道」，右側狀態面板就會話你「而家喺度做緊乜」。

<figure><img src="/files/e4dbd65f31c92d9aa5cd2b48f213ad85e039e9c9" alt="Agent 可选的仅规划、默认、自动审批和完全访问权限模式"><figcaption><p>日常使用由預設權限開始；只規劃適合先睇方案，完全存取只用喺邊界清楚同可回復嘅任務。</p></figcaption></figure>

### 權限模式

| 模式       | 行為             | 適用場景          | 注意事項               |
| -------- | -------------- | ------------- | ------------------ |
| 【逐次確認】   | 編輯文件或執行指令前先問   | 預設起點、真實項目目錄   | 操作多嘅時候會成日確認，但最容易控制 |
| 【自動接受編輯】 | 可以編輯文件，執行指令前先問 | 文件整理、可回復嘅代碼修改 | 先確認工作目錄同版本控制狀態     |
| 【智能批准】   | 由安全檢查決定放唔放行    | 模型支援而且任務邊界清晰  | 部分模型可能仲會逐次問        |
| 【只規劃】    | 只做規劃、唔編輯文件     | 方案評審、上線前審查    | 適合先睇計劃再執行          |
| 【完全存取】   | 跳過權限檢查         | 隔離、可信、可恢復嘅環境  | 可能刪除文件或者存取網絡，風險最高  |

唔同運行模式提供嘅權限範圍並唔完全相同：Pi 唔提供【只規劃】，新建 Pi Agent 時預設使用【智能批准】；DeepSeek Harness 唔提供【智能批准】；【增強：Claude Agent】提供完整嘅五種模式。

配置路徑：左側導航【工作】→ Agent 選單→【編輯】→【基礎】→【權限模式】。

{% hint style="danger" %}
頻道可以單獨覆蓋 Agent 嘅權限模式。外部聊天入口更容易收到意外指令，通常應該選擇【繼承智能體設定】或者比 Agent 更嚴格嘅模式，唔好為咗少點幾次確認而開放完全存取。
{% endhint %}

### Agent 記憶

Agent 嘅記憶係跟住 Agent，而唔係跟住某個任務或者工作目錄。佢適合保存長期有效嘅偏好、項目事實、技術決策同經驗；一次性進度就會記錄做帶時間戳嘅日誌，俾之後任務檢索。

直接喺【工作】入面同 Agent 講：

```
記住：所有對外發佈嘅中文文案都用全角標點，唔使用誇張標題。以後相關任務按呢條規則執行。
```

需要更正嘅時候，要明確指出舊資訊已經失效，並要求更新記憶。唔好將密碼、API Key、私密身份資料或者短期無關內容寫入長期記憶。

### 子智能體、工作流同後台命令

複雜任務入面，Agent 可以將研究、整理同驗證分配俾子智能體，或者透過工作流編排多個步驟。耗時指令可以喺後台運行，唔使阻塞成個對話。Agent 亦可以喺你確認之後新建另一個會話，或者向已有會話發送任務；請求會即刻返回，完成結果之後會回到發起會話，並保留來源同交付狀態。

右側【狀態】可以查看：

* 進行中同已完成嘅任務；
* 子智能體同工作流；
* 後台命令同停止入口；
* 工具調用嘅成功、失敗同數量；
* 上下文用量同已聲明產物。

開啟【設定】→【通知】→【對話完成通知】之後，切去其他標籤頁或者視窗做嘢時，助手回覆完成、Agent 任務完成或者等待批准都會透過系統通知提醒；撳通知會返回相應對話。

<figure><img src="/files/3647bc078c5aedd2b5fcc6ca63eb38ea1841888b" alt="Agent 状态面板中的子任务、后台命令和上下文用量"><figcaption><p>長任務可以喺【狀態】入面查看產物、子任務、後台命令同上下文用量。</p></figcaption></figure>

### 用戶案例：持續維護項目規範

團隊將穩定嘅代碼約定寫入 Agent 記憶，將詳細審查步驟做成技能。每次審查新分支時開一個任務，等 Agent 用子智能體分別檢查接口、數據遷移同測試，再由主 Agent 彙總結論。規則有變化嗰陣更新記憶，唔需要改動每個任務嘅歷史記錄。

<details>

<summary>記憶可以代替知識庫嗎？</summary>

唔可以。記憶適合少量、穩定、會跨任務使用嘅事實同經驗；知識庫適合成體系嘅文件，亦可以控制 Agent 嘅檢索範圍。

</details>

<details>

<summary>任務睇落卡住咗，先睇邊度？</summary>

先打開右側【狀態】，檢查係咪喺等權限、後台命令仲喺度運行、子任務失敗，或者服務商正喺度重試。需要更深入嘅請求細節時，再打開開發者模式查看調用鏈。

</details>

<details>

<summary>任務睇落卡住咗，先睇邊度？</summary>

先打開右側【狀態】，檢查係咪喺等權限、後台命令仲喺度運行、子任務失敗，或者服務商正喺度重試。需要更深入嘅請求細節時，再打開開發者模式查看調用鏈。

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/zhong-wen-fan-ti/advanced-basic/agent-workspace/permissions-memory-background.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
