# Agent Mode

Agent Mode lets DinoAI create and modify files directly in your project. It's designed to turn natural language instructions into working dbt™ code.<br>

{% embed url="<https://youtu.be/cHsw1sJ0qD8>" %}

### Common Use Cases

{% hint style="info" %}

### Common Use Cases

* **Source definitions**: Create or update sources.yml with warehouse metadata
* **Model creation**: Generate staging, intermediate, and mart models
* **Documentation**: Document multiple models in seconds
* **Project configuration**: Configure dbt\_project.yml based on your folder structure
* **External integrations**: Pull information from Jira tickets or search web resources with Perplexity
* **Code standardization**: Apply consistent formatting and patterns across your codebase
  {% endhint %}

### How to Use Agent Mode

1. Click the **DinoAI icon** (🪄) in the right panel of the Code IDE
2. Agent Mode is the default - switch only if you're currently in [Ask Mode](https://docs.paradime.io/app-help/documentation/dino-ai/ask-mode)
3. Type a prompt describing what you want to create or modify
4. Review the suggested changes in preview boxes
5. Click **Accept** to apply or **Reject** to decline

{% @arcade/embed flowId="VqTUoffUh1HFg3upixuQ" url="<https://app.arcade.software/share/VqTUoffUh1HFg3upixuQ>" %}

{% hint style="info" %}
**Adding Context Makes DinoAI Smarter**

Provide context for better results:

* "Add File" for a specific reference file
* "Add Open Files" for all open editor tabs
* "Add Directory" for entire folders

[Learn more](https://docs.paradime.io/app-help/documentation/dino-ai/context) about context
{% endhint %}

### Key Features

#### Direct File Editing

DinoAI creates or modifies files based on your prompts, always showing previews before applying changes.

#### Warehouse Awareness

Connects to your data warehouse to understand your metadata, including: tables, columns, and relationships.

{% hint style="info" %}
**Built-in Safeguards**

* All changes require your explicit approval
* DinoAI won't run expensive queries without permission
* Follows your [.dinorules](https://docs.paradime.io/app-help/documentation/dino-ai/dino-rules) configurations for consistency
  {% endhint %}

### Effective Prompts

The more specific your prompt, the better the results:

```
"Create a staging model for the customers table in my raw_data source

Update sources.yml to include the new marketing tables.

Document all models in the marts/finance folder.
```

Want to see Agent Mode in action? Check out our detailed [Use Cases](https://docs.paradime.io/app-help/documentation/dino-ai/agent-mode/use-cases).


---

# 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://docs.paradime.io/app-help/documentation/dino-ai/agent-mode.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.
