Skip to main content

code-explore

Your codebase, searchable in seconds.

PyPI License: MIT Python 3.11+

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
  1. Discover — finds git repositories recursively, reads READMEs, extracts git metadata
  2. Analyze — detects 70+ languages, maps dependencies, identifies architectural patterns, calculates code metrics
  3. Summarize — generates descriptions and tags using local Ollama models
  4. Index — builds SQLite FTS5 tables and LanceDB vector store for hybrid search
  5. 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

MIT


Part of the AI Pioneers ecosystem · code-adapt · spec-intelligence

Metadata

Release files for code-explore 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for code-explore 0.5.0
File Size Uploaded
code_explore-0.5.0.tar.gz 80.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for code-explore 0.5.0
File Interpreter ABI Platform
code_explore-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 150.4 kB

Release files / code_explore-0.5.0.tar.gz

Download URL code_explore-0.5.0.tar.gz
Size 80.0 kB
Tags Source
SHA-256 checksum
How to use checksums
18ea8fc25d00dcc4bfe183ecca278b36b9144266a16236c875645167c003b5b9
BLAKE2b-256 checksum
How to use checksums
eb9703eed352d94fc78ed2713eeb5dc57c31661df6fb09cc9b8d54c874c4ba7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.

Transparency log

Release files / code_explore-0.5.0-py3-none-any.whl

Download URL code_explore-0.5.0-py3-none-any.whl
Size 70.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c10044f3d6181d0308945bc36ce85f5067e0987e557d7f00d01c6dc8bc024a2e
BLAKE2b-256 checksum
How to use checksums
38b29c4f1e4926c51c3763e39a463bc97ac579ae8e2bbc1628ebbf522d4bf9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page