PromptForge
An IntelliJ plugin for context-rich LLM prompts. One click to gather related files, dependencies, and format task-specific prompts.
PromptForge
Context-Rich Prompts for LLMs, Effortlessly
Right-click, paste, get answers. It's that simple.
PromptForge gives your LLM the full context it needs with a single click. No more copy-pasting multiple files - just right-click and paste for accurate, context-aware responses.
The Problem
When working with LLMs on code-related tasks:
- Copy a single file to ChatGPT
- Get: "I need to see the related classes to help you"
- Copy another file
- Get: "I still need to see how this interfaces with XYZ"
- Repeat until enough context is shared
PromptForge solves this with one click.
Features
- One-Click Operation - Right-click, select action, paste to LLM
- Complete Context - Automatically includes related files and dependencies
- Full Control - You decide how much context to include
- No API Keys - Works with any LLM you prefer
- Task-Specific Prompts - Optimized templates for different use cases
Available Actions
| Action | Description |
|---|---|
| Generate Tests | Creates prompts for test generation |
| Explain Code | Formats context for code explanations |
| Ask Questions | Prepares context for specific queries |
| Make Changes | Structures context for implementation guidance |
| Copy with Context | Raw context for custom prompts |
Installation
From JetBrains Marketplace (Coming Soon)
- Settings > Plugins > Marketplace
- Search for "PromptForge"
- Click "Install"
- Restart IntelliJ IDEA
Manual Installation
- Download latest
.zipfrom Releases - Settings > Plugins
- Click gear icon > Install Plugin from Disk...
- Select the downloaded ZIP
- Restart IntelliJ IDEA
Usage
Basic Workflow
- Right-click on a file in your IDE
- Select a PromptForge action from the context menu
- Plugin collects all related context
- Paste the result into your favorite LLM
- Get accurate, contextual responses the first time
Generate Tests
Perfect for TDD or adding tests to existing code. Detects if you're working with a new file or modifying existing code.
Explain Code
When you're looking at complex code thinking "what does this even do?" - let an LLM explain it with full context.
Ask Questions
Have a specific question about your code? Ask it while providing all the context the LLM needs.
Make Changes
Need to implement a feature or fix a bug? Get accurate suggestions based on your codebase's context.
Configuration
Settings > Tools > PromptForge
- Search Depth - How deep to search for related files
- Package Exclusions - Packages to skip
- Prompt Templates - Customize templates
- Content Pruning - Remove unnecessary content
Requirements
- IntelliJ IDEA 2023.1 or later
- Java 17 or later
- Git (for modified file detection)
Tech Stack
- Language: Kotlin
- Platform: IntelliJ Platform Plugin
- Build: Gradle
- VCS Integration: Git
Contributing
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
GNU General Public License v3.0 - see LICENSE for details.
Support
If you find this plugin useful:
- Star the repo on GitHub
- Share with your network
- Report issues or suggest improvements
Contact
Bala Kumar - mail@balakumar.dev