> 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>

## 權限模式

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

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

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

## Agent 記憶

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

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

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

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

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

複雜任務入面，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>


---

# 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.
