claude-loop
Version:
Pure Claude CLI autonomy - iteratively fixes your repo until everything works. No hardcoded patterns, just raw AI power.
116 lines (87 loc) โข 3.41 kB
Markdown
# claude-loop
Pure Claude CLI autonomy - iteratively fixes your repo until everything works. No hardcoded patterns, just raw AI power.
## What It Does
claude-loop gives Claude complete freedom to:
- ๐ **Iteratively debug** your entire repository
- ๐งช **Test every button**, form, and feature
- ๐ง **Fix broken functionality** automatically
- ๐ **Deploy Task agents** for parallel debugging
- โจ **Simplify complexity** by leveraging AI instead of hardcoded patterns
## Installation
```bash
npm install -g claude-loop
```
## Usage
```bash
# Just run it - auto-installs MCPs and starts debugging
claude-loop
# Or use the loop command with options
claude-loop loop --max-iterations 20
```
## Features
### ๐ Auto-installs MCPs
On first run, automatically detects and installs:
- **VUDA** - Visual UI Debug Agent for testing UI
- **BrowserMCP** - Browser automation capabilities
- **Sequential Thinking** - Step-by-step problem solving
### ๐ Enhanced Progress Tracking
```
๐ Iteration 3/10
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Progress: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 30%
Elapsed: 2m 15s
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก Continuing conversation with Claude...
Focus: Form validation and submission
```
### ๐ค Full Claude Autonomy
- Uses `--dangerously-skip-permissions` for complete freedom
- All tools enabled: Bash, Read, Write, Edit, Task, etc.
- Creates parallel Task agents for complex debugging
### ๐ฏ Smart Focus Areas
Each iteration focuses on specific aspects:
1. Button functionality and click handlers
2. Form validation and submission
3. Navigation and routing
4. Data persistence and API calls
5. Error handling and edge cases
6. UI consistency and responsiveness
7. Performance and optimization
8. Security and input validation
9. Accessibility and user experience
10. Final cleanup and polish
## How It Works
1. **Analyzes your repository** - Runs tree, grep, and other commands to understand structure
2. **Deploys Task agents** - Creates parallel agents to debug different areas
3. **Fixes issues iteratively** - Each iteration focuses on specific problems
4. **Continues until done** - Uses `claude -c` to maintain context across iterations
## Example Output
```bash
$ claude-loop
๐ Claude Loop - Real Iterative Debugging with Claude CLI
๐ง Checking MCP installations...
โ VUDA (Visual UI Debug Agent) available
โ Browser MCP available
๐ก Starting Claude session:
Command: claude
Max turns: 30
Tools: Bash, Read, Write, Edit, MultiEdit, Grep, Glob, LS, WebFetch, WebSearch, NotebookRead, NotebookEdit, Task
Mode: Full autonomy (--dangerously-skip-permissions)
[Claude begins debugging your repository...]
```
## Requirements
- Claude CLI installed (`pip install claude`)
- Node.js >= 14.0.0
- Git repository to debug
## What Gets Fixed
- ๐ Broken buttons without click handlers
- ๐ Forms that don't validate or submit
- ๐ Dead links and 404 routes
- ๐พ Data that doesn't persist
- ๐จ UI inconsistencies
- ๐ Unhandled errors
- ๐ฑ Responsive issues
- โฟ Accessibility problems
- ๐ง Unnecessary complexity
## License
MIT