You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,33 @@ To use the MCP server as a command tool, use the [SuperGateway](https://github.c
67
67
}
68
68
```
69
69
70
+
---
71
+
72
+
## Using rules 👨💼
73
+
74
+
The agent is autonomous and selects when to use the data provided by Digma as needed, however, some clients allow setting rules and policies to set a more structured process.
75
+
Here is an example rules file which you can add to your cursor `.cursor/rules` directory
76
+
```markdown
77
+
# Digma Memory File - Code Review Instructions
78
+
79
+
## Runtime Analysis Settings
80
+
- Environment: TEST
81
+
82
+
## Code Review Protocol
83
+
1. For any code or branch review request:
84
+
- Get the list of changed files and methods in the current branch using `git diff`
85
+
- Check for ALL runtime issues in TEST environment (not just for the method in context)
86
+
- Check if any runtime issue may be related to the changed code
87
+
- Check the runtime usage of the changed methods (based on the `git diff`)
88
+
- Check if any of the changed methods (based on the `git diff`) have a high risk based on their performance impact
89
+
- Synthesize the data with standard code review analysis
90
+
91
+
92
+
## Note
93
+
This file is used by the AI assistant to maintain consistent review protocols across sessions.
0 commit comments