Index project files for semantic search
Indexes project files for semantic search using Ollama embeddings.
/plugin marketplace add pknull/asha-marketplace/plugin install asha@asha-marketplaceOptional: --full (complete reindex) or --check (verify dependencies)Run the memory index tool to enable semantic search across project files.
Arguments: $ARGUMENTS
Check that the project has been initialized with Asha:
[[ -f "${CLAUDE_PROJECT_DIR}/.asha/config.json" ]] && echo "Asha initialized" || echo "ERROR: Run /asha:init first"
If not initialized, instruct user to run /asha:init.
Based on arguments:
--full → Full reindex of all files--check → Verify dependencies only (Ollama running, packages installed)Use the run-python.sh wrapper which auto-detects the virtual environment:
# Incremental (default - changed files only)
"${CLAUDE_PLUGIN_ROOT}/tools/run-python.sh" "${CLAUDE_PLUGIN_ROOT}/tools/memory_index.py" ingest --changed
# Full reindex
"${CLAUDE_PLUGIN_ROOT}/tools/run-python.sh" "${CLAUDE_PLUGIN_ROOT}/tools/memory_index.py" ingest
# Check dependencies
"${CLAUDE_PLUGIN_ROOT}/tools/run-python.sh" "${CLAUDE_PLUGIN_ROOT}/tools/memory_index.py" check
Summarize:
ollama serve)ollama pull nomic-embed-text)/asha:init to set up)