
Push your code with
morph.git.push() first (see Repo Storage). Embedding takes 3-8 seconds in background.Installation
Quick Start
- MorphClient
- Anthropic
- OpenAI
- Vercel AI SDK
How It Works
Two-stage retrieval (~1000ms total):- Vector search (~240ms) - Embed query, HNSW index retrieves top 50 candidates
- GPU rerank (~630ms) - morph-rerank-v3 scores for precision
- Returns top 10 most relevant
Direct Usage
Search Tips
Good queries:- “Where is JWT validation implemented?”
- “Show database error handling”
- “Find the login flow”
- Single words (“auth”)
- Too vague (“code”)
- Too broad (“everything”)
Searching Specific Branches or Commits
By default, semantic search uses the latest commit onmain. You can search specific branches or exact commits:
- Latest Main (default)
- Specific Branch
- Exact Commit
Priority:
commitHash (if provided) > branch (if provided) > main (default)