Cursor Cloud Review
This tool allows you to trigger a Cursor Cloud agent review for an active pull request. It analyzes the changes in the pull request and provides a detailed report on security, correctness, and reliability.
Installation
pip install cursor-review
Usage
You need to set the CURSOR_CLOUD_API_KEY environment variable.
export CURSOR_CLOUD_API_KEY=your_api_key
cursor-cloud-review --repo-url https://github.com/owner/repo --pr-number 123
GitHub Actions
You can integrate this tool into your GitHub workflow to automatically review pull requests.
Prerequisites:
- Obtain your
CURSOR_CLOUD_API_KEY. - Add it to your repository secrets:
Settings>Secrets and variables>Actions>New repository secret. Name itCURSOR_CLOUD_API_KEY.
Example Workflow:
Create a file named .github/workflows/cursor-review.yml:
name: Cursor Cloud Review
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
review:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# Important: Fetch full history so that git diff can identify changes against the base branch
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install cursor-cloud-review
run: pip install cursor-review
- name: Run Cursor Cloud Review
env:
CURSOR_CLOUD_API_KEY: ${{ secrets.CURSOR_CLOUD_API_KEY }}
run: |
cursor-cloud-review \
--repo-url "${{ github.server_url }}/${{ github.repository }}" \
--pr-number "${{ github.event.pull_request.number }}" \
--base-ref "origin/${{ github.base_ref }}" \
--head-ref "HEAD"
The tool will generate a cursor-cloud-analysis.md file containing the review. You can add additional steps to this workflow to post the content of this file as a comment on the PR or upload it as an artifact.
Arguments
--repo-url: Full URL of the repository (e.g., https://github.com/OWNER/REPO).--pr-number: The pull request number.--base-ref: Base branch ref name (optional).--base-sha: Base commit SHA (optional).--head-ref: Head branch ref name (optional).--head-sha: Head commit SHA (optional).--analysis-report: Path to the markdown report output (default:cursor-cloud-analysis.md).--metadata-out: Path to the metadata JSON output (default:cursor-cloud-analysis.json).--base-url: Cursor Cloud API base URL (default:https://api.cursor.com, or viaCURSOR_CLOUD_BASE_URL).--api-key: Cursor Cloud API key (can also be set viaCURSOR_CLOUD_API_KEY).
Note: The tool will prioritize the first 200 changed files for analysis. The agent execution has a timeout of 15 minutes.
License
MIT
Metadata
Release files for cursor-review 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cursor_review-0.1.1.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cursor_review-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.7 kB
Release files / cursor_review-0.1.1.tar.gz
| Download URL | cursor_review-0.1.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
864c7e28f50fc2f923a0736da869e0f9fd78c1315069e3a2f6e21121ed60be30
|
|
BLAKE2b-256 checksum How to use checksums |
b9204139fcec2b4d180492d1d9e660730765560ff27d88542ac3fc197f65f957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2025.
Transparency logRelease files / cursor_review-0.1.1-py3-none-any.whl
| Download URL | cursor_review-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
322ba66c3caf114f6bb0408c49c8cb3e6ba5d566f9fdcd2153236421b78cf822
|
|
BLAKE2b-256 checksum How to use checksums |
bea50b52bd3ba6d71de065766a9d0a958ea9922088258974ecac5ecbb421308b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2025.
Transparency log