Developer knowledge base CLI — scan, index, and search your programming projects
Project description
code-explore
Your codebase, searchable in seconds.
Scan hundreds of git repositories, analyze languages and patterns, generate AI summaries with local Ollama, and find anything with hybrid search. Fulltext for exact matches, semantic for meaning — fused with Reciprocal Rank Fusion into one ranked result.
Quick Start
pip install code-explore
# Scan your projects directory
cex scan ~/Projects
# Search across everything
cex search "authentication middleware"
# View a specific project
cex show my-project
# Stats overview
cex stats
How It Works
Discover → Analyze → Summarize → Index → Search
- Discover — finds git repositories recursively, reads READMEs, extracts git metadata
- Analyze — detects 70+ languages, maps dependencies, identifies architectural patterns, calculates code metrics
- Summarize — generates descriptions and tags using local Ollama models
- Index — builds SQLite FTS5 tables and LanceDB vector store for hybrid search
- Search — combines fulltext, semantic, and pattern-based results with Reciprocal Rank Fusion
Features
- One-command scan — discovers repos, detects 70+ languages, maps dependencies and patterns
- AI summaries — local Ollama generates descriptions and tags for every project
- Hybrid search — SQLite FTS5 + LanceDB vectors + pattern matching, fused with RRF
- Confidence scoring — every result tells you how reliable it is
- Incremental indexing — only re-processes projects that changed since last scan
- REST API + dashboard — optional FastAPI server with web UI at
/dashboard - Plugin system — extend scanning and analysis with custom plugins
- Works offline — AI features use local models, degrades gracefully without Ollama
Search Modes
# Fulltext — exact keyword matches via SQLite FTS5
cex search "fastapi middleware" --mode fulltext
# Semantic — meaning-based via LanceDB vector search
cex search "tools for processing images" --mode semantic
# Hybrid (default) — both engines, fused with RRF
cex search "authentication"
Configuration
Three-layer priority: defaults → config file → environment variables.
# Config file location (respects XDG_CONFIG_HOME)
~/.config/code-explore/config.toml
# Or via environment variables
export CEX_OLLAMA_MODEL="llama3.2"
export CEX_DB_PATH="~/.local/share/code-explore/projects.db"
Development
git clone https://github.com/aipioneers/code-explore.git
cd code-explore
pip install -e ".[dev]"
pytest tests/ -v
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Part of the AI Pioneers ecosystem · code-adapt · spec-intelligence
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file code_explore-0.5.0.tar.gz.
File metadata
- Download URL: code_explore-0.5.0.tar.gz
- Upload date:
- Size: 80.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18ea8fc25d00dcc4bfe183ecca278b36b9144266a16236c875645167c003b5b9
|
|
| MD5 |
b1bc9506679e4a1231ab8249ea479c07
|
|
| BLAKE2b-256 |
eb9703eed352d94fc78ed2713eeb5dc57c31661df6fb09cc9b8d54c874c4ba7a
|
Provenance
The following attestation bundles were made for code_explore-0.5.0.tar.gz:
Publisher:
publish.yml on aipioneers/code-explore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
code_explore-0.5.0.tar.gz -
Subject digest:
18ea8fc25d00dcc4bfe183ecca278b36b9144266a16236c875645167c003b5b9 - Sigstore transparency entry: 1201504610
- Sigstore integration time:
-
Permalink:
aipioneers/code-explore@0613bf829747df7a974184514ef2176b0cb03bfd -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/aipioneers
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0613bf829747df7a974184514ef2176b0cb03bfd -
Trigger Event:
release
-
Statement type:
File details
Details for the file code_explore-0.5.0-py3-none-any.whl.
File metadata
- Download URL: code_explore-0.5.0-py3-none-any.whl
- Upload date:
- Size: 70.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c10044f3d6181d0308945bc36ce85f5067e0987e557d7f00d01c6dc8bc024a2e
|
|
| MD5 |
ce053e88274c07ef172eeedb3b97056b
|
|
| BLAKE2b-256 |
38b29c4f1e4926c51c3763e39a463bc97ac579ae8e2bbc1628ebbf522d4bf9e4
|
Provenance
The following attestation bundles were made for code_explore-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on aipioneers/code-explore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
code_explore-0.5.0-py3-none-any.whl -
Subject digest:
c10044f3d6181d0308945bc36ce85f5067e0987e557d7f00d01c6dc8bc024a2e - Sigstore transparency entry: 1201504611
- Sigstore integration time:
-
Permalink:
aipioneers/code-explore@0613bf829747df7a974184514ef2176b0cb03bfd -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/aipioneers
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0613bf829747df7a974184514ef2176b0cb03bfd -
Trigger Event:
release
-
Statement type: