←back to thread

170 points anandchowdhary | 4 comments | | HN request time: 0s | source

Continuous Claude is a CLI wrapper I made that runs Claude Code in an iterative loop with persistent context, automatically driving a PR-based workflow. Each iteration creates a branch, applies a focused code change, generates a commit, opens a PR via GitHub's CLI, waits for required checks and reviews, merges if green, and records state into a shared notes file.

This avoids the typical stateless one-shot pattern of current coding agents and enables multi-step changes without losing intermediate reasoning, test failures, or partial progress.

The tool is useful for tasks that require many small, serial modifications: increasing test coverage, large refactors, dependency upgrades guided by release notes, or framework migrations.

Blog post about this: https://anandchowdhary.com/blog/2025/running-claude-code-in-...

Show context
janaagaard ◴[] No.45957680[source]
Kudos on making Bash readable.

(https://github.com/AnandChowdhary/continuous-claude/blob/mai...)

replies(1): >>45958379 #
jdc0589 ◴[] No.45958379[source]
im not saying OP did this, but I've actually had AI spit out some pretty stellar bash scripts, surprisingly
replies(3): >>45958439 #>>45961287 #>>45967647 #
anandchowdhary ◴[] No.45958439[source]
No, you're right. It was a pretty collaborative effort with me and Claude!
replies(1): >>45958550 #
1. svieira ◴[] No.45958550[source]
FYI, you're missing two patterns that allow the `--key=value` admirers and the `-alltheshortopsinasinglestring` spacebar savers among us to be happy (for the otherwise excellent options parsing code).

   shopt -s extglob
   case "$1"
     # Flag support - allow -xyz z-takes-params
     -@(a|b|c)*) _flag=${1:1:1}; _rest=${1:2}; shift; set -- "-$_flag" "-$_rest" "$@";;
     # Param=Value support
     -?(-)*=*) _key=${1%%=*}; _value=${1#*=}; shift; set -- "${_key}" "$_value" "$@";;
   esac
replies(2): >>45958853 #>>45961848 #
2. anandchowdhary ◴[] No.45958853[source]
For letting me know! Would you like to create a PR? Otherwise I'll add you as a Co-Authored-By!
replies(1): >>45970962 #
3. insin ◴[] No.45961848[source]
Gesundheit
4. svieira ◴[] No.45970962[source]
Co-authored is fine, thanks for asking!