Skip to main content
Use the unified MorphClient to access all tools, or import individual clients for advanced use.

Fast Apply

Apply LLM edits to files at 10,500 tokens/s. Handles lazy edits with // ... existing code ... markers.
When to use: Agent needs to edit code files Returns: Unified diff + change stats (lines added/removed/modified) Speed: 10,500+ tokens/s (40% faster than search-and-replace)
Path security: SDK validates all file paths are within baseDir to prevent directory traversal attacks.

WarpGrep

A code search subagent that runs grep and file reads in a separate context window. No embeddings, no indexing.
When to use: Agent needs to find relevant code Returns: Matching files with the code that answers the query Speed: Under 6 seconds, 3.8 steps on average
Requires ripgrep on the machine running the search. See WarpGrep for GitHub search, streaming, and sandbox execution.

Git Operations

Remote repository storage for agent-built projects.
When to use: Agent builds apps and needs version control Returns: Standard git operations (init, clone, push, pull, etc.)
Fast push response: Git push returns in 200ms.

Standalone Clients (Advanced)

Need custom configuration per tool? Use standalone clients instead of MorphClient:
When to use: You need tool-specific configuration that differs from defaults (e.g., custom URLs, different timeouts per tool).

Next Steps

Examples

See real-world agent patterns

API Reference

Complete function signatures