Skip to main content

Typing Your Requests

Roo Code is designed to understand natural language. You don't need to use any special commands or syntax to communicate with it. Just type your request in plain English, as if you were talking to a human developer.

Example of typing a request in Roo Code

Effective Request Strategies

Clearly state what you want Roo Code to do. Avoid vague or ambiguous language.

StrategyImplementation
Be specific"Fix the bug in calculateTotal that returns incorrect results" instead of "Fix the code"
Provide contextUse @ Context Mentions for file and code references
Break down tasksSubmit complex tasks in smaller manageable steps
Include examplesProvide sample code when you need specific formatting or style

Example Requests

create a new file named `utils.py` and add a function called `add` that takes two numbers as arguments and returns their sum
in the file @src/components/Button.tsx, change the color of the button to blue
find all instances of the variable `oldValue` in @/src/App.js and replace them with `newValue`
run the command `npm install` in the terminal
explain the function `calculateTotal` in @/src/utils.ts
@problems address all detected problems

Common Pitfalls to Avoid

DON'TDO
Vague requestsSpecify exactly what needs to be done
Assuming contextExplicitly reference files and functions
Excessive technical jargonUse clear, straightforward language
Multiple unrelated tasksSubmit one focused request at a time
Proceeding without confirmationCheck the code to make sure it's complete