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

# Agent Context (llms.txt)

> Give your coding agent full Morph context in ~9k tokens

## What this is

When your coding agent needs to integrate Morph, it needs to know the API format, tool definitions, and best practices. The llms.txt file contains all of this in a single document (\~9k tokens) that fits in any model's context window.

## How to use it

### Option 1: Add to your project config

Paste the contents of [llms-full.txt](https://docs.morphllm.com/llms-full.txt) into your project's agent configuration:

* **Claude Code**: Add to your project's `CLAUDE.md`
* **Cursor**: Add to `.cursorrules` or Settings → Rules for AI
* **Codex**: Add to `AGENTS.md`
* **Custom agent**: Include in your system prompt

### Option 2: Fetch at runtime

```typescript theme={null}
const morphDocs = await fetch('https://docs.morphllm.com/llms-full.txt').then(r => r.text());
// Include in your agent's system prompt or tool context
```

## What's included

The llms-full.txt file contains:

* **Fast Apply**: API format, prompt templates, the `<instruction>/<code>/<update>` format
* **WarpGrep**: How to call the search subagent, expected response format
* **Compact**: Compression API, query parameter usage
* **Tool definitions**: Copy-paste JSON tool schemas for Anthropic and OpenAI formats
* **Best practices**: Common mistakes and how to avoid them

<Note>
  The file is \~9k tokens. Small enough to include in a system prompt without meaningful context cost.
</Note>

## Next steps

<CardGroup cols={2}>
  <Card title="MCP Integration" icon="plug" href="/mcpquickstart">
    Zero-config integration for Claude Code, Cursor, Codex
  </Card>

  <Card title="SDK Quickstart" icon="bolt" href="/quickstart">
    Code examples for TypeScript and Python
  </Card>
</CardGroup>
