docs/user-manual/en/3-extensions/3.2-prompts.md
The Prompts feature manages system prompt presets. System prompts influence the AI's behavior and response style.
With CC Switch, you can:
Click the Prompts button in the top navigation bar.
The editor provides:
Structured format:
# Role Definition
You are a professional code review expert.
## Core Capabilities
- Code quality analysis
- Performance optimization suggestions
- Security vulnerability detection
## Response Style
- Clear and concise
- Provide specific examples
- Give improvement suggestions
## Notes
- Do not modify business logic
- Maintain consistent code style
Click the toggle switch on the preset item to change its activation status.
Only one preset can be active at a time. Activating a new preset automatically deactivates the previous one.
After activation, the prompt is written to the corresponding app's file:
| Application | File Path |
|---|---|
| Claude | ~/.claude/CLAUDE.md |
| Codex | ~/.codex/AGENTS.md |
| Gemini | ~/.gemini/GEMINI.md |
| OpenCode | ~/.opencode/AGENTS.md |
| OpenClaw | ~/.openclaw/AGENTS.md |
If the currently active preset is edited, changes are immediately synced to the configuration file.
Active presets cannot be deleted. Deactivate the preset first before deleting.
CC Switch provides a smart backfill protection mechanism to ensure your manual modifications are not lost.
| Scenario | Handling |
|---|---|
Directly editing CLAUDE.md in CLI | Changes auto-saved to current preset |
| Modifying config file with external editor | Changes auto-saved to current preset |
| Switching to another preset | Current changes saved first, then switched |
The backfill mechanism triggers at these moments:
Prompts are managed separately per app:
To use the same prompt across multiple apps, you need to create them separately.
You can generate deep links to share presets:
ccswitch://import/prompt?data=<base64-encoded preset>
Exporting configuration includes all presets, which can be restored upon import.