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

# Formal Agent

> Ask the Control Plane assistant to explain Formal, search your logs, and draft configuration

## Overview

Formal Agent is the AI assistant built into the Control Plane. Ask it questions in plain language. It can explain Formal, look up your configuration and logs, and draft changes for you to approve.

> [!NOTE]
>
> Formal Agent is not the Formal Endpoint's background process, which you start
> with `formal agent` and which the [Linux](https://docs.formal.ai/docs/guides/client-apps/linux.md)
> and [OIDC](https://docs.formal.ai/docs/guides/client-apps/oidc.md) guides call "the agent". It is
> also unrelated to the
> [Formal Endpoint for Kubernetes](https://docs.formal.ai/docs/guides/client-apps/kubernetes-egress.md).

## Open Formal Agent

* Click **Agent** in the sidebar to open the full page.
* On other pages, type in the **Ask Formal Agent** box to chat without leaving the page. Press `⌘J` (`Ctrl+J` on Windows and Linux) to show or hide it.
* From [Insights](https://docs.formal.ai/docs/guides/observability/insights.md), click **Open in Formal Agent** to investigate a finding.

Using Formal Agent requires the **Agent** permission. See [Permissions](https://docs.formal.ai/docs/guides/core-concepts/permissions.md).

## What It Can Do

| Task | Examples |
| - | - |
| Explain Formal | "How do session and request policies differ?" It searches these docs and the API reference. |
| Find things in the Control Plane | "Open the Connector that serves prod-postgres." It can navigate for you. |
| Investigate activity | "Who ran DELETE statements on billing this week?" It queries logs and aggregations. |
| Draft configuration | Policies, permissions, workflows, hooks, and network rules. It validates drafts before proposing them. |
| Make changes | After you approve, it calls the Formal API to apply a change. |

> [!TIP]
>
> To set up a common outcome without writing code, start with a
> [Recipe](https://docs.formal.ai/docs/guides/getting-started/recipes.md). Ask Formal Agent when you
> need something custom.

## Approvals

Formal Agent reads without asking, but it asks before it acts:

* **Changes:** Before it changes configuration, it asks **Allow Agent to make this control-plane change?** Click **Allow** or **Deny**. For drafted code, review the proposal and click **Approve Change**.
* **Screen control:** Before it clicks or types on the page, it asks **Allow screen control?** Choose **Allow** for one action, **Allow for Turn**, **Allow for Conversation**, or **Deny**.

Changes run in your browser session with your permissions. Formal Agent can't do anything that you can't do yourself.

> [!WARNING]
>
> Review every proposed change before you approve it. An approved change takes
> effect like any change you make by hand.

## Next Steps

> [card] [Recipes](https://docs.formal.ai/docs/guides/getting-started/recipes.md)
>
> Create common setups from guided templates

> [card] [Policies](https://docs.formal.ai/docs/guides/policies/introduction.md)
>
> Learn how policies work


## Related topics

- [Formal Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md)
- [Install Formal Endpoint on Linux](https://docs.formal.ai/docs/guides/client-apps/linux.md)
- [Formal Control Plane](https://docs.formal.ai/docs/guides/control-plane/overview.md)
- [Set Up Formal with Recipes](https://docs.formal.ai/docs/guides/getting-started/recipes.md)
- [Prevent Cloud Agents from Auto-Merging PRs](https://docs.formal.ai/docs/guides/example-use-cases/formal-endpoint-cloud-agents.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.