Connecting an agent to Pointsay
This document describes how Pointsay (a desktop app for Windows, version 0.1.0) connects to an agent.
How Pointsay calls an agent
Pointsay calls agents over ACP (Agent Client Protocol, https://agentclientprotocol.com):
- Pointsay runs a launch command in the background, which starts the agent as a child process, and talks to it over standard input and standard output.
- Each task is one session. Pointsay passes the user's instruction, the paths of the selected files (and a screen capture, if the user made one) to the agent. The working directory is the folder that contains the selected files.
- Permission requests from the agent (writing files, running commands and so on) are shown to the user for confirmation.
- Pointsay does not read or store the agent's sign-in details. Signing in happens in the agent's own program.
What the launch command needs
- It starts the agent in ACP mode on Windows, communicating over standard input and output.
- It works from any folder (using the program's full path where needed).
- It uses an agent that is already installed on this computer. Pointsay does not download or install agents.
- For an agent with no ACP mode of its own that relies on an adapter, the command can be the one that starts the adapter, with environment variables pointing at the installed agent.
Connection request
An agent can be proposed to Pointsay with a JSON file.
- Location: the folder
%APPDATA%\Pointsay\inboxon this computer (it already exists). Any file name with the extension.json. - Encoding: UTF-8. No larger than 8 KB.
- Content:
{
"name": "Example Agent",
"vendor": "Example Inc.",
"command": "\"C:\\Tools\\example\\agent.exe\" acp",
"env": {
"EXAMPLE_HOME": "C:\\Tools\\example"
}
}
| Field | Required | Meaning |
|---|---|---|
name | yes | Name shown in Pointsay, up to 40 characters |
command | yes | Launch command, up to 500 characters |
vendor | no | Who develops the agent, up to 40 characters |
env | no | Environment variables passed at launch, up to 12; names use letters, digits and underscores only |
After a request is submitted
- Pointsay reads the file, deletes it, and adds an entry to the list on its AI page with the state "Disabled".
- The command does not run automatically. Pointsay runs it only after the user reviews the command in Pointsay and clicks Enable.
- Submitting the same command again does not add a second entry.
- A file is not the only way: on the AI page, the "Connect another agent" row has an "Enter manually" button for typing the name and command directly.
Claude Code
Claude Code has no ACP mode of its own. It is connected through the adapter @agentclientprotocol/claude-agent-acp from the official ACP registry:
- The adapter requires Claude Code 2.1.328 or later, and Node.js on the computer (
npxin the command is a tool that comes with Node.js). - The environment variable
CLAUDE_CODE_EXECUTABLEholds the full path of the installed Claude Code executable (usuallyclaude.exeon Windows).
The matching connection request:
{
"name": "Claude Code",
"vendor": "Anthropic",
"command": "npx -y @agentclientprotocol/[email protected]",
"env": {
"CLAUDE_CODE_EXECUTABLE": "C:\\full\\path\\to\\claude.exe"
}
}
Terms of use
Whether an agent may be used this way from third-party software depends on that agent vendor's terms, which the user is responsible for checking.
Pointsay 接入说明
本文说明 Pointsay(Windows 桌面软件,版本 0.1.0)如何接入一个 Agent。
Pointsay 怎样调用 Agent
Pointsay 通过 ACP(Agent Client Protocol,https://agentclientprotocol.com)调用 Agent:
- Pointsay 在后台运行一条启动命令,把 Agent 作为子进程启动,通过标准输入、标准输出与它通信。
- 每个任务是一次会话。Pointsay 把用户的指令、选中文件的路径(以及用户框选的截图,如果有)交给 Agent,工作目录是选中文件所在的文件夹。
- Agent 发来的权限请求(写文件、运行命令等)由 Pointsay 展示给用户确认。
- Pointsay 不读取、不保存 Agent 的登录信息,登录在 Agent 自己的程序里完成。
启动命令需要满足什么
- 能在 Windows 上以 ACP 模式启动 Agent,通过标准输入输出通信。
- 在任何文件夹下都能运行(需要时写程序的完整路径)。
- 使用这台电脑上已经安装的 Agent。Pointsay 不下载、不安装 Agent。
- 自身不带 ACP 模式、要靠适配器转接的 Agent:命令可以是启动适配器的那一条,并用环境变量指明已安装的 Agent 在哪里。
接入申请
一个 Agent 可以用一个 JSON 文件向 Pointsay 提出接入申请。
- 位置:这台电脑上的文件夹
%APPDATA%\Pointsay\inbox(已经存在),文件名任意,扩展名为.json。 - 编码:UTF-8。大小不超过 8 KB。
- 内容:
{
"name": "Example Agent",
"vendor": "Example Inc.",
"command": "\"C:\\Tools\\example\\agent.exe\" acp",
"env": {
"EXAMPLE_HOME": "C:\\Tools\\example"
}
}
| 字段 | 必填 | 说明 |
|---|---|---|
name | 是 | 在 Pointsay 里显示的名字,不超过 40 个字符 |
command | 是 | 启动命令,不超过 500 个字符 |
vendor | 否 | 开发方,不超过 40 个字符 |
env | 否 | 启动时附带的环境变量,最多 12 个;变量名只含字母、数字、下划线 |
提交之后
- Pointsay 读取这个文件后会把它删除,并在“AI”页的列表里添加一项,状态是“未启用”。
- 命令不会自动运行。用户在 Pointsay 里核对这条命令并点“启用”之后,Pointsay 才会运行它。
- 同一条命令重复提交不会重复添加。
- 也可以不用文件:在“AI”页的“接入其他 Agent”一行点“手动填写”,直接填名称和命令。
Claude Code
Claude Code 自身不带 ACP 模式,通过 ACP 官方注册表里的适配器 @agentclientprotocol/claude-agent-acp 转接:
- 适配器要求 Claude Code 的版本不低于 2.1.328,并且电脑上装有 Node.js(命令里的
npx是 Node.js 自带的工具)。 - 环境变量
CLAUDE_CODE_EXECUTABLE指明已安装的 Claude Code 可执行文件的完整路径(Windows 上通常是claude.exe)。
对应的接入申请:
{
"name": "Claude Code",
"vendor": "Anthropic",
"command": "npx -y @agentclientprotocol/[email protected]",
"env": {
"CLAUDE_CODE_EXECUTABLE": "C:\\full\\path\\to\\claude.exe"
}
}
使用条款
能否在第三方软件中这样使用某个 Agent,以该 Agent 厂商的条款为准,由用户自行确认。