From personal-ai-infrastructure
Performs web research using Perplexity AI on a given query, returning synthesized answers with optional citations and sources.
How this command is triggered — by the user, by Claude, or both
Slash command
/personal-ai-infrastructure:web-researchThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Web Research Command - Perplexity AI ## Quick Usage ## With Citations ## Models - **sonar-pro** - Deeper analysis with more sources ## When to Use - Current events and recent information - Technical documentation research - Multi-source information synthesis - Fact-checking and verification
# Basic research query (API key in ${PAI_DIR}/.env as PERPLEXITY_API_KEY)
source ${PAI_DIR}/.env && curl -s -X POST https://api.perplexity.ai/chat/completions \
-H "Authorization: Bearer $PERPLEXITY_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"YOUR_QUERY_HERE\"}]}" \
| python3 -c "import sys, json; data = json.load(sys.stdin); print(data['choices'][0]['message']['content'])"
source ${PAI_DIR}/.env && curl -s -X POST https://api.perplexity.ai/chat/completions \
-H "Authorization: Bearer $PERPLEXITY_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"YOUR_QUERY_HERE\"}],\"return_citations\":true}" \
| python3 -m json.tool
npx claudepluginhub rafaelcalleja/claude-market-place --plugin personal-ai-infrastructure/perpExecutes multi-engine search across Claude WebSearch, Perplexity, Gemini, and Grok simultaneously for comprehensive results on the query.
/web-researchPerforms parallel web research across multiple angles in scan, brief, breadth, or deep modes, grounded in local context, producing synthesized reports with verified sources.
/researchActivates Research Mode enforcing anti-hallucination constraints from Anthropic docs. Verifies claims with local files, web search, citations. Persists until exit. Optional topic.
/researchGathers external knowledge on a given topic, citing sources so builds stay grounded in facts. Spawns sub-agents for broad sweeps, distills findings into cited rows.
/sc-researchConducts deep web research with adaptive planning and multi-hop searches on a query, producing a markdown report with executive summary, citations, confidence levels, and sources.
/researchConducts interactive deep research on a topic: captures and refines scope, decomposes into subtopics, performs parallel web searches with source verification, synthesizes into a well-sourced markdown document.