Skip to main content

Delphi Code

Let your coding agent find code by what it does, not by what it's called. Ask "where are user passwords checked?" and get the right files back, even when no file contains those words.

  • Private: your code never leaves your machine. Indexing and search run offline with a local model; no account, cloud provider, or background daemon.
  • Fast: the MCP server keeps the model loaded, so repeated searches are near-instant. No GPU needed.
  • Across repositories: index local projects or GitHub and Bitbucket repositories and search them all at once.
  • Works with your agents: Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI, and OpenCode.

Install

curl -LsSf https://github.com/markdorof/delphi-code/releases/latest/download/install.sh | sh

The script installs uv if needed, then runs setup, which downloads the embedding model once and connects every agent it finds. Options go after sh -s --: --no-setup, --no-connect, --version VERSION. With uv already installed:

uv tool install --managed-python delphi-code
delphi-code setup

Requires macOS 14+ on Apple silicon (Linux is untested, Windows unsupported). delphi-code doctor checks the installation.

Use

delphi-code add ~/src/api github.com/octo/tools   # track and index projects
delphi-code search 'where are user passwords checked?'
delphi-code ui                                     # or do it all in the browser

Your agent calls the same search through MCP. After installing a new agent, run delphi-code connect. To connect one by hand:

Agent Setup
Claude Code claude plugin marketplace add markdorof/delphi-code, then claude plugin install delphi-code@delphi-code
Codex codex plugin marketplace add markdorof/delphi-code, then codex plugin add delphi-code@delphi-code
Cursor Add {"mcpServers": {"delphi-code": {"type": "stdio", "command": "delphi-code", "args": ["mcp"]}}} to ~/.cursor/mcp.json
VS Code (Copilot) code --add-mcp '{"name": "delphi-code", "command": "delphi-code", "args": ["mcp"]}'
Gemini CLI gemini mcp add delphi-code delphi-code mcp
OpenCode Add {"mcp": {"delphi-code": {"type": "local", "command": ["delphi-code", "mcp"]}}} to ~/.config/opencode/opencode.json

For agents other than Claude Code and Codex, also copy the skill into the agent's skills folder so it knows when to search by meaning instead of grep.

Commands

Command What it does
setup Downloads the model (or imports it with --from DIR on an offline machine) and connects agents.
add [SOURCE ...] Tracks and indexes local paths or remote repositories (--ref picks a branch or tag). Without sources, picks repositories from your GitHub or Bitbucket account.
sync [PROJECT ...] Updates tracked projects, re-embedding only what changed.
index -p PATH Indexes a project once without tracking it.
search QUERY Searches every index, or one with -p. Filter with --language, --path, --limit.
list, status, remove NAME Show tracked projects, show a project's index, stop tracking a project.
connect, disconnect Add or remove Delphi Code in your agents' configs.
ui Opens a local web UI for search, projects, and setup checks.
doctor Checks the model and storage.
mcp Serves the commands as MCP tools over stdio.

-p takes a path or an indexed project's name. index and add skip .gitignored files and accept --ignore, --path, and --language. Every command takes --help, and most take --json for scripts. Only setup, add, and sync use the network.

Settings

Variable Purpose
GITHUB_TOKEN / GH_TOKEN GitHub access for remote repositories (falls back to gh auth token, then git's credentials)
BITBUCKET_APP_PASSWORD with BITBUCKET_EMAIL or BITBUCKET_USERNAME Bitbucket access (an API token works)
DELPHI_CODE_MODEL Use another local SentenceTransformers model instead of the default all-MiniLM-L6-v2
DELPHI_CODE_INDEX_ROOT, DELPHI_CODE_REGISTRY, DELPHI_CODE_LOG_FILE Move indexes, the tracked-project list, or the log
DELPHI_CODE_LOG_LEVEL DEBUG, INFO, WARNING, ERROR, or OFF

Data lives in ~/Library/Application Support/delphi-code on macOS and ~/.local/share/delphi-code on Linux.

Upgrade and uninstall

uv tool upgrade delphi-code

Your model and indexes are kept. If a command fails with index_incompatible, delete the index directory it names and run sync again. See releases for changes.

delphi-code disconnect
uv tool uninstall delphi-code
rm -rf ~/Library/Application\ Support/delphi-code

License

Apache-2.0. See THIRD_PARTY_NOTICES.md. To contribute, see CONTRIBUTING.md.

Metadata

Release files for delphi-code 0.3.2

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

Source distribution (sdist)

Source distribution for delphi-code 0.3.2
File Size Uploaded Provenance Actions
delphi_code-0.3.2.tar.gz 670.3 kB With provenance Details for delphi_code-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for delphi-code 0.3.2
File Interpreter ABI Platform Actions
delphi_code-0.3.2-py3-none-any.whl Python 3 none any Details for delphi_code-0.3.2-py3-none-any.whl

Total release size: 1.4 MB

Release files / delphi_code-0.3.2.tar.gz

Download URL delphi_code-0.3.2.tar.gz
Size 670.3 kB
Tags Source
SHA-256 checksum
How to use checksums
40859775238526ba51e0758ab7f4642bbc323a2808f3d612323bb00ae145e247
BLAKE2b-256 checksum
How to use checksums
8b4dd729d81a555401911f13a14ce19dae62664c1cc542d003ae90a4b0692f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Release files / delphi_code-0.3.2-py3-none-any.whl

Download URL delphi_code-0.3.2-py3-none-any.whl
Size 686.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7589cc66b5f282b95526d78dbbe51e9c948b9267610f8f72c816457b2ff29ba4
BLAKE2b-256 checksum
How to use checksums
87ca39aba23e46a4634e5331f98b4f642b3dc3f50d15bd7dff401aea263ccba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Security for delphi-code 0.3.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for delphi_code-0.3.2.tar.gz

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 Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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