-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.cursorrules
More file actions
11 lines (9 loc) · 772 Bytes
/
.cursorrules
File metadata and controls
11 lines (9 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
# Cursor AI Rules - RagCode MCP
## ⚖️ The Golden Rule
**For any information about the codebase (structure, logic, or usage), you MUST use RagCode MCP tools.**
Never guess code details from memory; always search the local index first using `search_code` or `get_function_details`.
## Guidelines
1. **Context First**: Always call `search_code` when starting a task to see where relevant logic exists.
2. **Actual Code**: Use `get_function_details` to read the implementation of a function instead of assuming what it does.
3. **Workspace Detection**: Always provide the current `file_path` to the tools so they can identify the correct project/workspace.
4. **No Guesswork**: If you don't find something, index the workspace using `index_workspace` and search again.