Skip to content

Commit d519baa

Browse files
roomote[bot]ellipsis-dev[bot]roomotehannesrudolph
authored
docs: add tip about customizing context reduction prompt (#277)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> Co-authored-by: Roo Code <[email protected]> Co-authored-by: Hannes Rudolph <[email protected]>
1 parent 4340033 commit d519baa

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

docs/features/intelligent-context-condensing.mdx

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ As your conversation with Roo Code grows, it might approach the context window l
5353
Intelligent Context Condensing is **enabled by default** and offers several configuration options:
5454

5555
1. Open Roo Code settings (<Codicon name="gear" /> icon in the top right corner of the Roo Code panel).
56-
2. Navigate to the "Context" settings section.
56+
2. Navigate to the "Context" settings section for context-related options, or the "Prompt" settings section for the custom prompt.
5757
3. Configure the available options:
58-
- **Automatically trigger intelligent context condensing**: Enabled by default, this controls whether condensing happens automatically
59-
- **Threshold to trigger intelligent context condensing**: A percentage slider (default 100%) that determines when condensing activates based on context window usage
60-
- **API Configuration for Context Condensing**: Choose which API configuration to use for condensing operations (defaults to your current active configuration)
61-
- **Custom Context Condensing Prompt**: Customize the system prompt used for context condensing operations
58+
- **Automatically trigger intelligent context condensing**: Enabled by default, this controls whether condensing happens automatically (found in "Context" settings)
59+
- **Threshold to trigger intelligent context condensing**: A percentage slider (default 100%) that determines when condensing activates based on context window usage (found in "Context" settings)
60+
- **API Configuration for Context Condensing**: Choose which API configuration to use for condensing operations (defaults to your current active configuration) (found in "Context" settings)
61+
- **Custom Context Condensing Prompt**: Customize the system prompt used for context condensing operations (found in "Prompt" settings)
6262

6363
<img src="/img/intelligent-context-condensing/intelligent-context-condensing.png" alt="Settings for Intelligent Context Condensing" width="600" />
6464
*Intelligent Context Condensing configuration options: automatic triggering toggle, threshold slider, API configuration selection, and custom prompt customization.*
@@ -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 Condensing 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 "Prompt" settings section
110+
3. Find the "Custom Context Condensing Prompt" in the pulldown
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)