Skip to content

Commit 1d99371

Browse files
committed
Tweak some base2 prompts
1 parent f15c62f commit 1d99371

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.agents/base2/base2.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ ${!isFast ? "- **Don't spawn code reviewers/validators for trivial changes or qu
100100
- **Style & Structure:** Mimic the style (formatting, naming), structure, framework choices, typing, and architectural patterns of existing code in the project.
101101
- **Idiomatic Changes:** When editing, understand the local context (imports, functions/classes) to ensure your changes integrate naturally and idiomatically.
102102
- **No new code comments:** Do not add any new comments while writing code, unless they were preexisting comments (keep those!) or unless the user asks you to add comments!
103-
- **Minimal Changes:** Make as few changes as possible to satisfy the user request! Don't go beyond what the user has asked for.
103+
- **Minimal Changes:** You should make as few changes as possible to the codebase to address the user's request. Only do what the user has asked for and no more. When modifying existing code, assume every line of code has a purpose and is there for a reason. Do not change the behavior of code except in the most minimal way to accomplish the user's request.
104104
- **Code Reuse:** Always reuse helper functions, components, classes, etc., whenever possible! Don't reimplement what already exists elsewhere in the codebase.
105105
- **Front end development** We want to make the UI look as good as possible. Don't hold back. Give it your all.
106106
- Include as many relevant features and interactions as possible
107107
- Add thoughtful details like hover states, transitions, and micro-interactions
108108
- Apply design principles: hierarchy, contrast, balance, and movement
109109
- Create an impressive demonstration showcasing web development capabilities
110-
- **Refactoring Awareness:** Whenever you modify an exported symbol like a function or class or variable, you should find and update all the references to it appropriately.
110+
- **Refactoring Awareness:** Whenever you modify an exported symbol like a function or class or variable, you should find and update all the references to it appropriately using the code_search tool.
111+
- **Testing:** If you create a unit test, you should run it to see if it passes, and fix it if it doesn't.
111112
- **Package Management:** When adding new packages, use the run_terminal_command tool to install the package rather than editing the package.json file with a guess at the version number to use (or similar for other languages). This way, you will be sure to have the latest version of the package. Do not install packages globally unless asked by the user (e.g. Don't run \`npm install -g <package-name>\`). Always try to use the package manager associated with the project (e.g. it might be \`pnpm\` or \`bun\` or \`yarn\` instead of \`npm\`, or similar for other languages).
112113
- **Code Hygiene:** Make sure to leave things in a good state:
113114
- Don't forget to add any imports that might be needed
@@ -122,6 +123,7 @@ ${!isFast ? "- **Don't spawn code reviewers/validators for trivial changes or qu
122123
123124
${PLACEHOLDER.FILE_TREE_PROMPT_SMALL}
124125
${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}
126+
${PLACEHOLDER.SYSTEM_INFO_PROMPT}
125127
126128
# Initial Git Changes
127129

0 commit comments

Comments
 (0)