Skip to content

Prompt Punk: AI-powered prompt engineering tool built with Rails 8 and React 18. Optimize and enhance prompts using multi-agent AI with Google Gemini integration for developers and AI enthusiasts.

License

Notifications You must be signed in to change notification settings

netsky-devel/Prompt-Punk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎸 Prompt Punk

The rebellious AI prompt enhancement platform that rocks your prompts to the next level!

Prompt Punk is a cutting-edge multi-agent AI system that transforms your basic prompts into powerful, optimized masterpieces. Using a collaborative team of AI agents, it analyzes, improves, and perfects your prompts with punk rock attitude and precision.

πŸ“Έ Preview

Prompt Punk Interface

Modern dark UI with real-time WebSocket updates, multi-agent collaboration, and beautiful gradient design

πŸš€ Features

🎯 Multi-Agent Prompt Enhancement

  • Prompt Engineer Agent: Analyzes and improves your prompts with technical expertise
  • Reviewer Agent: Provides quality scoring and detailed feedback
  • Lead Agent: Orchestrates the entire improvement process

πŸ€– Multiple AI Provider Support

  • Google Gemini (Primary)
  • OpenAI GPT (Coming Soon)
  • Anthropic Claude (Coming Soon)

πŸ—οΈ Architecture Selection

  • Chain-of-Thought: Step-by-step reasoning approach
  • Meta-Cognitive: Self-reflective thinking patterns
  • 5-Tier Framework: Comprehensive structured analysis
  • Auto: Let the system choose the best approach

⚑ Real-time Features

  • Live Progress Tracking: Watch your prompt get enhanced in real-time
  • Background Processing: Powered by Redis and Sidekiq
  • Session History: Keep track of all your improvements
  • Quality Scoring: Get detailed analysis of prompt effectiveness

πŸ› οΈ Tech Stack

Backend (Rails 8)

  • Ruby on Rails 8 - Modern API-only backend
  • LangChain Integration - AI agent orchestration
  • SQLite - Lightweight database
  • Redis - Background job processing
  • Sidekiq - Async task management

Frontend (React 18+)

  • React 18 with TypeScript
  • Vite - Lightning-fast development
  • TailwindCSS - Modern styling
  • Glass-morphism UI - Beautiful modern interface

🐳 Quick Start with Docker

Prerequisites

1. Clone the Repository

git clone <repository-url>
cd prompt-punk

2. Set up Environment

# Copy environment template
cp .env.docker.example .env.docker

### 3. Launch with Docker Compose
```bash
# Start all services
docker compose up -d

# Or use the convenience script
./start.sh

4. Access the Application

🎸 How to Use

  1. Enter your API key - Add your Gemini API key in the settings
  2. Write your prompt - Enter the prompt you want to improve
  3. Choose architecture - Select improvement approach or use "auto"
  4. Rock and roll! - Watch the multi-agent system enhance your prompt
  5. Get results - Receive improved prompt with quality analysis

πŸ“ Project Structure

prompt-punk/
β”œβ”€β”€ rails_backend/          # Rails API backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ controllers/    # API controllers
β”‚   β”‚   β”œβ”€β”€ models/        # Data models
β”‚   β”‚   β”œβ”€β”€ services/      # Business logic
β”‚   β”‚   β”œβ”€β”€ jobs/          # Background jobs
β”‚   β”‚   └── langchain/     # AI agents
β”œβ”€β”€ frontend/              # React frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/    # React components
β”‚   β”‚   β”œβ”€β”€ hooks/         # Custom hooks
β”‚   β”‚   └── services/      # API clients
β”œβ”€β”€ docker-compose.yml     # Docker orchestration
└── start.sh              # Quick start script

πŸ”§ Development

Backend Development

cd rails_backend
bundle install
rails server

Frontend Development

cd frontend
npm install
npm run dev

Background Services

# Start Redis
redis-server

# Start Sidekiq
cd rails_backend
bundle exec sidekiq

🎯 API Endpoints

Tasks

  • POST /api/v1/tasks - Create new prompt improvement task
  • GET /api/v1/tasks/:id - Get task status and results
  • DELETE /api/v1/tasks/:id - Cancel running task
  • GET /api/v1/tasks/recent - Get recent tasks

Health

  • GET /api/v1/health - System health check

🀝 Contributing

Prompt Punk welcomes contributions! Whether you're fixing bugs, adding features, or improving documentation, your punk spirit is appreciated.

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

πŸ“œ License

This project is licensed under the Creative Commons Attribution 4.0 International License - see the LICENSE file for details.

🎸 Why "Prompt Punk"?

Because your prompts deserve to be rebellious, powerful, and unforgettable. We don't just improve prompts - we transform them into punk rock masterpieces that get results and break the mold.

Rock on! 🀘


Developed as part of the AI Punk project by Netsky

About

Prompt Punk: AI-powered prompt engineering tool built with Rails 8 and React 18. Optimize and enhance prompts using multi-agent AI with Google Gemini integration for developers and AI enthusiasts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •