Commit 3f5c534
committed
refactor: decouple tools from system prompt
The system prompt sections no longer change based on which tools are available.
All tool-specific instructions are now in the tool descriptions themselves.
- codebase_search: Added CRITICAL usage instructions about using it first
- write_to_file: Added guidance about preferring other editing tools
- search_files: Added regex pattern crafting guidance
- browser_action: Added web development usage guidance
- rules.ts: Removed getEditingInstructions(), all tool conditionals
- capabilities.ts: Removed all tool availability conditionals
- tool-use-guidelines.ts: Removed codeIndexManager conditional guidelines
- objective.ts: Removed all parameters and conditional instructions
- system.ts: Updated calls to match new simplified signatures
- Deleted mode-aware-sections.spec.ts (tests for removed behavior)
- Updated sections.spec.ts for new signatures
- Updated snapshot files1 parent 5c50160 commit 3f5c534
File tree
30 files changed
+459
-777
lines changed- src/core/prompts
- __tests__
- __snapshots__
- add-custom-instructions
- system-prompt
- sections
- __tests__
- tools
- native-tools
30 files changed
+459
-777
lines changedLines changed: 22 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments