# Codebase Answers

### Codebase Answers

Codebase Answers let you ask the AI about your entire codebase. To use them, type Command+Enter in the chat or click the "with codebase" button in the input box. You can ask questions like "Where is the undo redo logic?" or "how do we handle auth tokens client side?."

<figure><img src="https://1581258177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8ErV6i18O2fXwbB9tnf5%2Fuploads%2F7qROuZd4sTy0HFH0Dkok%2Fimage.png?alt=media&#x26;token=df3abbdb-3b73-4cf2-973c-3a5bda42373f" alt=""><figcaption></figcaption></figure>

Tip: Click into "Advanced" into increase the number of AI scans that run throughout your code.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://metaverse-imagen.gitbook.io/ai-tools-research/ai-tools-main-categories/programming-and-code/code-generators/cursor-ide/codebase-answers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
