Skip to main content

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 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

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
The file is ~9k tokens. Small enough to include in a system prompt without meaningful context cost.

Next steps

MCP Integration

Zero-config integration for Claude Code, Cursor, Codex

SDK Quickstart

Code examples for TypeScript and Python