Skip to content

Asctrl 0.3.0

Latest

Choose a tag to compare

@yalosaws yalosaws released this 28 Nov 11:08

Asctrl 0.3.0 asks the person at the computer before an agent does something it can't take back, and makes self-hosting easier: the controller and relay now run on Node.js 20.12 or newer and come from npm.

English | 简体中文

What's new

  • Risky actions wait for a yes. Actions that can't be undone (deleting, uninstalling, destructive shell commands, restarting) or that send something out (send, submit, pay, Enter in a chat box) now show a question on the orb. Nothing happens until the person clicks Allow; Deny, or no answer within 2 minutes, refuses the action and tells the agent. Steps inside plans and programs are asked the same way. On by default, locally and remotely; ASCTRL_CONFIRM on the driver picks the levels (external,irreversible, external, or off for unattended use).
  • A switch for asking on the orb's menu. Turn asking on or off until the driver quits. It can only be turned off while no agent is connected, so an agent can't switch it off for itself.
  • Pairing codes expire. A code nobody used for 10 minutes is replaced (ASCTRL_CODE_TTL_MIN, 0 keeps it), and New code on the orb's menu replaces it at once.
  • The relay needs a token. It refuses to start without RELAY_TOKEN; set RELAY_ALLOW_NO_TOKEN=1 only on a closed test network.
  • Any OpenAI-compatible decision model. Point ASCTRL_DECISION_BASE_URL and ASCTRL_DECISION_MODEL at Ollama, vLLM, llama.cpp or any other OpenAI-compatible server, so candidate controls and window text never leave your machines.
  • Node.js 20.12 and npm. The server archive carries the controller, relay and HTTP connector as built JavaScript (dist/) for Node.js 20.12 or newer, and they are on npm as @yalosaws/asctrl: npx -p @yalosaws/asctrl asctrl-relay. The TypeScript source now runs on Node.js 22.18 or newer (was 24.5).

Thanks to @klarkxy for suggesting these in #1, #2 and #3.

Upgrading

  • Relay operators: the relay won't start without RELAY_TOKEN. If yours ran without one, choose a secret and set it on the relay and, with the same value, on the controllers and the HTTP connector that use it.
  • Unattended setups with nobody at the computer to click Allow: set ASCTRL_CONFIRM=off on the driver, or risky actions are refused after 2 minutes.

Get started

  1. Download asctrl-0.3.0-windows-x64.zip and check it against SHA256SUMS: Get-FileHash -Algorithm SHA256 .\asctrl-0.3.0-windows-x64.zip.

  2. Extract it to a folder you keep, such as C:\Tools\Asctrl.

  3. Register the stdio server with your agent, using absolute paths:

    {
      "mcpServers": {
        "asctrl": {
          "command": "C:\\Tools\\Asctrl\\runtime\\node.exe",
          "args": ["C:\\Tools\\Asctrl\\src\\console\\mcp-server.ts"]
        }
      }
    }
  4. Have the agent call connect with {}. The controller starts the bundled driver and the orb appears.

Coding agents setting it up on their own can follow AGENTS.md. Requires Windows x64 with a signed-in desktop and WebView2 (tested on Windows 11); the portable package brings its own Node.js.

Files

File Contents
asctrl-0.3.0-windows-x64.zip Portable package: driver, Node runtime, controller and its dependencies, browser extension, notices. Start here.
Asctrl_0.3.0_x64-setup.exe Driver-only installer. Unsigned, so Windows may show a publisher warning.
asctrl-0.3.0-server.tar.gz Controller, relay and HTTP connector for your own server, as TypeScript (src/) and built JavaScript (dist/).
asctrl-0.3.0-source.zip Everything needed to rebuild the release.
asctrl-0.3.0-driver-notices.zip Third-party notices for the driver. Distribute it alongside the standalone installer.
SHA256SUMS Checksums of the files above.

简体中文

0.3.0 在 Agent 做无法撤销的操作之前,会先问电脑前的人;自托管也更方便了:控制端和中继可以在 Node.js 20.12 及以上版本运行,也可以直接从 npm 获取。

新功能

  • 高危操作需要确认。 不可撤销的操作(删除、卸载、破坏性 shell 命令、重启)或会向外发送内容的操作(发送、提交、付款、在聊天窗口按 Enter),会先在悬浮球上弹出确认,等电脑前的人点 Allow;点 Deny 或 2 分钟内没有回应就不执行,并告知 Agent。计划和程序里的每一步同样如此。本机和远程都默认开启,驱动上的 ASCTRL_CONFIRM 可以调整:external,irreversible(默认)、external,无人值守时设为 off。
  • 悬浮球菜单里的确认开关。 可以临时开启或关闭确认,直到驱动退出。只有在没有 Agent 连接时才能关闭,这样 Agent 无法自己把它关掉。
  • 配对码自动过期。 10 分钟内没人使用就换新码(ASCTRL_CODE_TTL_MIN,0 则不换);菜单里的 New code 可以立即换一个。
  • 中继必须设置令牌。 没有 RELAY_TOKEN 时中继拒绝启动;只有在封闭的测试网络里才设置 RELAY_ALLOW_NO_TOKEN=1。
  • 任意 OpenAI 兼容的决策模型。 用 ASCTRL_DECISION_BASE_URL 和 ASCTRL_DECISION_MODEL 指向 Ollama、vLLM、llama.cpp 或其他 OpenAI 兼容服务,候选控件和窗口文字可以完全不出你自己的机器。
  • Node.js 20.12 和 npm。 服务端压缩包带编译好的 JavaScript(dist/),控制端、中继和 HTTP 连接器可在 Node.js 20.12 及以上版本运行;也已发布到 npm,包名 @yalosaws/asctrl:npx -p @yalosaws/asctrl asctrl-relay。直接运行 TypeScript 源码的最低版本从 24.5 降到了 22.18。

感谢 @klarkxy 在 #1、#2、#3 中提出这些建议。

升级注意

  • 部署了中继的: 中继没有 RELAY_TOKEN 就无法启动。原来没设置令牌的,请生成一个密钥,设置在中继上,并在连接它的控制端和 HTTP 连接器上设置同一个值。
  • 无人值守、没人点 Allow 的场景: 请在驱动上设置 ASCTRL_CONFIRM=off,否则高危操作会在 2 分钟后被拒绝。

快速开始

  1. 下载 asctrl-0.3.0-windows-x64.zip,用 SHA256SUMS 校验:Get-FileHash -Algorithm SHA256 .\asctrl-0.3.0-windows-x64.zip。

  2. 解压到一个长期保留的目录,例如 C:\Tools\Asctrl。

  3. 用绝对路径把 stdio 服务注册给你的 agent:

    {
      "mcpServers": {
        "asctrl": {
          "command": "C:\\Tools\\Asctrl\\runtime\\node.exe",
          "args": ["C:\\Tools\\Asctrl\\src\\console\\mcp-server.ts"]
        }
      }
    }
  4. 让 agent 用 {} 调用 connect。控制端会启动包里自带的驱动,屏幕上出现悬浮球。

让编程 agent 自己部署,可以让它按 AGENTS.md 操作。需要 Windows x64、已登录的桌面和 WebView2(在 Windows 11 上测试);便携包自带 Node.js。完整说明见 README.zh-CN.md。

文件

文件 内容
asctrl-0.3.0-windows-x64.zip 便携包:驱动、Node 运行时、控制端及其依赖、浏览器扩展、第三方声明。从这里开始。
Asctrl_0.3.0_x64-setup.exe 只含驱动的安装程序。没有签名,Windows 可能提示发布者未知。
asctrl-0.3.0-server.tar.gz 部署到自己服务器的控制端、中继和 HTTP 连接器,包含 TypeScript 源码(src/)和编译好的 JavaScript(dist/)。
asctrl-0.3.0-source.zip 重新构建发布包所需的全部文件。
asctrl-0.3.0-driver-notices.zip 驱动的第三方声明。单独分发安装程序时请一并附上。
SHA256SUMS 以上文件的校验和。

MIT License

SHA256

cc69b1e1fd38ed096634a46d5d96277e7f25d20bfdceae4c9757109adb7f7aad  asctrl-0.3.0-driver-notices.zip
0e63e045494b42dc0e55af31b3b2c24ff8ca6c1fbd67be29fef53bc3a0fdb9d9  asctrl-0.3.0-server.tar.gz
777e0006d96854fde50cc8bf044ebced615eb3d7f6a3e3b2119a1b716c5b5a4c  asctrl-0.3.0-source.zip
e1085d8bc2bdf35ec6bece3eed1f717093dd02a815620433e2479605104af302  asctrl-0.3.0-windows-x64.zip
1303dd8be3506b59f1601b613b5ec31d48ce0a12744b952726309d64db855fd6  Asctrl_0.3.0_x64-setup.exe