grepai-config-reference
Skill20 starsChanged 34 days agoMITView on GitHub
Complete configuration reference for GrepAI. Use this skill when you need to understand all available configuration options.
- Reads credentials
In this repository26 other files it gives its agents.
- grepai-languagesSkill
- grepai-troubleshootingSkill
- grepai-workspacesSkill
- grepai-ignore-patternsSkill
- grepai-initSkill
- grepai-embeddings-lmstudioSkill
- grepai-embeddings-ollamaSkill
- grepai-embeddings-openaiSkill
- grepai-installationSkill
- grepai-ollama-setupSkill
- grepai-quickstartSkill
- grepai-chunkingSkill
- grepai-watch-daemonSkill
- grepai-mcp-claudeSkill
- grepai-mcp-cursorSkill
- grepai-mcp-toolsSkill
- grepai-search-advancedSkill
- grepai-search-basicsSkill
- grepai-search-boostingSkill
- grepai-search-tipsSkill
- grepai-storage-gobSkill
- grepai-storage-postgresSkill
- grepai-storage-qdrantSkill
- grepai-trace-calleesSkill
- grepai-trace-callersSkill
- grepai-trace-graphSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 326
Check your config is valid:
- Distinctive: line 332
If there are config errors, they'll be displayed.
- Distinctive: line 342
Start simple: Use defaults, optimize later
- Very specific: line 345
Secure API keys: Use environment variables with official endpoints.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GrepAI Configuration Reference
This skill provides a complete reference for all GrepAI configuration options in .grepai/config.yaml.
When to Use This Skill
- Understanding all available configuration options
- Optimizing GrepAI for your specific use case
- Troubleshooting configuration issues
- Setting up advanced configurations
Configuration File Location
/your/project/.grepai/config.yamlComplete Configuration Schema
version: 1
# ═══════════════════════════════════════════════════════════════
# EMBEDDER CONFIGURATION
# Converts code text into vector embeddings
# ═══════════════════════════════════════════════════════════════
embedder:
# Provider: ollama | openai | lmstudio
provider: ollama
# Model name (depends on provider)
# Ollama: nomic-embed-text, bge-m3, mxbai-embed-large
# OpenAI: text-embedding-3-small, text-embedding-3-large
# LM Studio: nomic-embed-text-v1.5, bge-small-en-v1.5
model: nomic-embed-text
# API endpoint URL
# Ollama default: http://localhost:11434
# LM Studio default: http://localhost:1234
# OpenAI: uses official API
endpoint: http://localhost:11434
# Vector dimensions (auto-detected if omitted)
# nomic-embed-text: 768
# text-embedding-3-small: 1536
# text-embedding-3-large: 3072
dimensions: 768
# API key (cloud providers). Literal value: no ${VAR} substitution.
# If empty, grepai reads OPENAI_API_KEY (or OPENROUTER_API_KEY,
# SYNTHETIC_API_KEY, REQUESTY_API_KEY), but only when endpoint is
# empty or the provider's official HTTPS host. A custom endpoint
# (Azure, LiteLLM, vLLM, proxy...) requires api_key here.
# api_key: ""
# Parallel requests (OpenAI only, for speed)
parallelism: 4
# ═══════════════════════════════════════════════════════════════
# STORE CONFIGURATION
# Where vector embeddings are stored
# ═══════════════════════════════════════════════════════════════
store:
# Backend: gob | postgres | qdrant
backend: gob
# PostgreSQL configuration (when backend: postgres)
postgres:
dsn: postgres://user:password@localhost:5432/grepai
# Qdrant configuration (when backend: qdrant)
qdrant:
endpoint: localhost
port: 6334
use_tls: false
api_key: your-qdrant-api-key # Optional
# collection: shared-index # Optional; default derived from the project path.
# When set, points carry a project_namespace (git origin URL), so
# clones of one repo share the index and other repos stay isolated.
# ═══════════════════════════════════════════════════════════════
# FRAMEWORK PROCESSING
# Pre-processing of single-file components (.vue)
# ═══════════════════════════════════════════════════════════════
framework_processing:
enabled: true
mode: auto # auto | require | off
# Node.js command name (node, nodejs, node20, node.exe) or an
# absolute path outside the project and its git repository.
# Anything else: warning, then fallback to `node` from PATH.
node_path: node
frameworks:
vue:
# Loads @vue/compiler-sfc from the project's node_modules:
# disable on repositories you do not trust.
enabled: true
# ═══════════════════════════════════════════════════════════════
# CHUNKING CONFIGURATION
# How code files are split for embedding
# ═══════════════════════════════════════════════════════════════
chunking:
# Tokens per chunk (smaller = more precise, larger = more context)
# Recommended: 256-1024
size: 512
# Overlap between chunks (preserves context at boundaries)
# Recommended: 10-20% of size
overlap: 50
# ═══════════════════════════════════════════════════════════════
# WATCH CONFIGURATION
# File watching daemon settings
# ═══════════════════════════════════════════════════════════════
watch:
# Debounce delay in milliseconds
# Groups rapid file changes together
debounce_ms: 500
# ═══════════════════════════════════════════════════════════════
# TRACE CONFIGURATION
# Call graph analysis settings
# ═══════════════════════════════════════════════════════════════
trace:
# Languages to analyze for call graphs (regex extraction).
# trace.mode and trace.exclude_patterns were removed in 1.0.0:
# use the top-level ignore list to exclude files.
enabled_languages:
- .go
- .js
- .ts
- .jsx
- .tsx
- .vue
- .py
- .php
- .lua
- .gd
- .rb
- .c
- .h
- .cpp
- .hpp
- .cc
- .cxx
- .hxx
- .rs
- .zig
- .cs
- .java
- .fs
- .fsx
- .fsi
- .pas
- .dpr
# ═══════════════════════════════════════════════════════════════
# SEARCH CONFIGURATION
# Search result scoring and ranking
# ═══════════════════════════════════════════════════════════════
search:
# Score boosting configuration
boost:
enabled: true
# Reduce scores for certain paths
penalties:
- pattern: /tests/
factor: 0.5
- pattern: _test.
factor: 0.5
- pattern: .spec.
factor: 0.5
- pattern: /docs/
factor: 0.6
- pattern: /vendor/
factor: 0.3
- pattern: /node_modules/
factor: 0.3
# Increase scores for certain paths
bonuses:
- pattern: /src/
factor: 1.1
- pattern: /lib/
factor: 1.1
- pattern: /core/
factor: 1.2
- pattern: /app/
factor: 1.1
# Hybrid search (vector + keyword)
hybrid:
enabled: false
k: 60 # BM25 parameter
# ═══════════════════════════════════════════════════════════════
# IGNORE CONFIGURATION
# Files and directories to exclude from indexing
# ═══════════════════════════════════════════════════════════════
ignore:
# Directories
- .git
- .grepai
- .svn
- .hg
- node_modules
- vendor
- target
- __pycache__
- .pytest_cache
- dist
- build
- out
- .next
- .nuxt
# Files
- "*.min.js"
- "*.min.css"
- "*.bundle.js"
- "*.map"
- "*.lock"
- package-lock.json
- yarn.lock
- pnpm-lock.yaml
- go.sum
# Generated
- "*.generated.*"
- "*.pb.go"
- "*.d.ts"Configuration by Use Case
Small Personal Project
version: 1
embedder:
provider: ollama
model: nomic-embed-text
store:
backend: gob
chunking:
size: 512
overlap: 50Large Codebase
version: 1
embedder:
provider: ollama
model: bge-m3 # Larger model
parallelism: 4
store:
backend: postgres # Scalable storage
postgres:
dsn: postgres://user:pass@localhost:5432/grepai
chunking:
size: 768 # Larger chunks
overlap: 100Team Environment
version: 1
embedder:
provider: openai
model: text-embedding-3-small # key from OPENAI_API_KEY
parallelism: 8
store:
backend: qdrant
qdrant:
endpoint: qdrant.internal.company.com
port: 6334
use_tls: trueMaximum Privacy
version: 1
embedder:
provider: ollama
model: nomic-embed-text
endpoint: http://localhost:11434
store:
backend: gob # Local file onlyEnvironment Variables
GrepAI does not substitute ${VAR} in config.yaml: values are used literally. The only variables it reads are the embedder API keys, when embedder.api_key is empty:
| Provider | Variables | Official endpoint |
openai | OPENAI_API_KEY | https://api.openai.com |
openrouter | OPENROUTER_API_KEY, then OPENAI_API_KEY | https://openrouter.ai |
synthetic | SYNTHETIC_API_KEY, then OPENAI_API_KEY | https://api.synthetic.new |
requesty | REQUESTY_API_KEY, then OPENAI_API_KEY | https://router.requesty.ai |
export OPENAI_API_KEY="sk-..."An environment key is only sent when endpoint is empty or the provider's official host over HTTPS. A .grepai/config.yaml can come with a cloned repository, so its endpoint is not trusted with your keys:
- Custom endpoint (Azure, LiteLLM, vLLM, a proxy, a local server through the
openaiprovider): setembedder.api_keyin.grepai/config.yamlor~/.grepai/workspace.yaml. Otherwise grepai stops with an error naming the variable and the endpoint. - Keyless local server through the
openaiprovider: the provider always needs a non-empty key, so use a placeholder,api_key: unused. ollamaandlmstudiouse no key and are not affected.
Postgres DSNs and Qdrant API keys are read from the config only.
Validating Configuration
Check your config is valid:
grepai statusIf there are config errors, they'll be displayed.
Configuration Precedence
.grepai/config.yamlin current directory- Workspace configuration (if using workspaces)
- Default values
Best Practices
- Start simple: Use defaults, optimize later
- Match chunking to code style: Larger chunks for verbose code
- Use boosting: Penalize test/vendor, boost src/lib
- Secure API keys: Use environment variables with official endpoints; never commit a config holding
api_key - Untrusted repositories: A committed
.grepai/config.yamlis input you did not write. Setframework_processing.frameworks.vue.enabled: falsebefore indexing a repository you do not trust - Exclude noise: Ignore generated files, dependencies
Output Format
Valid configuration status:
✅ GrepAI Configuration Valid
Embedder: ollama (nomic-embed-text)
Storage: gob (.grepai/index.gob)
Chunking: 512 tokens, 50 overlap
Languages: 27 enabled
Ignore patterns: 12 configured
Boosting: enabledDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

