← Back to Skills Marketplace
waldyrious

Cursor Tui

by waldyrious · GitHub ↗ · v1.0.1
cross-platform ✓ Security Clean
838
Downloads
1
Stars
4
Active Installs
2
Versions
Install in OpenClaw
/install cursor-tui
Description
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 questio...
README (SKILL.md)

Cursor CLI Passthrough

Spawn Cursor's agent in a PTY background session and relay its output and the user's inputs as a silent passthrough.

Spawning

{ "tool": "exec", "command": "agent", "pty": true, "background": true, "workdir": "\x3Cproject-dir>", "yieldMs": 3000 }
  • Always set workdir to the project directory the user wants to work in (not the OpenClaw workspace).
  • If the user doesn't specify a directory, ask before spawning.
  • Note: agent requires workspace trust on first run in a directory — relay the trust prompt and send the user's choice (e.g. a, w, or q) via process send-keys.

Relaying output

After spawning or sending input, poll for output:

{ "tool": "process", "action": "poll", "sessionId": "\x3Cid>", "timeout": 15000 }
  • Strip ANSI escape codes mentally, but relay the content faithfully and verbatim.
  • Do not wrap output in code blocks or quote formatting.
  • Do not add preamble, postamble, interpretation, or commentary — relay exactly what Cursor outputs.
  • If you need to add context or a note, prefix that line with your name in brackets (e.g. [YourName]) so it's clearly distinguished from Cursor's output.
  • Permission prompts: When Cursor shows a "Run this command?" or any approval dialog, relay it verbatim to the user and wait for their response. Never approve or deny on the user's behalf.
  • After relaying the agent's response, append a single prompt line: cursor @ \x3Cworkdir> — use ~ in place of the user's home directory (e.g. ~/repos/myproject not /home/username/repos/myproject).

Sending user input

For single-line prompts:

{ "tool": "process", "action": "submit", "sessionId": "\x3Cid>", "data": "\x3Ctext>" }

For multi-line prompts:

{ "tool": "process", "action": "paste", "sessionId": "\x3Cid>", "text": "\x3Ctext>" }

Then submit with Enter:

{ "tool": "process", "action": "send-keys", "sessionId": "\x3Cid>", "keys": ["Enter"] }

For other special keys (arrow keys, Escape, etc.):

{ "tool": "process", "action": "send-keys", "sessionId": "\x3Cid>", "keys": ["ArrowUp"] }

Use @filename or @directory/ in interactive prompts to add more context.

Ending the session

Send /quit or Ctrl+D (double-press):

{ "tool": "process", "action": "submit", "sessionId": "\x3Cid>", "data": "/quit" }

Notes

  • agent is Cursor's CLI binary. cursor-agent is a backward-compatible alias.
  • The binary must be on PATH. If not found, check TOOLS.md for custom binary paths.
  • One session at a time is typical; use process list to check for orphaned sessions.
Usage Guidance
This skill acts as a transparent proxy to a local Cursor 'agent' process — it will spawn the binary in whatever directory you specify and relay Cursor's output and permission prompts verbatim. Before using: ensure the cursor/cursor-agent binaries on your PATH are the authentic versions you trust; avoid running the agent in directories containing secrets you don't want echoed back; do not blindly accept workspace-trust or approval prompts relayed by the tool (the instructions correctly tell the skill to ask you). If you are uncomfortable with an automatic agent being spawned, don't invoke the skill or restrict autonomous invocation in your agent configuration.
Capability Analysis
Type: OpenClaw Skill Name: cursor-tui Version: 1.0.1 The skill is designed to provide a transparent passthrough to the `cursor-agent` CLI. The `SKILL.md` instructions explicitly guide the OpenClaw agent to relay output verbatim, avoid interpretation, and critically, 'Never approve or deny on the user's behalf' for permission prompts. This demonstrates a strong intent to prevent unauthorized actions or prompt injection, aligning with a benign purpose of facilitating user interaction with another tool.
Capability Assessment
Purpose & Capability
Name/description request the ability to spawn and relay Cursor's CLI; the skill only requires the cursor / cursor-agent binaries and no unrelated credentials or installs. The declared requirements match the stated purpose.
Instruction Scope
SKILL.md stays focused on spawning a PTY background session, polling output, and relaying user input. It does instruct the agent to run the Cursor binary in an arbitrary project directory and to relay Cursor output verbatim — this is consistent with a transparent passthrough but means any sensitive output produced by Cursor will be relayed to the user.
Install Mechanism
There is no install spec (instruction-only), so nothing is downloaded or written to disk by the skill itself.
Credentials
No environment variables, credentials, or config paths are requested. The absence of extra secrets is proportional to the skill's purpose.
Persistence & Privilege
always is false and the skill is user-invocable. Autonomous model invocation is allowed by platform default but not an additional privilege requested by the skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cursor-tui
  3. After installation, invoke the skill by name or use /cursor-tui
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 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`).
v1.0.0
Initial public release — adds a transparent relay for Cursor Agent's CLI.
Metadata
Slug cursor-tui
Version 1.0.1
License
All-time Installs 4
Active Installs 4
Total Versions 2
Frequently Asked Questions

What is 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 questio... It is an AI Agent Skill for Claude Code / OpenClaw, with 838 downloads so far.

How do I install Cursor Tui?

Run "/install cursor-tui" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cursor Tui free?

Yes, Cursor Tui is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Cursor Tui support?

Cursor Tui is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cursor Tui?

It is built and maintained by waldyrious (@waldyrious); the current version is v1.0.1.

💬 Comments