EN 中文

# Using seek in Zed (ACP)

# 在 Zed 里用 seek (ACP)

Plug seek into Zed's Agent Panel via the Agent Client Protocol.

通过 ACP 协议将 seek 作为自定义 agent 嵌入 Zed。

seek speaks the Agent Client Protocol (ACP), so it plugs into Zed as a custom agent — chat with seek in Zed's Agent Panel; its tool calls (read/grep/edit/git…) render as native step cards.

seek 实现了 ACP，可作为一个自定义 agent 嵌进 Zed。它的工具调用会渲染成 Zed 原生的步骤卡片。

## Prerequisites

## 前置要求

1. A seek binary with ACP support. Check: `echo '{"jsonrpc":"2.0","id":1,"method":"initialize"}' | seek acp` should return a JSON-RPC response.
2. seek 二进制支持 ACP。运行自检命令应返回 JSON 响应。
3. API key configured (`~/.seek/config.json` or `DEEPSEEK_API_KEY`).
4. 配置好 API key。
5. Know the binary's absolute path: `which seek`. GUI apps don't inherit shell PATH.
6. 知道 seek 二进制的绝对路径（macOS GUI 应用不继承 shell PATH）。

## Configure

## 配置方法

Open Zed settings (`cmd-,` or command palette → `zed: open settings`) and add:

打开 Zed 设置，添加：

    {
      "agent_servers": {
        "seek": {
          "command": "/usr/local/bin/seek",  // your `which seek` path
          "args": ["acp"],
          "env": {}
        }
      }
    }

## Usage in Zed

## 在 Zed 中使用

- Open Agent Panel (`cmd-shift-.` or the icon in the activity bar)
- 打开 Agent 面板（cmd-shift-. 或活动栏图标）
- Select seek from the agent dropdown
- 从 agent 下拉菜单选择 seek
- Tool calls render as expandable step cards in the agent panel
- 工具调用渲染为可展开的步骤卡片

This is an MVP integration. Handshake + streaming + tool-call rendering work; approve gates and session resume are planned. 这是 MVP 集成。握手 + 流式回复 + 工具调用映射已跑通，审批门、session resume 等见优化清单。

Design: PRD feature-acp.md

设计文档：PRD feature-acp.md