First-time setup for the Claude RAG plugin — configure backend connection, test everything, show quick reference
From claude-ragnpx claudepluginhub thisisyoyodev/claude-plugins --plugin claude-ragThis skill is limited to using the following tools:
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Guide the user through first-time setup of the Claude RAG plugin.
cat ~/.claude/plugins/claude-rag/config.json 2>/dev/null || echo "NO_CONFIG"
If config exists, show current settings and ask if they want to reconfigure.
Use AskUserQuestion:
If Local:
curl -s --max-time 3 https://api.clauderag.io/health
Start the backend with:
cd <project-root> && docker compose -f docker/docker-compose.yml up -d
Then: bun run backend/src/index.ts
If Cloud:
Create the config directory and file:
mkdir -p ~/.claude/plugins/claude-rag
Write ~/.claude/plugins/claude-rag/config.json with the chosen settings merged with defaults:
{
"connection": {
"endpoint": "<chosen_endpoint>",
"apiKey": "<if_cloud>"
},
"capture": {
"enabled": true,
"userPrompts": true,
"aiOutputs": true,
"toolCalls": true,
"toolResults": true,
"subAgents": true,
"multimodal": { "copyFiles": true, "maxFileSize": "50MB" },
"exclude": { "tools": ["AskUserQuestion"], "pathPatterns": ["*.env", "*.secret", "*credentials*"] }
},
"rag": {
"mode": "auto",
"threshold": 0.6,
"maxContextTokens": 5000,
"perPrompt": { "enabled": true, "maxItems": 5, "maxLatencyMs": 500 },
"sessionStart": { "enabled": true, "maxItems": 3 }
},
"privacy": {
"redactSecrets": true,
"excludePatterns": ["password", "token", "secret", "api_key", "private_key"]
}
}
curl -s <endpoint>/health
Verify the response shows "status": "ok" and "db": true.
Ingest a test event:
curl -s -X POST <endpoint>/api/v1/ingest \
-H "Content-Type: application/json" \
-d '{"events":[{"session_id":"setup-test","agent_id":"main","content_type":"user_prompt","content":"RAG plugin setup test","agent_type":"main","is_sub_agent":false,"hook_event_name":"UserPromptSubmit","timestamp":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"}],"project":"setup-test"}'
Wait 3 seconds for embedding, then search:
sleep 3 && curl -s -X POST <endpoint>/api/v1/search \
-H "Content-Type: application/json" \
-d '{"query":"RAG plugin setup test","limit":1}'
Verify a result comes back with score > 0.8.
Display:
Setup complete! The RAG plugin is now active.
Your conversations are being captured automatically.
Context from past sessions will be injected into your prompts.
Quick reference:
/claude-rag:search [query] — Search past conversations
/claude-rag:ask [question] — Ask about past work
/claude-rag:browse — Browse sessions & projects
/claude-rag:stats — View statistics
/claude-rag:config — Change settings
/claude-rag:forget — Soft-delete data