Skip to main content

Queryable concept map of a codebase for LLM coding agents

Project description

combfind

Give an AI agent a codebase. combfind tells it where to look.

combfind builds a local index of a repository so an agent can find the right files and functions for a task with a plain-text query, without reading the entire codebase.

Install

pip3 install "combfind[llm]" \
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu

Or with uv:

uv pip install "combfind[llm]" \
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu

Download a model (one-time, ~2 GB):

combfind download-model

Usage

# Index a repository (requires a local LLM model)
combfind init /path/to/repo --db repo.db

# Query it
combfind query "how does authentication work" --db repo.db
combfind query "where are database migrations" --db repo.db --format json

Query output (JSON)

[
  {
    "rank": 1,
    "concept": "Token Refresh",
    "role": "implementation",
    "score": 0.87,
    "files": [{"path": "auth/service.py", "start_line": 42, "end_line": 91}],
    "symbols": ["AuthService.refresh", "AuthService.validate"],
    "why_relevant": "Handles session token validation and refresh logic.",
    "sibling_implementations": []
  }
]

Init options

Flag Default Description
--db <repo_path>/.combfind.db Output path
--llm-model auto-detected Path to a GGUF model file
--exclude-paths - Paths to skip relative to repo root (repeatable)
--exclude-regex - Regex matched against file paths to skip

Query options

Flag Default Description
--db .combfind.db Database to query
--top-k 5 Number of results to return
--format text Output format: text or json

Environment variables

Variable Default Description
COMBFIND_LOG_LEVEL info Log verbosity: debug, info, warning, error

Supported languages

Python, Go. More languages can be added via tree-sitter grammars.

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

combfind-0.1.8.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

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

combfind-0.1.8-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file combfind-0.1.8.tar.gz.

File metadata

  • Download URL: combfind-0.1.8.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for combfind-0.1.8.tar.gz
Algorithm Hash digest
SHA256 567725bde42b0e8a255e3c19aef31e4b48fab3b9767c70e6abea8134f8caf72f
MD5 366f4a418d9f09f31d8c13e6aeb57fd1
BLAKE2b-256 1f456097a3cd263be8c41f27a9a3ce63fd6b8a4f23e6f77892256c17e175a70f

See more details on using hashes here.

Provenance

The following attestation bundles were made for combfind-0.1.8.tar.gz:

Publisher: release.yml on The127/combfind

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

File details

Details for the file combfind-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: combfind-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for combfind-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b9dd5247aa8a919df228e122716d45d56e43c9b7fa817a1037c493cbbb4722a1
MD5 3519b263419a1aec5bbf5359d4b4e8b3
BLAKE2b-256 a46c8bb503b8ce33000561df80e3537b84fa1b0ccd356444c41ef4f54a20d84c

See more details on using hashes here.

Provenance

The following attestation bundles were made for combfind-0.1.8-py3-none-any.whl:

Publisher: release.yml on The127/combfind

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