Best use case
perplexity-search is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
AI-powered web search, research, and reasoning via Perplexity
Teams using perplexity-search should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/perplexity-search/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How perplexity-search Compares
| Feature / Agent | perplexity-search | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
AI-powered web search, research, and reasoning via Perplexity
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Perplexity AI Search
Web search with AI-powered answers, deep research, and chain-of-thought reasoning.
## When to Use
- Direct web search for ranked results (no AI synthesis)
- AI-synthesized research with citations
- Chain-of-thought reasoning for complex decisions
- Deep comprehensive research on topics
## Models (2025)
| Model | Purpose |
|-------|---------|
| `sonar` | Lightweight search with grounding |
| `sonar-pro` | Advanced search for complex queries |
| `sonar-reasoning-pro` | Chain of thought reasoning |
| `sonar-deep-research` | Expert-level exhaustive research |
## Usage
### Quick question (AI answer)
```bash
uv run python scripts/mcp/perplexity_search.py \
--ask "What is the latest version of Python?"
```
### Direct web search (ranked results, no AI)
```bash
uv run python scripts/mcp/perplexity_search.py \
--search "SQLite graph database patterns" \
--max-results 5 \
--recency week
```
### AI-synthesized research
```bash
uv run python scripts/mcp/perplexity_search.py \
--research "compare FastAPI vs Django for microservices"
```
### Chain-of-thought reasoning
```bash
uv run python scripts/mcp/perplexity_search.py \
--reason "should I use Neo4j or SQLite for small graph under 10k nodes?"
```
### Deep comprehensive research
```bash
uv run python scripts/mcp/perplexity_search.py \
--deep "state of AI agent observability 2025"
```
## Parameters
| Parameter | Description |
|-----------|-------------|
| `--ask` | Quick question with AI answer (sonar) |
| `--search` | Direct web search - ranked results without AI synthesis |
| `--research` | AI-synthesized research (sonar-pro) |
| `--reason` | Chain-of-thought reasoning (sonar-reasoning-pro) |
| `--deep` | Deep comprehensive research (sonar-deep-research) |
### Search-specific options
| Parameter | Description |
|-----------|-------------|
| `--max-results N` | Number of results (1-20, default: 10) |
| `--recency` | Filter: `day`, `week`, `month`, `year` |
| `--domains` | Limit to specific domains |
## Mode Selection Guide
| Need | Use | Why |
|------|-----|-----|
| Quick fact | `--ask` | Fast, lightweight |
| Find sources | `--search` | Raw results, no AI overhead |
| Synthesized answer | `--research` | AI combines multiple sources |
| Complex decision | `--reason` | Chain-of-thought analysis |
| Comprehensive report | `--deep` | Exhaustive multi-source research |
## Examples
```bash
# Find recent sources on a topic
uv run python scripts/mcp/perplexity_search.py \
--search "OpenTelemetry AI agent tracing" \
--recency month --max-results 5
# Get AI synthesis
uv run python scripts/mcp/perplexity_search.py \
--research "best practices for AI agent logging 2025"
# Make a decision
uv run python scripts/mcp/perplexity_search.py \
--reason "microservices vs monolith for startup MVP"
# Deep dive
uv run python scripts/mcp/perplexity_search.py \
--deep "comprehensive guide to building feedback loops for autonomous agents"
```
## API Key Required
Requires `PERPLEXITY_API_KEY` in environment or `~/.claude/.env`.Related Skills
search-tools
Search Tool Hierarchy
search-router
Choose the right search tool for each query type
research
Document codebase as-is with thoughts directory for historical context
research-external
External research workflow for docs, web, APIs - NOT codebase exploration
research-agent
Research agent for external documentation, best practices, and library APIs via MCP tools
repo-research-analyst
Analyze repository structure, patterns, conventions, and documentation for understanding a new codebase
morph-search
Fast codebase search via WarpGrep (20x faster than grep)
loogle-search
Search Mathlib for lemmas by type signature pattern using Loogle.
github-search
Search GitHub code, repositories, issues, and PRs via MCP
elasticsearch-patterns
Mapping design, query optimization, aggregation patterns, index lifecycle management, and search relevance tuning.
search-hierarchy
Search Tool Hierarchy
workflow-router
Goal-based workflow orchestration - routes tasks to specialist agents based on user goals