Skip to content

🚧 [WIP] IntelliJ IDEA plugin that integrates Perplexity AI for intelligent code assistance and chat functionality

License

Notifications You must be signed in to change notification settings

Phosky71/Perplexity-Assistant

Repository files navigation

Perplexity Assistant

⚠️ This project is currently under active development (Work In Progress). Features may be incomplete, unstable, or subject to change. Use at your own risk and feel free to contribute!

An IntelliJ IDEA plugin that integrates Perplexity AI directly into your IDE, providing intelligent code assistance and chat functionality.

Features

  • AI Chat Panel: Interactive chat interface within the IDE
  • Code Context Awareness: Send selected code to Perplexity for analysis
  • Insert/Replace Code: Apply AI suggestions directly to your editor
  • Persistent API Key: Save your Perplexity API key securely in settings
  • Conversation History: Maintain chat context across sessions

Installation

Manual Installation

  1. Download the latest release from Releases
  2. Go to Settings/Preferences > Plugins > ⚙️ > Install Plugin from Disk...
  3. Select the downloaded .zip file

Configuration

  1. Go to Settings/Preferences > Tools > Perplexity Assistant
  2. Enter your Perplexity API key
  3. Click Apply

You can get your API key from Perplexity API Settings.

Usage

Opening the Chat Panel

  • Click on the Perplexity tool window on the right side of your IDE
  • Or use View > Tool Windows > Perplexity Assistant

Sending Code Context

  1. Select code in your editor
  2. Right-click and select Send to Perplexity
  3. Or use the keyboard shortcut (configurable in settings)

Applying Suggestions

  • Insert: Adds AI-generated code at cursor position
  • Replace: Replaces selected code with AI suggestion

Requirements

  • IntelliJ IDEA 2023.1+ (or compatible JetBrains IDE)
  • Java 17+
  • Perplexity API key

Building from Source

# Clone the repository
git clone https://github.com/Phosky71/Perplexity-Assistant.git
cd Perplexity-Assistant

# Build the plugin
./gradlew buildPlugin

# The plugin zip will be in build/distributions/

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b main)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin main)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Support

If you encounter any issues or have suggestions, please open an issue.

Project Status

⚠️ Important Notice: This plugin is considered complete for personal use. It is unlikely that I will continue working on this plugin, and therefore it will not be published to the JetBrains Plugin Marketplace. Users can download and install it manually from the Releases section.

The plugin is functional and has been tested to work correctly. All critical bugs have been fixed. However, future development and new features are not planned at this time.

Future Improvements

While active development is not planned, the following features could be implemented in the future if the project is resumed:

  • Insert in Editor: Ability to insert AI-generated code suggestions directly into the editor at cursor position
  • UI/Interface Improvements: Enhanced user interface design and better structure for improved usability
  • Customizable Display Options: More settings to allow users to choose what to display in prompts:
    • Toggle visibility of sources/references
    • Show/hide token count
    • Display cost estimation
    • Customize response formatting

Contributions from the community are welcome if anyone wants to implement these features or fix issues.

About

🚧 [WIP] IntelliJ IDEA plugin that integrates Perplexity AI for intelligent code assistance and chat functionality

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages