返回顶部
c

cursor-tui光标终端代理

Spawn and relay Cursor Agent's CLI (`agent` binary) as an interactive passthrough. Use when the user wants to run Cursor Agent in a directory, ask it questions, or send follow-up prompts — acting as a transparent bridge between the user and the agent session.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
783
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

cursor-tui

Cursor CLI 透传

在PTY后台会话中启动Cursor的agent,并将其输出和用户输入作为静默透传进行中继。

启动

json
{ tool: exec, command: agent, pty: true, background: true, workdir: <项目目录>, yieldMs: 3000 }

  • - 始终将workdir设置为用户想要工作的项目目录(而非OpenClaw工作区)。
  • 如果用户未指定目录,请在启动前询问。
  • 注意:agent在目录中首次运行时需要工作区信任——请中继信任提示,并通过process send-keys发送用户的选择(例如a、w或q)。

中继输出

在启动或发送输入后,轮询输出:

json
{ tool: process, action: poll, sessionId: , timeout: 15000 }

  • - 在心理上剥离ANSI转义码,但忠实且逐字地中继内容
  • 不要将输出包裹在代码块或引用格式中。
  • 不要添加前言、后记、解释或评论——完全按照Cursor输出的内容进行中继。
  • 如果需要添加上下文或注释,请在该行前加上方括号中的您的名字(例如[您的名字]),以便与Cursor的输出清晰区分。
  • 权限提示:当Cursor显示运行此命令?或任何批准对话框时,请逐字中继给用户并等待其响应。切勿代表用户批准或拒绝。
  • 在中继agent的响应后,附加一行提示:cursor @ <工作目录>——使用~代替用户的主目录(例如~/repos/myproject而非/home/username/repos/myproject)。

发送用户输入

对于单行提示:

json
{ tool: process, action: submit, sessionId: , data: <文本> }

对于多行提示:

json
{ tool: process, action: paste, sessionId: , text: <文本> }

然后按回车提交:

json
{ tool: process, action: send-keys, sessionId: , keys: [Enter] }

对于其他特殊键(方向键、Escape等):

json
{ tool: process, action: send-keys, sessionId: , keys: [ArrowUp] }

在交互式提示中使用@文件名或@目录/来添加更多上下文。

结束会话

发送/quit或Ctrl+D(双击):

json
{ tool: process, action: submit, sessionId: , data: /quit }

备注

  • - agent是Cursor的CLI二进制文件。cursor-agent是向后兼容的别名。
  • 该二进制文件必须在PATH中。如果未找到,请检查TOOLS.md以获取自定义二进制路径。
  • 通常一次只运行一个会话;使用process list检查是否有孤儿会话。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cursor-tui-1776284401 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cursor-tui-1776284401 技能

通过命令行安装

skillhub install cursor-tui-1776284401

下载

⬇ 下载 cursor-tui v1.0.1(免费)

文件大小: 1.92 KB | 发布时间: 2026-4-16 18:11

v1.0.1 最新 2026-4-16 18:11
- Improved output relaying instructions: now require verbatim, unaltered relaying of Cursor output with no added interpretation, wrapping, or commentary.
- Specified how to add context: any assistant notes must be prefixed with the assistant's name in brackets.
- Clarified handling of Cursor "permission prompts": relay them exactly as shown and await explicit user approval—never make choices on the user's behalf.
- Updated prompt line guidance: show relative paths using `~` for home directories when displaying the session prompt (e.g. `~/repos/myproject`).

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部