Show HN: Continuous Claude – run Claude Code in a loop
7 days ago
- #automation
- #CI/CD
- #AI-development
- Continuous Claude is a CLI tool designed to automate the process of running Claude Code in a loop for iterative development.
- It was created to handle large-scale tasks like increasing unit test coverage from 0% to 80%+ in a codebase with hundreds of thousands of lines.
- The tool integrates with GitHub to create PRs, wait for checks, and merge changes automatically, mimicking CI/CD practices.
- It uses a shared markdown file (TASKS.md) to maintain context between iterations, acting as an external memory for Claude.
- The script is written in Bash and handles git operations, PR creation, and merging, with options for infinite loops or cost-based limits.
- Use cases include dependency updates, refactoring tasks, and addressing technical debt in an incremental manner.
- Installation is simple with a curl command, and it requires Claude Code CLI, GitHub CLI, and jq as dependencies.
- Features include customizable merge strategies, branch prefixes, notes files, and the ability to run in parallel using git worktrees.
- The tool emphasizes small, incremental changes and can be as human-in-the-loop as desired through PR reviews and notes.
- Example commands and configurations are provided for running the tool with different parameters and strategies.