Walks through installing GrepAI, setting up Ollama for local embeddings, initializing a project, indexing code, and running semantic searches.
Ships in grepai-getting-started. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill provides a complete walkthrough to get GrepAI running and searching your code in 5 minutes.
brew install yoanbernabeu/tap/grepai
curl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | sh
irm https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.ps1 | iex
Verify: grepai version
brew install ollama
ollama serve &
ollama pull nomic-embed-text
curl -fsSL https://ollama.com/install.sh | sh
ollama serve &
ollama pull nomic-embed-text
Verify: curl http://localhost:11434/api/tags
Navigate to your project and initialize GrepAI:
cd /path/to/your/project
grepai init
This creates .grepai/config.yaml with default settings:
nomic-embed-text modelStart the watch daemon to index your code:
grepai watch
What happens:
.gitignore).grepai/index.gobFirst indexing output:
🔍 GrepAI Watch
Scanning files...
Found 245 files
Processing chunks...
████████████████████████████████ 100%
Indexed 1,234 chunks
Watching for changes...
For long-running projects:
# Start in background
grepai watch --background
# Check status
grepai watch --status
# Stop when done
grepai watch --stop
Now search semantically:
# Basic search
grepai search "authentication flow"
# Limit results
grepai search "error handling" --limit 5
# JSON output for scripts
grepai search "database queries" --json
Score: 0.89 | src/auth/middleware.go:15-45
──────────────────────────────────────────
func AuthMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
token := c.GetHeader("Authorization")
if token == "" {
c.AbortWithStatus(401)
return
}
// Validate JWT token...
}
}
Score: 0.82 | src/auth/jwt.go:23-55
──────────────────────────────────────────
func ValidateToken(tokenString string) (*Claims, error) {
token, err := jwt.Parse(tokenString, func(t *jwt.Token) (interface{}, error) {
return []byte(secretKey), nil
})
// ...
}
Trace function relationships:
# Who calls this function?
grepai trace callers "Login"
# What does this function call?
grepai trace callees "ProcessPayment"
# Full dependency graph
grepai trace graph "ValidateToken" --depth 3
# 1. Install (once)
brew install yoanbernabeu/tap/grepai
brew install ollama && ollama serve & && ollama pull nomic-embed-text
# 2. Setup project (once per project)
cd /your/project
grepai init
# 3. Index (run in background)
grepai watch --background
# 4. Search (as needed)
grepai search "your query here"
# 5. Trace (as needed)
grepai trace callers "FunctionName"
| Command | Purpose |
|---|---|
grepai init | Initialize project config |
grepai watch | Start indexing daemon |
grepai watch --background | Run daemon in background |
grepai watch --status | Check daemon status |
grepai watch --stop | Stop daemon |
grepai search "query" | Semantic search |
grepai search --json | JSON output |
grepai trace callers "fn" | Find callers |
grepai trace callees "fn" | Find callees |
grepai status | Index statistics |
grepai version | Show version |
Be descriptive, not literal:
Describe intent:
Use English:
After mastering the basics:
grepai-embeddings-* skillsgrepai-storage-* skillsgrepai-search-* skillsgrepai-mcp-* skillsSuccessful quickstart:
✅ GrepAI Quickstart Complete
Project: /path/to/your/project
Files indexed: 245
Chunks created: 1,234
Embedder: Ollama (nomic-embed-text)
Storage: GOB (local file)
Try these searches:
- grepai search "main entry point"
- grepai search "database connection"
- grepai search "error handling"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/grepai-getting-started:grepai-quickstartfrom grepai-getting-started
npx claudepluginhub yoanbernabeu/grepai-skills --plugin grepai-getting-started3 skills in this plugin
/grepai-installationMulti-platform installation guide for GrepAI. Use this skill when installing GrepAI on macOS, Linux, or Windows./grepai-ollama-setupInstall and configure Ollama for local embeddings with GrepAI. Use this skill when setting up private, local embedding generation.Other plugins' skills for the same job