بنقرة واحدة
setup
First-time setup for the Claude RAG plugin — configure backend connection, test everything, show quick reference
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
First-time setup for the Claude RAG plugin — configure backend connection, test everything, show quick reference
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Ask a question about past work and get a synthesized answer informed by conversation history from the RAG database
Browse past sessions, projects, and their events in the RAG database
Configure the Claude RAG plugin — connection, capture settings, RAG mode, privacy, and more
Search past conversations and tool results for relevant historical context. Use when the user references past work ("how did we do X", "remember when", "last time"), asks about project history, or when historical context from previous sessions would help with the current task.
Soft-delete data from the RAG database — by session, project, or all. Data can be restored later.
Restore soft-deleted data in the RAG database — undo a previous forget/delete operation
| name | setup |
| description | First-time setup for the Claude RAG plugin — configure backend connection, test everything, show quick reference |
| disable-model-invocation | true |
| allowed-tools | Bash(*), Read, Write, AskUserQuestion |
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