
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
promptboost
Advanced tools
CLI tool that enhances prompts using AI providers for better terminal agent interactions
AI-Powered Prompt Enhancement Tool - Intelligent and Extensible
A powerful command-line tool that enhances prompts using AI providers to optimize interactions with terminal agents like Claude Code, Gemini CLI, OpenAI Code, and more.
| Name | Description | Models |
|---|---|---|
OpenAI | GPT models including latest GPT-4 variants | gpt-4o, gpt-4o-mini, gpt-4-turbo, o1, o3-mini |
Anthropic | Claude models with advanced reasoning | claude-3.5-sonnet, claude-3-haiku, claude-4-opus |
Google | Gemini models with multimodal capabilities | gemini-1.5-pro, gemini-1.5-flash, gemini-2.0-flash |
xAI Grok | Grok models with real-time information | grok-3, grok-beta, grok-vision-beta |
| Feature | OpenAI | Anthropic | xAI Grok | |
|---|---|---|---|---|
| Streaming | ✅ | ✅ | ✅ | ✅ |
| Model Validation | ✅ | ✅ | ✅ | ✅ |
| Error Recovery | ✅ | ✅ | ✅ | ✅ |
| Token Counting | ✅ | ✅ | ✅ | ✅ |
PromptBoost CLI provides intelligent prompt enhancement across multiple AI providers. Whether you're coding, analyzing data, or writing documentation, PromptBoost transforms your simple prompts into comprehensive, context-rich instructions that get better results.

Smart Context Addition
PromptBoost doesn't just pass your prompts through—it enhances them with:


# Simple prompt enhancement
promptboost "Create a React component"
# Use specific provider
promptboost "Fix my code" --provider anthropic
# Streaming with verbose output
promptboost "Explain quantum computing" --stream --verbose
# File operations
promptboost --file prompt.txt --output enhanced.txt
# Configuration and testing
promptboost config set --provider openai --key sk-your-key
promptboost test --provider anthropic
# Set valid model (auto-validated)
promptboost config set --provider openai --model gpt-4o-mini
✓ Configuration updated for provider: openai
# Try invalid model (caught by validation)
promptboost config set --provider openai --model invalid-model
✗ Invalid model configuration:
• Model 'invalid-model' is not valid for provider 'openai'
• Valid models for openai: gpt-4o, gpt-4o-mini, gpt-4-turbo...
npm install -g promptboost
# Clone the repository
git clone https://github.com/galfrevn/promptboost.git
cd promptboost
# Install dependencies
bun install
# Build and link
bun run build
npm link
npm install -g promptboost
# OpenAI (recommended for beginners)
promptboost config set --provider openai --key sk-your-openai-key
# Anthropic (great for coding)
promptboost config set --provider anthropic --key ant-your-anthropic-key
# Google (multimodal capabilities)
promptboost config set --provider google --key AIza-your-google-key
# xAI Grok (real-time information)
promptboost config set --provider grok --key xai-your-grok-key
promptboost "Create a simple web scraper in Python"
# Use streaming for real-time responses
promptboost "Explain machine learning" --stream
# Save results to file
promptboost "Write API documentation" --output docs.md
# Configure providers with automatic validation
promptboost config set --provider openai --key sk-your-openai-key
promptboost config set --provider anthropic --key ant-your-anthropic-key
promptboost config set --provider google --key AIza-your-google-key
promptboost config set --provider grok --key xai-your-grok-key
# Set specific models (with validation)
promptboost config set --provider openai --model gpt-4o-mini
promptboost config set --provider anthropic --model claude-3-5-sonnet-20241022
# Set default provider
promptboost config set --default openai
# View configuration
promptboost config show
export PROMPTBOOST_OPENAI_KEY="sk-your-openai-key"
export PROMPTBOOST_ANTHROPIC_KEY="ant-your-anthropic-key"
export PROMPTBOOST_GOOGLE_KEY="AIza-your-google-key"
export PROMPTBOOST_GROK_KEY="xai-your-grok-key"
export PROMPTBOOST_DEFAULT_PROVIDER="openai"
Configuration is stored in ~/.promptboost/config.json:
{
"version": "1.0.0",
"defaultProvider": "openai",
"providers": {
"openai": {
"name": "openai",
"apiKey": "sk-your-key-here",
"model": "gpt-4o-mini",
"baseUrl": "https://api.openai.com/v1",
"enabled": true
},
"anthropic": {
"name": "anthropic",
"apiKey": "ant-your-key-here",
"model": "claude-3-5-sonnet-20241022",
"baseUrl": "https://api.anthropic.com",
"enabled": true
}
}
}
PromptBoost automatically validates model names and streaming compatibility:
# ✅ Valid model names are accepted
promptboost config set --provider openai --model gpt-4o-mini
✓ Configuration updated for provider: openai
# ❌ Invalid models are rejected with helpful suggestions
promptboost config set --provider openai --model gpt-5
✗ Invalid model configuration:
• Model 'gpt-5' is not valid for provider 'openai'
• Valid models for openai: gpt-4o, gpt-4o-mini, gpt-4-turbo...
# ⚠️ Special models show warnings
promptboost config set --provider openai --model o1-mini
⚠️ Note: o1-mini is a reasoning model with longer response times.
✓ Configuration updated for provider: openai
promptboost/
├── src/
│ ├── commands/ # CLI command implementations
│ │ ├── enhance.ts # Main enhancement command
│ │ ├── config.ts # Configuration management
│ │ └── test.ts # Provider testing
│ ├── providers/ # AI provider implementations
│ │ ├── base.ts # Abstract base provider
│ │ ├── openai.ts # OpenAI integration
│ │ ├── anthropic.ts # Anthropic Claude integration
│ │ ├── grok.ts # xAI Grok integration
│ │ └── google.ts # Google Gemini integration
│ ├── utils/ # Utility modules
│ │ ├── config.ts # Configuration management
│ │ ├── logger.ts # Logging utility
│ │ ├── validation.ts # Input validation
│ │ └── model-validation.ts # AI model validation
│ ├── types/ # TypeScript type definitions
│ │ └── index.ts # All interface definitions
│ └── index.ts # Main CLI entry point
├── examples/ # Usage examples
└── tests/ # Test files
Fork main branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check if there are any errors.
$ git clone https://github.com/{your-personal-repo}/promptboost.git
$ cd promptboost
$ bun install
$ bun run build
$ bun run test
# Start development mode
bun run dev
# Type checking
bun run typecheck
# Linting and formatting
bun run lint
# Build for production
bun run build
# Run tests
bun run test
This project uses Biome for linting and formatting:
To add a new AI provider:
Create Provider Class:
// src/providers/newprovider.ts
export class NewProvider extends BaseProvider {
async enhance(request: EnhanceRequest): Promise<EnhanceResponse> {
// Implementation
}
}
Update Provider Factory:
// src/providers/index.ts
case 'newprovider':
return new NewProvider(provider);
Add Model Validation:
// src/utils/model-validation.ts
newprovider: {
'model-name': { streaming: true },
// ... other models
}
# Test all providers
bun run test
# Test specific functionality
promptboost test --provider openai --verbose
# Manual testing workflow
promptboost config set --provider openai --key test-key
promptboost "test prompt" --verbose
git checkout -b feature/amazing-featurebun run testbun run lintgit commit -m 'Add amazing feature'git push origin feature/amazing-featureMIT License - see LICENSE file for details.
Built with ❤️ using TypeScript and Bun
FAQs
CLI tool that enhances prompts using AI providers for better terminal agent interactions
We found that promptboost demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.