Loading...
Loading...
Manage Cursor Cloud Agents via the API. Launch agents, list running agents, check status, get conversation history, send follow-ups, stop or delete agents, and pull agent branch changes into the local repo. Use when the user mentions cloud agents, background agents, launching a task on a repo, checking agent status, or pulling agent changes.
npx skill4agent add shaoruu/cursor-skills cloud-agentshttps://api.cursor.com/v0CURSOR_API_KEYjqexport CURSOR_API_KEY=<key>git remote get-url originlaunchgit branch --show-currentrefscripts/cloud-agent.shSKILL_DIR="$HOME/.cursor/skills/cloud-agents"
"$SKILL_DIR/scripts/cloud-agent.sh" <command> [args...]"$SKILL_DIR/scripts/cloud-agent.sh" list # default 20
"$SKILL_DIR/scripts/cloud-agent.sh" list 50 # up to 100"$SKILL_DIR/scripts/cloud-agent.sh" list | jq '.agents[] | {id, name, status, branch: .target.branchName, pr: .target.prUrl}'"$SKILL_DIR/scripts/cloud-agent.sh" status <agent_id> | jq .CREATINGRUNNINGFINISHEDSTOPPEDERROR"$SKILL_DIR/scripts/cloud-agent.sh" conversation <agent_id> | jq '.messages[] | {type, text}'"$SKILL_DIR/scripts/cloud-agent.sh" launch \
"https://github.com/org/repo" \
"Your prompt here" \
main \ # ref (optional, default: main)
true \ # auto-create PR (optional, default: false)
"" \ # model (optional, empty = auto)
"my-branch" # custom branch name (optional)"$SKILL_DIR/scripts/cloud-agent.sh" launch-pr \
"https://github.com/org/repo/pull/123" \
"Fix the failing tests""$SKILL_DIR/scripts/cloud-agent.sh" followup <agent_id> "Also add tests"launchlaunch-prfollowupsips"$SKILL_DIR/scripts/cloud-agent.sh" launch \
"https://github.com/org/repo" \
"Implement this design" \
main false "" "" \
/path/to/mockup.png /path/to/reference.jpg"$SKILL_DIR/scripts/cloud-agent.sh" followup <agent_id> \
"The button should look like this instead" \
/path/to/screenshot.png"$SKILL_DIR/scripts/cloud-agent.sh" stop <agent_id>
"$SKILL_DIR/scripts/cloud-agent.sh" delete <agent_id>"$SKILL_DIR/scripts/cloud-agent.sh" me # API key info
"$SKILL_DIR/scripts/cloud-agent.sh" models # available models
"$SKILL_DIR/scripts/cloud-agent.sh" repos # accessible GitHub repos (rate-limited: 1/min)BRANCH=$("$SKILL_DIR/scripts/cloud-agent.sh" status <agent_id> | jq -r '.target.branchName')git fetch --all
git checkout "$BRANCH"
git pull origin "$BRANCH"git fetch --all
CURRENT=$(git branch --show-current)
# Find commits the agent made (commits on agent branch not on current)
COMMITS=$(git log --oneline "$CURRENT".."origin/$BRANCH" --reverse --format='%H')
for commit in $COMMITS; do
git cherry-pick "$commit"
donegit fetch --all
git merge "origin/$BRANCH"git fetch --all
git diff HEAD..."origin/$BRANCH"FINISHEDERRORFINISHEDERRORRUNNING