Loading...
Loading...
Get started with GrepAI in 5 minutes. Use this skill for a complete walkthrough from installation to first search.
npx skill4agent add yoanbernabeu/grepai-skills grepai-quickstartbrew install yoanbernabeu/tap/grepaicurl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | shirm https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.ps1 | iexgrepai versionbrew install ollama
ollama serve &
ollama pull nomic-embed-textcurl -fsSL https://ollama.com/install.sh | sh
ollama serve &
ollama pull nomic-embed-textcurl http://localhost:11434/api/tagscd /path/to/your/project
grepai init.grepai/config.yamlnomic-embed-textgrepai watch.gitignore.grepai/index.gob🔍 GrepAI Watch
Scanning files...
Found 245 files
Processing chunks...
████████████████████████████████ 100%
Indexed 1,234 chunks
Watching for changes...# Start in background
grepai watch --background
# Check status
grepai watch --status
# Stop when done
grepai watch --stop# Basic search
grepai search "authentication flow"
# Limit results
grepai search "error handling" --limit 5
# JSON output for scripts
grepai search "database queries" --jsonScore: 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
})
// ...
}# 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 |
|---|---|
| Initialize project config |
| Start indexing daemon |
| Run daemon in background |
| Check daemon status |
| Stop daemon |
| Semantic search |
| JSON output |
| Find callers |
| Find callees |
| Index statistics |
| Show version |
grepai-embeddings-*grepai-storage-*grepai-search-*grepai-mcp-*✅ 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"