> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat

> Have conversations with CodeAnt AI directly on your pull requests

## Overview

CodeAnt AI's chat feature lets you have real-time conversations directly within your pull requests. Ask questions, challenge review suggestions, request deeper analysis, or get clarification — all without leaving your PR.

## How It Works

### Ask a Question on the PR

Tag CodeAnt AI in any PR comment to ask a question about the overall changes:

```plaintext theme={null}
@codeant-ai ask: Your question here
```

You'll receive a contextually accurate answer within seconds, grounded in the actual code changes in the PR.

### Ask Inline Questions

Reply to a specific line or code block to ask targeted questions:

```plaintext theme={null}
@codeant-ai: Why was this timeout value chosen?
```

CodeAnt AI analyzes the surrounding code context and the full diff to provide a relevant answer.

### Respond to Review Comments

When CodeAnt AI posts a review comment, you can reply directly to it:

* **Ask for more details:** `@codeant-ai: Can you explain the impact of this change?`
* **Challenge a suggestion:** `@codeant-ai: Do not suggest this as I am fine with the current behavior`
* **Request alternatives:** `@codeant-ai: Are there other ways to fix this?`

<Accordion title="Example: Dismissing a Suggestion">
  A developer told CodeAnt AI to stop flagging type error and value error issues for a repository. CodeAnt AI saved this as a customized review instruction and applied it to all matching files.

  <img src="https://mintcdn.com/codeantai/q1mptv9VxSkpnEvR/images/pull_request/features/chat/create_learning.png?fit=max&auto=format&n=q1mptv9VxSkpnEvR&q=85&s=3df39c23a77218148ccf318b43289643" alt="Dismissing a suggestion" width="832" height="605" data-path="images/pull_request/features/chat/create_learning.png" />
</Accordion>

<Accordion title="Example: Asking a Follow-Up">
  After reviewing the quality gate results, a developer asked:

  > `@codeant-ai: Are we using the LLM properly to filter out false positives?`

  CodeAnt AI responds with an analysis of the current false positive filtering logic, referencing the specific code paths involved.
</Accordion>

## Use Cases

| Scenario                  | Example Command                                                         |
| ------------------------- | ----------------------------------------------------------------------- |
| Understand a code change  | `@codeant-ai ask: What does this PR change in the authentication flow?` |
| Validate a review comment | `@codeant-ai: Is this really a critical issue?`                         |
| Get architectural context | `@codeant-ai ask: How does this module interact with the API layer?`    |
| Dismiss a suggestion      | Reply to the comment with your reasoning                                |
| Request a re-review       | `@codeant-ai: review`                                                   |

## Examples

**1. Ask the entire pull request**

<img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/features/question_answering/ask_pr.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=49fe42a5b05c3c3079d4e48424974a6e" alt="PR Questions" width="1868" height="1588" data-path="images/pull_request/features/question_answering/ask_pr.png" />

**2. Ask inline questions**

<img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/features/question_answering/ask_inline.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=64af26fc20af2462efaeb00c22789f80" alt="Inline questions" width="1422" height="1752" data-path="images/pull_request/features/question_answering/ask_inline.png" />

**3. Ask questions to validate reviews**

<img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/features/question_answering/ask_review.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=e6b57baa7fb28834a5bc0e9eece4f3c4" alt="Validate reviews" width="1370" height="1722" data-path="images/pull_request/features/question_answering/ask_review.png" />
