cursor-agent

Run Cursor CLI agent tasks in tmux-backed environments.

16|12|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/AlekseiUL/heisenberg-team --skill cursor-agent-alekseiul
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cursor-agent
Source: https://github.com/AlekseiUL/heisenberg-team/tree/main/skills/cursor-agent
Command: npx skills add https://github.com/AlekseiUL/heisenberg-team --skill cursor-agent-alekseiul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents Cursor CLI agent runs from hanging in automated or AI-agent environments by guiding you through correct installation, authentication, and a safe tmux-based execution workflow.

Core Features & Use Cases

  • Installation & setup: Install Cursor CLI and configure PATH, then verify with version commands across macOS, Linux, and WSL.
  • Authentication & updates: Log in via browser or set CURSOR_API_KEY, and keep the CLI current with upgrade commands.
  • Command and workflow coverage: Use interactive and non-interactive modes, switch models, select context with file/folder mentions, and apply rules via loaded config files.
  • Automation-ready execution (tmux): Provides a TTY-safe tmux approach for running Cursor from subprocesses, scripts, or agent orchestrations, including workspace trust handling.

Quick Start

Ask the agent to refactor and improve a file by running Cursor CLI from an interactive or tmux-backed environment: "Use Cursor to refactor src/utils.ts for readability and stronger TypeScript types."

Frequently Asked Questions about cursor-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does the Cursor CLI agent hang when running from a subprocess or automated script?▼

The Cursor CLI agent hangs in automated environments because it expects an interactive TTY. Running the CLI inside a tmux session provides the required TTY emulation, preventing indefinite blocks during subprocess execution.

How do I run Cursor CLI for code review and refactoring in non-interactive environments?▼

To run Cursor CLI for code review and refactoring non-interactively, execute it within a TTY-safe tmux environment. This allows you to pass context files, load rules, and switch models reliably without blocking the terminal.

Can I use the Cursor CLI agent for debugging without logging in via a web browser?▼

Yes, you can use the Cursor CLI agent for debugging without browser login by setting the CURSOR_API_KEY environment variable. This enables authentication for automated and non-interactive contexts.

Does the Cursor CLI agent support MCP integration and workspace trust handling?▼

Yes, the Cursor CLI agent supports MCP integration by enabling or disabling MCP flows. It also handles workspace trust automatically during automation-driven tmux execution to ensure safe CLI operations.

What is required to automate Cursor CLI workflows reliably across macOS, Linux, and WSL?▼

Automating Cursor CLI workflows requires correct CLI installation, PATH configuration, and authentication via browser or CURSOR_API_KEY. A TTY-safe tmux execution approach is mandatory to prevent hangs in scripts.