AI Personal Learning
and practical guidance

Devin Cursor Rules: Enforcing Cursor and Windsurf to Devin

General Introduction

Devin Cursor Rules is an open source project that aims to enhance the Cursor and Windsurf integrated development environments (IDEs) with advanced Devin-like AI capabilities through profiles and tools. The project provides process planning, self-evolution, extended tool usage (e.g., web browsing, searching, LLM-driven analytics) and other features to help developers achieve more efficient task management and automated execution in the development process. Both Cursor and Windsurf users can quickly transform their IDE into a powerful development tool with simple configuration and installation steps.

 

Function List

  • Process planning and self-evolution: High-level analysis of tasks, task decomposition and strategic planning through advanced AI modeling.
  • Extended Tool Usage: Support for web browsing, search engine integration and LLM-driven text analysis.
  • automated implementation: Especially for Windsurf users running in Docker containers to automate task execution.
  • Multi-agent system support: Experimental support for augmenting Cursor with a two-agent architecture (planner and executor).
  • integrated test: Comprehensive unit testing is provided to ensure the stability and reliability of all tools.

 

Using Help

Installation steps

  1. Creating a Python Virtual Environment::
   python3 -m venv venv
source venv/bin/activate # Unix/macOS
. \venv\Scripts\activate # Windows
  1. Configuring Environment Variables::
   cp .env.example .env
# Edit the .env file to add the API key and configuration
  1. Installation of dependencies::
   pip install -r requirements.txt
python -m playwright install chromium # Installing Playwright's Chromium browser

Instructions for use

For Cursor users:

  • commander-in-chief (military).cursorrulesThe file is copied into the project folder and the file is automatically loaded.

For Windsurf users:

  • utilization.windsurfrulescap (a poem)scratchpad.mdfile that implements similar functionality.

Multi-agent system usage

  1. Switch to a multi-agent branch:
   git checkout multi-agent
  1. The system automatically coordinates the planner and executor roles:
    • planners: Usetools/plan_exec_llm.pyPerform high-level analysis.
    • executor: ByscratchpadRealize tasks and provide feedback.

test (machinery etc)

  • Ensure that it runs in a virtual environment:
  source venv/bin/activate # Unix/macOS
. \venv\Scripts\activate # Windows
  • Run all tests:
  PYTHONPATH=. python -m unittest discover tests/

Functional operation flow

  1. Process planning and self-evolution::
    • Planners are responsible for high-level analysis and task breakdown.
    • Executors implement specific tasks, run tests and work on implementation details.
    • Optimize task execution through a continuous cycle of communication.
  2. Extended Tool Usage::
    • Supports web browsing and search engine integration to provide wider access to information.
    • LLM-driven text analytics for enhanced text processing and analysis.
  3. automated implementation::
    • Especially suitable for Windsurf users to automate task execution through Docker containers.
  4. multi-agent system::
    • More efficient task management and problem solving through a two-agent architecture (planner and executor).
    • Provide detailed feedback and realization insights to continuously optimize task execution.

May not be reproduced without permission:Chief AI Sharing Circle " Devin Cursor Rules: Enforcing Cursor and Windsurf to Devin

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish