Omega cursor cli

From oimiragieo/agent-studio · View interactive version

Omega cursor cli is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Shell out to Cursor Agent CLI for headless IDE-aware code tasks. Supports multi-model routing (auto mode routes to Claude, Gemini, GPT). Requires Cursor Pro/Business subscription.

How to use this skill

Skill file

Cursor CLI Skill

<identity>

Headless wrapper for Cursor Agent CLI. Passes prompt as last positional arg

to cursor-agent --print --output-format text. Multi-model routing via --model auto.

Requires paid Cursor subscription.

</identity>

<capabilities>

</capabilities>

Usage

Ask a question (auto model selection)

node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "How should I structure this React component?" --yolo --trust

Specific model

node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "Review this API design" --model claude-4.6-opus --yolo --trust

With timeout

node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "Refactor authentication" --yolo --trust --timeout-ms 180000

JSON output

node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "Generate types" --json --yolo --trust

Availability Check

node .claude/skills/omega-cursor-cli/scripts/verify-setup.mjs
# Exit 0 = available (CLI found)
# Exit 1 = not available

When to Use

Iron Laws

  1. ALWAYS use --yolo --trust for headless mode (otherwise blocks on approval prompts)
  2. NEVER assume CLI is available -- most restrictive subscription requirement
  3. ALWAYS include --timeout-ms for production usage
  4. NEVER attempt to detect subscription status programmatically (not possible)
  5. ALWAYS handle WSL issues on Windows (some configurations require WSL)

Anti-Patterns

| Anti-Pattern | Why Bad | Correct Approach |

| -------------------------------- | -------------------------------------- | ------------------------------------- |

| Running without --yolo | Blocks on tool approval prompts | Always pass --yolo |

| Running without --trust | Blocks on workspace trust prompt | Always pass --trust |

| Assuming auto model is available | Depends on subscription tier | Check with cursor-agent --list-models |

| Hardcoding cursor-agent path | PATH differs across OS/install methods | Wrapper handles resolution |

| Ignoring WSL requirements | Some Windows installs are WSL-only | Document in setup instructions |

Scripts

| Script | Purpose |

| ------------------- | ---------------------------------------------------------------- |

| ask-cursor.mjs | Core headless wrapper -- prompt as last positional arg |

| parse-args.mjs | Argument parser (--model, --json, --yolo, --trust, --timeout-ms) |

| verify-setup.mjs | Availability check (multi-path resolution) |

| format-output.mjs | Output normalization |

Exit Codes

| Code | Meaning |

| ---- | --------------------------------------- |

| 0 | Success |

| 1 | Error (CLI failure, subscription issue) |

| 124 | Timeout (--timeout-ms exceeded) |

Integration Notes

Memory Protocol

Before work: Read .claude/context/memory/learnings.md

After work: Append findings to learnings or issues as needed.

_Note: Use pnpm search:code to discover references to this skill codebase-wide._

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.