Skip to main content

Developer knowledge base CLI — scan, index, and search your programming projects

Project description

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

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

code_explore-0.5.0.tar.gz (80.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code_explore-0.5.0-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

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

Hashes for code_explore-0.5.0.tar.gz
Algorithm Hash digest
SHA256 18ea8fc25d00dcc4bfe183ecca278b36b9144266a16236c875645167c003b5b9
MD5 b1bc9506679e4a1231ab8249ea479c07
BLAKE2b-256 eb9703eed352d94fc78ed2713eeb5dc57c31661df6fb09cc9b8d54c874c4ba7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for code_explore-0.5.0.tar.gz:

Publisher: publish.yml on aipioneers/code-explore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for code_explore-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c10044f3d6181d0308945bc36ce85f5067e0987e557d7f00d01c6dc8bc024a2e
MD5 ce053e88274c07ef172eeedb3b97056b
BLAKE2b-256 38b29c4f1e4926c51c3763e39a463bc97ac579ae8e2bbc1628ebbf522d4bf9e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for code_explore-0.5.0-py3-none-any.whl:

Publisher: publish.yml on aipioneers/code-explore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page