Skip to main content

cursor-cli

Cursor CLI reference. Use when running Cursor in interactive_shell overlay or when user asks about Cursor CLI options.

소스 정보

저장소
nicobailon/pi-interactive-shell
최근 소스 활동
2026년 4월 23일 19:17
감지된 SKILL.md 언어
영어
스타
593
포크
54

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
cursor-cli
description
Cursor CLI reference. Use when running Cursor in interactive_shell overlay or when user asks about Cursor CLI options.
# Cursor CLI ## Commands | Command | Description | |---------|-------------| | `agent` | Start interactive Cursor session | | `agent "prompt"` | Interactive session with initial prompt | | `agent -p "prompt"` | Non-interactive print mode | | `agent ls` | List previous chats | | `agent resume` | Resume latest chat | | `agent --continue` | Continue previous session | | `agent --resume "chat-id"` | Resume a specific chat | ## Key Flags | Flag | Description | |------|-------------| | `--mode plan` / `--plan` | Plan mode (clarify before coding) | | `--mode ask` | Ask mode (read-only exploration) | | `--model <model>` | Model override | | `--sandbox <enabled|disabled>` | Toggle sandbox behavior | | `--output-format text` | Output format for print mode workflows | ## Mode Notes - **Interactive mode** (`agent`, `agent "prompt"`) is the right fit for `interactive_shell` overlays. - **Print mode** (`agent -p`) is non-interactive and better suited to direct shell/batch usage. ## In interactive_shell Use structured spawn when you want the extension's shared spawn resolver/defaults/worktree support: ```typescript interactive_shell({ spawn: { agent: "cursor" }, mode: "interactive" }) interactive_shell({ spawn: { agent: "cursor", prompt: "Review the diffs" }, mode: "dispatch" }) interactive_shell({ spawn: { agent: "cursor", worktree: true }, mode: "hands-free" }) ``` Structured spawn launches Cursor via the configured `spawn.commands.cursor` executable (default: `agent`) and appends prompt text as Cursor's native interactive startup form (`agent "prompt"`). By default, spawn args include `--model composer-2-fast`, which selects Cursor's Composer 2 Fast model explicitly. Cursor remains **fresh/worktree only** in structured spawn. `fork` is Pi-only. For non-interactive print-mode tasks, prefer direct shell usage: ```typescript bash({ command: 'agent -p "review these changes for security issues" --output-format text' }) ```
GitHub에서 보기