A command-line interface for interacting with various AI services and development tools.
Install the package globally using npm:
npm install -g @justinhandley/ai-cli
Or using pnpm:
pnpm install -g @justinhandley/ai-cli
To work on the CLI locally:
# Clone the repository
git clone https://github.com/yourusername/ai-cli.git
cd ai-cli
# Install dependencies
pnpm install
# Build the project
pnpm build
# Use local version
pnpm use-local
# Switch back to published version
pnpm use-liveThe CLI can be accessed using the ai command and provides the following features:
- 🔍 Search GitHub and Stack Overflow with AI analysis
- 🐛 Debug code with AI assistance
- 📝 Generate code documentation
- 🔄 Collect and analyze TypeScript files
- Create multiple isolated development environments
- Run multiple AI agents in parallel
- Easily merge changes and clean up worktrees
- Automatic dependency management and Cursor IDE integration
- Secure API key management for multiple AI services
- Flexible AI model configuration per command
- Easy service setup with built-in help
- Configure your API keys:
ai config anthropic <your-key>
ai config github <your-key>- Try the search command:
ai search "your error message"- Create parallel worktrees:
ai worktree -p feature-a feature-bFor detailed usage instructions and examples, visit the full documentation.
This project was inspired by Programming in English with Cursor by John Lindquist on egghead.io. The idea of using AI to generate human-readable documentation and specifications from code has been adapted and expanded in this project to create a more comprehensive set of development tools.