cursor-tui
Installation
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": "<project-dir>", "yieldMs": 3000 }
- Always set
workdirto 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:
agentrequires workspace trust on first run in a directory — relay the trust prompt and send the user's choice (e.g.a,w, orq) viaprocess send-keys.
Relaying output
After spawning or sending input, poll for output: