> ## 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.

# Improve component

<Warning>
  **Git Integration (formerly Qodo Merge)** – AI code review agents for pull requests. This documentation describes the Qodo v1 experience. For the Qodo v2 documentation, click [here.](/code-review)
</Warning>

The `improve_component` tool generates code suggestions for a specific code component that changed in the PR. The `improve_component` tool supports the programming languages: Python, Java, C++, JavaScript, TypeScript, C#.

### How to use the `improve_component` tool

This tool can also be triggered interactively by using the [`analyze`](/v1/tools/tools-list/analyze) tool.

**Manual usage**

Comment on the PR: /improve\_component component\_name The tool will generate code suggestions for the selected component. If no component is stated, it will generate code suggestions for the largest component.

#### Choosing components

You can set the component name as the name of a specific component in the PR. To get a list of the components that changed in the PR and select the relevant component interactively, use the [`analyze`](/v1/tools/tools-list/analyze) tool.

### Configuration options

Configure the `improve_component` tool by setting configurations under the `pr_improve_component` part in your [configuration file](/v1/configuration/configuration-file/).

| Possible configurations | Default value | What they do                                                                                                         |
| :---------------------- | :------------ | :------------------------------------------------------------------------------------------------------------------- |
| `num_code_suggestions`  | `4`           | Number of code suggestions to provide.                                                                               |
| `extra_instructions`    | none          | Optional extra instructions for the tool. For example: "focus on the changes in the file X", "Ignore changes in ..." |
| `file`                  | none          | Lets you specify a relevant file in case there are several components with the same name.                            |
| `class_name`            | none          | Lets you specify a relevant class name in case there are several methods with the same name in the same file.        |

### Example usage

<Frame>
  <img src="https://mintcdn.com/qodo/uIkZ6kAWHm6WXqrW/images/v1/image-183.avif?fit=max&auto=format&n=uIkZ6kAWHm6WXqrW&q=85&s=d844a9e560871e072e081199f9689c32" alt="" width="1520" height="235" data-path="images/v1/image-183.avif" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/qodo/uIkZ6kAWHm6WXqrW/images/v1/image-184.avif?fit=max&auto=format&n=uIkZ6kAWHm6WXqrW&q=85&s=64b6f81c0aa9e7e9518215fd981f753a" alt="" width="1520" height="938" data-path="images/v1/image-184.avif" />
</Frame>
