
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
promptcoder-cli
Advanced tools
AI-powered code generation CLI tool with conversation persistence, file tools, and LLM integration
🤖 AI-powered code generation CLI tool with conversation persistence, advanced file tools, and support for multiple LLM providers (OpenAI GPT & Anthropic Claude).
npm install -g promptcoder-cli
npm install promptcoder-cli
promptcoder config
# OpenAI
export OPENAI_API_KEY="your-openai-api-key"
export OPENAI_MODEL="gpt-4o" # optional
# Anthropic
export ANTHROPIC_API_KEY="your-anthropic-api-key"
export ANTHROPIC_MODEL="claude-3-5-sonnet-20241022" # optional
Configuration is stored in ~/.promptcoder/config.json
promptcoder interactive
# or
promptcoder i
promptcoder prompt "Create a React component for a todo list"
# or
promptcoder p "Add error handling to my express server" --directory ./my-project
# In interactive mode:
save # Save current conversation
load # Load a previous conversation
list # List all saved conversations
rename # Rename current conversation
delete # Delete a conversation
clear # Clear current conversation
The AI has access to these powerful tools:
read_file - Read file contentswrite_file - Write content to files (creates directories automatically)read_directory - Smart directory listing (filters node_modules, .git, etc.)create_directory - Create directoriesdelete_file - Delete filesfile_exists - Check if files/directories existedit_file_diff - Precise edits using exact text matchinginsert_lines - Insert content at specific line numbersdelete_lines - Remove specific line rangessearch_in_files - Search patterns across multiple files with regex supportcreate_checkpoint - Save snapshots of file stateslist_checkpoints - View all checkpoints with metadatarestore_checkpoint - Rollback to previous statesshow_file_diff - Compare current files with checkpoint versionspromptcoder i
Prompt: Create a modern React TypeScript app with routing and state management
# The AI will:
# 1. Read your directory structure
# 2. Create package.json with dependencies
# 3. Set up TypeScript configuration
# 4. Create components and routing
# 5. Set up state management
# 6. Add proper file structure
promptcoder i
Prompt: Refactor this codebase to use TypeScript and add proper error handling
# The AI will:
# 1. Create a checkpoint of current state
# 2. Search through existing files
# 3. Convert JavaScript to TypeScript
# 4. Add error handling patterns
# 5. Update configurations
# 6. Show diffs of changes made
# Start working on a project
promptcoder i
Prompt: Build a REST API with Express and PostgreSQL
# ... work continues ...
save
Name: "E-commerce API"
Description: "Building product catalog and user auth"
# Later, resume exactly where you left off
promptcoder i
load
# Select: "E-commerce API (15 messages, 12/5/2024)"
# Continue with full context preserved
🤖 PromptCoder Interactive Mode
Commands: exit, clear, save, load, list, rename, delete
[My React Project] Prompt: Add authentication to the app
🔄 Processing (1/25)...
💬 Response:
I'll help you add authentication to your React app. Let me first examine your current project structure.
🔧 Executing 2 tool call(s):
→ read_directory({"dir_path":"."})
Contents of . (8 items):
FILE: package.json (2KB)
DIR: src
FILE: tsconfig.json (421B)
...
→ read_file({"file_path":"src/App.tsx"})
File contents of src/App.tsx:
...
🔄 Continuing conversation after tool execution...
💬 Response:
Now I'll create the authentication system. I'll add:
1. Auth context and provider
2. Login/signup components
3. Protected routes
4. JWT token management
🔧 Executing 4 tool call(s):
→ create_checkpoint({"checkpoint_name":"before_auth","description":"Before adding authentication"})
Created checkpoint "before_auth" with 12 files
→ write_file({"file_path":"src/contexts/AuthContext.tsx","content":"..."})
Successfully wrote 1240 characters to src/contexts/AuthContext.tsx
...
✅ Turn completed
# Clone and install
git clone https://github.com/promptcoder/promptcoder-cli.git
cd promptcoder-cli
npm install
# Development mode
npm run dev
# Build
npm run build
# Test global installation
npm run build && npm link
~/.promptcoder/config.json~/.promptcoder/conversations/MIT © PromptCoder Team
Contributions are welcome! Please feel free to submit a Pull Request.
Made with ❤️ for developers who want to code faster with AI assistance.
FAQs
AI-powered code generation CLI tool with conversation persistence, file tools, and LLM integration
We found that promptcoder-cli 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.