[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H3PX19HDGRAW4WS8Z48NGZ":3,"skill-same:01M6H3PX19HDGRAW4WS8Z48NGZ":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":56},"01M6H3PX19HDGRAW4WS8Z48NGZ","add-claude-context",null,"[DEPRECATED] Replaced by scripts\u002Fcode_search.py (native sqlite-vec + Ollama). Do not use.","sliamh11\u002FDeus","sliamh11","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F68326628?v=4","01M6H3PPFXQ6C98QV1RJA5W72S","Liam Steiner","01M6H3PPM81GJC6KYCNTY9A3AT",51,"MIT","https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-claude-context\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"context","add","add claude context","code","search","sqlite","ollama","use","do","scripts","native","true","2026-11-10 10:12:30",false,"---\nname: add-claude-context\ndescription: \"[DEPRECATED] Replaced by scripts\u002Fcode_search.py (native sqlite-vec + Ollama). Do not use.\"\ndisable-model-invocation: true\n---\n\n# Add Claude Context (Semantic Code Search) -- DEPRECATED\n\n> **This skill is deprecated.** claude-context (Milvus-based) was evaluated and found to have never worked due to 5 cascading bugs (wrong config path, corrupt npx cache, wrong protocol, broken network isolation, short timeout). Milvus is also massive overkill for code search at any realistic codebase scale.\n>\n> **Replacement:** `scripts\u002Fcode_search.py` -- native semantic code search using sqlite-vec + Ollama embeddings + RRF fusion, following the `memory_tree.py` pattern. No Docker, no Milvus, no external dependencies beyond Ollama.\n\nThe content below is preserved for historical reference only.\n\n---\n\nThis skill adds semantic code search to Claude Code via the [claude-context](https:\u002F\u002Fgithub.com\u002Fzilliztech\u002Fclaude-context) MCP server by Zilliz. Once installed, Claude can index any codebase and search it by meaning — not just keyword matching.\n\nTools added:\n- `index_codebase` — index a directory into the vector database\n- `search_code` — semantic search across indexed code\n- `get_indexing_status` — check indexing progress\n- `clear_index` — remove an index\n\n**Privacy:** All data stays local. Embeddings via Ollama, vectors in a network-isolated Docker Milvus container. No cloud APIs, no telemetry. See [Security](#security) for the full defense-in-depth breakdown.\n\n## Phase 1: Pre-flight\n\n### Check if already configured\n\n```bash\ngrep -q \"claude-context\" ~\u002F.claude\u002Fmcp.json 2>\u002Fdev\u002Fnull && echo \"INSTALLED\" || echo \"NOT_INSTALLED\"\n```\n\nIf already installed, skip to Phase 5 (Verify).\n\n### Check prerequisites\n\n**Docker:**\n\n```bash\ndocker info > \u002Fdev\u002Fnull 2>&1 && echo \"Docker OK\" || echo \"Docker not running\"\n```\n\nIf Docker is not running, tell the user to start Docker Desktop (macOS) or the Docker daemon (Linux).\n\n**Ollama:**\n\n```bash\nollama list > \u002Fdev\u002Fnull 2>&1 && echo \"Ollama OK\" || echo \"Ollama not running\"\n```\n\nIf Ollama is not installed, direct the user to https:\u002F\u002Follama.com\u002Fdownload.\n\n**Node.js version:**\n\n```bash\nnode --version\n```\n\nMust be >= 20 and \u003C 24. Node 24 is incompatible with claude-context. If the version is wrong, tell the user which versions are supported.\n\n## Phase 2: Embedding Model\n\n### Detect available embedding models\n\n```bash\nollama list 2>\u002Fdev\u002Fnull | grep -i embed\n```\n\n### Choose a model\n\nIf embedding models are found, ask the user which one to use via `AskUserQuestion`.\n\nIf no embedding models are found, suggest pulling one:\n\n> No embedding models found in Ollama. You need one for code search. Options:\n>\n> - **nomic-embed-text** (768-dim, 274MB) — lightweight, recommended for most use cases\n> - **mxbai-embed-large** (1024-dim, 669MB) — higher quality embeddings\n> - **snowflake-arctic-embed2** (1024-dim, 1.2GB) — multilingual support\n\nPull the chosen model:\n\n```bash\nollama pull \u003Cmodel-name>\n```\n\n### Detect embedding dimension\n\nGet the dimension from a test embedding call — never hardcode this value:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:11434\u002Fapi\u002Fembed -d '{\"model\":\"\u003Cmodel-name>\",\"input\":\"test\"}' | python3 -c \"import sys,json; d=json.load(sys.stdin); print(len(d['embeddings'][0]))\"\n```\n\nStore the model name and dimension for Phase 4.\n\n## Phase 3: Start Milvus\n\n### Check if Milvus is already running\n\n```bash\ndocker ps --filter \"name=deus-milvus\" --format \"{{.Status}}\" 2>\u002Fdev\u002Fnull\n```\n\nIf `deus-milvus` is already running and healthy, skip to Phase 4:\n\n```bash\ndocker exec deus-milvus curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz > \u002Fdev\u002Fnull 2>&1 && echo \"HEALTHY\" || echo \"NOT_HEALTHY\"\n```\n\n### Step 3a: Create config files\n\nCreate the Milvus config directory:\n\n```bash\nmkdir -p ~\u002F.config\u002Fdeus\u002Fmilvus\n```\n\nCreate `~\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml`:\n\n```bash\ncat > ~\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml \u003C\u003C 'EOF'\nlisten-client-urls: http:\u002F\u002F0.0.0.0:2379\nadvertise-client-urls: http:\u002F\u002F0.0.0.0:2379\nquota-backend-bytes: 4294967296\nauto-compaction-mode: revision\nauto-compaction-retention: \"1000\"\nEOF\n```\n\nCreate `~\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml` (required mount, no overrides needed):\n\n```bash\ntouch ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml\n```\n\nCreate `~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh`:\n\n```bash\ncat > ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh \u003C\u003C 'SCRIPT'\n#!\u002Fbin\u002Fbash\nset -euo pipefail\n\nCONTAINER=deus-milvus\nINTERNAL_NET=deus-milvus-net\nBRIDGE_NET=deus-milvus-bridge\n\n# Create networks if missing\ndocker network create --internal \"$INTERNAL_NET\" 2>\u002Fdev\u002Fnull || true\ndocker network create \"$BRIDGE_NET\" 2>\u002Fdev\u002Fnull || true\n\n# If container exists but stopped, remove it (clean restart with correct config)\nif docker ps -a --format '{{.Names}}' 2>\u002Fdev\u002Fnull | grep -q \"^${CONTAINER}$\"; then\n  if docker ps --format '{{.Names}}' 2>\u002Fdev\u002Fnull | grep -q \"^${CONTAINER}$\"; then\n    echo \"deus-milvus already running\"\n    exit 0\n  fi\n  docker rm \"$CONTAINER\"\nfi\n\n# Start on bridge network (port publishing requires a non-internal network at creation time)\ndocker run -d --name \"$CONTAINER\" \\\n  --network \"$BRIDGE_NET\" \\\n  --restart no \\\n  --security-opt seccomp:unconfined \\\n  -e ETCD_USE_EMBED=true \\\n  -e ETCD_DATA_DIR=\u002Fvar\u002Flib\u002Fmilvus\u002Fetcd \\\n  -e ETCD_CONFIG_PATH=\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml \\\n  -e COMMON_STORAGETYPE=local \\\n  -e DEPLOY_MODE=STANDALONE \\\n  --memory=3g --memory-swap=3g --cpus=2 \\\n  -p 127.0.0.1:19530:19530 \\\n  -v deus-milvus-data:\u002Fvar\u002Flib\u002Fmilvus \\\n  -v \"$HOME\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml:\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml:ro\" \\\n  -v \"$HOME\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml:\u002Fmilvus\u002Fconfigs\u002Fuser.yaml:ro\" \\\n  milvusdb\u002Fmilvus:latest \\\n  milvus run standalone\n\n# Wait for Milvus to be healthy before switching networks\nHEALTHY=false\nfor i in $(seq 1 60); do\n  docker exec \"$CONTAINER\" curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz >\u002Fdev\u002Fnull 2>&1 && HEALTHY=true && break\n  sleep 2\ndone\n\nif [ \"$HEALTHY\" != \"true\" ]; then\n  echo \"ERROR: Milvus did not become healthy after 120s\"\n  echo \"Run: docker logs $CONTAINER --tail 50\"\n  exit 1\nfi\n\n# Switch to internal network (blocks all outbound internet)\ndocker network connect \"$INTERNAL_NET\" \"$CONTAINER\" || { echo \"ERROR: failed to connect internal network\"; exit 1; }\ndocker network disconnect \"$BRIDGE_NET\" \"$CONTAINER\" || { echo \"ERROR: failed to disconnect bridge network\"; exit 1; }\n\n# Verify isolation — hard abort if outbound is reachable\nif docker exec \"$CONTAINER\" curl -sf --connect-timeout 3 http:\u002F\u002F1.1.1.1 >\u002Fdev\u002Fnull 2>&1; then\n  echo \"ABORT: outbound internet still reachable after network switch\"\n  exit 1\nfi\necho \"Network isolation confirmed\"\nSCRIPT\nchmod +x ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n```\n\n**Why the network dance?** Docker Desktop for Mac's `--internal` network blocks port publishing — the Docker proxy can't route traffic to containers on internal-only networks. The startup script creates the container on a regular bridge (port publishing works), waits for health, then switches to the internal network (blocks outbound). This survives restarts because the LaunchAgent\u002Fsystemd unit replays the full sequence.\n\n**Why `seccomp:unconfined`?** Milvus v2.6 uses `clone3()` and `io_uring` syscalls that the Docker default seccomp profile blocks. Without this flag, Milvus crashes on startup.\n\n**Why `--restart no`?** The service manager (LaunchAgent\u002Fsystemd) owns the lifecycle, not Docker. This ensures the network dance runs on every start.\n\n**Resource limits:** `--memory=3g --cpus=2` prevents Milvus from consuming all host RAM during indexing. Users with more RAM can increase these values in the script.\n\n### Step 3b: Run the startup script\n\n```bash\nbash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n```\n\n### Step 3c: Install service manager\n\n**macOS — LaunchAgent:**\n\n```bash\ncat > ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist \u003C\u003C EOF\n\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE plist PUBLIC \"-\u002F\u002FApple\u002F\u002FDTD PLIST 1.0\u002F\u002FEN\" \"http:\u002F\u002Fwww.apple.com\u002FDTDs\u002FPropertyList-1.0.dtd\">\n\u003Cplist version=\"1.0\">\n\u003Cdict>\n  \u003Ckey>Label\u003C\u002Fkey>\n  \u003Cstring>com.deus.milvus\u003C\u002Fstring>\n  \u003Ckey>ProgramArguments\u003C\u002Fkey>\n  \u003Carray>\n    \u003Cstring>bash\u003C\u002Fstring>\n    \u003Cstring>$HOME\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\u003C\u002Fstring>\n  \u003C\u002Farray>\n  \u003Ckey>RunAtLoad\u003C\u002Fkey>\n  \u003Ctrue\u002F>\n  \u003Ckey>KeepAlive\u003C\u002Fkey>\n  \u003Cfalse\u002F>\n  \u003Ckey>StandardOutPath\u003C\u002Fkey>\n  \u003Cstring>$HOME\u002FLibrary\u002FLogs\u002Fdeus-milvus.log\u003C\u002Fstring>\n  \u003Ckey>StandardErrorPath\u003C\u002Fkey>\n  \u003Cstring>$HOME\u002FLibrary\u002FLogs\u002Fdeus-milvus.error.log\u003C\u002Fstring>\n\u003C\u002Fdict>\n\u003C\u002Fplist>\nEOF\nlaunchctl bootstrap gui\u002F$(id -u) ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist\n```\n\nNote: The heredoc uses `\u003C\u003C EOF` (not `\u003C\u003C 'EOF'`) so `$HOME` expands to the absolute path. `launchd` does not expand `~` in plist values.\n\n**Linux — systemd user unit:**\n\n```bash\nmkdir -p ~\u002F.config\u002Fsystemd\u002Fuser\ncat > ~\u002F.config\u002Fsystemd\u002Fuser\u002Fdeus-milvus.service \u003C\u003C 'EOF'\n[Unit]\nDescription=Deus Milvus (semantic code search)\nAfter=docker.service\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=%h\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\nStandardOutput=journal\nStandardError=journal\n\n[Install]\nWantedBy=default.target\nEOF\nsystemctl --user enable --now deus-milvus.service\n```\n\n## Phase 4: Configure MCP\n\n### Safety gate\n\nBefore writing MCP config, verify these invariants. **Abort if any check fails** — do not proceed with a warning.\n\n**Check 1 — No MILVUS_TOKEN:**\n\n```bash\n[ -n \"$MILVUS_TOKEN\" ] && echo \"ABORT: MILVUS_TOKEN is set. This causes data to be sent to Zilliz Cloud. Run: unset MILVUS_TOKEN\" && exit 1 || echo \"OK\"\n```\n\nIf `MILVUS_TOKEN` is set, tell the user to unset it and stop. Do NOT write the MCP config.\n\n**Check 2 — MILVUS_ADDRESS is localhost:**\n\nThe config being written must set `MILVUS_ADDRESS` to exactly `127.0.0.1:19530`. Never omit this field — without it, the SDK may auto-provision a Zilliz Cloud cluster if `MILVUS_TOKEN` is set in the future.\n\n### Read and merge MCP config\n\nRead `~\u002F.claude\u002Fmcp.json` and merge the new `claude-context` entry. Never overwrite existing servers.\n\nThe final entry should be:\n\n```json\n{\n  \"claude-context\": {\n    \"command\": \"npx\",\n    \"args\": [\"-y\", \"@zilliz\u002Fclaude-context-mcp@0.1.13\"],\n    \"env\": {\n      \"EMBEDDING_PROVIDER\": \"Ollama\",\n      \"OLLAMA_HOST\": \"http:\u002F\u002F127.0.0.1:11434\",\n      \"OLLAMA_MODEL\": \"\u003Cdetected-model>\",\n      \"EMBEDDING_MODEL\": \"\u003Cdetected-model>\",\n      \"EMBEDDING_DIMENSION\": \"\u003Cdetected-dimension>\",\n      \"EMBEDDING_BATCH_SIZE\": \"5\",\n      \"MILVUS_ADDRESS\": \"127.0.0.1:19530\",\n      \"HYBRID_MODE\": \"false\"\n    }\n  }\n}\n```\n\nReplace `\u003Cdetected-model>` and `\u003Cdetected-dimension>` with the values from Phase 2.\n\nConfiguration notes:\n- `EMBEDDING_BATCH_SIZE=5` is a conservative default to avoid OOM with local models. Users with more RAM can increase this.\n- `HYBRID_MODE=false` disables sparse vector (BM25) search which has reported instability with Milvus standalone. Dense search with the MCP's own reranking is sufficient. Set to `true` to experiment.\n- `MILVUS_ADDRESS` must always be set explicitly — omitting it while a `MILVUS_TOKEN` is present would trigger calls to Zilliz Cloud.\n- This is a user-scope config (`~\u002F.claude\u002Fmcp.json`), making code search available across all projects.\n\n## Phase 5: Verify\n\n### Smoke test Milvus\n\nPort 9091 is the Milvus management HTTP API (healthz). Port 19530 is the gRPC data port (used by the MCP server). Both must be working.\n\n```bash\ndocker exec deus-milvus curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz && echo \"Milvus healthy\"\n```\n\n### Confirm port accessibility\n\n```bash\npython3 -c \"import socket; s=socket.socket(); s.settimeout(3); r=s.connect_ex(('127.0.0.1',19530)); print('Port 19530: OK' if r==0 else 'Port 19530: FAIL'); s.close()\"\n```\n\n### Confirm network isolation\n\n```bash\ndocker exec deus-milvus curl -sf --connect-timeout 3 http:\u002F\u002F1.1.1.1 2>&1 && echo \"WARNING: outbound internet reachable\" || echo \"Isolation confirmed — no outbound internet\"\n```\n\nThis command must fail. If it succeeds, the network switch in `start-milvus.sh` did not complete — re-run the script.\n\n### Test the MCP server\n\nTell the user:\n\n> Claude Context is now installed. To use it, **start a new Claude Code session** and try:\n>\n> 1. Index a codebase: the agent will use `index_codebase` with a directory path\n> 2. Search: ask something like \"find the function that handles message routing\"\n> 3. The agent uses `search_code` to find semantically relevant code\n>\n> **First-time indexing** may take a few minutes depending on codebase size.\n>\n> To verify no data leaves your machine during indexing, run in a separate terminal:\n> ```bash\n> lsof -i -P | grep node\n> ```\n> You should only see connections to `127.0.0.1:19530` (Milvus) and `127.0.0.1:11434` (Ollama).\n\n## Security\n\n**Defense in depth — what prevents data leakage:**\n\n| Layer | Mechanism |\n|-------|-----------|\n| Embeddings | `EMBEDDING_PROVIDER=Ollama` — computed locally, never sent to cloud |\n| Vector DB address | `MILVUS_ADDRESS=127.0.0.1:19530` — always set explicitly, prevents Zilliz Cloud auto-provisioning |\n| Cloud token | No `MILVUS_TOKEN` — hard gate enforced by skill (abort, not warn) |\n| Storage | `COMMON_STORAGETYPE=local` — vectors on local filesystem, no S3\u002FMinIO |\n| Port binding | `127.0.0.1` only — not accessible from LAN |\n| Network isolation | `--internal` Docker network — blocks all outbound internet from container |\n| Resource limits | `--memory=3g --cpus=2` — prevents resource exhaustion on shared machines |\n\n**MCP trust boundary:** The `claude-context` MCP server runs on the host as the user — it has unrestricted filesystem read access. It is not sandboxed. Only index directories you trust; avoid indexing paths containing secrets (`.env`, `.aws\u002F`, `.ssh\u002F`, `~\u002F.config\u002F`). Embeddings of cleartext secrets would persist in the unencrypted Milvus volume.\n\n**Supply chain:** The top-level npm package is pinned to `@0.1.13`, but transitive dependencies are resolved at `npx` time without a lockfile. The `--internal` Docker network mitigates container-side supply chain risk; the MCP server's npm tree is the remaining surface.\n\n**Known limitation:** Between container start and the network switch (a few seconds during startup), the container is on the bridge network and theoretically has outbound access. The bridge-first approach is required because Docker Desktop for Mac cannot publish ports on `--internal` or `--network none` networks. In practice, Milvus doesn't make outbound calls during this window — it's initializing etcd and internal services. The startup script applies isolation as soon as healthz returns OK.\n\n## Troubleshooting\n\n### Milvus won't start\n\n1. Check if port 19530 is already in use: `lsof -i :19530`\n2. Check Docker is running: `docker info`\n3. Check container logs: `docker logs deus-milvus --tail 50`\n4. If the container exists but won't start, remove and recreate:\n   ```bash\n   docker rm -f deus-milvus\n   bash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n   ```\n\n### \"embedded etcd can not be used under distributed mode\"\n\n`DEPLOY_MODE=STANDALONE` is missing. The startup script sets this automatically. If running Docker manually, add `-e DEPLOY_MODE=STANDALONE` to your `docker run` command.\n\n### \"failed to create etcd client: connection refused\"\n\n`ETCD_USE_EMBED=true` and the config file mounts are missing. The startup script handles this. If running manually, add:\n- `-e ETCD_USE_EMBED=true`\n- `-e ETCD_DATA_DIR=\u002Fvar\u002Flib\u002Fmilvus\u002Fetcd`\n- `-e ETCD_CONFIG_PATH=\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml`\n- `-v ~\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml:\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml:ro`\n\n### \"Failed to connect to Milvus\" \u002F Port 19530 not accessible\n\n1. Check Milvus is running: `docker ps --filter \"name=deus-milvus\"`\n2. Check health: `docker exec deus-milvus curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz`\n3. Check port: `python3 -c \"import socket; s=socket.socket(); s.settimeout(3); r=s.connect_ex(('127.0.0.1',19530)); print('open' if r==0 else 'closed'); s.close()\"`\n4. If port is closed but container is running, the container may be on the internal network only (port publishing broken). Re-run: `bash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh`\n5. Check `MILVUS_ADDRESS` in `~\u002F.claude\u002Fmcp.json` is `127.0.0.1:19530`\n\n### Port not accessible after Docker restart\n\nThe LaunchAgent (macOS) or systemd unit (Linux) should handle restarts automatically. Check logs:\n- macOS: `cat ~\u002FLibrary\u002FLogs\u002Fdeus-milvus.error.log`\n- Linux: `journalctl --user -u deus-milvus.service`\n\nIf the service manager isn't running, start manually: `bash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh`\n\n### Embedding dimension mismatch\n\nIf you see errors about dimension mismatch, the `EMBEDDING_DIMENSION` in `~\u002F.claude\u002Fmcp.json` doesn't match your model's output. Re-detect:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:11434\u002Fapi\u002Fembed -d '{\"model\":\"\u003Cyour-model>\",\"input\":\"test\"}' | python3 -c \"import sys,json; d=json.load(sys.stdin); print(len(d['embeddings'][0]))\"\n```\n\nUpdate `EMBEDDING_DIMENSION` in `~\u002F.claude\u002Fmcp.json` to match. This is a known upstream issue (claude-context #235) — auto-detection fails in the background indexer.\n\n### Node 24 incompatibility\n\nclaude-context requires Node 20 or 22. Node 24 is not supported. Check your version with `node --version` and switch if needed (e.g., via `nvm use 22`).\n\n### Upgrading from old installation\n\nIf you installed from an earlier version of this skill (before the Docker fix), your container may have `--restart unless-stopped` and be missing config mounts. Run:\n\n```bash\ndocker stop deus-milvus && docker rm deus-milvus\nbash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n```\n\nThe named volume `deus-milvus-data` is preserved — no indexed data is lost.\n\n### Re-indexing after volume removal\n\nIf you removed the Milvus volume (`docker volume rm deus-milvus-data`), all indexed data is gone. Re-index by asking Claude to run `index_codebase` again on your project directories.\n\n## Removal\n\nTo completely remove claude-context:\n\n1. Remove from MCP config:\n   ```bash\n   # Edit ~\u002F.claude\u002Fmcp.json and remove the \"claude-context\" key from mcpServers\n   ```\n\n2. Stop and remove Milvus:\n   ```bash\n   docker stop deus-milvus && docker rm deus-milvus\n   ```\n\n3. Remove the Docker volume (**warning: destroys all indexed codebase data** — re-indexing required after reinstall):\n   ```bash\n   docker volume rm deus-milvus-data\n   ```\n\n4. Remove Docker networks:\n   ```bash\n   docker network rm deus-milvus-net deus-milvus-bridge 2>\u002Fdev\u002Fnull\n   ```\n\n5. Remove config files:\n   ```bash\n   rm -rf ~\u002F.config\u002Fdeus\u002Fmilvus\u002F\n   ```\n\n6. Remove service manager:\n\n   **macOS:**\n   ```bash\n   launchctl bootout gui\u002F$(id -u) ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist\n   rm ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist\n   rm -f ~\u002FLibrary\u002FLogs\u002Fdeus-milvus.log ~\u002FLibrary\u002FLogs\u002Fdeus-milvus.error.log\n   ```\n\n   **Linux:**\n   ```bash\n   systemctl --user disable --now deus-milvus.service\n   rm ~\u002F.config\u002Fsystemd\u002Fuser\u002Fdeus-milvus.service\n   ```\n\n## Telemetry\n\n**Audited: 2026-05-23. Milvus 2.6 has no configurable telemetry opt-out - network isolation is sufficient.**\n\n### Milvus 2.6 server (Go)\n\nSearched the `milvus-io\u002Fmilvus` repo for: `telemetry`, `analytics`, `phoneHome`, `usageReport`, `pingHome`. All GitHub code search queries returned **0 results**.\n\nThe repo contains `internal\u002Frootcoord\u002Ftelemetry\u002F` but it is **internal cluster telemetry only** - client SDK metrics (request counts, error rates, SDK versions) stored in etcd for cluster-internal monitoring. No data is transmitted to external services:\n\n- `manager.go`: stores client metrics in-memory + etcd; pull-based (not push); no external HTTP calls\n- `command_store.go`: writes only to etcd (internal); no Zilliz\u002Fexternal endpoints\n- `configs\u002Fmilvus.yaml`: no `telemetry`, `analytics`, or phone-home keys present\n- Dockerfile (`build\u002Fdocker\u002Fmilvus\u002Fubuntu22.04\u002FDockerfile`): no telemetry ENV vars; entrypoint is `\u002Ftini --`\n- docker-compose env vars (v2.6 standalone): only `MINIO_REGION`, `ETCD_ENDPOINTS`, `MINIO_ADDRESS`\n\n### PyMilvus (Python client)\n\nGitHub code search for `telemetry` in `milvus-io\u002Fpymilvus`: **0 results**. No external reporting found.\n\n### milvus-sdk-node (Node.js client)\n\nGitHub code search for `telemetry` in `milvus-io\u002Fmilvus-sdk-node`: **0 results**. No external reporting found.\n\n### Conclusion\n\nNo configurable telemetry opt-out keys exist because Milvus 2.6 does not phone home. The `--internal` Docker network isolation applied in Phase 3 is the complete mitigation. No `user.yaml` overrides are needed for telemetry suppression - `~\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml` is mounted empty (as a required mount point) and should remain so.\n","# Add Claude Context (Semantic Code Search) -- DEPRECATED\n\n> **This skill is deprecated.** claude-context (Milvus-based) was evaluated and found to have never worked due to 5 cascading bugs (wrong config path, corrupt npx cache, wrong protocol, broken network isolation, short timeout). Milvus is also massive overkill for code search at any realistic codebase scale.\n>\n> **Replacement:** `scripts\u002Fcode_search.py` -- native semantic code search using sqlite-vec + Ollama embeddings + RRF fusion, following the `memory_tree.py` pattern. No Docker, no Milvus, no external dependencies beyond Ollama.\n\nThe content below is preserved for historical reference only.\n\n---\n\nThis skill adds semantic code search to Claude Code via the [claude-context](https:\u002F\u002Fgithub.com\u002Fzilliztech\u002Fclaude-context) MCP server by Zilliz. Once installed, Claude can index any codebase and search it by meaning — not just keyword matching.\n\nTools added:\n- `index_codebase` — index a directory into the vector database\n- `search_code` — semantic search across indexed code\n- `get_indexing_status` — check indexing progress\n- `clear_index` — remove an index\n\n**Privacy:** All data stays local. Embeddings via Ollama, vectors in a network-isolated Docker Milvus container. No cloud APIs, no telemetry. See [Security](#security) for the full defense-in-depth breakdown.\n\n## Phase 1: Pre-flight\n\n### Check if already configured\n\n```bash\ngrep -q \"claude-context\" ~\u002F.claude\u002Fmcp.json 2>\u002Fdev\u002Fnull && echo \"INSTALLED\" || echo \"NOT_INSTALLED\"\n```\n\nIf already installed, skip to Phase 5 (Verify).\n\n### Check prerequisites\n\n**Docker:**\n\n```bash\ndocker info > \u002Fdev\u002Fnull 2>&1 && echo \"Docker OK\" || echo \"Docker not running\"\n```\n\nIf Docker is not running, tell the user to start Docker Desktop (macOS) or the Docker daemon (Linux).\n\n**Ollama:**\n\n```bash\nollama list > \u002Fdev\u002Fnull 2>&1 && echo \"Ollama OK\" || echo \"Ollama not running\"\n```\n\nIf Ollama is not installed, direct the user to https:\u002F\u002Follama.com\u002Fdownload.\n\n**Node.js version:**\n\n```bash\nnode --version\n```\n\nMust be >= 20 and \u003C 24. Node 24 is incompatible with claude-context. If the version is wrong, tell the user which versions are supported.\n\n## Phase 2: Embedding Model\n\n### Detect available embedding models\n\n```bash\nollama list 2>\u002Fdev\u002Fnull | grep -i embed\n```\n\n### Choose a model\n\nIf embedding models are found, ask the user which one to use via `AskUserQuestion`.\n\nIf no embedding models are found, suggest pulling one:\n\n> No embedding models found in Ollama. You need one for code search. Options:\n>\n> - **nomic-embed-text** (768-dim, 274MB) — lightweight, recommended for most use cases\n> - **mxbai-embed-large** (1024-dim, 669MB) — higher quality embeddings\n> - **snowflake-arctic-embed2** (1024-dim, 1.2GB) — multilingual support\n\nPull the chosen model:\n\n```bash\nollama pull \u003Cmodel-name>\n```\n\n### Detect embedding dimension\n\nGet the dimension from a test embedding call — never hardcode this value:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:11434\u002Fapi\u002Fembed -d '{\"model\":\"\u003Cmodel-name>\",\"input\":\"test\"}' | python3 -c \"import sys,json; d=json.load(sys.stdin); print(len(d['embeddings'][0]))\"\n```\n\nStore the model name and dimension for Phase 4.\n\n## Phase 3: Start Milvus\n\n### Check if Milvus is already running\n\n```bash\ndocker ps --filter \"name=deus-milvus\" --format \"{{.Status}}\" 2>\u002Fdev\u002Fnull\n```\n\nIf `deus-milvus` is already running and healthy, skip to Phase 4:\n\n```bash\ndocker exec deus-milvus curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz > \u002Fdev\u002Fnull 2>&1 && echo \"HEALTHY\" || echo \"NOT_HEALTHY\"\n```\n\n### Step 3a: Create config files\n\nCreate the Milvus config directory:\n\n```bash\nmkdir -p ~\u002F.config\u002Fdeus\u002Fmilvus\n```\n\nCreate `~\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml`:\n\n```bash\ncat > ~\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml \u003C\u003C 'EOF'\nlisten-client-urls: http:\u002F\u002F0.0.0.0:2379\nadvertise-client-urls: http:\u002F\u002F0.0.0.0:2379\nquota-backend-bytes: 4294967296\nauto-compaction-mode: revision\nauto-compaction-retention: \"1000\"\nEOF\n```\n\nCreate `~\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml` (required mount, no overrides needed):\n\n```bash\ntouch ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml\n```\n\nCreate `~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh`:\n\n```bash\ncat > ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh \u003C\u003C 'SCRIPT'\n#!\u002Fbin\u002Fbash\nset -euo pipefail\n\nCONTAINER=deus-milvus\nINTERNAL_NET=deus-milvus-net\nBRIDGE_NET=deus-milvus-bridge\n\n# Create networks if missing\ndocker network create --internal \"$INTERNAL_NET\" 2>\u002Fdev\u002Fnull || true\ndocker network create \"$BRIDGE_NET\" 2>\u002Fdev\u002Fnull || true\n\n# If container exists but stopped, remove it (clean restart with correct config)\nif docker ps -a --format '{{.Names}}' 2>\u002Fdev\u002Fnull | grep -q \"^${CONTAINER}$\"; then\n  if docker ps --format '{{.Names}}' 2>\u002Fdev\u002Fnull | grep -q \"^${CONTAINER}$\"; then\n    echo \"deus-milvus already running\"\n    exit 0\n  fi\n  docker rm \"$CONTAINER\"\nfi\n\n# Start on bridge network (port publishing requires a non-internal network at creation time)\ndocker run -d --name \"$CONTAINER\" \\\n  --network \"$BRIDGE_NET\" \\\n  --restart no \\\n  --security-opt seccomp:unconfined \\\n  -e ETCD_USE_EMBED=true \\\n  -e ETCD_DATA_DIR=\u002Fvar\u002Flib\u002Fmilvus\u002Fetcd \\\n  -e ETCD_CONFIG_PATH=\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml \\\n  -e COMMON_STORAGETYPE=local \\\n  -e DEPLOY_MODE=STANDALONE \\\n  --memory=3g --memory-swap=3g --cpus=2 \\\n  -p 127.0.0.1:19530:19530 \\\n  -v deus-milvus-data:\u002Fvar\u002Flib\u002Fmilvus \\\n  -v \"$HOME\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml:\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml:ro\" \\\n  -v \"$HOME\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml:\u002Fmilvus\u002Fconfigs\u002Fuser.yaml:ro\" \\\n  milvusdb\u002Fmilvus:latest \\\n  milvus run standalone\n\n# Wait for Milvus to be healthy before switching networks\nHEALTHY=false\nfor i in $(seq 1 60); do\n  docker exec \"$CONTAINER\" curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz >\u002Fdev\u002Fnull 2>&1 && HEALTHY=true && break\n  sleep 2\ndone\n\nif [ \"$HEALTHY\" != \"true\" ]; then\n  echo \"ERROR: Milvus did not become healthy after 120s\"\n  echo \"Run: docker logs $CONTAINER --tail 50\"\n  exit 1\nfi\n\n# Switch to internal network (blocks all outbound internet)\ndocker network connect \"$INTERNAL_NET\" \"$CONTAINER\" || { echo \"ERROR: failed to connect internal network\"; exit 1; }\ndocker network disconnect \"$BRIDGE_NET\" \"$CONTAINER\" || { echo \"ERROR: failed to disconnect bridge network\"; exit 1; }\n\n# Verify isolation — hard abort if outbound is reachable\nif docker exec \"$CONTAINER\" curl -sf --connect-timeout 3 http:\u002F\u002F1.1.1.1 >\u002Fdev\u002Fnull 2>&1; then\n  echo \"ABORT: outbound internet still reachable after network switch\"\n  exit 1\nfi\necho \"Network isolation confirmed\"\nSCRIPT\nchmod +x ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n```\n\n**Why the network dance?** Docker Desktop for Mac's `--internal` network blocks port publishing — the Docker proxy can't route traffic to containers on internal-only networks. The startup script creates the container on a regular bridge (port publishing works), waits for health, then switches to the internal network (blocks outbound). This survives restarts because the LaunchAgent\u002Fsystemd unit replays the full sequence.\n\n**Why `seccomp:unconfined`?** Milvus v2.6 uses `clone3()` and `io_uring` syscalls that the Docker default seccomp profile blocks. Without this flag, Milvus crashes on startup.\n\n**Why `--restart no`?** The service manager (LaunchAgent\u002Fsystemd) owns the lifecycle, not Docker. This ensures the network dance runs on every start.\n\n**Resource limits:** `--memory=3g --cpus=2` prevents Milvus from consuming all host RAM during indexing. Users with more RAM can increase these values in the script.\n\n### Step 3b: Run the startup script\n\n```bash\nbash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n```\n\n### Step 3c: Install service manager\n\n**macOS — LaunchAgent:**\n\n```bash\ncat > ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist \u003C\u003C EOF\n\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE plist PUBLIC \"-\u002F\u002FApple\u002F\u002FDTD PLIST 1.0\u002F\u002FEN\" \"http:\u002F\u002Fwww.apple.com\u002FDTDs\u002FPropertyList-1.0.dtd\">\n\u003Cplist version=\"1.0\">\n\u003Cdict>\n  \u003Ckey>Label\u003C\u002Fkey>\n  \u003Cstring>com.deus.milvus\u003C\u002Fstring>\n  \u003Ckey>ProgramArguments\u003C\u002Fkey>\n  \u003Carray>\n    \u003Cstring>bash\u003C\u002Fstring>\n    \u003Cstring>$HOME\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\u003C\u002Fstring>\n  \u003C\u002Farray>\n  \u003Ckey>RunAtLoad\u003C\u002Fkey>\n  \u003Ctrue\u002F>\n  \u003Ckey>KeepAlive\u003C\u002Fkey>\n  \u003Cfalse\u002F>\n  \u003Ckey>StandardOutPath\u003C\u002Fkey>\n  \u003Cstring>$HOME\u002FLibrary\u002FLogs\u002Fdeus-milvus.log\u003C\u002Fstring>\n  \u003Ckey>StandardErrorPath\u003C\u002Fkey>\n  \u003Cstring>$HOME\u002FLibrary\u002FLogs\u002Fdeus-milvus.error.log\u003C\u002Fstring>\n\u003C\u002Fdict>\n\u003C\u002Fplist>\nEOF\nlaunchctl bootstrap gui\u002F$(id -u) ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist\n```\n\nNote: The heredoc uses `\u003C\u003C EOF` (not `\u003C\u003C 'EOF'`) so `$HOME` expands to the absolute path. `launchd` does not expand `~` in plist values.\n\n**Linux — systemd user unit:**\n\n```bash\nmkdir -p ~\u002F.config\u002Fsystemd\u002Fuser\ncat > ~\u002F.config\u002Fsystemd\u002Fuser\u002Fdeus-milvus.service \u003C\u003C 'EOF'\n[Unit]\nDescription=Deus Milvus (semantic code search)\nAfter=docker.service\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=%h\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\nStandardOutput=journal\nStandardError=journal\n\n[Install]\nWantedBy=default.target\nEOF\nsystemctl --user enable --now deus-milvus.service\n```\n\n## Phase 4: Configure MCP\n\n### Safety gate\n\nBefore writing MCP config, verify these invariants. **Abort if any check fails** — do not proceed with a warning.\n\n**Check 1 — No MILVUS_TOKEN:**\n\n```bash\n[ -n \"$MILVUS_TOKEN\" ] && echo \"ABORT: MILVUS_TOKEN is set. This causes data to be sent to Zilliz Cloud. Run: unset MILVUS_TOKEN\" && exit 1 || echo \"OK\"\n```\n\nIf `MILVUS_TOKEN` is set, tell the user to unset it and stop. Do NOT write the MCP config.\n\n**Check 2 — MILVUS_ADDRESS is localhost:**\n\nThe config being written must set `MILVUS_ADDRESS` to exactly `127.0.0.1:19530`. Never omit this field — without it, the SDK may auto-provision a Zilliz Cloud cluster if `MILVUS_TOKEN` is set in the future.\n\n### Read and merge MCP config\n\nRead `~\u002F.claude\u002Fmcp.json` and merge the new `claude-context` entry. Never overwrite existing servers.\n\nThe final entry should be:\n\n```json\n{\n  \"claude-context\": {\n    \"command\": \"npx\",\n    \"args\": [\"-y\", \"@zilliz\u002Fclaude-context-mcp@0.1.13\"],\n    \"env\": {\n      \"EMBEDDING_PROVIDER\": \"Ollama\",\n      \"OLLAMA_HOST\": \"http:\u002F\u002F127.0.0.1:11434\",\n      \"OLLAMA_MODEL\": \"\u003Cdetected-model>\",\n      \"EMBEDDING_MODEL\": \"\u003Cdetected-model>\",\n      \"EMBEDDING_DIMENSION\": \"\u003Cdetected-dimension>\",\n      \"EMBEDDING_BATCH_SIZE\": \"5\",\n      \"MILVUS_ADDRESS\": \"127.0.0.1:19530\",\n      \"HYBRID_MODE\": \"false\"\n    }\n  }\n}\n```\n\nReplace `\u003Cdetected-model>` and `\u003Cdetected-dimension>` with the values from Phase 2.\n\nConfiguration notes:\n- `EMBEDDING_BATCH_SIZE=5` is a conservative default to avoid OOM with local models. Users with more RAM can increase this.\n- `HYBRID_MODE=false` disables sparse vector (BM25) search which has reported instability with Milvus standalone. Dense search with the MCP's own reranking is sufficient. Set to `true` to experiment.\n- `MILVUS_ADDRESS` must always be set explicitly — omitting it while a `MILVUS_TOKEN` is present would trigger calls to Zilliz Cloud.\n- This is a user-scope config (`~\u002F.claude\u002Fmcp.json`), making code search available across all projects.\n\n## Phase 5: Verify\n\n### Smoke test Milvus\n\nPort 9091 is the Milvus management HTTP API (healthz). Port 19530 is the gRPC data port (used by the MCP server). Both must be working.\n\n```bash\ndocker exec deus-milvus curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz && echo \"Milvus healthy\"\n```\n\n### Confirm port accessibility\n\n```bash\npython3 -c \"import socket; s=socket.socket(); s.settimeout(3); r=s.connect_ex(('127.0.0.1',19530)); print('Port 19530: OK' if r==0 else 'Port 19530: FAIL'); s.close()\"\n```\n\n### Confirm network isolation\n\n```bash\ndocker exec deus-milvus curl -sf --connect-timeout 3 http:\u002F\u002F1.1.1.1 2>&1 && echo \"WARNING: outbound internet reachable\" || echo \"Isolation confirmed — no outbound internet\"\n```\n\nThis command must fail. If it succeeds, the network switch in `start-milvus.sh` did not complete — re-run the script.\n\n### Test the MCP server\n\nTell the user:\n\n> Claude Context is now installed. To use it, **start a new Claude Code session** and try:\n>\n> 1. Index a codebase: the agent will use `index_codebase` with a directory path\n> 2. Search: ask something like \"find the function that handles message routing\"\n> 3. The agent uses `search_code` to find semantically relevant code\n>\n> **First-time indexing** may take a few minutes depending on codebase size.\n>\n> To verify no data leaves your machine during indexing, run in a separate terminal:\n> ```bash\n> lsof -i -P | grep node\n> ```\n> You should only see connections to `127.0.0.1:19530` (Milvus) and `127.0.0.1:11434` (Ollama).\n\n## Security\n\n**Defense in depth — what prevents data leakage:**\n\n| Layer | Mechanism |\n|-------|-----------|\n| Embeddings | `EMBEDDING_PROVIDER=Ollama` — computed locally, never sent to cloud |\n| Vector DB address | `MILVUS_ADDRESS=127.0.0.1:19530` — always set explicitly, prevents Zilliz Cloud auto-provisioning |\n| Cloud token | No `MILVUS_TOKEN` — hard gate enforced by skill (abort, not warn) |\n| Storage | `COMMON_STORAGETYPE=local` — vectors on local filesystem, no S3\u002FMinIO |\n| Port binding | `127.0.0.1` only — not accessible from LAN |\n| Network isolation | `--internal` Docker network — blocks all outbound internet from container |\n| Resource limits | `--memory=3g --cpus=2` — prevents resource exhaustion on shared machines |\n\n**MCP trust boundary:** The `claude-context` MCP server runs on the host as the user — it has unrestricted filesystem read access. It is not sandboxed. Only index directories you trust; avoid indexing paths containing secrets (`.env`, `.aws\u002F`, `.ssh\u002F`, `~\u002F.config\u002F`). Embeddings of cleartext secrets would persist in the unencrypted Milvus volume.\n\n**Supply chain:** The top-level npm package is pinned to `@0.1.13`, but transitive dependencies are resolved at `npx` time without a lockfile. The `--internal` Docker network mitigates container-side supply chain risk; the MCP server's npm tree is the remaining surface.\n\n**Known limitation:** Between container start and the network switch (a few seconds during startup), the container is on the bridge network and theoretically has outbound access. The bridge-first approach is required because Docker Desktop for Mac cannot publish ports on `--internal` or `--network none` networks. In practice, Milvus doesn't make outbound calls during this window — it's initializing etcd and internal services. The startup script applies isolation as soon as healthz returns OK.\n\n## Troubleshooting\n\n### Milvus won't start\n\n1. Check if port 19530 is already in use: `lsof -i :19530`\n2. Check Docker is running: `docker info`\n3. Check container logs: `docker logs deus-milvus --tail 50`\n4. If the container exists but won't start, remove and recreate:\n   ```bash\n   docker rm -f deus-milvus\n   bash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n   ```\n\n### \"embedded etcd can not be used under distributed mode\"\n\n`DEPLOY_MODE=STANDALONE` is missing. The startup script sets this automatically. If running Docker manually, add `-e DEPLOY_MODE=STANDALONE` to your `docker run` command.\n\n### \"failed to create etcd client: connection refused\"\n\n`ETCD_USE_EMBED=true` and the config file mounts are missing. The startup script handles this. If running manually, add:\n- `-e ETCD_USE_EMBED=true`\n- `-e ETCD_DATA_DIR=\u002Fvar\u002Flib\u002Fmilvus\u002Fetcd`\n- `-e ETCD_CONFIG_PATH=\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml`\n- `-v ~\u002F.config\u002Fdeus\u002Fmilvus\u002FembedEtcd.yaml:\u002Fmilvus\u002Fconfigs\u002FembedEtcd.yaml:ro`\n\n### \"Failed to connect to Milvus\" \u002F Port 19530 not accessible\n\n1. Check Milvus is running: `docker ps --filter \"name=deus-milvus\"`\n2. Check health: `docker exec deus-milvus curl -sf http:\u002F\u002Flocalhost:9091\u002Fhealthz`\n3. Check port: `python3 -c \"import socket; s=socket.socket(); s.settimeout(3); r=s.connect_ex(('127.0.0.1',19530)); print('open' if r==0 else 'closed'); s.close()\"`\n4. If port is closed but container is running, the container may be on the internal network only (port publishing broken). Re-run: `bash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh`\n5. Check `MILVUS_ADDRESS` in `~\u002F.claude\u002Fmcp.json` is `127.0.0.1:19530`\n\n### Port not accessible after Docker restart\n\nThe LaunchAgent (macOS) or systemd unit (Linux) should handle restarts automatically. Check logs:\n- macOS: `cat ~\u002FLibrary\u002FLogs\u002Fdeus-milvus.error.log`\n- Linux: `journalctl --user -u deus-milvus.service`\n\nIf the service manager isn't running, start manually: `bash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh`\n\n### Embedding dimension mismatch\n\nIf you see errors about dimension mismatch, the `EMBEDDING_DIMENSION` in `~\u002F.claude\u002Fmcp.json` doesn't match your model's output. Re-detect:\n\n```bash\ncurl -s http:\u002F\u002F127.0.0.1:11434\u002Fapi\u002Fembed -d '{\"model\":\"\u003Cyour-model>\",\"input\":\"test\"}' | python3 -c \"import sys,json; d=json.load(sys.stdin); print(len(d['embeddings'][0]))\"\n```\n\nUpdate `EMBEDDING_DIMENSION` in `~\u002F.claude\u002Fmcp.json` to match. This is a known upstream issue (claude-context #235) — auto-detection fails in the background indexer.\n\n### Node 24 incompatibility\n\nclaude-context requires Node 20 or 22. Node 24 is not supported. Check your version with `node --version` and switch if needed (e.g., via `nvm use 22`).\n\n### Upgrading from old installation\n\nIf you installed from an earlier version of this skill (before the Docker fix), your container may have `--restart unless-stopped` and be missing config mounts. Run:\n\n```bash\ndocker stop deus-milvus && docker rm deus-milvus\nbash ~\u002F.config\u002Fdeus\u002Fmilvus\u002Fstart-milvus.sh\n```\n\nThe named volume `deus-milvus-data` is preserved — no indexed data is lost.\n\n### Re-indexing after volume removal\n\nIf you removed the Milvus volume (`docker volume rm deus-milvus-data`), all indexed data is gone. Re-index by asking Claude to run `index_codebase` again on your project directories.\n\n## Removal\n\nTo completely remove claude-context:\n\n1. Remove from MCP config:\n   ```bash\n   # Edit ~\u002F.claude\u002Fmcp.json and remove the \"claude-context\" key from mcpServers\n   ```\n\n2. Stop and remove Milvus:\n   ```bash\n   docker stop deus-milvus && docker rm deus-milvus\n   ```\n\n3. Remove the Docker volume (**warning: destroys all indexed codebase data** — re-indexing required after reinstall):\n   ```bash\n   docker volume rm deus-milvus-data\n   ```\n\n4. Remove Docker networks:\n   ```bash\n   docker network rm deus-milvus-net deus-milvus-bridge 2>\u002Fdev\u002Fnull\n   ```\n\n5. Remove config files:\n   ```bash\n   rm -rf ~\u002F.config\u002Fdeus\u002Fmilvus\u002F\n   ```\n\n6. Remove service manager:\n\n   **macOS:**\n   ```bash\n   launchctl bootout gui\u002F$(id -u) ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist\n   rm ~\u002FLibrary\u002FLaunchAgents\u002Fcom.deus.milvus.plist\n   rm -f ~\u002FLibrary\u002FLogs\u002Fdeus-milvus.log ~\u002FLibrary\u002FLogs\u002Fdeus-milvus.error.log\n   ```\n\n   **Linux:**\n   ```bash\n   systemctl --user disable --now deus-milvus.service\n   rm ~\u002F.config\u002Fsystemd\u002Fuser\u002Fdeus-milvus.service\n   ```\n\n## Telemetry\n\n**Audited: 2026-05-23. Milvus 2.6 has no configurable telemetry opt-out - network isolation is sufficient.**\n\n### Milvus 2.6 server (Go)\n\nSearched the `milvus-io\u002Fmilvus` repo for: `telemetry`, `analytics`, `phoneHome`, `usageReport`, `pingHome`. All GitHub code search queries returned **0 results**.\n\nThe repo contains `internal\u002Frootcoord\u002Ftelemetry\u002F` but it is **internal cluster telemetry only** - client SDK metrics (request counts, error rates, SDK versions) stored in etcd for cluster-internal monitoring. No data is transmitted to external services:\n\n- `manager.go`: stores client metrics in-memory + etcd; pull-based (not push); no external HTTP calls\n- `command_store.go`: writes only to etcd (internal); no Zilliz\u002Fexternal endpoints\n- `configs\u002Fmilvus.yaml`: no `telemetry`, `analytics`, or phone-home keys present\n- Dockerfile (`build\u002Fdocker\u002Fmilvus\u002Fubuntu22.04\u002FDockerfile`): no telemetry ENV vars; entrypoint is `\u002Ftini --`\n- docker-compose env vars (v2.6 standalone): only `MINIO_REGION`, `ETCD_ENDPOINTS`, `MINIO_ADDRESS`\n\n### PyMilvus (Python client)\n\nGitHub code search for `telemetry` in `milvus-io\u002Fpymilvus`: **0 results**. No external reporting found.\n\n### milvus-sdk-node (Node.js client)\n\nGitHub code search for `telemetry` in `milvus-io\u002Fmilvus-sdk-node`: **0 results**. No external reporting found.\n\n### Conclusion\n\nNo configurable telemetry opt-out keys exist because Milvus 2.6 does not phone home. The `--internal` Docker network isolation applied in Phase 3 is the complete mitigation. No `user.yaml` overrides are needed for telemetry suppression - `~\u002F.config\u002Fdeus\u002Fmilvus\u002Fuser.yaml` is mounted empty (as a required mount point) and should remain so.\n",{"name":5,"description":7,"disable-model-invocation":36},true,"main","2f24c38a2ae42d3161492f0729975b286452f4b4",".claude\u002Fskills\u002Fadd-claude-context",7,"https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus","https:\u002F\u002Fgithub.com\u002Fsliamh11","2026-11-13 20:39:27",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":36},[46,49,52],{"tool":47,"command":48},"npx","npx skills add sliamh11\u002FDeus --skill add-claude-context",{"tool":50,"command":51},"bunx","bunx skills add sliamh11\u002FDeus --skill add-claude-context",{"tool":53,"command":54},"pnpm","pnpm dlx skills add sliamh11\u002FDeus --skill add-claude-context","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-claude-context\u002FSKILL.md",[],[58,82,97,111,121,135],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":31},"01M6H3ZC87AJDM8566RP3CQ6BF","status","Quick read-only health check — session context, workspace mounts, tool availability, and task snapshot. Use when the user asks for system status or runs \u002Fstatus.","https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fstatus\u002FSKILL.md",[],[60,65,66,67,68,69,70,71,72,73,74,26,75,76,19,77,78,79,80,81],"health","snapshot","for","read-only","quick","availability","session context","task","health check","only","session","user","read","check","workspace","tool","system",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":31},"01M6H3Z8SK38PVH2B0W7NBP6ZP","resume","Load context from permanent memory and recent session logs. Tiered loading — CLAUDE.md full, session logs frontmatter-only by default.","https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fresume\u002FSKILL.md",[],[84,89,90,91,92,93,94,74,75,19,95,96],"memory","load","loading","full","session logs","default","logs","frontmatter",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":31},"01M6H3Z56ZBPKX77THMWSSHZCW","preserve","Scan the current conversation and silently save anything worth permanent memory to CLAUDE.md. Keeps the file compact — structured key:value, no prose.","https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fpreserve\u002FSKILL.md",[],[99,104,105,106,107,108,109,110,89],"structured","compact","scan","conversation","prose","save","file",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":31},"01M6H3Z1AKK58CWWY762YD3X9A","compress","Save the current session to the vault. Writes a compact session log with a TL;DR frontmatter (always) and full details below (when useful).","https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fcompress\u002FSKILL.md",[],[113,118,96,92,105,119,75,109,120],"with","log","vault",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":31},"01M6H3YX6STE1ZJC06EKWMY0M6","capabilities","Show what this Deus instance can do — installed skills, available tools, and system info. Read-only. Use when the user asks what the bot can do, what's installed, or runs \u002Fcapabilities.","https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fcapabilities\u002FSKILL.md",[],[123,128,129,81,68,130,131,132,133,27,134,74,26,76,77],"Tools","bot","can","system info","info","what the","show",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":31},"01M6H3YSNXYAR7NC1TZPFCANZN","agent-browser","Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.","https:\u002F\u002Fgithub.com\u002Fsliamh11\u002FDeus\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[142,143,144,67,118,145,146,147,72,148,26,77,149,150,151,152,153,154,155,156],"agent browser","browser","take","apps","pages","forms","test web","just","Bash","browse","data","web","test","research","screenshots"]