cdidx 1.20.0
See the version list below for details.
dotnet tool install --global cdidx --version 1.20.0
dotnet new tool-manifest
dotnet tool install --local cdidx --version 1.20.0
#tool dotnet:?package=cdidx&version=1.20.0
nuke :add-package cdidx --version 1.20.0
cdidx
AI-native local code search for terminal and MCP workflows.
cdidx indexes a repository into a local SQLite FTS5 database, then answers
full-text, symbol, dependency, and inspection queries without repeatedly
rescanning the same tree. It is built for humans and AI agents that need small,
structured code context from local repositories.
Why cdidx
Index once. Ask many times.
cdidxturns a repository into a local retrieval runtime, so humans and AI agents can pull scoped code context without rescanning or resending broad files every turn.
| If your workflow is... | Best fit | Why |
|---|---|---|
| One-off string hunting | rg |
zero setup, direct file scan |
| Repeated repository investigation | cdidx |
local SQLite FTS5 index, structured results, incremental refresh |
| VS Code-only chat context | VS Code workspace index | editor-managed context inside the Copilot/VS Code UX |
| Terminal, CI, scripts, or MCP clients | cdidx |
explicit CLI + MCP boundary that works outside an IDE |
Details: why cdidx, cdidx vs rg, and cdidx vs VS Code workspace index.
Quick Start
curl -fsSL https://raw.githubusercontent.com/Widthdom/CodeIndex/main/install.sh | bash
cdidx .
cdidx status --check --json
cdidx search "handleRequest"
cdidx definition UserService
cdidx mcp
Use cdidx when a repository will be searched repeatedly from terminals,
scripts, CI, or AI tools. Use rg when you only need a one-off text scan.
Highlights
- CLI-first search with human-readable and machine-oriented output.
- Full-text, symbol, reference, caller/callee, dependency, map, inspect, and excerpt commands.
- MCP server for AI clients such as Claude Code, Cursor, and Windsurf.
- Incremental refreshes with
--filesand--commits. - Exact DB/worktree freshness checks with
status --check. - Local-first storage in
.cdidx/codeindex.db. - 78 detected languages, with symbol and graph support where available.
Documentation
- User Guide: detailed installation, command examples, options, supported languages, MCP setup, and troubleshooting.
- Cloud Bootstrap: install guidance for restricted cloud agent sessions.
- Developer Guide: architecture, implementation notes, and release workflow.
- Testing Guide: test conventions and validation commands.
- Self-Improvement Contract: rules for agents improving CodeIndex itself.
- Integration Policy: permitted CLI, JSON, MCP, and integration use.
License and Fair Source Use
CodeIndex and official cdidx binaries are source-available / Fair Source-style software
under FSL-1.1-ALv2, unless a specific file or directory says
otherwise. Integration materials may be Apache-2.0
where marked.
See COMMERCIAL_LICENSE.md, INTEGRATION_POLICY.md, and TRADEMARKS.md for commercial, integration, and naming details.
cdidx(日本語)
ターミナルと MCP ワークフロー向けの、AI ネイティブなローカルコード検索です。
cdidx はリポジトリをローカル SQLite FTS5 データベースにインデックスし、
同じツリーを何度も読み直さずに全文検索、シンボル、依存関係、inspect
クエリへ応答します。人間と AI エージェントの両方が、ローカルリポジトリから
小さく構造化されたコード文脈を取り出すためのツールです。
なぜ cdidx なのか
一度インデックスして、何度も聞く。
cdidxはリポジトリをローカルな retrieval runtime に変え、人間と AI エージェントが毎回広いファイルを 読み直さずに、必要なコード文脈だけを取り出せるようにします。
| ワークフロー | 向いているもの | 理由 |
|---|---|---|
| 1回限りの文字列探し | rg |
セットアップ不要で直接ファイルを読む |
| 同じリポジトリの反復調査 | cdidx |
SQLite FTS5 のローカル index、構造化結果、差分更新 |
| VS Code 内だけの chat 文脈 | VS Code workspace index | Copilot / VS Code UX 内で editor が管理 |
| ターミナル、CI、スクリプト、MCP client | cdidx |
IDE 外でも使える明示的な CLI + MCP 境界 |
詳細: なぜ cdidx なのか、rg との違い、 VS Code workspace index との違い。
すぐに試す
curl -fsSL https://raw.githubusercontent.com/Widthdom/CodeIndex/main/install.sh | bash
cdidx .
cdidx status --check --json
cdidx search "handleRequest"
cdidx definition UserService
cdidx mcp
ターミナル、スクリプト、CI、AI ツールから同じリポジトリを繰り返し検索する
場合は cdidx が向いています。1回限りのテキスト検索には rg が向いています。
特長
- CLI-first の検索。人間向け出力と機械処理向け出力に対応。
- 全文検索、シンボル、参照、caller/callee、依存関係、map、inspect、excerpt コマンドを提供。
- Claude Code、Cursor、Windsurf などの AI クライアント向け MCP サーバー。
--filesと--commitsによる差分更新。status --checkによる DB と作業ツリーの完全一致確認。.cdidx/codeindex.dbに保存するローカルファースト設計。- 78 言語を検出し、対応言語ではシンボルとグラフも利用可能。
ドキュメント
- ユーザーガイド: 詳細なインストール、コマンド例、オプション、 対応言語、MCP 設定、トラブルシュート。
- クラウドブートストラップ: 制限されたクラウド エージェント環境でのインストール手順。
- 開発者ガイド: アーキテクチャ、実装メモ、リリース手順。
- テストガイド: テスト規約と検証コマンド。
- 自己改善コントラクト: CodeIndex 自身を改善する エージェント向けルール。
- 統合ポリシー: CLI、JSON、MCP、各種統合で許可される利用。
ライセンスと Fair Source の扱い
CodeIndex と公式 cdidx バイナリは、ファイルやディレクトリで別途明記されない
限り FSL-1.1-ALv2 の source-available / Fair Source-style software
です。統合用の素材は、明記されている場合 Apache-2.0
で利用できます。
商用利用、統合、名称の扱いについては COMMERCIAL_LICENSE.md、 INTEGRATION_POLICY.md、TRADEMARKS.md を 参照してください。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.27.2 | 61 | 5/31/2026 |
| 1.26.3 | 100 | 5/26/2026 |
| 1.26.2 | 89 | 5/25/2026 |
| 1.26.1 | 90 | 5/25/2026 |
| 1.25.1 | 97 | 5/25/2026 |
| 1.24.5 | 91 | 5/24/2026 |
| 1.23.1 | 103 | 5/20/2026 |
| 1.23.0 | 104 | 5/19/2026 |
| 1.22.3 | 104 | 5/17/2026 |
| 1.21.0 | 119 | 5/10/2026 |
| 1.20.1 | 110 | 5/6/2026 |
| 1.20.0 | 97 | 5/5/2026 |
| 1.19.0 | 103 | 5/4/2026 |
| 1.18.0 | 92 | 5/1/2026 |