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

# Agent Integration Protocol

> Add support for an AI coding agent that Entire does not ship with

If your agent is not listed in our [native agent integrations](https://docs.entire.com/agents/overview.md), you can still integrate it with Entire. This can be done with the Agent Integration Protocol by building an `entire-agent-<name>` executable and putting it on your `$PATH`. Entire discovers it there and registers it as an agent.

## Add an Agent Integration

After you put the executable on your `$PATH`, install its hooks in an existing Entire repository:

```bash theme={null}
entire agent add NAME
```

During initial setup, select it with:

```bash theme={null}
entire enable --agent NAME
```

See [`entire agent add`](https://docs.entire.com/cli-reference/agent#agent-add) and [`entire enable --agent`](https://docs.entire.com/cli-reference/enable) for their flags and setup behavior.

> [!NOTE]
>
> Selecting an agent by name with `entire agent add` or `entire enable --agent` works before any setting is on, and sets `external_agents` to `true` in `.entire/settings.local.json`. If you install an integration executable after setup, run `entire agent add NAME` or add `"external_agents": true` to `.entire/settings.local.json`. Entire ignores the setting in `.entire/settings.json`. The setting key keeps its original name.

> [!WARNING]
>
> Agent integrations receive repository paths and session data, and they run with the same filesystem access as the Entire CLI. Only install integrations you trust.

## Protocol Reference

> [card] [Build an Agent Integration](https://docs.entire.com/agents/agent-integration-protocol/build-an-agent-integration.md)
>
> Scaffold an executable and implement the protocol with working examples.

> [card] [Architecture](https://docs.entire.com/agents/agent-integration-protocol/architecture.md)
>
> See how the CLI discovers an integration and invokes it.

> [card] [Lifecycle](https://docs.entire.com/agents/agent-integration-protocol/lifecycle.md)
>
> Follow the CLI calls through discovery, setup, sessions, and shutdown.

> [card] [Commands](https://docs.entire.com/agents/agent-integration-protocol/commands.md)
>
> Implement each subcommand, input, and output.

> [card] [Data Model](https://docs.entire.com/agents/agent-integration-protocol/data-model.md)
>
> Use the JSON shapes that the protocol exchanges.
