You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter command to run: `uvx --prerelease=explicit --with cocoindex>=1.0.0a16 cocoindex-code@latest`
65
+
Enter command to run: `cocoindex-code`
68
66
69
67
Or use opencode.json:
70
68
```
@@ -74,17 +72,15 @@ Or use opencode.json:
74
72
"cocoindex-code": {
75
73
"type": "local",
76
74
"command": [
77
-
"uvx",
78
-
"--prerelease=explicit",
79
-
"--with",
80
-
"cocoindex>=1.0.0a16",
81
-
"cocoindex-code@latest"
75
+
"cocoindex-code"
82
76
]
83
77
}
84
78
}
85
79
}
86
80
```
87
81
82
+
Optionally, you can run `cocoindex-code index` to create or update the index. Without running it, the MCP server will automatically build and keep the index up-to-date in the background.
83
+
88
84
## Features
89
85
-**Semantic Code Search**: Find relevant code using natural language queries when grep doesn't work well, and save tokens immediately.
90
86
-**Ultra Performant to code changes**:⚡ Built on top of ultra performant [Rust indexing engine](https://github.com/cocoindex-io/cocoindex/edit/main/README.md). Only re-indexes changed files for fast updates.
@@ -123,7 +119,7 @@ Set `COCOINDEX_CODE_EMBEDDING_MODEL` to any [LiteLLM-supported model](https://do
> **Note:** Switching models requires re-indexing your codebase (the vector dimensions differ).
@@ -315,6 +311,24 @@ Common generated directories are automatically excluded:
315
311
-`dist/`
316
312
-`vendor/` (Go vendored dependencies, matched by domain-based child paths)
317
313
314
+
## Troubleshooting
315
+
316
+
### `sqlite3.Connection object has no attribute enable_load_extension`
317
+
318
+
Some Python installations (e.g. the one pre-installed on macOS) ship with a SQLite library that doesn't enable extensions.
319
+
320
+
**macOS fix:** Install Python through [Homebrew](https://brew.sh/):
321
+
322
+
```bash
323
+
brew install python3
324
+
```
325
+
326
+
Then re-install cocoindex-code with the Homebrew Python:
327
+
328
+
```bash
329
+
pip3 install -U cocoindex-code
330
+
```
331
+
318
332
## Large codebase / Enterprise
319
333
[CocoIndex](https://github.com/cocoindex-io/cocoindex) is an ultra effecient indexing engine that also works on large codebase at scale on XXX G for enterprises. In enterprise scenarios it is a lot more effecient to do index share with teammates when there are large repo or many repos. We also have advanced features like branch dedupe etc designed for enterprise users.
0 commit comments