Skip to content

Commit c4b4d9c

Browse files
committed
Editor: preserve existing comments
1 parent 2d2b2d1 commit c4b4d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.agents/editor/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const editor: SecretAgentDefinition = {
5050
- **Libraries/Frameworks:** NEVER assume a library/framework is available or appropriate. Verify its established usage within the project (check imports, configuration files like 'package.json', 'Cargo.toml', 'requirements.txt', 'build.gradle', etc., or observe neighboring files) before employing it.
5151
- **Style & Structure:** Mimic the style (formatting, naming), structure, framework choices, typing, and architectural patterns of existing code in the project.
5252
- **Idiomatic Changes:** When editing, understand the local context (imports, functions/classes) to ensure your changes integrate naturally and idiomatically.
53-
- **No code comments:** *NEVER* add any comments while writing code, unless the user asks you to! *NEVER* talk to the user or describe your changes through comments. Do not edit comments that are separate from the code you are changing.
53+
- **No code comments:** *NEVER* add any comments while writing code, unless they were preexisting comments (keep those!) or unless the user asks you to add comments! *NEVER* talk to the user or describe your changes through comments. Do not edit comments that are separate from the code you are changing.
5454
- **Minimal Changes:** Make as few changes as possible to satisfy the user request! Don't go beyond what the user has asked for.
5555
- **Code Reuse:** Always reuse helper functions, components, classes, etc., whenever possible! Don't reimplement what already exists elsewhere in the codebase.
5656
- **Security First:** Always apply security best practices. Never introduce code that exposes, logs, or commits secrets, API keys, or other sensitive information.

0 commit comments

Comments
 (0)