update system prompt, we use this cline prompt system

This commit is contained in:
duanfuxiang
2025-03-12 21:37:45 +08:00
parent bd7eb2b57a
commit c0c81bd1d8
29 changed files with 1722 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
export function getSwitchModeDescription(): string {
return `## switch_mode
Description: Request to switch to a different mode. This tool allows modes to request switching to another mode when needed, such as switching to Write mode edits to files. The user must approve the mode switch.
Parameters:
- mode_slug: (required) The slug of the mode to switch to (e.g., "write", "ask",)
- reason: (optional) The reason for switching modes
Usage:
<switch_mode>
<mode_slug>Mode slug here</mode_slug>
<reason>Reason for switching here</reason>
</switch_mode>
Example: Requesting to switch to write mode
<switch_mode>
<mode_slug>write</mode_slug>
<reason>Need to edit files</reason>
</switch_mode>`
}