npx skills add ...
npx skills add yoanbernabeu/grepai-skills --skill grepai-storage-gob
Configure GOB local file storage for GrepAI. Use this skill for simple, single-machine setups.
npx skills add yoanbernabeu/grepai-skills --skill grepai-storage-gob
This skill covers using GOB (Go Binary) as the storage backend for GrepAI, the default and simplest option.
GOB is Go's native binary serialization format. GrepAI uses it to store:
Everything is stored in a single local file.
| 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 |
| 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 |
GOB is the default backend. Minimal config:
GOB storage creates files in your project's .grepai/ directory:
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 |
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 |
GOB provides fast searches for typical codebases:
| Codebase Size | Search Time |
|---|---|
| Small (100 files) | <50ms |
| Medium (1K files) | <200ms |
| Large (10K files) | <1s |
Consider PostgreSQL or Qdrant when:
Add .grepai/ to your .gitignore:
Why: The index is machine-specific because:
While you can copy the index file, it's not recommended because:
Better approach: Each developer runs their own grepai watch.
โ Problem: Index file too large โ Solution: Add more ignore patterns or migrate to PostgreSQL/Qdrant
โ Problem: Slow searches on large codebase โ Solution: Migrate to Qdrant for better performance
โ Problem: Corrupted index โ Solution: Delete and re-index:
โ Problem: "Index not found" error
โ
Solution: Run grepai watch to create the index
GOB storage status: