PR-Agent will examine the code component and will extract the most relevant keywords to search for similar code:
-`extracted keywords`: the keywords that were extracted from the code by PR-Agent. the link will open a search page with the extracted keywords, to allow the user to modify the search if needed.
-`search context`: the context in which the search will be performed, organization's codebase or open-source code (Global).
-`similar code`: the most similar code components found. the link will open the code component in the relevant file.
-`relevant repositories`: the open-source repositories in which that are relevant to the searched code component and it's keywords.
To invoke the `similar code` tool manually, comment on the PR:
```
/find_similar_component COMPONENT_NAME
```
Where `COMPONENT_NAME` should be the name of a code component in the PR (class, method, function).
If there is a name ambiguity, there are two configurations that will help the tool to find the correct component:
-`--pr_find_similar_component.file`: in case there are several components with the same name, you can specify the relevant file.
-`--pr_find_similar_component.class_name`: in case there are several methods with the same name in the same file, you can specify the relevant class name.
If you are looking to search for similar code in the organization's codebase, you can click on the `Organization` checkbox, and it will invoke a new search command just for the organization's codebase.