
Grepai Storage Gob
Turn on GrepAI’s default GOB file backend for fast local semantic code search without external vector databases.
Install
npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-storage-gobWhat is this skill?
- Default GrepAI backend: single local .grepai/index.gob file for embeddings and metadata
- Minimal config with store.backend: gob in .grepai/config.yaml
- No external services—portable backup and zero infra cost for small codebases
- Documents tradeoffs: single-user, RAM-loaded search, not for very large monorepos
- Contrasts with heavier backends when you only need one-machine setups
Adoption & trust: 468 installs on skills.sh; 17 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Microsoft Foundrymicrosoft/azure-skills
Azure Aimicrosoft/azure-skills
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Lark Eventlarksuite/cli
Running Claude Code Via Litellm Copilotxixu-me/skills
Setup Matt Pocock Skillsmattpocock/skills
Journey fit
Common Questions / FAQ
Is Grepai Storage Gob safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Grepai Storage Gob
# GrepAI Storage with GOB This skill covers using GOB (Go Binary) as the storage backend for GrepAI, the default and simplest option. ## When to Use This Skill - Single developer projects - Small to medium codebases - Simple setup without external dependencies - Local development environments ## What is GOB Storage? GOB is Go's native binary serialization format. GrepAI uses it to store: - Vector embeddings - File metadata - Chunk information Everything is stored in a single local file. ## Advantages | Benefit | Description | |---------|-------------| | 🚀 **Simple** | No external services needed | | ⚡ **Fast setup** | Works immediately | | 📁 **Portable** | Single file, easy to backup | | 💰 **Free** | No infrastructure costs | | 🔒 **Private** | Data stays local | ## Limitations | Limitation | Description | |------------|-------------| | 📏 **Scalability** | Not ideal for very large codebases | | 👤 **Single user** | No concurrent access | | 🔄 **No sharing** | Can't share index across machines | | 💾 **Memory** | Loads into RAM for searches | ## Configuration ### Default Configuration GOB is the default backend. Minimal config: ```yaml # .grepai/config.yaml store: backend: gob ``` ### Explicit Configuration ```yaml store: backend: gob # Index stored in .grepai/index.gob (automatic) ``` ## Storage Location GOB storage creates files in your project's `.grepai/` directory: ``` .grepai/ ├── config.yaml # Configuration ├── index.gob # Vector embeddings └── symbols.gob # Symbol index for trace ``` ## File Sizes Approximate `.grepai/index.gob` sizes: | Codebase | Files | Chunks | Index Size | |----------|-------|--------|------------| | Small | 100 | 500 | ~5 MB | | Medium | 1,000 | 5,000 | ~50 MB | | Large | 10,000 | 50,000 | ~500 MB | ## Operations ### Creating the Index ```bash # Initialize project grepai init # Start indexing (creates index.gob) grepai watch ``` ### Checking Index Status ```bash grepai status # Output: # Index: .grepai/index.gob # Files: 245 # Chunks: 1,234 # Size: 12.5 MB # Last updated: 2025-01-28 10:30:00 ``` ### Backing Up the Index ```bash # Simple file copy cp .grepai/index.gob .grepai/index.gob.backup ``` ### Clearing the Index ```bash # Delete and re-index rm .grepai/index.gob grepai watch ``` ### Moving to a New Machine ```bash # Copy entire .grepai directory cp -r .grepai /path/to/new/location/ # Note: Only works if using same embedding model ``` ## Performance Considerations ### Memory Usage GOB loads the entire index into RAM for searches: | Index Size | RAM Usage | |------------|-----------| | 10 MB | ~20 MB | | 50 MB | ~100 MB | | 500 MB | ~1 GB | ### Search Speed GOB provides fast searches for typical codebases: | Codebase Size | Search Time | |---------------|-------------| | Small (100 files) | <50ms | | Medium (1K files) | <200ms | | Large (10K files) | <1s | ### When to Upgrade Consider PostgreSQL or Qdrant when: - Index exceeds 1 GB - Need concurrent access - Want to share index across team - Codebase has 50K+ files ## .gitignore Configuration Add `.grepai/` to your `.gitignore`: ```gitignore # GrepAI (machine-specific index) .grepai/ ``` **Why:** The index is machine-specific because: - Contains binary embeddings - Tied to the embedding model used - Each machine should generate its own ## Sharing Index (Not Recommended) While you can copy the index file, it's not recommended because: 1. Must use identical embedding model 2. File paths are absolute 3. Different machines may have different code versions **Better approach:** Each developer runs their own `grepai watch`. ## Migrating to Other Backends ### To PostgreSQL 1. Update config: ```yaml store: backend: postgres postgres: dsn: postgres://user:pass@localhost:5432/grepai ``` 2. Re-index: ```bash rm .grepai/index.gob gre