ワンクリックで
grepai-storage-gob
Configure GOB local file storage for GrepAI. Use this skill for simple, single-machine setups.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Configure GOB local file storage for GrepAI. Use this skill for simple, single-machine setups.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Reference for all GrepAI MCP tools. Use this skill to understand available MCP tools and their parameters.
Advanced search options in GrepAI. Use this skill for JSON output, compact mode, and AI agent integration.
Find function callees with GrepAI trace. Use this skill to discover what functions a specific function calls.
Find function callers with GrepAI trace. Use this skill to discover what code calls a specific function.
Build complete call graphs with GrepAI trace. Use this skill for recursive dependency analysis.
Supported programming languages in GrepAI. Use this skill to understand which languages can be indexed and traced.
| name | grepai-storage-gob |
| description | Configure GOB local file storage for GrepAI. Use this skill for simple, single-machine setups. |
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:
# .grepai/config.yaml
store:
backend: gob
store:
backend: gob
# Index stored in .grepai/index.gob (automatic)
GOB storage creates files in your project's .grepai/ directory:
.grepai/
├── config.yaml # Configuration
├── index.gob # Vector embeddings
└── symbols.gob # Symbol index for trace
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 |
# Initialize project
grepai init
# Start indexing (creates index.gob)
grepai watch
grepai status
# Output:
# Index: .grepai/index.gob
# Files: 245
# Chunks: 1,234
# Size: 12.5 MB
# Last updated: 2025-01-28 10:30:00
# Simple file copy
cp .grepai/index.gob .grepai/index.gob.backup
# Delete and re-index
rm .grepai/index.gob
grepai watch
# Copy entire .grepai directory
cp -r .grepai /path/to/new/location/
# Note: Only works if using same embedding model
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:
# GrepAI (machine-specific index)
.grepai/
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.
store:
backend: postgres
postgres:
dsn: postgres://user:pass@localhost:5432/grepai
rm .grepai/index.gob
grepai watch
store:
backend: qdrant
qdrant:
endpoint: localhost
port: 6334
rm .grepai/index.gob
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:
rm .grepai/index.gob .grepai/symbols.gob
grepai watch
❌ Problem: "Index not found" error
✅ Solution: Run grepai watch to create the index
GOB storage status:
✅ GOB Storage Configured
Backend: GOB (local file)
Index: .grepai/index.gob
Size: 12.5 MB
Contents:
- Files: 245
- Chunks: 1,234
- Vectors: 1,234 × 768 dimensions
Performance:
- Search latency: <100ms
- Memory usage: ~25 MB