feat: Add Perplexity CLI tool for researcher agent#214
Closed
Steffen025 wants to merge 1 commit into
Closed
Conversation
Adds a Bun-based CLI wrapper for the Perplexity API that: - Loads API key from ~/.claude/.env - Supports sonar (fast) and sonar-pro (deep) models - Returns formatted results with citations Updates PerplexityResearcher agent to use the CLI instead of generic "research skill" instructions, with query decomposition methodology for comprehensive research. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
|
Hey, thank you so much for this submission. We're about to change the project significantly to solve a number of core issues. Once we do that, let's revisit if it makes sense. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a working Perplexity CLI tool and updates the PerplexityResearcher agent to use it.
Problem
The PerplexityResearcher agent mentions "Perplexity API integration for deep search" but only instructs to "use the research skill" - there's no concrete implementation to actually call the Perplexity API.
Solution
.claude/tools/perplexity): A Bun-based wrapper that calls the Perplexity API directlyCLI Features
~/.claude/.env(PERPLEXITY_API_KEY)sonar(fast) andsonar-pro(deep) modelsperplexity "your query"orperplexity --model sonar-pro "deep query"Example Usage
Test plan
🤖 Generated with Claude Code