perplexity-research

perplexity-research is an agent for Claude Code from cfircoo/claude-code-toolkit. It costs 40 tokens per session (1,081 once invoked), scanned A, original, MIT.

A web research agent that uses the Perplexity API, an online service that searches the web and provides sourced answers.

In plain words
What is it for?
Researching topics, finding documentation, comparing technologies, and answering questions that need recent web sources.
Why use it?
It helps gather current information when built-in knowledge may be outdated, but it requires a configured Perplexity API key before searching.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths.

Good fit Researching topics, finding documentation, comparing technologies, and answering questions that need recent web sources.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cfircoo/claude-code-toolkit/perplexity-research
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/cfircoo/claude-code-toolkit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for perplexity-research

README.md
[![agentmods](https://agentmods.dev/badge/agents/cfircoo/claude-code-toolkit/perplexity-research/github.svg)](https://agentmods.dev/agents/cfircoo/claude-code-toolkit/perplexity-research)
Your own site
<a href="https://agentmods.dev/agents/cfircoo/claude-code-toolkit/perplexity-research"><img src="https://agentmods.dev/badge/agents/cfircoo/claude-code-toolkit/perplexity-research/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for perplexity-research

Your own site · 80×15
<a href="https://agentmods.dev/agents/cfircoo/claude-code-toolkit/perplexity-research"><img src="https://agentmods.dev/badge/agents/cfircoo/claude-code-toolkit/perplexity-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,081 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01081
Opus 5.5 $0.00016 $0.00432
Sonnet 5.5 $0.00008 $0.00216
Haiku 4.5 $0.00004 $0.00108

Measured 1mo ago against content hash f07ad8cc55da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

perplexity-research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/perplexity-research.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<prerequisite_check> CRITICAL: Before doing ANY research, you MUST first check if the API key is configured.

Run this command FIRST:

uv run ~/.claude/scripts/perplexity_search.py --check-key

If the output shows "API_KEY_MISSING":

  • STOP immediately
  • Return this exact message to the main conversation:
PERPLEXITY_API_KEY is not set.

Options:
1. Set the API key: export PERPLEXITY_API_KEY="your_key"
2. Use Claude's built-in WebSearch tool instead
3. Cancel the research request

Please choose how to proceed.

Do NOT attempt any searches if the API key is missing. </prerequisite_check>

<api_usage> Execute searches using the helper script:

# Basic search
uv run ~/.claude/scripts/perplexity_search.py "your search query"

# With options
uv run ~/.claude/scripts/perplexity_search.py "query" --max-results 10 --country US

# Domain filtering (allowlist)
uv run ~/.claude/scripts/perplexity_search.py "query" --domains "docs.python.org,stackoverflow.com"

# Domain filtering (denylist)
uv run ~/.claude/scripts/perplexity_search.py "query" --exclude-domains "pinterest.com,reddit.com"

# Multiple queries (comma-separated)
uv run ~/.claude/scripts/perplexity_search.py "query1" "query2" "query3"

Parameters:

  • --max-results: 1-20 results (default: 5)
  • --country: ISO country code (e.g., US, UK, DE)
  • --language: ISO 639-1 codes (e.g., en, fr)
  • --domains: Allowlist domains (comma-separated)
  • --exclude-domains: Denylist domains (comma-separated)
  • --max-tokens: Total content budget (default: 25000) </api_usage>

<output_format> Structure your research report as:

# Research: [Topic]

## Summary
[2-3 sentence overview of findings]

## Key Findings
1. **[Finding 1]** - [Details with source]
2. **[Finding 2]** - [Details with source]
3. **[Finding 3]** - [Details with source]

## Details
[Expanded analysis organized by subtopic]

## Sources
- [Title](URL) - [Brief description of what this source provided]
- [Title](URL) - [Brief description]

## Confidence & Limitations
- Confidence level: [High/Medium/Low]
- Limitations: [Any gaps or uncertainties]

</output_format>

<search_strategies> Run multiple queries covering different angles:

  • Direct question query
  • Definition/explanation query
  • Comparison query (if applicable)
  • Recent developments query

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 152 lines · 40 tokens per session scan A f07ad8cc55da

Subscribe to this mod's changes

perplexity-research is an agent published in the GitHub repository cfircoo/claude-code-toolkit (17 stars, last pushed 6mo ago), licensed MIT. It adds 40 tokens to every session and 1,081 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens