MO

morph-search

High-performance code search and pattern matching that is 20 times faster than standard grep.

Install

mkdir -p .claude/skills/morph-search && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1096" && unzip -o skill.zip -d .claude/skills/morph-search && rm skill.zip

Installs to .claude/skills/morph-search

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Fast codebase search via WarpGrep (20x faster than grep)
56 charsno explicit “when” trigger
Beginner

Key capabilities

  • Perform high-speed codebase searches
  • Execute regex-based pattern matching
  • Edit files programmatically via command line

How it works

It utilizes WarpGrep to perform text and regex searches across a codebase, providing significantly faster results than standard grep.

Inputs & outputs

You give it
Search query or edit command
You get back
Search results or modified file content

When to use morph-search

  • Find regex patterns in large source directories
  • Search for function definitions
  • Edit code files via command line

About this skill

Morph Codebase Search

Fast, AI-powered codebase search using WarpGrep. 20x faster than traditional grep.

When to Use

  • Search codebase for patterns, function names, variables
  • Find code across large codebases quickly
  • Edit files programmatically

Usage

Search for code patterns

uv run python -m runtime.harness scripts/mcp/morph_search.py \
    --search "authentication" --path "."

Search with regex

uv run python -m runtime.harness scripts/mcp/morph_search.py \
    --search "def.*login" --path "./src"

Edit a file

uv run python -m runtime.harness scripts/mcp/morph_search.py \
    --edit "/path/to/file.py" --content "new content"

Parameters

ParameterDescription
--searchSearch query/pattern
--pathDirectory to search (default: .)
--editFile path to edit
--contentNew content for file (use with --edit)

Examples

# Find all async functions
uv run python -m runtime.harness scripts/mcp/morph_search.py \
    --search "async def" --path "./src"

# Search for imports
uv run python -m runtime.harness scripts/mcp/morph_search.py \
    --search "from fastapi import" --path "."

vs ast-grep

ToolBest For
morph/warpgrepFast text/regex search (20x faster)
ast-grepStructural code search (understands syntax)

MCP Server Required

Requires morph server in mcp_config.json with MORPH_API_KEY.

When not to use it

  • Structural code refactoring requiring syntax awareness

Prerequisites

WarpGrepMORPH_API_KEY

Limitations

  • Not syntax-aware
  • Requires MCP server configuration

How it compares

It is optimized for raw speed in text searching, whereas tools like ast-grep are better for syntax-aware structural searches.

Compared to similar skills

morph-search side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
morph-search (this skill)97moReviewBeginner
run-nx-generator53moReviewIntermediate
git-commit116moReviewBeginner
upgrading-expo34moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry