Skip to content

Commit a54fdd0

Browse files
committed
docs: add tip about customizing context reduction prompt
- Added new section in intelligent-context-condensing.mdx explaining how to customize the context reduction prompt - Added tip in tips-and-tricks.md with link to the new section - Helps users preserve domain-specific information during context condensing
1 parent 13a6c53 commit a54fdd0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docs/features/intelligent-context-condensing.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,27 @@ Roo Code provides several ways to control and understand the Intelligent Context
9898

9999
---
100100

101+
## Tips for Effective Context Condensing
102+
103+
### Customizing the Context Reduction Prompt
104+
105+
You can customize the context reduction prompt to better suit your specific domain or use case. This is particularly useful if you find that the default condensing process loses important information specific to your workflow.
106+
107+
To customize the prompt:
108+
1. Go to Roo Code settings (<Codicon name="gear" /> icon)
109+
2. Navigate to the "Context" settings section
110+
3. Find the "Custom Context Condensing Prompt" field
111+
4. Enter your custom prompt that instructs the AI on how to preserve specific types of information
112+
113+
For example, if you're working on a complex debugging session, you might add instructions like:
114+
- "Always preserve error messages and stack traces in full"
115+
- "Maintain all variable names and their last known values"
116+
- "Keep track of all attempted solutions and their outcomes"
117+
118+
This customization ensures that the context condensing process retains the information most critical to your specific use case.
119+
120+
---
121+
101122
## Technical Implementation
102123

103124
### Token Counting

docs/tips-and-tricks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ A collection of quick tips to help you get the most out of Roo Code.
2727
- To manage large files and reduce context/resource usage, adjust the `File read auto-truncate threshold` setting. This setting controls the number of lines read from a file in one batch. Lower values can improve performance when working with very large files, but may require more read operations. You can find this setting in the Roo Code settings under 'Advanced Settings'.
2828
- Set up a keyboard shortcut for the [`roo.acceptInput` command](/features/keyboard-shortcuts) to accept suggestions or submit text input without using the mouse. Perfect for keyboard-focused workflows and reducing hand strain.
2929
- Use **Sticky Models** to assign specialized AI models to different modes (reasoning model for planning, non-reasoning model for coding). Roo automatically switches to each mode's last-used model without manual selection.
30+
- Customize the [context reduction prompt](/features/intelligent-context-condensing#customizing-the-context-reduction-prompt) if you find that for your domain/use case it forgets particular things. You can instruct it to preserve specific types of information that are critical to your workflow.

0 commit comments

Comments
 (0)