This repository gives you everything needed to supercharge your Cursor or Windsurf IDE with advanced agentic AI capabilities — similar to the $500/month Devin—but at a fraction of the cost. In under a minute, you'll gain:
- Automated planning and self-evolution, so your AI "thinks before it acts" and learns from mistakes
- Extended tool usage, including web browsing, search engine queries, and LLM-driven text/image analysis
- [Experimental] Multi-agent collaboration, with o1 doing the planning, and regular Claude/GPT-4o doing the execution.
Devin impressed many by acting like an intern who writes its own plan, updates that plan as it progresses, and even evolves based on your feedback. But you don't need Devin's $500/month subscription to get most of that functionality. By customizing the .cursorrules file, plus a few Python scripts, you'll unlock the same advanced features inside Cursor.
- Easy Setup
Copy the provided config files into your project folder. Cursor users only need the .cursorrules file. It takes about a minute, and you'll see the difference immediately.
- Planner-Executor Multi-Agent (Experimental)
Our new multi-agent branch introduces a high-level Planner (powered by o1) that coordinates complex tasks, and an Executor (powered by Claude/GPT) that implements step-by-step actions. This two-agent approach drastically improves solution quality, cross-checking, and iteration speed.
- Extended Toolset
Includes:
- Web scraping (Playwright)
- Search engine integration (DuckDuckGo)
- LLM-powered analysis
The AI automatically decides how and when to use them (just like Devin).
- Self-Evolution
Whenever you correct the AI, it can update its "lessons learned" in .cursorrules. Over time, it accumulates project-specific knowledge and gets smarter with each iteration. It makes AI a coachable and coach-worthy partner.
- Copy all files from this repository to your project folder
- For Cursor users: The
.cursorrules
file will be automatically loaded - For Windsurf users: Use both
.windsurfrules
andscratchpad.md
for similar functionality
This project includes experimental support for a multi-agent system that enhances Cursor's capabilities through a two-agent architecture:
- Planner (powered by OpenAI's o1 model): Handles high-level analysis, task breakdown, and strategic planning
- Executor (powered by Claude): Implements specific tasks, runs tests, and handles implementation details
-
Enhanced Task Quality
- Separation of strategic planning from execution details
- Better cross-checking and validation of solutions
- Iterative refinement through Planner-Executor communication
-
Improved Problem Solving
- Planner can design comprehensive test strategies
- Executor provides detailed feedback and implementation insights
- Continuous communication loop for optimization
A real case study of the multi-agent system debugging the DuckDuckGo search functionality:
-
Initial Analysis
- Planner designed a series of experiments to investigate intermittent search failures
- Executor implemented tests and collected detailed logs
-
Iterative Investigation
- Planner analyzed results and guided investigation to the library's GitHub issues
- Identified a bug in version 6.4 that was fixed in 7.2
-
Solution Implementation
- Planner directed version upgrade and designed comprehensive test cases
- Executor implemented changes and validated with diverse search scenarios
- Final documentation included learnings and cross-checking measures
To use the multi-agent system:
- Switch to the
multi-agent
branch - The system will automatically coordinate between Planner and Executor roles
- Planner uses
tools/plan_exec_llm.py
for high-level analysis - Executor implements tasks and provides feedback through the scratchpad
This experimental feature transforms the development experience from working with a single assistant to having both a strategic planner and a skilled implementer, significantly improving the depth and quality of task completion.
- Create Python virtual environment:
# Create a virtual environment in ./venv
python3 -m venv venv
# Activate the virtual environment
# On Unix/macOS:
source venv/bin/activate
# On Windows:
.\venv\Scripts\activate
- Configure environment variables:
# Copy the example environment file
cp .env.example .env
# Edit .env with your API keys and configurations
- Install dependencies:
# Install required packages
pip install -r requirements.txt
# Install Playwright's Chromium browser (required for web scraping)
python -m playwright install chromium
- Web scraping with JavaScript support (using Playwright)
- Search engine integration (DuckDuckGo)
- LLM-powered text analysis
- Process planning and self-reflection capabilities
The project includes comprehensive unit tests for all tools. To run the tests:
# Make sure you're in the virtual environment
source venv/bin/activate # On Windows: .\venv\Scripts\activate
# Run all tests
PYTHONPATH=. pytest -v tests/
Note: Use -v
flag to see detailed test output including why tests were skipped (e.g. missing API keys)
The test suite includes:
- Search engine tests (DuckDuckGo integration)
- Web scraper tests (Playwright-based scraping)
- LLM API tests (OpenAI integration)
For detailed information about the motivation and technical details behind this project, check out the blog post: Turning $20 into $500 - Transforming Cursor into Devin in One Hour
MIT License