npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-context-milvus

v0.8.2

Published

DSH plugin for semantic code search via Milvus vector database

Downloads

3,255

Readme

dsh-context-milvus

DSH plugin (Cordis) for semantic code search backed by a Milvus vector database. Full documentation, evaluation results and architecture notes live in the repository README; this file covers the DSH adapter only.

The retrieval engine itself is the separate dsh-context-milvus-core package, which this plugin depends on. The same core also powers codex-context-milvus, an MCP server for OpenAI Codex.

Registered tools

13 tools, all unchanged since 0.6.x:

  • Retrieval: search_code, index_code, index_status
  • Code relations: find_callers, trace_call_chain
  • ADR decision memory: search_adr, search_adr_by_file, create_adr, update_adr, list_adrs, load_constraints, check_adr_consistency, index_specs

On a large workspace index_code / index_specs only scan and tell you to run dsh-context-milvus-index (the script shipped with this package) in a terminal; see "Standalone Index Script" in the root README.

The tool names, their parameters and the Config fields are covered by a freeze test (test/public-surface.spec.ts), so they are a stable public contract.

Install into a DSH Web profile

Requires DSH ≥ 0.1.7-rc.2. 0.1.7 replaced the settings plugin API on both halves — the host's installSection() and the client's settingsScope service are gone — and the config schema now relies on schemastery's .volatile(), which older harnesses do not ship. There is no compatibility mode: on an older harness the plugin cannot load.

cd ~/.dsh/profiles/web
pnpm add file:/path/to/dsh-context-milvus     # or: pnpm add dsh-context-milvus

Then add "dsh-context-milvus" to dsh.profile.bundles in ~/.dsh/profiles/web/package.json. Bundle wiring is applied through the package's cordis.patch.yml; cordis-entry.yml in this package is a commented configuration example, not an active bundle.

Configuration

After installing, the plugin appears under Settings → Plugins in the DSH Web UI, with a form per field (secret fields such as milvusToken / embeddingApiKey render as password inputs, booleans as switches). The form lives on the plugin's own page — open the dsh-context-milvus entry in the Installed group, not in the Official group, which lists the harness's own settings pages.

Every field is declared .volatile(), which is what makes it appear in — and writable from — that form: dsh-settings ≥0.1.7 lists a plugin's settings section only when its schema has volatile fields, and refuses writes to any field that is not. Committed edits are delivered to the running plugin as a loader/volatile-update event and take effect without a reload (services that are baked in at construction — Milvus/embedding connection fields — are rebuilt).

Resolution order is plugin config → environment variables → defaults. Every field has an env fallback: MILVUS_ADDRESS, MILVUS_TOKEN, MILVUS_COLLECTION, MILVUS_EMBEDDING_DIM, EMBEDDING_ENDPOINT, EMBEDDING_API_KEY, EMBEDDING_MODEL, INDEX_ROOT, INDEX_EXTENSIONS, HYBRID_MODE, INDEX_IGNORE_DIRS, IGNORE_PATTERNS, MERKLE_FILE_PATH, QUERY_EXPANSION, RERANK_ENABLED, SPEC_ROOT, PLAN_ROOT (see packages/core/src/config.ts for the authoritative mapping).

ADR features are off by default; enable adrEnabled and keep decision records in docs/decisions/ (or set adrRoot).

Workspace behaviour

Each DSH session's workspace is auto-detected, and Merkle state plus import maps are stored per workspace under ~/.milvus-index/, keyed by the absolute workspace path — so an index built here is reusable by the MCP server for the same repository.

License

MIT