Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/features/api-configuration-profiles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Configuration profiles can have their own:
- [Temperature settings](/features/model-temperature) for controlling response randomness
- Thinking budgets
- Provider-specific settings
- [Diff editing configuration](/features/fast-edits)
- Diff editing configuration (see [`apply_diff`](/advanced-usage/available-tools/apply-diff))
- Rate limit settings

Note that available settings vary by provider and model. Each provider offers different configuration options, and even within the same provider, different models may support different parameter ranges or features.
Expand Down Expand Up @@ -143,5 +143,4 @@ API keys are stored securely in VSCode's Secret Storage and are never exposed in
- Integrates with [local models](/advanced-usage/local-models) for offline work
- Supports [temperature settings](/features/model-temperature) per mode
- Supports per-profile rate limits (configured here) and general [usage tracking/cost info](/advanced-usage/rate-limits-costs)
- Supports [Diff/Fast Edits](/features/fast-edits) for tailored code editing behavior.

- Supports diff-based editing (see [`apply_diff`](/advanced-usage/available-tools/apply-diff)).
4 changes: 1 addition & 3 deletions docs/features/experimental/experimental-features.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
description: 'Explore Roo Code''s experimental features including concurrent file edits and power steering. Enable advanced capabilities that are still under development.'
description: 'Explore Roo Code''s experimental features. Enable advanced capabilities that are still under development.'
keywords:
- experimental features
- "Roo Code beta"
- "advanced features"
- "concurrent file edits"
- "power steering"
- "feature flags"
---

Expand Down Expand Up @@ -33,7 +32,6 @@ The following experimental features are currently available:

- [Custom Tools](/features/experimental/custom-tools) - Define TypeScript/JavaScript tools that Roo can call like built-in tools
- [Concurrent File Edits](/features/experimental/concurrent-file-edits) - Edit multiple files in a single operation
- [Power Steering](/features/experimental/power-steering) - Enhanced consistency in AI responses
- [Background Editing](/features/experimental/background-editing) - Work uninterrupted while Roo edits files in the background
- [Image Generation](/features/image-generation) - Generate images from text prompts and save them to your workspace
- [Run Slash Command](/advanced-usage/available-tools/run-slash-command) - Execute predefined slash commands for templated instructions and workflow automation
Expand Down
70 changes: 0 additions & 70 deletions docs/features/experimental/power-steering.md

This file was deleted.

54 changes: 6 additions & 48 deletions docs/features/fast-edits.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,12 @@
---
description: Discover how Roo Code's Fast Edits feature uses diffs for faster, safer file modifications. Learn about match precision and configuration options.
keywords:
- fast edits
- diff editing
- file modifications
- apply diff
- match precision
- editing efficiency
- truncation prevention
description: Fast Edits is no longer a separate feature. Roo uses diff-based editing by default.
sidebar_label: Fast Edits
---

# Diff/Fast Edits
# Fast Edits

:::info Default Setting
Fast Edits (using the "Enable editing through diffs" setting) is enabled by default in Roo Code. You typically don't need to change these settings unless you encounter specific issues or want to experiment with different diff strategies.
:::
Fast Edits is no longer a separate feature.

Roo Code offers an advanced setting to change how it edits files, using diffs (differences) instead of rewriting entire files. Enabling this feature provides significant benefits.
Roo uses diff-based editing by default.

:::note Per-Provider Setting
Diff editing configuration is set per [API Configuration Profile](/features/api-configuration-profiles), allowing you to customize editing behavior for different providers and models.
:::

---

## Enable Editing Through Diffs

Open the Roo Code pane settings by clicking the gear icon <Codicon name="gear" />. The `Providers` section will be visible. Select the specific [API Configuration Profile](/features/api-configuration-profiles) you want to configure.

When **Enable editing through diffs** is checked:

<img src="/img/fast-edits/fast-edits-2.png" alt="Roo Code settings showing Enable editing through diffs" width="500" />
1. **Faster File Editing**: Roo modifies files more quickly by applying only the necessary changes.
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.

:::note Disabling Fast Edits
If you uncheck **Enable editing through diffs**, Roo will revert to writing the entire file content for every edit using the [`write_to_file`](/advanced-usage/available-tools/write-to-file) tool, instead of applying targeted changes with [`apply_diff`](/advanced-usage/available-tools/apply-diff). This full-write approach is generally slower for modifying existing files and leads to higher token usage.
:::

---

## Match Precision

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.

<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" />

* **100% (Default)**: Requires an exact match. This is the safest option, minimizing the risk of incorrect changes.
* **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.

**Use values below 100% with extreme caution.** Lower precision might be necessary occasionally, but always review the proposed changes carefully.

Internally, this setting adjusts a `fuzzyMatchThreshold` used with algorithms like Levenshtein distance to compare code similarity.
See [`apply_diff`](/advanced-usage/available-tools/apply-diff) for the current editing format and behavior.
4 changes: 1 addition & 3 deletions docs/features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Discover the powerful features that make Roo Code your ultimate AI-powered codin
## Core Features

### Code Editing & Navigation
- [**Fast Edits**](/features/fast-edits) - Lightning-fast code modifications with intelligent diff application
- [**Concurrent File Reads**](/features/concurrent-file-reads) - Read multiple files simultaneously for better context
- [**Code Actions**](/features/code-actions) - Quick fixes and refactoring suggestions
- [**Diagnostics Integration**](/features/diagnostics-integration) - Real-time error detection and resolution
Expand Down Expand Up @@ -60,7 +59,6 @@ Push the boundaries with cutting-edge capabilities:

- [**Custom Tools**](/features/experimental/custom-tools) - Define TypeScript/JavaScript tools that Roo can call
- [**Concurrent File Edits**](/features/experimental/concurrent-file-edits) - Edit multiple files in a single operation
- [**Power Steering**](/features/experimental/power-steering) - Enhanced consistency in AI responses
- [**More Experimental Features**](/features/experimental/experimental-features) - Explore features under development

## Additional Resources
Expand All @@ -71,4 +69,4 @@ Push the boundaries with cutting-edge capabilities:

---

Ready to explore? Start with our [Getting Started Guide](/getting-started/installing) or dive into any feature that interests you!
Ready to explore? Start with our [Getting Started Guide](/getting-started/installing) or dive into any feature that interests you!
Loading