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

# Add docs

<Badge color="outline-provider" size="sm" shape="pill" icon="github">GitHub</Badge>
<Badge color="outline-provider" size="sm" shape="pill" icon="gitlab">GitLab</Badge>

<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 `add_docs` tool scans the PR code changes, and automatically suggests documentation for any code components that changed in the PR.

The `add_docs` tool supports the programming languages: Python, Java, C++, JavaScript, TypeScript, C#.

## How to use the `add_docs` tool

**Manual usage**

Comment on the PR:

```bash theme={null}
/add_docs
```

You can also state a name of a specific component in the PR to get documentation only for that component:

```bash theme={null}
/add_docs component_name
```

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

## Configuration options

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

| Possible configurations | Default value | What they do                                                                                                                                |
| :---------------------- | :------------ | :------------------------------------------------------------------------------------------------------------------------------------------ |
| `docs_style`            | `sphinx`      | The exact style of the documentation (for python docstring). You can select from: `google`, `numpy`, `sphinx`, `restructuredtext`, `plain`. |
| `extra_instructions`    | none          | Optional extra instructions for the tool. For example: "focus on the changes in the file X", "Ignore changes in ..."                        |

## Example usage

<Frame>
  <img src="https://mintcdn.com/qodo/uIkZ6kAWHm6WXqrW/images/v1/image-166.png?fit=max&auto=format&n=uIkZ6kAWHm6WXqrW&q=85&s=3a1859fd65b10a8489a1aaee2811aef6" alt="" width="856" height="150" data-path="images/v1/image-166.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/qodo/uIkZ6kAWHm6WXqrW/images/v1/image-167.png?fit=max&auto=format&n=uIkZ6kAWHm6WXqrW&q=85&s=0df72bea7633582962a5cc35fb75bc00" alt="" width="853" height="783" data-path="images/v1/image-167.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/qodo/uIkZ6kAWHm6WXqrW/images/v1/image-168.png?fit=max&auto=format&n=uIkZ6kAWHm6WXqrW&q=85&s=e76a2ae9217b9d01adeb2f509bb553a4" alt="" width="767" height="797" data-path="images/v1/image-168.png" />
</Frame>
