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
* Add Fast Edits feature images and update documentation, also tweaked apply-diff tool description
* Update MCP documentation to clarify server configuration and precedence; add new images for better guidance
* Update documentation rules to require absolute paths for internal links and remove .md extensions
* Add documentation for Import, Export, and Reset Settings features
* Add settings management image to documentation
* Add pinning and sorting functionality to API configuration profiles documentation and images
* Add documentation for Suggested Responses feature with images
* Enhance documentation for Code Actions feature with detailed explanation of "Add to Context" functionality and usage examples
* Add release notes for versions 2.1.20, 2.1.7, 2.2.34, 2.2.40, 2.2.2, 2.2.32, 2.2.25, 2.2.6, 2.2.1, 2.2.43, 2.2.24, 3.0.2, 3.1.4, 3.1.1, and 3.2.6; include new images for version 3.11
* Fix link formatting in apply-diff documentation for improved navigation
* Update docs/features/fast-edits.md
Copy file name to clipboardExpand all lines: .roomodes
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"slug": "docs",
5
5
"name": "Documentation Writer",
6
6
"roleDefinition": "You are a technical documentation writer who is a seasoned, straightforward, and technically precise expert who prioritizes clarity and efficiency. With 24 years of coding and documentation writing experience, you have a natural conversational style that values concise, no-nonsense communication. Your approach is authentic and candid, focusing relentlessly on user comprehension without overselling features or using ambiguous language. You avoid fluff, ensuring every sentence provides clear value, practical guidance, or actionable steps. The tone remains professional yet approachable, fostering immediate trust through reliability and transparency. You specialize in writing technical documentation for the Visual Studio Code extension Roo Code, using Docusaurus to structure, format, and publish content efficiently. With deep expertise in Markdown and MDX, you optimize documentation for readability, accessibility, and seamless navigation within a static-site environment built on React. It is important to ensure the content is accessible to readers with varying technical proficiencies, including those who may have learning disabilities such as ADD/ADHD, by maintaining clear structure, logical flow, and avoiding unnecessary complexity.",
7
-
"customInstructions": "### Custom Instructions\n\n1. **Directness and Clarity** \n Begin each documentation entry with the most important information users need, avoiding introductory filler or unnecessary context.\n\n2. **Precision and Brevity** \n Favor short, precise explanations and actionable steps. Users should swiftly grasp concepts without requiring additional clarification.\n\n3. **Authentic and Natural Tone** \n Write in a conversational style that reflects Roo's straightforward, reliable, and trustworthy personality—avoiding marketing jargon or generic phrases.\n\n4. **Practical Examples** \n Include realistic examples aimed at experienced developers. Provide accurate, concise code snippets ready for immediate use, avoiding trivial or clichéd demos.\n\n5. **Consistent Formatting** \n Use structured headings, bullet points, and brief paragraphs for easy scanning and comprehension.\n\n6. **Avoid Over-explaining** \n Assume a reasonable level of technical competence. Do not elaborate on basic coding concepts unless it’s essential to clarify a unique Roo Code feature.\n\n7. **Proactive Anticipation** \n Address likely questions or pitfalls within the relevant sections. Incorporate tips or clarifications to prevent common mistakes.\n\n8. **Minimalism in Wording** \n Eliminate unnecessary adjectives, adverbs, or verbose descriptions. Use clear, functional language that reduces cognitive load.\n\n9. **Internal Links** \n Always use **relative paths** for internal links, and **omit the `.md` file extension**. \n Example: \n ```md\n [Link to Guide](../intro/)\n\n\t10.\t@site Alias\n\t•\tFor code imports or special references that need to resolve from the project root, use the @site alias.\n\t•\tExample:\n\nimport Header from '@site/src/components/Header';\n\n\n\t•\tAvoid @site in Markdown links—use relative paths instead.\n\n\t11.\tCode Examples\nProvide clearly formatted code snippets suitable for copy-pasting. Maintain consistent syntax highlighting, indentation, and structure.\n\t12.\tImages\nInsert an image placeholder where needed. Include a brief description of the image below the placeholder. The final image element should follow this format (folder name may vary):\n\n<img src=\"/img/installing/installing-2.png\" alt=\"VS Code's Install from VSIX dialog\" width=\"600\" />\n\n(with the folder starting at /img/)",
7
+
"customInstructions": "### Custom Instructions\n\n1. **Directness and Clarity** \n Begin each documentation entry with the most important information users need, avoiding introductory filler or unnecessary context.\n\n2. **Precision and Brevity** \n Favor short, precise explanations and actionable steps. Users should swiftly grasp concepts without requiring additional clarification.\n\n3. **Authentic and Natural Tone** \n Write in a conversational style that reflects Roo's straightforward, reliable, and trustworthy personality—avoiding marketing jargon or generic phrases.\n\n4. **Practical Examples** \n Include realistic examples aimed at experienced developers. Provide accurate, concise code snippets ready for immediate use, avoiding trivial or clichéd demos.\n\n5. **Consistent Formatting** \n Use structured headings, bullet points, and brief paragraphs for easy scanning and comprehension.\n\n6. **Avoid Over-explaining** \n Assume a reasonable level of technical competence. Do not elaborate on basic coding concepts unless it’s essential to clarify a unique Roo Code feature.\n\n7. **Proactive Anticipation** \n Address likely questions or pitfalls within the relevant sections. Incorporate tips or clarifications to prevent common mistakes.\n\n8. **Minimalism in Wording** \n Eliminate unnecessary adjectives, adverbs, or verbose descriptions. Use clear, functional language that reduces cognitive load.\n\n9. **Internal Links** \n Always use **absolute paths starting from the `/docs/` root** for internal links, and **omit the `.md` file extension**. \n Example: \n ```md\n [Link to Guide](/intro/)\n\n\t10.\t@site Alias\n\t•\tFor code imports or special references that need to resolve from the project root, use the @site alias.\n\t•\tExample:\n\nimport Header from '@site/src/components/Header';\n\n\n\t•\tAvoid @site in Markdown links—use absolute paths instead.\n\n\t11.\tCode Examples\nProvide clearly formatted code snippets suitable for copy-pasting. Maintain consistent syntax highlighting, indentation, and structure.\n\t12.\tImages\nInsert an image placeholder where needed. Include a brief description of the image below the placeholder. The final image element should follow this format (folder name may vary):\n\n<img src=\"/img/installing/installing-2.png\" alt=\"VS Code's Install from VSIX dialog\" width=\"600\" />\n\n(with the folder starting at /img/)",
Copy file name to clipboardExpand all lines: docs/features/code-actions.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,25 @@ Clicking the lightbulb, right-clicking and selecting "Roo Code", or using the ke
16
16
17
17
Roo Code provides the following Code Actions:
18
18
19
-
***Explain Code:** Asks Roo Code to explain the selected code. This is useful for understanding unfamiliar code or for getting a high-level overview of a function or class.
20
-
***Fix Code:** Asks Roo Code to fix problems in the selected code. This action is available when there are diagnostics (errors or warnings) on the selected lines. Roo Code will analyze the diagnostics and propose a fix.
21
-
***Improve Code:** Asks Roo Code to suggest improvements to the selected code. This can include suggestions for better readability, performance, or adherence to best practices.
22
-
***Add to Context:** Adds the selected code to the current Roo Code conversation, allowing you to refer to it in subsequent messages.
19
+
***Add to Context:** Quickly adds the selected code to your chat with Roo, including line numbers so Roo knows exactly where the code is from. It's listed first in the menu for easy access. (More details below).
20
+
***Explain Code:** Asks Roo Code to explain the selected code.
21
+
***Fix Code:** Asks Roo Code to fix problems in the selected code (available when diagnostics are present).
22
+
***Improve Code:** Asks Roo Code to suggest improvements to the selected code.
23
+
24
+
### Add to Context Deep Dive
25
+
26
+
The **Add to Context** action is listed first in the Code Actions menu so you can quickly add code snippets to your conversation. When you use it, Roo Code includes the filename and line numbers along with the code.
27
+
28
+
This helps Roo understand the exact context of your code within the project, allowing it to provide more relevant and accurate assistance.
29
+
30
+
**Example Chat Input:**
31
+
32
+
```
33
+
Can you explain this function?
34
+
@myFile.js:15:25
35
+
```
36
+
37
+
*(Where `@myFile.js:15:25` represents the code added via "Add to Context")*
23
38
24
39
Each of these actions can be performed "in a new task" or "in the current task."
1.**Faster File Editing**: Roo modifies files more quickly by applying only the necessary changes.
18
19
2.**Prevents Truncated Writes**: The system automatically detects and rejects attempts by the AI to write incomplete file content, which can happen with large files or complex instructions. This helps prevent corrupted files.
19
20
20
21
:::note Disabling Fast Edits
21
22
If you uncheck **Enable editing through diffs**, Roo will revert to writing the entire file content for every edit using the [`write_to_file`](/features/tools/write-to-file) tool, instead of applying targeted changes with [`apply_diff`](/features/tools/apply-diff). This full-write approach is generally slower for modifying existing files and leads to higher token usage.
22
23
:::
23
24
24
-
## Diff Strategy
25
-
26
-
This setting determines the method Roo uses to calculate and apply changes:
27
-
28
-
***Multi-block diff** (Default since v3.11): Allows updating multiple, separate code blocks within the same file in a single operation. More efficient for widespread changes. (Uses `MultiSearchReplaceDiffStrategy` internally).
29
-
***Single block**: Applies changes to one code block at a time. Reliable for most common edits. (Uses `SearchReplaceDiffStrategy` internally).
30
-
***Unified diff**: A more sophisticated strategy that analyzes the changes and selects the best approach, potentially using different matching techniques. (Uses `NewUnifiedDiffStrategy` internally).
31
-
32
-
Choose the strategy that best suits the complexity of the edits you typically perform. The experimental options offer potential efficiency gains but may behave differently.
33
-
34
25
## Match Precision
35
26
36
27
This slider controls how closely the code sections identified by the AI must match the actual code in your file before a change is applied.
37
28
29
+
<img src="/img/fast-edits/fast-edits-4.png" alt="Roo Code settings showing Enable editing through diffs checkbox and Match precision slider" width="500" />
30
+
38
31
***100% (Default)**: Requires an exact match. This is the safest option, minimizing the risk of incorrect changes.
39
32
***Lower Values (80%-99%)**: Allows for "fuzzy" matching. Roo can apply changes even if the code section has minor differences from what the AI expected. This can be useful if the file has been slightly modified, but **increases the risk** of applying changes in the wrong place.
40
33
41
34
**Use values below 100% with extreme caution.** Lower precision might be necessary occasionally, but always review the proposed changes carefully.
42
35
43
36
Internally, this setting adjusts a `fuzzyMatchThreshold` used with algorithms like Levenshtein distance to compare code similarity.
44
37
45
-
## Model Recommendation
46
38
47
-
The setting description notes that diff-based editing "Works best with the latest Claude 3.7 Sonnet model." This is likely because newer, more capable models can generate the precise diff formats required for this feature more reliably.
39
+
## Experimental Features
40
+
41
+
Under the "Experimental Features" section, you will find this option:
42
+
43
+
<img src="/img/fast-edits/fast-edits-2.png" alt="Roo Code settings showing the Experimental Features section with the experimental unified diff strategy checkbox" width="500" />
44
+
45
+
***Use experimental unified diff strategy**: This checkbox might appear to enable specific variations or optimizations of the `UnifiedDiffStrategy`. Enabling this could potentially reduce retries caused by model errors but might also introduce unexpected behavior or incorrect edits. Enable only if you understand the risks and are prepared to carefully review all changes.
Copy file name to clipboardExpand all lines: docs/features/mcp/using-mcp-in-roo.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,31 @@ sidebar_label: Using MCP in Roo Code
7
7
8
8
Model Context Protocol (MCP) extends Roo Code's capabilities by connecting to external tools and services. This guide covers everything you need to know about using MCP with Roo Code.
9
9
10
-
> **Note:** All MCP-related settings are global across all workspaces. Any changes you make to MCP configurations will affect all your Roo Code projects.
10
+
## Configuring MCP Servers
11
11
12
-
## Installing/Editing Your MCP Servers
12
+
MCP server configurations can be managed at two levels:
13
13
14
-
MCP server configurations are stored in the `cline_mcp_settings.json` file. You can access it by:
14
+
1.**Global Configuration**: Stored in the `mcp_settings.json` file, accessible via VS Code settings (see below). These settings apply across all your workspaces unless overridden by a project-level configuration.
15
+
2.**Project-level Configuration**: Defined in a `.roo/mcp.json` file within your project's root directory. This allows you to set up project-specific servers and share configurations with your team by committing the file to version control. Roo Code automatically detects and loads this file if it exists.
15
16
16
-
1. Click the <Codiconname="server" /> icon in the top navigation of the Roo Code pane
17
+
**Precedence**: If a server name exists in both global and project configurations, the **project-level configuration takes precedence**.
18
+
19
+
### Editing MCP Settings Files
20
+
21
+
You can edit both global and project-level MCP configuration files directly from the Roo Code MCP settings view:
22
+
23
+
1. Click the <Codiconname="server" /> icon in the top navigation of the Roo Code pane.
24
+
25
+
<imgsrc="/img/using-mcp-in-roo/using-mcp-in-roo-10.png"alt="MCP Servers interface in Roo Code"width="400" />
17
26
18
-
<imgsrc="/img/using-mcp-in-roo/using-mcp-in-roo.png"alt="MCP Servers interface in Roo Code"width="400" />
19
-
2. Click the `Edit MCP Settings` button. This will open `cline_mcp_settings.json`
27
+
2. Scroll to the bottom of the MCP settings view.
28
+
3. Click the appropriate button:
29
+
***`Edit Global MCP`**: Opens the global `mcp_settings.json` file.
30
+
***`Edit Project MCP`**: Opens the project-specific `.roo/mcp.json` file. If this file doesn't exist, Roo Code will create it for you.
<imgsrc="/img/using-mcp-in-roo/using-mcp-in-roo-9.png"alt="Edit Global MCP and Edit Project MCP buttons"width="600" />
22
33
23
-
The file uses a JSON format with a `mcpServers` object containing named server configurations:
34
+
Both files use a JSON format with a `mcpServers` object containing named server configurations:
24
35
25
36
```json
26
37
{
@@ -189,6 +200,6 @@ Example: "Analyze the performance of my API" might use an MCP tool that tests AP
189
200
Common issues and solutions:
190
201
191
202
***Server Not Responding:** Check if the server process is running and verify network connectivity
192
-
***Permission Errors:** Ensure proper API keys and credentials are configured in your `cline_mcp_settings.json`
203
+
***Permission Errors:** Ensure proper API keys and credentials are configured in your `mcp_settings.json` (for global settings) or `.roo/mcp.json` (for project settings).
193
204
***Tool Not Available:** Confirm the server is properly implementing the tool and it's not disabled in settings
194
205
***Slow Performance:** Try adjusting the network timeout value for the specific MCP server
0 commit comments