# Build with AI

> Let AI coding agents read these docs, connect to your workspace and propose changes.

Source: https://docs.ligament.ai/build-with-ai/

AI coding agents such as Claude Code and Cursor can build on Ligament the way a developer does: read the docs, look at your workspace’s records and app definitions, and propose changes. A person reviews every proposed change before it takes effect. This section shows how to set that up.

## Docs your agent can read

Every page of these docs is available in a form that’s easy for a model to read:

| What | Where |
| --- | --- |
| An index of every page, with a one-line summary each ([llms.txt](https://llmstxt.org) format) | [/llms.txt](https://docs.ligament.ai/llms.txt) |
| Every page in one Markdown file | [/llms-full.txt](https://docs.ligament.ai/llms-full.txt) |
| One page as Markdown | The page’s URL followed by `index.md`, for example [/developers/mcp/index.md](https://docs.ligament.ai/developers/mcp/index.md) |
| The REST API as OpenAPI | [/openapi.json](https://docs.ligament.ai/openapi.json) |
| Instructions to put in your repository | [/templates/AGENTS.md](https://docs.ligament.ai/templates/AGENTS.md) |

Each page also has **Copy as Markdown** and **View as Markdown** buttons next to its title, for pasting a page into a chat.

Point an agent at `https://docs.ligament.ai/llms.txt` and it can find the rest itself.

## Your workspace, through MCP

The [MCP server](https://docs.ligament.ai/developers/mcp/index.md) at `https://app.ligament.ai/api/mcp` gives an agent tools to query records, explain access, read your app spec and create changesets. What it can do depends on the API key you give it. [Connect an agent with MCP](https://docs.ligament.ai/build-with-ai/mcp-setup/index.md) has the setup for Claude Code, Claude Desktop, Cursor and other clients.

## Agents propose, people apply

The safe setup is an agent that can read and propose but not apply:

1.  Create a key with `spec:read`, `spec:propose` and `records:read`, named after the agent (for example “Claude Code (proposals only)”).
2.  The agent reads the current artefacts, edits them, checks its edit with a plan, and creates a **changeset** with a title and a note explaining why.
3.  A person opens the changeset in **Build › Changes**, reviews the plan and the diff, and applies or discards it.

The changeset records who proposed it and through which key, for example “Ada Admin via API key Claude Code (proposals only) (…4n9P)”, so you always know which changes came from an agent.

Two more safeguards apply even to keys that can apply changes. A key never does more than the person who created it can do right now, and when the workspace requires a person to apply changes made with a key (access rules, by default), an apply from a key becomes a proposal that waits for review. See [API keys and scopes](https://docs.ligament.ai/developers/api-keys/index.md) and [Let agents propose changes](https://docs.ligament.ai/guides/building-apps/agents-propose/index.md).

## Next

-   [Connect an agent with MCP](https://docs.ligament.ai/build-with-ai/mcp-setup/index.md)
-   [A prompt for your agent](https://docs.ligament.ai/build-with-ai/agent-prompt/index.md) that keeps it inside this flow
-   [AGENTS.md template](https://docs.ligament.ai/build-with-ai/agents-md/index.md) for repositories where agents work on your apps
