🤖 AI-powered CLI tool for instant task automation with Claude
1shot is a revolutionary command-line tool that transforms complex development tasks into single commands. Built on Claude AI and the robust @anthropic-ai/claude-code
foundation, it enables developers to complete hours of work in minutes through intelligent automation.
The framework includes a powerful assistant UI system with Model Context Protocol (MCP) support, enabling sophisticated tool interactions, permission management, and real-time progress tracking.
- 🚀 Single-command execution - Complete complex tasks instantly
- 🤖 AI-powered automation - Leverages Claude for intelligent task completion
- 📝 Smart documentation - Generate comprehensive READMEs and docs
- 🔧 Build error fixing - Automatically resolve TypeScript and build issues
- 📦 Dependency management - Upgrade packages with breaking change handling
- 🎯 Interactive selector - Beautiful terminal UI for command discovery
- 🔄 Git-aware - Protects uncommitted changes and tracks modifications
- ⚡ Real-time streaming - Watch AI work with live progress updates
# Install globally
npm install -g 1shot
# Or use directly with npx
npx 1shot
- Set up your API key:
export ANTHROPIC_API_KEY=your-api-key-here
- Run your first command:
# Launch interactive command selector
1shot
# Or run a specific command
1shot readme
readme
- Generate comprehensive READMEcontributing
- Create CONTRIBUTING.md guideapi-docs
- Generate API documentation
fix-build
- Fix TypeScript/build errorsupgrade-deps
- Upgrade dependencies safelyadd-tests
- Generate test suitessetup-ci
- Configure CI/CD pipelines
add-eslint
- Set up ESLint configurationformat-code
- Apply consistent formattingadd-types
- Add TypeScript definitions
Launch without arguments to enter the interactive command selector:
1shot
Navigate with:
- ↑↓ - Move selection
- / - Search commands
- Enter - Execute command
- ESC - Cancel
Create a .1shot
config file in your project:
{
"defaultCommands": ["readme", "fix-build"],
"gitCheck": true,
"autoCommit": false
}
This is a monorepo managed with pnpm and Turbo:
# Install dependencies
pnpm install
# Run development mode
pnpm dev
# Build all packages
pnpm build
1shot/
├── packages/
│ ├── 1shot/ # Main CLI package
│ ├── assistant-ui-react-core/ # Core UI components
│ └── x-buildutils/ # Build utilities
├── package.json
└── turbo.json
- Node.js 18+
- Git (for repository awareness)
- Anthropic API key
Get your Anthropic API key from console.anthropic.com and set it as an environment variable:
export ANTHROPIC_API_KEY=sk-ant-...
We welcome contributions! Please see our Contributing Guide for details.
MIT © 1shot Contributors
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full Documentation
🏗️ Built with ❤️ using Claude AI and React