# Ask Corfedo

> Ask Corfedo AI about your code in the browser, read the cited sources, and continue the conversation with follow-up questions.

Source: https://docs.corfedo.ai/use/ask/

Corfedo AI answers questions about your code. It searches and reads the repositories you can access and cites the files and lines its answer is based on.

## Before you begin

Your workspace has an AI profile you can use. A workspace administrator sets it up, see [Try it in the browser](https://docs.corfedo.ai/get-started/try-it-in-the-browser/#ask-corfedo-ai-a-question) shows how.

## Ask a question

### Open a new conversation

Select **Ask Corfedo AI** in the sidebar.

### Write your question

Ask the way you would ask a colleague who knows the code, for example "Who calls `DiscountPolicy.Evaluate`?" or "How does `acme/payments` retry a failed charge?". Name repositories, files or symbols when you know them.

### Send

Select Send. With **All my sources** under **Sources** the agent reads every repository you can access. To limit it, choose **Only selected** and select repositories or saved [contexts](https://docs.corfedo.ai/workspace/sources/contexts/) first. The profile menu next to Send sets the model and tools, see [Choose a profile](https://docs.corfedo.ai/use/ask/profiles/).

**Check:** the answer appears with citations to files and lines. Select a citation to open the code it refers to.

You can leave the page while the agent works. The answer continues and is there when you come back.

## Point the agent at code

Type `@` or select **Add context** to attach a repository, file or symbol. A pasted link to a file on your forge becomes an attachment too.

Context tells the agent where to start. It can still read other repositories unless **Sources** is set to **Only selected**.

## Check the answer

Citations open the code at the lines the agent read. **N sources** under the answer lists every file the agent used, cited or not. Select the "Thought for …" line above the answer to see the searches and reads behind it.

Type in **Ask a follow-up** to continue. The agent sees the earlier messages.

## Ask from other places

| From | How |
| --- | --- |
| The search box | Press Shift+Enter instead of Enter |
| Search results | **Ask about this search**, or select files and **Ask about N selected** |
| A file in the code browser | **Ask Corfedo**, with any selected lines attached |
| A finding, an advisory or a package under **Security** | **Ask Corfedo** |
| Slack | A direct message or a mention, see [Ask in Slack](https://docs.corfedo.ai/use/ask/slack/) |
| Microsoft Teams | A 1:1 chat or a mention, see [Ask in Teams](https://docs.corfedo.ai/use/ask/teams/) |
| Microsoft 365 Copilot | Choose the agent in Copilot Chat, see [Ask in Microsoft 365 Copilot](https://docs.corfedo.ai/use/ask/copilot/) |

In the browser, each one opens a new conversation with the reference attached. Nothing is sent until you select Send.

## When an answer does not arrive

| What you see | What to do |
| --- | --- |
| **Profile unavailable** | See [Choose a profile](https://docs.corfedo.ai/use/ask/profiles/#troubleshooting) |
| "Your monthly AI limit was reached." or "This workspace's monthly AI limit was reached." | Wait for the date it gives, or ask a workspace administrator to raise the limit |
| **Stopped** or a failure under the answer | Select **Retry** |
| **AI is not available right now.** | The providers of your profiles are turned off. Tell a workspace administrator. |
| **AI is not configured for this workspace.** | No profile is open to you. Ask a workspace administrator. |

## Related

- [Conversations](https://docs.corfedo.ai/use/ask/threads/) lists your earlier conversations.
- [Search your code](https://docs.corfedo.ai/use/search/) to find code yourself.
- [Ask from the CLI](https://docs.corfedo.ai/connect/cli/ask/) and the [AI API](https://docs.corfedo.ai/connect/api/ai/) ask from a terminal or an application. A coding agent asks over [MCP](https://docs.corfedo.ai/connect/mcp/tools/#ask-corfedo-ai).
