Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt

Use this file to discover all available pages before exploring further.

GitHubGitLabBitbucketAzure DevOps
This feature allows you to ask questions about a pull request based on its code changes. Questions are answered using the current pull request context, so they should be specific and clearly phrased. You can invoke this feature manually by commenting on the pull request using the /ask command as follows:
/ask ...
Pull request comment showing the slash ask command with a question
Qodo bot response to an ask command showing PR quality rating and analysis

Asking questions on specific lines

GitHubGitLab
You can run the /ask command on specific lines of code directly from the pull request diff view. Qodo will answer questions based on the code changes in the selected lines.
1
Click the + icon next to the line number to select a line. To select multiple lines, click the + icon on the first line, then click and drag to select additional lines.
2
In the comment box, type /ask followed by your question.
3
Click Add single comment.
Each question is handled independently. The feature does not retain context from previous questions.
GitHub diff view showing inline ask command and Qodo bot response with simplified code

Asking questions about images

You can ask questions about images included in pull request comments. In this case, the entire pull request code is used as context.
/ask "..."[Image](https://real_link_to_image)
Where https://real_link_to_image is a direct link to the image. GitHub allows pasting images directly into comments, but pasted images do not provide a direct image URL. To obtain a direct link:
1
Post a comment containing only the image.
GitHub pull request comment containing only an image to obtain a direct image URL
2
Click the menu on the top-right of the comment and select Quote reply.
GitHub pull request comment context menu showing Quote reply option
3
In the reply box, add your question below the image using the /ask command.
GitHub pull request comment showing ask command posted with image reference below the diff
GitHub comment reply box showing image markdown and ask command typed below it
4
Post the comment to receive the answer.
Qodo response to ask command answering a question about the pull request changes