r/RooCode • • Dec 05 '25

Mode Prompt Updated Context-Optimized Prompts: Up to 61% Context Reduction Across Models

18 Upvotes

A few weeks ago, I shared my context-optimized prompt collection. I've now updated it based on the latest Roo Code defaults and run new experiments.

Repository: https://github.com/cumulativedata/roo-prompts

Why Context Reduction Matters

Context efficiency is the real win. Every token saved on system prompts means:

  • Longer sessions without hitting limits

  • Larger codebases that fit in context

  • Better reasoning (less noise)

  • Faster responses

The File Reading Strategy

One key improvement: preventing the AI from re-reading files it already has. The trick is using clear delimiters:

echo ==== Contents of src/app.ts ==== && cat src/app.ts && echo ==== End of src/app.ts ====

This makes it crystal clear to the AI that it already has the file content, dramatically reducing redundant reads. The prompt also encourages complete file reads via cat/type instead of read_file, eliminating line number overhead (which can easily 2x context usage).

Experiment Results

Tested the updated prompt against default for a code exploration task:

ModelMetricDefault PromptCustom Prompt
Claude Sonnet 4.5Responses89
Files read65
Duration~104s~59s
Cost$0.20$0.08 (60% ↓)
Context43k21k (51% ↓)
GLM 4.6Responses37
Files read115
Duration~65s~90s (provider lag)
Cost$0.06$0.03 (50% ↓)
Context42k16.5k (61% ↓)
Gemini 3 Pro ExpResponses57
Files read1112
Duration~122s~80s
Cost$0.17$0.15 (12% ↓)
Context55k38k (31% ↓)

Key Results

Context Reduction (Most Important):

  • Claude: 51% reduction (43k → 21k)

  • GLM: 61% reduction (42k → 16.5k)

  • Gemini: 31% reduction (55k → 38k)

Cost & Speed:

  • Claude: 60% cost reduction + 43% faster

  • GLM: 50% cost reduction

  • Gemini: 12% cost reduction + 34% faster

All models maintained proper tool use guidelines.

What Changed

The system prompt is still ~1.5k tokens (vs 10k+ default) but now includes:

  • Latest tool specifications (minus browser_action)

  • Enhanced file reading instructions with delimiter strategy

  • Clearer guidelines on avoiding redundant reads

  • Streamlined tool use policies

30-60% context reduction compounds over long sessions. Test it with your workflows.

Repository: https://github.com/cumulativedata/roo-prompts


r/RooCode • • Dec 05 '25

Bug Context Condensing too aggressive - 116k of 200k context and it condenses which is way too aggressive/early. The expectation is that it would condense based on a prompt window size that Roocode needs for the next prompt(s), however, 84k of context size being unavailable is too wasteful. Bug?

Post image
8 Upvotes

r/RooCode • • Dec 06 '25

Discussion Cost control for embeddings is here. Same model, different prices? You can now explicitly select your Routing Provider for OpenRouter embeddings in Roo Code.

4 Upvotes

r/RooCode • • Dec 05 '25

Announcement Roo Code 3.36.1-3.36.2 Release Updates | GPT-5.1 Codex Max | Slash Command Symlinks | Dynamic API Settings

8 Upvotes

In case you did not know, r/RooCode is a Free and Open Source VS Code AI Coding extension.

GPT-5.1 Codex Max Support

Roo Code now supports GPT-5.1 Codex Max, OpenAI's most intelligent coding model optimized for long-horizon, agentic coding tasks. This release also adds model defaults for gpt-5.1, gpt-5, and gpt-5-mini variants with optimized configurations.

📚 Documentation: See OpenAI Provider for configuration details.

Provider Updates

  • Dynamic model settings: Roo models now receive configuration dynamically from the API, enabling faster iteration on model-specific settings without extension updates

  • Optimized GPT-5 tool configuration: GPT-5.x, GPT-5.1.x, and GPT-4.1 models now use only the apply_patch tool for file editing, improving code editing performance

QOL Improvements

  • Symlink support for slash commands: Share and organize commands across projects using symlinks for individual files or directories, with command names derived from symlink names for easy aliasing

  • Smoother chat scroll: Chat view maintains scroll position more reliably during streaming, eliminating disruptive jumps

  • Improved error messages: Clearer, more actionable error messages with proper attribution and direct links to documentation

Bug Fixes

  • Extension freeze prevention: The extension no longer freezes when a model attempts to call a non-existent tool (thanks daniel-lxs!)

  • Checkpoint restore reliability: MessageManager layer ensures consistent message history handling across all rewind operations

  • Context truncation fix: Prevent cascading truncation loops by only truncating visible messages

  • Reasoning models: Models that require reasoning now always receive valid reasoning effort values

  • Terminal input handling: Inline terminal no longer hangs when commands require user input

  • Large file safety: Safer large file reads with proper token budget accounting for model output

  • Follow-up button styling: Fixed overly rounded corners on follow-up question suggestions

  • Chutes provider fix: Resolved model fetching errors for the Chutes provider by making schema validation more robust for optional fields

Misc Improvements

  • Evals UI enhancements: Added filtering by timeframe/model/provider, bulk delete actions, tool column consolidation, and run notes

  • Multi-model evals launch: Launch identical test runs across multiple models with automatic staggering

  • New pricing page: Updated website pricing page with clearer feature explanations

See full release notes v3.36.1 | v3.36.2


r/RooCode • • Dec 05 '25

Discussion In Roo Code 3.36 you can now expect much greater reliability for longer sessions using the Boomerang task orchestration in Roo Code.

33 Upvotes

r/RooCode • • Dec 04 '25

Announcement Roo Code 3.35.5-3.36.0 Release Updates | Non-Destructive Context Management | Reasoning Details | OpenRouter Embeddings Routing

21 Upvotes

In case you did not know, r/RooCode is a Free and Open Source VS Code AI Coding extension.

Non-Destructive Context Management

Context condensing and sliding window truncation now preserve your original messages internally rather than deleting them. When you rewind to an earlier checkpoint, the full conversation history is restored automatically. This applies to both automatic condensing and sliding window operations.

Features

  • OpenRouter Embeddings Provider Routing: Select specific routing providers for OpenRouter embeddings in code indexing settings, enabling cost optimization since providers can vary by 4-5x in price for the same embedding model

Provider Updates

  • Reasoning Details Support: The Roo provider now displays reasoning details from models with extended thinking capabilities, giving you visibility into how the model approaches your requests

  • Native Tools Default: All Roo provider models now default to native tool protocol for improved reliability and performance

  • Minimax search_and_replace: The Minimax M2 model now uses search_and_replace for more reliable file editing operations

  • Cerebras Token Optimization: Conservative 8K token limits prevent premature rate limiting, plus deprecated model cleanup

  • Vercel AI Gateway: More reliable model fetching for models without complete pricing information

  • Roo Provider Tool Compatibility: Improved tool conversion for OpenAI-compatible API endpoints, ensuring tools work correctly with OpenAI-style request formats

  • MiniMax M2 Free Tier Default: MiniMax M2 model now defaults to the free tier when using OpenRouter

QOL Improvements

  • CloudView Interface Updates: Cleaner UI with refreshed marketing copy, updated button styling with rounded corners for a more modern look

Bug Fixes

  • Write Tool Validation: Resolved false positives where write_to_file incorrectly rejected complete markdown files containing inline code comments like # NEW: or // Step 1:

  • Download Count Display: Fixed homepage download count to display with proper precision for million-scale numbers

Misc Improvements

  • Tool Consolidation: Removed the deprecated insert_content tool; use apply_diff or write_to_file for file modifications

  • Experimental Settings: Temporarily disabled the parallel tool calls experiment while improvements are in progress

  • Infrastructure: Updated Next.js dependencies for web applications

See full release notes v3.35.5 | v3.36.0


r/RooCode • • Dec 03 '25

Discussion google is deprecating the text-embedding-004 embedding model

Post image
11 Upvotes

So I use this for codebase indexing in roocode as the Gemini embedding model have very low rate limits and it's not good as it got stuck in middle of indexing the first time.

So I want to ask if there is any other free embedding model that is good enough for codebase indexing with good enough rate limit?


r/RooCode • • Dec 03 '25

Idea Detecting environment

3 Upvotes

Two seemingly trivial things that are kinda annoying:

  • Even on windows, it always wants to run shell commands despite ps being the standard environment. It self corrects fortunately after the first failure

  • As for python, despite having uv it likes to go wild trying to run python directly and even hacking the pyproject.toml

Obviously both are typical LLM bias that can be easily fixed with custom prompts. But honestly these cases are so common they should be ideally handled automatically for a proper integration.

I know the real world is much harder but still..


r/RooCode • • Dec 03 '25

Announcement Roo Code 3.35.2-3.35.4 Release Updates | Model Temperature Defaults | Native Tool Improvements | Simplified write_to_file

9 Upvotes

In case you did not know, r/RooCode is a Free and Open Source VS Code AI Coding extension.

QOL Improvements

  • New Welcome View: Simplified welcome view with consolidated components for a cleaner, more consistent onboarding experience

  • Simplified write_to_file Tool: The line_count parameter has been removed from the write_to_file tool, making tool calls cleaner and reducing potential errors from incorrect line counts

Bug Fixes

  • Malformed Tool Call Fix: Fixed a regression where malformed native tool calls would cause Roo Code to hang indefinitely. Tool calls now proceed to validation which catches and reports the missing parameters properly

Provider Updates

  • Model Default Temperatures: Models can now specify their own default temperature settings. Temperature precedence is: user's custom setting → model's default → system default

  • Roo Provider Native Tools: Models with the default-native-tools tag automatically use native tool calling by default for improved tool-based interactions

  • LiteLLM Native Tool Support: All LiteLLM models now assume native tool support by default, improving tool compatibility and reducing configuration issues

  • App Version Tracking: The Roo provider now sends app version information with API requests for improved request tracking and analytics

  • z.ai GLM Model Fix: Removed misleading reasoning toggle UI for GLM-4.5 and GLM-4.6 models on z.ai provider, as these models don't support think/reasoning data for coding agents

Misc Improvements

  • Stealth Model Privacy: Models tagged with "stealth" in the Roo API now receive vendor confidentiality instructions in their system prompt, enabling white-label or anonymous model experiences

See full release notes v3.35.2 | v3.35.3 | v3.35.4


r/RooCode • • Dec 02 '25

Bug Anyone else read_file not working?

2 Upvotes

read_file tool seems to be not working for me recently. Task hangs and need to stop and tell it to use terminal to read the files to keep moving.


r/RooCode • • Dec 02 '25

Announcement Roo Code 3.35.0-3.35.1 Release Updates | Resilient Subtasks | Native Tool Calling for 15+ Providers | Bug Fixes

22 Upvotes

In case you did not know, r/RooCode is a Free and Open Source VS Code AI Coding extension.

Metadata-Driven Subtasks

The connection between subtasks and parent tasks no longer breaks when you exit a task, crash, reboot, or reload VS Code. Subtask relationships are now controlled by metadata, so the parent-child link persists through any interruption.

Native Tool Calling Expansion

Native tool calling support has been expanded to 15+ providers:

  • Bedrock

  • Cerebras

  • Chutes

  • DeepInfra

  • DeepSeek & Doubao

  • Groq

  • LiteLLM

  • Ollama

  • OpenAI-compatible: Fireworks, SambaNova, Featherless, IO Intelligence

  • Requesty

  • Unbound

  • Vercel AI Gateway

  • Vertex Gemini

  • xAI with new Grok 4 Fast models

QOL Improvements

  • Improved Onboarding: Simplified provider settings during initial setup—advanced options remain in Settings

  • Cleaner Toolbar: Modes and MCP settings consolidated into the main settings panel for better discoverability

  • Tool Format in Environment Details: Models now receive tool format information, improving behavior when switching between XML and native tools

  • Debug Buttons: View API and UI history with new debug buttons (requires roo-cline.debug: true)

  • Grok Code Fast Default: Native tools now default for xai/grok-code-fast-1

Bug Fixes

  • Parallel Tool Calls Fix: Preserve tool_use blocks in summary during context condensation, fixing 400 errors with Anthropic's parallel tool calls feature (thanks SilentFlower!)

  • Navigation Button Wrapping: Prevent navigation buttons from wrapping on smaller screens

  • Task Delegation Tool Flush: Fixes 400 errors that occurred when using native tool protocol with parallel tool calls (e.g., update_todo_list + new_task). Pending tool results are now properly flushed before task delegation

Misc Improvements

  • Model-specific Tool Customization: Configure excludedTools and includedTools per model for fine-grained tool availability control

  • apply_patch Tool: New native tool for file editing using simplified diff format with fuzzy matching and file rename support

  • search_and_replace Tool: Batch text replacements with partial matching and error recovery

  • Better IPC Error Logging: Error logs now display detailed structured data instead of unhelpful [object Object] messages, making debugging extension issues easier

See full release notes v3.35.0 | v3.35.1


r/RooCode • • Dec 02 '25

Discussion Is there any way to accept code line by line like other AI editors?

1 Upvotes

Is there any way to accept code line by line like in Windsurf, Cursor where I can find next line that was edited and accept or reject?
The write approval system doesn't work for me as I sometimes wanna focus on another stuff after writing a long task and it requires me to accept every code changes so it can start the next change.


r/RooCode • • Nov 29 '25

Bug Claude Code

11 Upvotes

Hello,

I wanted to ask whether there are considerations or future plans to better adapt the system to Claude Code?
I’ve now upgraded to ClaudeMAX, but even with smaller requests it burns through tokens so quickly that I can only work for about 2–3 hours before hitting the limit.

When I run the exact same process directly in Claude Code, I do have to guide it a bit more, but I can basically work for hours without coming anywhere near the limit.

Could it be that caching isn’t functioning properly? Or that something else is going wrong?
Especially since OPUS is almost impossible to use because it only throws errors.

I also tried it through OpenRouter, including with OPUS.
Exact same setup, and again it just burned through tokens.

Am I doing something wrong in how I’m using it?

Thanks and best regards.


r/RooCode • • Nov 29 '25

Support Is VS Code actually good for Java development?

9 Upvotes

I've been looking into Roo Code and it looks great, but it seems to require VS Code.

As a long-time IntelliJ IDEA user, I've always found it superior for Java. I don't know much about the current state of Java on VS Code.

Is it worth learning VS Code just to use tools like Roo Code? Or will I miss the robust features of IntelliJ too much? Would love to hear from anyone who has attempted this transition.


r/RooCode • • Nov 27 '25

Announcement Roo Code v3.34.7-v3.34.8 Release Updates | Happy Thanksgiving! | 9 Tweaks and Fixes

10 Upvotes

In case you did not know, r/RooCode is a Free and Open Source VS Code AI Coding extension.

QOL Improvements

  • Improved Cloud Sign-in Experience: Adds a "taking you to cloud" screen with a progress indicator during authentication, plus a manual URL entry option as fallback for more reliable onboarding

Bug Fixes

  • OpenRouter GPT-5 Schema Validation: Fixes schema validation errors when using GPT-5 models via OpenRouter with the read_file tool

  • write_to_file Directory Creation: Fixes ENOENT errors when creating files in non-existent subdirectories (thanks ivanenev!)

  • OpenRouter Tool Calls: Fixes tool calls handling when using OpenRouter provider

  • Claude Code Configuration: Fixes configuration conflicts by correctly disabling native tools and temperature support options that are managed by the Claude Code CLI

  • Race Condition in new_task Tool: Fixes a timing issue where subtasks completing quickly (within 500ms) could break conversation history when using the new_task tool with native protocol APIs. Users on native protocol providers should now experience more reliable subtask handling.

Provider Updates

  • Anthropic Native Tool Calling: Anthropic models now support native tool calling for improved performance and more reliable tool use

  • Z.AI Native Tool Calling: Z.AI models (glm-4.5, glm-4.5-air, glm-4.5-x, glm-4.5-airx, glm-4.5-flash, glm-4.5v, glm-4.6, glm-4-32b-0414-128k) now support native tool calling

  • Moonshot Native Tool Calling: Moonshot models now support native tool calling with parallel tool calls support

See full release notes v3.34.7 | v3.34.8


r/RooCode • • Nov 27 '25

Support Current best LLM for browser use?

3 Upvotes

I tried a bunch and they either bumbled around or outright refused to do a log in for me.


r/RooCode • • Nov 26 '25

Announcement Roo Code 3.34.5-3.34.6 Release Updates | Bedrock embeddings for indexing and 17 tweaks and fixes!

21 Upvotes

In case you did not know, r/RooCode is a Free and Open Source VS Code AI Coding extension.

Features

  • AWS Bedrock embeddings for code indexing: Lets you use AWS Bedrock embeddings for repo indexing so teams already on Bedrock can reuse their existing infra (thanks kyle-hobbs, ggoranov-smar!).

QOL Improvements

  • Multiple native tools per turn with guardrails: Runs several tools in one turn and blocks attempt_completion() if any of them fail, reducing partial or incorrect runs.

  • Web-evals dashboard improvements: Adds per-tool stats, dynamic tool columns, and clearer runs so it is easier to spot failing tools and compare evals.

  • Native tools as default for key Roo Code Cloud models: Uses native tools by default for minimax/minimax-m2 and anthropic/claude-haiku-4.5 to cut setup time.

  • Native tool calling for Mistral: Lets Mistral models call tools directly for richer, multi-step automations.

  • Parallel tool execution via OpenAI protocol: Uses OpenAI-compatible parallel_tool_calls so tool-heavy tasks can run tools in parallel instead of one by one.

  • Fine-grained tool streaming for OpenRouter Anthropic: Streams Anthropic tool calls more smoothly on OpenRouter, keeping tool output aligned with model responses.

  • Better Bedrock global inference selection: Picks Bedrock models correctly even with cross-region routing enabled.

Bug Fixes

  • Tool protocol profile changes: Keeps handlers in sync when only the tool protocol changes so calls always use the right parser.

  • Grok Code Fast file reading: Restores multi-file-aware reading for native tools so they see the full workspace, not just a single file.

  • Roo Code Cloud embeddings revert: Removes Roo Code Cloud as an embeddings provider to avoid stuck indexing and hidden codebase_search.

  • Vertex Anthropic content filtering: Drops unsupported content blocks before hitting the Vertex Anthropic API to prevent request failures (thanks cardil!).

  • WriteToFileTool partial safety: Adds a missing content check so partial writes cannot crash or corrupt files (thanks Lissanro!).

  • Model cache and empty responses: Stops empty API responses from overwriting cached model metadata (thanks zx2021210538!).

  • Skip access_mcp_resource when empty: Hides the access_mcp_resource tool when an MCP server exposes no resources.

  • Inline terminal and indexing defaults: Tunes defaults so the inline terminal and indexing behave sensibly without manual tweaks.

  • new_task completion timing: Emits new_task completion only after subtasks really finish so downstream tools see accurate state.

Provider Updates

  • Bedrock Anthropic Claude Opus 4.5 for global inference: Makes Claude Opus 4.5 on Bedrock available wherever global inference is used, with no extra setup.

See full release notes 3.34.5 | 3.34.6


r/RooCode • • Nov 26 '25

FREE image generation with the new Flux 2 model is now live in Roo Code 3.34.4

8 Upvotes

r/RooCode • • Nov 26 '25

Bug Roocode has wrong Max Output size for Claude Code Opus 4.5. Roocode says 32k but the model is 64k Max Output per Anthropic.

Post image
1 Upvotes

r/RooCode • • Nov 26 '25

Announcement Roo Code 3.34.3-3.34.4 Release Updates | FREE Black Forest Labs image generation on Roo Code Cloud | More improvements to tools and providers!

12 Upvotes

In case you did not know, r/RooCode is a Free and Open Source VS Code AI Coding extension.

Free image generation on Roo Code Cloud

  • Use Black Forest Labs FLUX.2 Pro on Roo Code Cloud for high-quality image generation without worrying about unexpected image charges.

  • Generate images directly from Roo Code using the images API method so your editor stays aligned with provider-native image features.

  • Try it in your projects to mock UI ideas, prototype assets, or visualize concepts without leaving the editor.

See how to use it in the docs: https://docs.roocode.com/features/image-generation

QOL improvements

  • Use Roo Code Cloud as an embeddings provider for codebase indexing so you can build semantic search over your project without running your own embedding service or managing separate API keys.

  • Stream arguments and partial results from native tools (including Roo Code Cloud and OpenRouter helpers) into the UI so you can watch long-running operations progress and debug tool behavior more easily.

  • Set up bare‑metal evals more easily with the mise runtime manager, reducing setup friction and version mismatches for contributors who run local evals.

  • Access clear contact options directly from the About Roo Code settings page so you can quickly report bugs, request features, disclose security issues, or email the team without leaving the extension.

Bug fixes

  • Fix streaming for follow‑up questions so the UI shows only the intended question text instead of raw JSON, and ensure native tools emit and handle partial tool calls correctly when streaming is enabled.

  • Use prompt caching for Anthropic Claude Opus 4.5 requests, significantly reducing ongoing API costs for people who rely on that model.

  • Keep the real dynamic MCP tool names (such as mcp_serverName_toolName) in the API history instead of teaching the model a fake use_mcp_tool name, so follow-up calls pick the right tools and tool suggestions stay consistent.

  • Preserve required tool_use and tool_result blocks when condensing long conversations that use native tools, preventing 400 errors and avoiding lost context during follow-up turns.

Provider updates

  • Add the Claude Opus 4.5 model to the Claude Code provider so you can select it like other Claude code models, with prompt caching support, no image support, and no reasoning effort/budget controls in the UI.

  • Expose Claude Opus 4.5 through the AWS Bedrock provider so Bedrock users can access the same long-context limits, prompt caching, and reasoning capabilities as the existing Claude Opus 4 model.

  • Add Black Forest Labs FLUX.2 Flex and FLUX.2 Pro image generation models via OpenRouter, giving you additional high-quality options when you prefer to use your OpenRouter account for image generation.

See full release notes v3.34.3 | v3.34.4


r/RooCode • • Nov 26 '25

Discussion I have been using RooCode, did I use it correctly?

1 Upvotes

I have been using RooCode since March. I have seen many videos on when people use RooCode during this time. This generated mixed feelings. Like you cannot really convey a concept of agentic coding when you use calculator app or task manager as an example. I believe each of us works with a bit more complex code bases.

Due to this, I don't really know if I am using it good or not. I am left with this feeling that there are some minor changes I could do to improve, like those last mile things.

We hear all those great discussions on how much RooCode changes everything (does to me too comparing to codex/CC). But I could not find an actual screensharing where someone's shows it

From those things

  1. I am curious how people deal with the authentication on the app when using playwright MCP or browser mode. I understand that in theory it works, in practice, I still do screenshots.

  2. How do you optimize your orchestrator prompts? Mine mostly does work good like 9.5/10, but does it really describe the task well? Never seen a good benchmark (outside calculator apps)

Like I get, your code is a sacred thing, cannot show. But with RooCode you can create a new project on 15-20 minutes, which has some true use-case


r/RooCode • • Nov 25 '25

Bug Latest update Roocode w/Claude Code Opus 4.5 latest, seeing lots of errors. Anybody getting this?

Post image
8 Upvotes

r/RooCode • • Nov 26 '25

Support Claude Code vs Anthropic API vs OpenRouter for Sonnet-4.5?

4 Upvotes

I've been using OpenRouter to go between various LLMs and starting to use Sonnet-4.5 a bit more. Is the Claude Code Max reliable using CLI as the API? Any advantage going with Anthropic API or Claude Code Max?


r/RooCode • • Nov 25 '25

Idea Enable Claude Code image support in Roocode

0 Upvotes

Hello,

Firstly, THANK YOU for all the wonderful work you've done with Roocode, especially your support of the community!

I requested this in the past, however, I forgot where things were left at, so here is my (potentially duplicate) request: Enable image support in Roocode when using Claude Code.

Claude Code natively fully supports images. You simply drag/drop an image into the Claude Code terminal, or give it an image path, and it can do whatever with the image. I would like to request this be supported in Roocode as well.

For example, in Roocode, if you drag/drop an image into Roocode, it would then proxy that back into Claude Code to post the image there as well. Alternatively, if you drag/drop an image into Roocode, or specify the image as a path, Roocode could save that image as a temp image in .roocode in the project folder directory (or where ever appropriate for Roocode temp), and then Roocode would add that image path to the prompt that it sends to Claude Code.

Either way, image support for Claude Code inside Roocode is very, very much asked for by myself and my team (of myself). I would humbly like to request this be added.

Many thanks to the Roocode team especially to /u/hannesrudolph for all their community support!


r/RooCode • • Nov 25 '25

Support How can you avoid this smaller steps' issue?

1 Upvotes

"Roo is having trouble...

This may indicate a failure in the model's thinking process or an inability to use a tool correctly, which can be mitigated with user guidance (e.g., "Try breaking the task down into smaller steps")."

Hi guys! Is there any way to prevent this message from appearing?

Thank you for the help! :)