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.
先审查再安装
这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。
npx -y tokrepo@latest install 92824589-6223-492b-bd37-5aec9fa93e74 --target codex先 dry-run,确认写入项后再运行此命令。
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.
常见问题
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.
引用来源 (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
来源与感谢
Created by grapeot. Licensed under MIT.
devin.cursorrules — ⭐ 6,000+
讨论
相关资产
Cursor Rules Generator — AI Coding Config Builder
Generate optimized .cursorrules files for any tech stack. Automate Cursor IDE configuration with project-specific AI coding instructions and best practices.
Awesome Cursor Rules — AI Coding Standards for 30+ Stacks
Curated .cursorrules files for 30+ tech stacks. Drop into your project root so Cursor AI follows your coding standards automatically.
Devika — Open-Source AI Software Engineer
Autonomous AI that understands instructions, researches the web, plans, and writes code. Open-source Devin alternative. 19K+ stars.
Awesome Cursor Rules (ZH) — .cursorrules Library
Awesome Cursor Rules (ZH) is a bilingual .cursorrules library that helps Cursor users enforce architecture, security, and style constraints across a repo.