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
fix: strengthen /init command to aggressively remove obvious information
- Add explicit instructions to DELETE obvious information first
- Emphasize that files should get SHORTER, not longer
- Use stronger language: CRITICALLY EVALUATE, AGGRESSIVELY DELETE
- Make clear that standard practices must be removed even if previously included
- Add success metric: files should be more concise and valuable
- Goal is to fix the tendency to just append instead of clean up
Copy file name to clipboardExpand all lines: src/services/command/built-in-commands.ts
+33-24Lines changed: 33 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,11 @@ Please analyze this codebase and create an AGENTS.md file containing:
49
49
50
50
If ANY of these exist:
51
51
- Read them thoroughly
52
-
- Analyze what's already documented
53
-
- Plan improvements: what to add, update, or clean up
54
-
- Focus on iterating and enhancing, not replacing
52
+
- CRITICALLY EVALUATE: Remove ALL obvious information
53
+
- DELETE entries that are standard practice or framework defaults
54
+
- REMOVE anything that could be guessed without reading files
55
+
- Only KEEP truly non-obvious, project-specific discoveries
56
+
- Then add any new non-obvious patterns you discover
55
57
56
58
Also check for other AI assistant rules:
57
59
- .cursorrules, CLAUDE.md, .roorules
@@ -83,11 +85,13 @@ Please analyze this codebase and create an AGENTS.md file containing:
83
85
- Directory requirements
84
86
85
87
8. Compile/Update AGENTS.md files
86
-
- If files exist: Deep dive into improving them
87
-
* Clean up outdated information
88
-
* Add newly discovered non-obvious patterns
89
-
* Reorganize for better clarity
90
-
* Ensure consistency across all files
88
+
- If files exist: AGGRESSIVELY clean them up
89
+
* DELETE all obvious information (even if it was there before)
90
+
* REMOVE standard practices, framework defaults, common patterns
91
+
* STRIP OUT anything derivable from file structure or names
92
+
* ONLY KEEP truly non-obvious discoveries
93
+
* Then add newly discovered non-obvious patterns
94
+
* Result should be SHORTER and MORE FOCUSED than before
91
95
- If creating new: Follow the non-obvious-only principle
92
96
- Create mode-specific files in .roo/rules-*/ directories
93
97
@@ -106,11 +110,12 @@ Please analyze this codebase and create an AGENTS.md file containing:
106
110
- ./.roo/rules-ask/AGENTS.md
107
111
- ./.roo/rules-architect/AGENTS.md
108
112
109
-
If found, perform deep analysis:
110
-
- What information is already captured?
111
-
- What's outdated or incorrect?
112
-
- What non-obvious patterns are missing?
113
-
- How can the organization be improved?
113
+
If found, perform CRITICAL analysis:
114
+
- What information is OBVIOUS and must be DELETED?
115
+
- What violates the non-obvious-only principle?
116
+
- What would an experienced developer already know?
117
+
- DELETE first, then consider what to add
118
+
- The file should get SHORTER, not longer
114
119
115
120
Also find other AI assistant rules and documentation
116
121
@@ -130,11 +135,13 @@ Please analyze this codebase and create an AGENTS.md file containing:
130
135
Create or deeply improve AGENTS.md with ONLY non-obvious information:
131
136
132
137
If AGENTS.md exists:
133
-
- Perform thorough review and enhancement
134
-
- Clean up any outdated or obvious information
135
-
- Add newly discovered non-obvious patterns
136
-
- Improve organization and clarity
137
-
- Ensure it follows the non-obvious-only principle
138
+
- FIRST: Delete ALL obvious information
139
+
- REMOVE: Standard commands, framework defaults, common patterns
140
+
- STRIP: Anything that doesn't require file reading to know
141
+
- EVALUATE: Each line - would an experienced dev be surprised?
142
+
- If not surprised, DELETE IT
143
+
- THEN: Add only truly non-obvious new discoveries
144
+
- Goal: File should be SHORTER and MORE VALUABLE
138
145
139
146
Content should include:
140
147
- Header: "# AGENTS.md\\n\\nThis file provides guidance to agents when working with code in this repository."
@@ -165,11 +172,12 @@ Please analyze this codebase and create an AGENTS.md file containing:
165
172
- ./.roo/rules-architect/AGENTS.md
166
173
167
174
If files exist:
168
-
- Perform deep analysis and improvement
169
-
- Clean up redundant or obvious information
170
-
- Add new non-obvious discoveries
171
-
- Ensure consistency with main AGENTS.md
172
-
- Reorganize for better clarity
175
+
- AGGRESSIVELY DELETE obvious information
176
+
- Remove EVERYTHING that's standard practice
177
+
- Strip out framework defaults and common patterns
178
+
- Each remaining line must be surprising/non-obvious
179
+
- Only then add new non-obvious discoveries
180
+
- Files should become SHORTER, not longer
173
181
174
182
Example structure:
175
183
\`\`\`
@@ -259,7 +267,8 @@ Please analyze this codebase and create an AGENTS.md file containing:
259
267
- Be extremely concise - if it's obvious, don't include it
260
268
- Every line should prevent a potential mistake or confusion
261
269
- Test: Would an experienced developer be surprised by this information?
262
-
- If updating existing files: Ensure deep improvement, not just appending
270
+
- If updating existing files: DELETE obvious info first, files should get SHORTER
271
+
- Measure success: Is the file more concise and valuable than before?
263
272
</quality_criteria>
264
273
265
274
Remember: The goal is to create documentation that enables AI assistants to be immediately productive in this codebase, focusing on project-specific knowledge that isn't obvious from the code structure alone.`,
0 commit comments