MCPcopy Index your code
hub / github.com/alexander-morris/cursor-jailbreak

github.com/alexander-morris/cursor-jailbreak @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
165 symbols 474 edges 15 files 77 documented · 47% updated 17mo ago★ 44
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cursor Auto Accept

A tool for automatically accepting Cursor's AI suggestions.

Important Note

The analyze_hover_results.py script is the current working version for analyzing button positions and matches. This script: - Takes a full screen screenshot - Analyzes potential button matches using template matching - Groups matches by x-axis position - Prioritizes matches by confidence and y-axis position - Generates a visualization showing calibration points and matches - Uses color coding to distinguish between different buttons (green, yellow, red)

Other calibration scripts have been moved to the _archive directory.

Features

  • Multi-monitor support with per-monitor calibration
  • Rate limiting (max 8 clicks per minute)
  • Cursor position restoration after clicks
  • Automatic calibration
  • Process management (start/stop scripts)
  • Detailed logging

Setup

  1. Clone this repository:
git clone https://github.com/yourusername/cursor-auto-accept
cd cursor-auto-accept
  1. Run the setup script:
./setup.sh

This will: - Create necessary directories - Set up permissions - Create a Python virtual environment - Install required packages

Calibration

Before first use, you need to calibrate the bot for each monitor where you use Cursor:

  1. Stop the bot if it's running:
./stop_clickbot.sh
  1. Run calibration mode:

For all monitors: bash source venv/bin/activate python cursor_auto_accept.py --capture

For a specific monitor (0-based index): bash python cursor_auto_accept.py --capture --monitor 0 # First monitor python cursor_auto_accept.py --capture --monitor 1 # Second monitor

  1. Follow the calibration steps for each monitor:
  2. Move Cursor to the target monitor
  3. Trigger an AI prompt (so you can see the accept button)
  4. Move your mouse over the accept button
  5. Keep it still for 5 seconds
  6. Wait for confirmation message
  7. Press Enter to continue to next monitor (if calibrating all)

The bot will save separate accept button images for each monitor in:

assets/monitor_0/accept_button.png
assets/monitor_1/accept_button.png
...

Usage

Starting the Bot

./start_clickbot.sh

The bot will: - Check if another instance is running - Load calibration images for all monitors - Start monitoring all screens - Begin accepting prompts automatically

Stopping the Bot

./stop_clickbot.sh

Monitoring

The bot logs all activity to temp/logs/clickbot.log. You can monitor it with:

tail -f temp/logs/clickbot.log

Configuration

The bot has several built-in settings: - Rate limit: 8 clicks per minute - Confidence threshold: 0.8 (80% match required) - Search interval: 0.2 seconds - Log update interval: 5 seconds

Troubleshooting

  1. If the bot isn't clicking on a specific monitor:
  2. Recalibrate that monitor: python cursor_auto_accept.py --capture --monitor X
  3. Check the logs for monitor-specific errors
  4. Ensure Cursor's accept button is visible on that monitor

  5. If clicks are inaccurate:

  6. Recalibrate with a clearer view of the accept button
  7. Make sure the button isn't partially obscured
  8. Try calibrating in different lighting conditions

  9. If the bot won't start:

  10. Check if another instance is running
  11. Verify the PID file in temp/clickbot.pid
  12. Ensure Python environment is activated

Directory Structure

.
├── assets/                    # Calibration images
│   ├── monitor_0/            # First monitor
│   │   └── accept_button.png
│   └── monitor_1/            # Second monitor
│       └── accept_button.png
├── temp/                     # Runtime files
│   ├── clickbot.pid          # Process ID
│   └── logs/                # Log files
├── cursor_auto_accept.py     # Main bot script
├── setup.sh                  # Setup script
├── start_clickbot.sh         # Start script
└── stop_clickbot.sh          # Stop script

Requirements

  • Python 3.8+
  • OpenCV
  • PyAutoGUI
  • MSS (Multi-Screen Shot)
  • NumPy
  • Pillow

License

MIT License

Core symbols most depended-on inside this repo

Shape

Method 102
Function 35
Route 16
Class 12

Languages

Python99%
TypeScript1%

Modules by API surface

cursor_auto_accept.py46 symbols
test_error_recovery.py31 symbols
test_clickbot.py15 symbols
analyze_hover_results.py14 symbols
hover_calibrate.py12 symbols
main.py9 symbols
image_matcher.py8 symbols
error_recovery.py7 symbols
clickbot.py5 symbols
analyze_calibration.py5 symbols
logging_config.py4 symbols
test_matcher.py3 symbols

For agents

$ claude mcp add cursor-jailbreak \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page