Devin Cursorrules — Turn Cursor into an AI Engineer
A .cursorrules configuration that gives Cursor/Windsurf Devin-like capabilities: automated planning, self-correction, web browsing, and multi-agent collaboration. 6,000+ GitHub stars.
What it is
Devin Cursorrules is a .cursorrules configuration file that transforms Cursor (the AI code editor) into a more autonomous coding agent. It adds Devin-like capabilities: automated task planning, self-correction loops, web browsing for research, and multi-agent collaboration patterns. The configuration teaches Cursor to break down complex tasks, execute them step by step, and self-verify results.
It targets Cursor users who want their AI assistant to operate more autonomously on complex multi-step software engineering tasks.
How it saves time or tokens
The configuration front-loads planning before execution, reducing the wasted tokens from false starts and incorrect approaches. Self-correction loops catch errors early, and the structured task decomposition prevents the agent from losing track of multi-step tasks. Web browsing for documentation lookup means the agent can resolve unknowns without asking you for help.
How to use
- Install with Cookiecutter (recommended):
pip install cookiecutter
cookiecutter gh:grapeot/devin.cursorrules --checkout template
- Or manual installation:
git clone https://github.com/grapeot/devin.cursorrules.git
cp devin.cursorrules/.cursorrules your-project/
- Open your project in Cursor. The .cursorrules file is loaded automatically.
Example
# After installing the .cursorrules, Cursor's agent mode becomes:
# Without devin.cursorrules:
# 'Add user authentication' -> Agent writes code, misses edge cases,
# needs multiple correction rounds
# With devin.cursorrules:
# 'Add user authentication' -> Agent:
# 1. Plans the full implementation (auth model, routes, middleware, tests)
# 2. Researches the project's existing patterns via codebase search
# 3. Implements each component with verification
# 4. Self-tests by reading test output
# 5. Self-corrects any failures
# 6. Produces a summary of changes
Related on TokRepo
- AI tools for coding -- AI coding tools and editors
- Prompt library -- Prompt templates and configurations
Common pitfalls
- The .cursorrules file adds to every prompt context. Very long configurations can reduce available context for your actual code. Keep customizations focused.
- Self-correction loops can consume significant tokens if the agent enters a retry cycle. Set a mental limit on how many correction rounds you allow before intervening.
- Web browsing capabilities depend on Cursor's internet access settings. Ensure Cursor can reach the web if you want the agent to look up documentation.
Frequently Asked Questions
A .cursorrules file is a project-level configuration for Cursor that provides custom instructions to the AI assistant. It is similar to CLAUDE.md for Claude Code. The file is loaded automatically when Cursor opens the project and influences how the AI responds to your requests.
Not exactly. Devin is a purpose-built autonomous coding agent with specialized infrastructure. The .cursorrules configuration adds planning, self-correction, and research behaviors to Cursor's existing capabilities. It bridges the gap but does not replicate Devin's full architecture.
The .cursorrules format is supported by Cursor's agent mode. Check the project's README for compatibility notes with specific Cursor versions. The configuration is regularly updated by the community.
Yes. The .cursorrules file is plain text. You can modify the planning depth, self-correction behavior, web browsing rules, and output format. The Cookiecutter template provides a structured starting point for customization.
Yes. The configuration adds instructions to every prompt, and self-correction loops consume additional tokens. However, the planning step often reduces overall token usage by avoiding incorrect implementations that need rework.
Citations (3)
- Devin Cursorrules GitHub— Devin Cursorrules adds planning and self-correction to Cursor
- Cursor Documentation— Cursor supports .cursorrules for project-level AI configuration
- SWE-bench Evaluation— Structured planning improves AI coding agent task completion
Related on TokRepo
Source & Thanks
Created by grapeot. Licensed under MIT.
devin.cursorrules — ⭐ 6,000+
Thank you to grapeot for making Devin-level AI coding accessible to every Cursor user.
Discussion
Related Assets
Cucumber.js — BDD Testing with Plain Language Scenarios
Cucumber.js is a JavaScript implementation of Cucumber that runs automated tests written in Gherkin plain language.
WireMock — Flexible API Mocking for Java and Beyond
WireMock is an HTTP mock server for stubbing and verifying API calls in integration tests and development.
Google Benchmark — Microbenchmark Library for C++
Google Benchmark is a library for measuring and reporting the performance of C++ code with statistical rigor.