# Agent Mode

Agent Mode is ideal for more in-depth tasks, such as planning, researching, and executing complex workflows. It enables the AI to take a step back, analyze the entire project, and suggest architectural changes or new implementations. The AI operates more like an assistant, helping you plan the next steps, make architectural decisions, and ultimately deliver these changes.

**Key Features:**

* **Tool-Enhanced Flow:** In Agent Mode, PureCodeAI has access to more advanced tools that can analyze, test, and modify your code. This mode enables you to do in-depth research, code reviews, or implementation planning before making changes.
* **Research & Ideation:** The AI helps you explore different approaches and consider alternatives, making it easier to decide on the best implementation strategy.
* **High-Level Planning:** Agent Mode helps you lay out the steps for a feature or project and offers insights into the architecture, dependencies, and necessary components.
* **Execution Control:** While in this mode, the AI helps guide you through execution after thorough research and planning, reducing the risk of errors in complex features.

<figure><img src="https://1934073637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVx22AmjG9CHfbdGPtjJI%2Fuploads%2FdRlHfEsFWiDQDHp2QHlC%2Fscreenshot%20(43).png?alt=media&#x26;token=9d463c6e-9b46-4e72-91ae-1f2b1d912009" alt=""><figcaption></figcaption></figure>

**When to Use:**

* When planning new features or large-scale refactors and want the AI to guide you step-by-step.
* When exploring complex architectural decisions or assessing different approaches before implementing code changes.


---

# 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://purecodedocs.gitbook.io/docs/features/markdown/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.
