Skip to content

Commit 74c8eb9

Browse files
committed
docs: remove deprecated insert_content tool documentation and references
1 parent 3a5144b commit 74c8eb9

File tree

9 files changed

+18
-151
lines changed

9 files changed

+18
-151
lines changed

.roo/rules-release-notes-writer/1_main_workflow.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ gh pr list --repo RooCodeInc/Roo-Code --state merged --base main --limit 1000 \
110110
<initialization priority="CRITICAL">
111111
<action>Create .roo/tmp/release-notes/temp_pr_analysis_v[version].md</action>
112112
<details>
113-
Parent task MUST create this file (and .roo/tmp/release-notes/temp_pr_inclusion_v[version].json, .roo/tmp/release-notes/temp_pr_list_v[VERSION].md if needed) before ANY subtasks.
114-
Subtasks will ONLY append using insert_content.
115-
Parent task MUST NOT append to temp_pr_analysis_v[version].md; this file is reserved exclusively for subtask outputs. The parent may only create/initialize the empty file(s).
116-
Temp files live under .roo/tmp/release-notes/
113+
Parent task MUST create this file (and .roo/tmp/release-notes/temp_pr_inclusion_v[version].json, .roo/tmp/release-notes/temp_pr_list_v[VERSION].md if needed) before ANY subtasks.
114+
Subtasks will ONLY add entries to these temp files using the available safe file-editing capability (preserve existing content; no overwrites).
115+
Parent task MUST NOT add entries to temp_pr_analysis_v[version].md; this file is reserved exclusively for subtask outputs. The parent may only create/initialize the empty file(s).
116+
Temp files live under .roo/tmp/release-notes/
117117
</details>
118118
</initialization>
119119

@@ -139,15 +139,15 @@ gh pr list --repo RooCodeInc/Roo-Code --state merged --base main --limit 1000 \
139139
3. Get issue details if linked
140140
4. Categorize change (Feature/QOL/Bug Fix/Provider Update)
141141
5. Identify documentation needs (new features, behavior changes, deprecations)
142-
6. Append to .roo/tmp/release-notes/temp_pr_analysis_v[version].md using insert_content line 0
142+
6. Add to .roo/tmp/release-notes/temp_pr_analysis_v[version].md at the start, preserving existing content (use the available safe file-editing capability)
143143

144144
Include documentation flags:
145145
- docs-new: Completely new feature
146146
- docs-update: Existing docs need updating
147147
- docs-example: New examples needed
148148
- docs-migration: Breaking changes
149149

150-
CRITICAL: Never create/overwrite files, only append.
150+
CRITICAL: Never overwrite existing content; only add entries while preserving prior content.
151151
MANDATORY: Insert the marker line '&lt;!-- generated-by-subtask: true --&gt;' immediately before the '---' separator in each PR entry.
152152
</message_template>
153153
<todos_template>
@@ -187,7 +187,7 @@ gh pr list --repo RooCodeInc/Roo-Code --state merged --base main --limit 1000 \
187187
Get PR details: gh pr view 1234 --repo RooCodeInc/Roo-Code --json number,title,author,mergedAt,labels,body,url
188188
Extract linked issues and get details
189189
Categorize the change and identify documentation needs
190-
Append analysis to .roo/tmp/release-notes/temp_pr_analysis_v3.20.1.md using insert_content line 0</message>
190+
Add analysis to .roo/tmp/release-notes/temp_pr_analysis_v3.20.1.md at the start, preserving existing content</message>
191191
<todos>
192192
[ ] Fetch PR #1234 details
193193
[ ] Extract linked issues and get details
@@ -199,7 +199,7 @@ Append analysis to .roo/tmp/release-notes/temp_pr_analysis_v3.20.1.md using inse
199199
<critical_notes>
200200
- Parent creates temp files first
201201
- Each PR gets its own subtask
202-
- Subtasks only append, never overwrite
202+
- Subtasks only add entries; never overwrite existing content
203203
</critical_notes>
204204
</subtask_creation_example>
205205
</phase>
@@ -366,7 +366,7 @@ fi
366366
<action>Supplement candidate PR set with changelog-referenced PRs not in fetched list and spawn analysis subtasks</action>
367367
<details>
368368
- Identify referenced PR numbers from step 2 that are missing from .roo/tmp/release-notes/temp_pr_analysis_v[version].md
369-
- For each missing PR, fetch details and create a new investigation subtask (same pattern as pr_processing) to append analysis to temp_pr_analysis_v[version].md
369+
- For each missing PR, fetch details and create a new investigation subtask (same pattern as pr_processing) to add analysis to temp_pr_analysis_v[version].md without overwriting existing content
370370
- Mark these as out_of_range if their mergedAt is outside the computed date window
371371
- Wait for all spawned subtasks to complete before proceeding
372372
</details>
@@ -378,7 +378,7 @@ gh pr view N --repo RooCodeInc/Roo-Code --json number,title,author,mergedAt,labe
378378
<spawn_subtask><![CDATA[
379379
<new_task>
380380
<mode>release-notes-writer</mode>
381-
<message>Investigate PR #[NUMBER] (changelog-referenced, possibly out of original range) for release notes v[version]. Follow standard analysis and append to .roo/tmp/release-notes/temp_pr_analysis_v[version].md.</message>
381+
<message>Investigate PR #[NUMBER] (changelog-referenced, possibly out of original range) for release notes v[version]. Follow standard analysis and add to .roo/tmp/release-notes/temp_pr_analysis_v[version].md without overwriting existing content.</message>
382382
<todos>
383383
[ ] Fetch PR #[NUMBER] details using gh pr view --repo RooCodeInc/Roo-Code
384384
[ ] Extract linked issues from PR body
@@ -709,10 +709,10 @@ gh pr list --repo RooCodeInc/Roo-Code --state merged --base main --limit 1000 \
709709
Date format is YYYY-MM-DD (ISO 8601) where MM is month (01-12)
710710
</rule>
711711
<rule priority="CRITICAL">
712-
Parent task creates temp files, subtasks only append
712+
Parent task creates temp files, subtasks only add entries (never overwrite)
713713
</rule>
714714
<rule priority="CRITICAL">
715-
For each PR, the parent MUST create a subtask via new_task. The parent MUST NOT write PR analysis entries; only subtasks may append to .roo/tmp/release-notes/temp_pr_analysis_v[version].md. Do not proceed to changelog_alignment or compilation until all PR subtasks complete.
715+
For each PR, the parent MUST create a subtask via new_task. The parent MUST NOT write PR analysis entries; only subtasks may add entries to .roo/tmp/release-notes/temp_pr_analysis_v[version].md without overwriting existing content. Do not proceed to changelog_alignment or compilation until all PR subtasks complete.
716716
Even when the parent already has the PR number, title, description, or a user‑provided
717717
summary list, it MUST still create and wait on the per‑PR subtask. These summaries are
718718
insufficient for functional understanding of the change, discovery of linked issues, and

docs/advanced-usage/available-tools/insert-content.md

Lines changed: 0 additions & 130 deletions
This file was deleted.

docs/advanced-usage/available-tools/tool-use-overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Tools are organized into logical groups based on their functionality:
2929
|----------|---------|-------|------------|
3030
| **Read Group** | File system reading and exploration | [read_file](/advanced-usage/available-tools/read-file), [list_files](/advanced-usage/available-tools/list-files), [list_code_definition_names](/advanced-usage/available-tools/list-code-definition-names) | Code exploration and analysis |
3131
| **Search Group** | Pattern and semantic searching | [search_files](/advanced-usage/available-tools/search-files), [codebase_search](/advanced-usage/available-tools/codebase-search) | Finding code patterns and functionality |
32-
| **Edit Group** | File system modifications | [apply_diff](/advanced-usage/available-tools/apply-diff), [insert_content](/advanced-usage/available-tools/insert-content), [write_to_file](/advanced-usage/available-tools/write-to-file) | Code changes and file manipulation |
32+
| **Edit Group** | File system modifications | [apply_diff](/advanced-usage/available-tools/apply-diff), [write_to_file](/advanced-usage/available-tools/write-to-file) | Code changes and file manipulation |
3333
| **Browser Group** | Web automation | [browser_action](/advanced-usage/available-tools/browser-action) | Web testing and interaction |
3434
| **Command Group** | System command execution | [execute_command](/advanced-usage/available-tools/execute-command), [run_slash_command](/advanced-usage/available-tools/run-slash-command)* | Running scripts, building projects, executing command templates |
3535
| **MCP Group** | External tool integration | [use_mcp_tool](/advanced-usage/available-tools/use-mcp-tool), [access_mcp_resource](/advanced-usage/available-tools/access-mcp-resource) | Specialized functionality through external servers |
@@ -67,7 +67,6 @@ These tools help Roo find patterns and functionality across your codebase:
6767
These tools help Roo make changes to your code:
6868

6969
- [apply_diff](/advanced-usage/available-tools/apply-diff) - Makes precise, surgical changes to your code
70-
- [insert_content](/advanced-usage/available-tools/insert-content) - Adds new lines of content without modifying existing lines
7170
- [write_to_file](/advanced-usage/available-tools/write-to-file) - Creates new files or completely rewrites existing ones
7271

7372
### Browser Tools

docs/advanced-usage/available-tools/write-to-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ When the `write_to_file` tool is invoked, it follows this process:
7575

7676
1. **Parameter Validation**: Validates the required parameters and permissions
7777
- Checks that `path`, `content`, and `line_count` are provided
78-
- If `line_count` is missing/invalid, reverts any diff view changes and returns an error suggesting alternative tools (`apply_diff`, `insert_content`, etc.) if modifying an existing file.
78+
- If `line_count` is missing/invalid, reverts any diff view changes and returns an error suggesting alternative tools (`apply_diff`, etc.) if modifying an existing file.
7979
- Validates the file is allowed (not restricted by `.rooignore`)
8080
- Ensures the path is within the workspace boundaries
8181
- Tracks consecutive mistake counts for missing parameters

docs/features/rooignore.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ These tools directly check `.rooignore` before any file operation. If a file is
5353
* [`read_file`](/advanced-usage/available-tools/read-file): Will not read ignored files.
5454
* [`write_to_file`](/advanced-usage/available-tools/write-to-file): Will not write to or create new ignored files.
5555
* [`apply_diff`](/advanced-usage/available-tools/apply-diff): Will not apply diffs to ignored files.
56-
* [`insert_content`](/advanced-usage/available-tools/insert-content): Will not write to ignored files.
5756
* [`list_code_definition_names`](/advanced-usage/available-tools/list-code-definition-names): Will not parse ignored files for code symbols.
5857

5958
### File Discovery and Listing

docs/update-notes/v3.14.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This release introduces Gemini prompt caching, improves several tools, and inclu
1414
* Improve [`apply_diff`](/advanced-usage/available-tools/apply-diff) to work better with **Google Gemini 2.5** and other models
1515
* Automatically close files opened by edit tools (`apply_diff`, `insert_content`, `search_and_replace`, `write_to_file`) after changes are approved. This prevents cluttering the editor with files opened by Roo and helps clarify context by only showing files intentionally opened by the user.
1616
* Added the `search_and_replace` tool. This tool finds and replaces text within a file using literal strings or regex patterns, optionally within specific line ranges (thanks samhvw8!).
17-
* Added the [`insert_content`](/advanced-usage/available-tools/insert-content) tool. This tool adds new lines into a file at a specific location or the end, without modifying existing content (thanks samhvw8!).
17+
* Added the `insert_content` tool (now retired). This tool added new lines into a file at a specific location or the end, without modifying existing content (thanks samhvw8!).
1818
* Deprecated the `append_to_file` tool in favor of `insert_content` (use `line: 0`).
1919
* Correctly revert changes and suggest alternative tools when [`write_to_file`](/advanced-usage/available-tools/write-to-file) fails on a missing line count
2020
* Better progress indicator for [`apply_diff`](/advanced-usage/available-tools/apply-diff) tools (thanks qdaxb!)

docs/update-notes/v3.14.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ image: /img/social-share.jpg
4646
* Improve [`apply_diff`](/advanced-usage/available-tools/apply-diff) to work better with **Google Gemini 2.5** and other models
4747
* Automatically close files opened by edit tools (`apply_diff`, `insert_content`, `search_and_replace`, `write_to_file`) after changes are approved. This prevents cluttering the editor with files opened by Roo and helps clarify context by only showing files intentionally opened by the user.
4848
* Added the `search_and_replace` tool. This tool finds and replaces text within a file using literal strings or regex patterns, optionally within specific line ranges (thanks samhvw8!).
49-
* Added the [`insert_content`](/advanced-usage/available-tools/insert-content) tool. This tool adds new lines into a file at a specific location or the end, without modifying existing content (thanks samhvw8!).
49+
* Added the `insert_content` tool (now retired). This tool added new lines into a file at a specific location or the end, without modifying existing content (thanks samhvw8!).
5050
* Deprecated the `append_to_file` tool in favor of `insert_content` (use `line: 0`).
5151
* Correctly revert changes and suggest alternative tools when [`write_to_file`](/advanced-usage/available-tools/write-to-file) fails on a missing line count
5252
* Better progress indicator for [`apply_diff`](/advanced-usage/available-tools/apply-diff) tools (thanks qdaxb!)

docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ const config: Config = {
235235
from: ['/features/tools/execute-command'],
236236
},
237237
{
238-
to: '/advanced-usage/available-tools/insert-content',
239-
from: ['/features/tools/insert-content'],
238+
to: '/advanced-usage/available-tools/tool-use-overview',
239+
from: ['/features/tools/insert-content', '/advanced-usage/available-tools/insert-content'],
240240
},
241241
{
242242
to: '/advanced-usage/available-tools/list-code-definition-names',

sidebars.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const sidebars: SidebarsConfig = {
9292
'advanced-usage/available-tools/browser-action',
9393
'advanced-usage/available-tools/codebase-search',
9494
'advanced-usage/available-tools/execute-command',
95-
'advanced-usage/available-tools/insert-content',
9695
'advanced-usage/available-tools/list-code-definition-names',
9796
'advanced-usage/available-tools/list-files',
9897
'advanced-usage/available-tools/new-task',

0 commit comments

Comments
 (0)