|
1 | | -# Devin.cursorrules |
| 1 | +# Transform your $20 Cursor into a Devin-like AI Assistant |
2 | 2 |
|
3 | | -Transform your $20 Cursor/Windsurf into a Devin-like experience in one minute! This repository contains configuration files and tools that enhance your Cursor or Windsurf IDE with advanced agentic AI capabilities similar to Devin, including: |
| 3 | +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: |
4 | 4 |
|
5 | | -- Process planning and self-evolution |
6 | | -- Extended tool usage (web browsing, search, LLM-powered analysis) |
7 | | -- Automated execution (for Windsurf in Docker containers) |
| 5 | +* Automated planning and self-evolution, so your AI “thinks before it acts” and learns from mistakes |
| 6 | +* Extended tool usage, including web browsing, search engine queries, and LLM-driven text/image analysis |
| 7 | +* [Experimental] Multi-agent collaboration, with o1 doing the planning, and regular Claude/GPT-4o doing the execution. |
8 | 8 |
|
9 | | -## Usage |
10 | | - |
11 | | -1. Copy all files from this repository to your project folder |
12 | | -2. For Cursor users: The `.cursorrules` file will be automatically loaded |
13 | | -3. For Windsurf users: Use both `.windsurfrules` and `scratchpad.md` for similar functionality |
14 | | - |
15 | | -## Update: Multi-Agent Support (Experimental) |
16 | | - |
17 | | -This project includes experimental support for a multi-agent system that enhances Cursor's capabilities through a two-agent architecture: |
18 | | - |
19 | | -### Architecture |
20 | | - |
21 | | -- **Planner** (powered by OpenAI's o1 model): Handles high-level analysis, task breakdown, and strategic planning |
22 | | -- **Executor** (powered by Claude): Implements specific tasks, runs tests, and handles implementation details |
23 | | - |
24 | | -[Actual .cursorrules file](https://github.com/grapeot/devin.cursorrules/blob/multi-agent/.cursorrules#L3) |
25 | | - |
26 | | -### Key Benefits |
27 | | - |
28 | | -1. **Enhanced Task Quality** |
29 | | - - Separation of strategic planning from execution details |
30 | | - - Better cross-checking and validation of solutions |
31 | | - - Iterative refinement through Planner-Executor communication |
32 | | - |
33 | | -2. **Improved Problem Solving** |
34 | | - - Planner can design comprehensive test strategies |
35 | | - - Executor provides detailed feedback and implementation insights |
36 | | - - Continuous communication loop for optimization |
37 | | - |
38 | | -### Real-World Example |
39 | | - |
40 | | -A real case study of the multi-agent system debugging the DuckDuckGo search functionality: |
| 9 | +## Why This Matters |
41 | 10 |
|
42 | | -1. **Initial Analysis** |
43 | | - - Planner designed a series of experiments to investigate intermittent search failures |
44 | | - - Executor implemented tests and collected detailed logs |
| 11 | +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. |
45 | 12 |
|
46 | | -2. **Iterative Investigation** |
47 | | - - Planner analyzed results and guided investigation to the library's GitHub issues |
48 | | - - Identified a bug in version 6.4 that was fixed in 7.2 |
| 13 | +## Key Highlights |
49 | 14 |
|
50 | | -3. **Solution Implementation** |
51 | | - - Planner directed version upgrade and designed comprehensive test cases |
52 | | - - Executor implemented changes and validated with diverse search scenarios |
53 | | - - Final documentation included learnings and cross-checking measures |
| 15 | +1. Easy Setup |
| 16 | + |
| 17 | + 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. |
54 | 18 |
|
55 | | -### Usage |
| 19 | +2. Planner-Executor Multi-Agent (Experimental) |
56 | 20 |
|
57 | | -To use the multi-agent system: |
| 21 | + Our new [multi-agent branch](https://github.com/grapeot/devin.cursorrules/tree/multi-agent) 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. |
58 | 22 |
|
59 | | -1. Switch to the `multi-agent` branch |
60 | | -2. The system will automatically coordinate between Planner and Executor roles |
61 | | -3. Planner uses `tools/plan_exec_llm.py` for high-level analysis |
62 | | -4. Executor implements tasks and provides feedback through the scratchpad |
| 23 | +3. Extended Toolset |
63 | 24 |
|
64 | | -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. |
| 25 | + Includes: |
| 26 | + |
| 27 | + * Web scraping (Playwright) |
| 28 | + * Search engine integration (DuckDuckGo) |
| 29 | + * LLM-powered analysis |
65 | 30 |
|
66 | | -## Setup |
| 31 | + The AI automatically decides how and when to use them (just like Devin). |
67 | 32 |
|
68 | | -1. Create Python virtual environment: |
69 | | -```bash |
70 | | -# Create a virtual environment in ./venv |
71 | | -python3 -m venv venv |
| 33 | +4. Self-Evolution |
72 | 34 |
|
73 | | -# Activate the virtual environment |
74 | | -# On Unix/macOS: |
75 | | -source venv/bin/activate |
76 | | -# On Windows: |
77 | | -.\venv\Scripts\activate |
78 | | -``` |
79 | | - |
80 | | -2. Configure environment variables: |
81 | | -```bash |
82 | | -# Copy the example environment file |
83 | | -cp .env.example .env |
84 | | - |
85 | | -# Edit .env with your API keys and configurations |
86 | | -``` |
87 | | - |
88 | | -3. Install dependencies: |
89 | | -```bash |
90 | | -# Install required packages |
91 | | -pip install -r requirements.txt |
92 | | - |
93 | | -# Install Playwright's Chromium browser (required for web scraping) |
94 | | -python -m playwright install chromium |
95 | | -``` |
96 | | - |
97 | | -## Tools Included |
98 | | - |
99 | | -- Web scraping with JavaScript support (using Playwright) |
100 | | -- Search engine integration (DuckDuckGo) |
101 | | -- LLM-powered text analysis |
102 | | -- Process planning and self-reflection capabilities |
103 | | - |
104 | | -## Testing |
105 | | - |
106 | | -The project includes comprehensive unit tests for all tools. To run the tests: |
107 | | - |
108 | | -```bash |
109 | | -# Make sure you're in the virtual environment |
110 | | -source venv/bin/activate # On Windows: .\venv\Scripts\activate |
111 | | - |
112 | | -# Run all tests |
113 | | -PYTHONPATH=. python -m unittest discover tests/ |
114 | | -``` |
115 | | - |
116 | | -The test suite includes: |
117 | | -- Search engine tests (DuckDuckGo integration) |
118 | | -- Web scraper tests (Playwright-based scraping) |
119 | | -- LLM API tests (OpenAI integration) |
| 35 | + 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. |
| 36 | + |
| 37 | +## Usage |
120 | 38 |
|
121 | | -## Background |
| 39 | +1. Copy this repository’s contents into your Cursor or Windsurf project. |
| 40 | +2. For Cursor, .cursorrules is automatically loaded. For Windsurf, add .windsurfrules plus the Scratchpad for updates. |
| 41 | +3. Adjust .env with your own API keys, run pip install -r requirements.txt, and you’re all set. |
| 42 | +4. Start exploring advanced tasks—such as data gathering, building quick prototypes, or cross-referencing external resources—in a fully agentic manner. |
122 | 43 |
|
123 | | -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](https://yage.ai/cursor-to-devin-en.html) |
| 44 | +## Want the Details? |
124 | 45 |
|
125 | | -## License |
| 46 | +Check out our [blog post](https://yage.ai/cursor-to-devin-en.html) on how we turned $20 into $500-level AI capabilities in just one hour. It explains the philosophy behind process planning, self-evolution, and fully automated workflows. You’ll also find side-by-side comparisons of Devin, Cursor, and Windsurf, plus a step-by-step tutorial on setting this all up from scratch. |
126 | 47 |
|
127 | | -MIT License |
| 48 | +License: MIT |
0 commit comments