Index repository for intelligent code search
Indexes your repository with Via's cloud service for intelligent code search. Use this before searching your codebase with other Via commands. Requires ANTHROPIC_API_KEY to be set.
/plugin marketplace add Via-ai-inc/via-cc-plugin-marketplace/plugin install via-cc-plugin@via-plugins-marketplace-for-claude-codeExecute the index-repository.sh shell script to index a workspace directory with the Via cloud service.
/via-cc-plugin:index [directory]
Arguments:
directory - Path to directory to index (optional, defaults to current directory)Environment Variables:
ANTHROPIC_API_KEY - Via API authentication token (must be set)If user provides a directory path:
bash "$(find ~/.claude/plugins/cache/via-plugins-marketplace-for-claude-code/via-cc-plugin -type f -name "index-repository.sh" | head -1)" <directory-path>
If no directory specified (index current directory):
bash "$(find ~/.claude/plugins/cache/via-plugins-marketplace-for-claude-code/via-cc-plugin -type f -name "index-repository.sh" | head -1)"
The script uses the ANTHROPIC_API_KEY environment variable for authentication.
Index current directory:
User: /via-cc-plugin:index
You: I'll index your current directory using the Via service.
[Execute: bash "$(find ~/.claude/plugins/cache/via-plugins-marketplace-for-claude-code/via-cc-plugin -type f -name "index-repository.sh" | head -1)"]
Index specific directory:
User: /via-cc-plugin:index ~/testing
You: I'll index ~/testing using the Via service.
[Execute: bash "$(find ~/.claude/plugins/cache/via-plugins-marketplace-for-claude-code/via-cc-plugin -type f -name "index-repository.sh" | head -1)" ~/testing]
If the ANTHROPIC_API_KEY environment variable is not set:
The script will return an error message indicating the environment variable is required.
Make sure users have set: export ANTHROPIC_API_KEY="sk-your-via-key"
https://via-litellm-dev-647509527972.us-west1.run.app