You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/intelligent-context-condensing.mdx
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,12 +53,12 @@ As your conversation with Roo Code grows, it might approach the context window l
53
53
Intelligent Context Condensing is **enabled by default** and offers several configuration options:
54
54
55
55
1. Open Roo Code settings (<Codiconname="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.
57
57
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)
62
62
63
63
<imgsrc="/img/intelligent-context-condensing/intelligent-context-condensing.png"alt="Settings for Intelligent Context Condensing"width="600" />
64
64
*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
98
98
99
99
---
100
100
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 (<Codiconname="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.
Copy file name to clipboardExpand all lines: docs/tips-and-tricks.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,3 +27,4 @@ A collection of quick tips to help you get the most out of Roo Code.
27
27
- 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'.
28
28
- 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.
29
29
- 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