Build apps autonomously with Claude Code CLI
Project description
autonomous-claude
Build apps autonomously with Claude Code CLI. Uses your existing Claude subscription - no API key required.
Based on Anthropic's long-running agents guide.
Installation
# Install uv if you haven't
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install autonomous-claude
uv tool install autonomous-claude
Prerequisites
Claude Code CLI:
pnpm add -g @anthropic-ai/claude-code
claude login
GitHub CLI - required for issue tracking:
# Install: https://cli.github.com/
gh auth login
Docker - required for secure sandboxed execution:
# Install Docker: https://docs.docker.com/get-docker/
docker --version # Verify installation
By default, Claude runs in a Docker container with access only to your project directory. Use
--no-sandboxto bypass this isolation (not recommended).
Usage
# cd into your project directory first
cd my-project
# Start a new project or add features
autonomous-claude [INSTRUCTIONS]
# Continue work on existing features
autonomous-claude --continue
# Update to latest version
autonomous-claude update
Start a new project
# Create and enter project directory
mkdir notes-app && cd notes-app
# Interactive - prompts for description
autonomous-claude
# With description
autonomous-claude "An Apple Notes clone - local .md storage, folders, rich text, search"
# From a spec file
autonomous-claude ./app-spec.md
Add features to an existing project
cd notes-app
# Add new features
autonomous-claude "Add dark mode and keyboard shortcuts"
Note: If your project has open issues, you'll be asked to confirm. Use
--continueto resume without adding new features.
Continue work
Continue implementing existing features where you left off:
cd notes-app
autonomous-claude --continue
Options
| Option | Short | Description | Default |
|---|---|---|---|
--continue |
-c |
Continue work on existing features | - |
--yes |
-y |
Auto-accept spec (non-interactive mode) | false |
--no-sandbox |
— | Run without Docker sandbox (not recommended) | false |
--model |
-m |
Claude model | Claude Code default |
--max-sessions |
-n |
Max sessions (Claude Code invocations) | 100 |
--timeout |
-t |
Timeout per session (seconds) | 18000 (5 hours) |
Configuration
Create ~/.config/autonomous-claude/config.toml to customize defaults:
[session]
timeout = 18000 # Seconds per session (default: 5 hours)
max_turns = 2000 # Max turns per Claude session
max_sessions = 100 # Max Claude sessions before stopping
spec_timeout = 600 # Timeout for spec generation (10 minutes)
[ralph]
enabled = true # Enable Ralph Wiggum loop (default: true)
max_iterations = 10 # Max iterations per session before exiting
[sandbox]
enabled = true # Run in Docker sandbox (default: true)
memory_limit = "8g" # Container memory limit
cpu_limit = 4.0 # Container CPU limit
Spec Confirmation
Before building, Claude generates a detailed spec from your description. You can review and request changes:
Accept? [y] n
What needs changing? Add offline support and keyboard shortcuts
Updating spec...
Type y (or press Enter) to accept, or describe what to change.
Project Files
The tool creates these files in your project:
| File | Purpose |
|---|---|
.autonomous-claude/spec.md |
The full application specification |
.autonomous-claude/progress.txt |
Session notes and progress updates |
.autonomous-claude/logs/ |
Session logs (stdout, stderr, prompts) |
init.sh |
Dev environment setup script |
TODO.md |
Human tasks (API keys, credentials) - only if needed |
Features are tracked as GitHub Issues with the autonomous-claude label. View progress at https://github.com/<owner>/<repo>/issues.
How It Works
New projects
- Setup: Creates a private GitHub repo (if needed)
- Session 1 (Initializer): Creates GitHub Issues for each testable feature
- Sessions 2+ (Coding Agent): Implements features one by one, closing issues when done
Adding features to existing projects
- Session 1 (Enhancement Initializer): Creates new GitHub Issues for the requested features
- Sessions 2+ (Coding Agent): Implements the new features
Progress is tracked via GitHub Issues and git commits. Press Ctrl+C to stop, then --continue to resume.
Iterative Sessions (Ralph Wiggum Style)
Each coding session uses the Ralph Wiggum technique for iterative refinement. Instead of exiting on first attempt, Claude iterates within each session until the issue is complete or max iterations (default: 10) is reached.
How it works:
- Claude starts working on an issue
- When Claude tries to stop, a Stop hook intercepts and checks completion
- If issues remain open and iterations < max, Claude is prompted to continue
- Loop exits when the issue is closed or max iterations reached
Benefits:
- More resilient to transient errors
- Self-correcting (tests fail → fix → retry)
- No human intervention needed for typical debugging cycles
Configuration:
[ralph]
enabled = true # Disable with false if needed
max_iterations = 10 # Increase for complex tasks
The Stop hook is automatically installed to .claude/hooks/stop_hook.sh in your project.
Example
$ mkdir apple-notes-clone && cd apple-notes-clone
$ autonomous-claude "An Apple Notes clone - web app with local .md file storage, folder organization, rich text editing, and full-text search"
╔═╗╦ ╦╔╦╗╔═╗╔╗╔╔═╗╔╦╗╔═╗╦ ╦╔═╗
╠═╣║ ║ ║ ║ ║║║║║ ║║║║║ ║║ ║╚═╗
╩ ╩╚═╝ ╩ ╚═╝╝╚╝╚═╝╩ ╩╚═╝╚═╝╚═╝
Claude Code CLI
Project /home/user/apple-notes-clone
Model Claude Code default
Setting up new project...
...
Security
Docker Sandbox (Default)
By default, all Claude Code executions run inside an isolated Docker container.
Mounts:
| Host Path | Container Path | Mode | Why |
|---|---|---|---|
| Project directory | /workspace |
rw | Code being built |
~/.claude/.credentials.json |
/home/node/.claude/.credentials.json |
rw | Auth tokens (needs write for refresh) |
~/.claude/settings.json |
/home/node/.claude/settings.json |
ro | User preferences |
~/.claude/settings.local.json |
/home/node/.claude/settings.local.json |
ro | Permission allowlists |
~/.claude/CLAUDE.md |
/home/node/.claude/CLAUDE.md |
ro | Personal instructions |
~/.claude/skills/ |
/home/node/.claude/skills/ |
rw | User-scoped skills (rw for deps/cache) |
~/.config/gh |
/home/node/.config/gh |
ro | GitHub CLI auth |
Settings and gh config are read-only to prevent a sandboxed session from escalating permissions.
Not accessible: ~/.ssh, ~/.aws, or any directory outside your project.
Limits: 8GB RAM, 4 CPUs (configurable). Runs as non-root with all capabilities dropped.
License
MIT - Based on Anthropic's claude-quickstarts
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autonomous_claude-1.3.4.tar.gz.
File metadata
- Download URL: autonomous_claude-1.3.4.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c0f67694e8bef7540f3e380f07e6eea24a447de18ab27fe6b064c376ee7ed12
|
|
| MD5 |
2276f80652a91a97fdb667350b6d629d
|
|
| BLAKE2b-256 |
f3f5dde2f2b6639f5afb4f16aad813b4465ef721d572b24ccfea9ea2759306fa
|
Provenance
The following attestation bundles were made for autonomous_claude-1.3.4.tar.gz:
Publisher:
release.yml on ferdousbhai/autonomous-claude
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autonomous_claude-1.3.4.tar.gz -
Subject digest:
9c0f67694e8bef7540f3e380f07e6eea24a447de18ab27fe6b064c376ee7ed12 - Sigstore transparency entry: 798322170
- Sigstore integration time:
-
Permalink:
ferdousbhai/autonomous-claude@dde5e48f85d3cb4b76cbc213d50ca52476050b14 -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/ferdousbhai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dde5e48f85d3cb4b76cbc213d50ca52476050b14 -
Trigger Event:
push
-
Statement type:
File details
Details for the file autonomous_claude-1.3.4-py3-none-any.whl.
File metadata
- Download URL: autonomous_claude-1.3.4-py3-none-any.whl
- Upload date:
- Size: 50.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aaf78bdc42b05d354e7b0ba41d94373aca408ca21edb9a3d9f329d715b5b08f
|
|
| MD5 |
0dca44690f093debff0cb8b0540f4242
|
|
| BLAKE2b-256 |
1188449a04d634d9df90ea21376dcb3b598bac054649c0b6bfecc0a0c57211c1
|
Provenance
The following attestation bundles were made for autonomous_claude-1.3.4-py3-none-any.whl:
Publisher:
release.yml on ferdousbhai/autonomous-claude
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autonomous_claude-1.3.4-py3-none-any.whl -
Subject digest:
3aaf78bdc42b05d354e7b0ba41d94373aca408ca21edb9a3d9f329d715b5b08f - Sigstore transparency entry: 798322172
- Sigstore integration time:
-
Permalink:
ferdousbhai/autonomous-claude@dde5e48f85d3cb4b76cbc213d50ca52476050b14 -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/ferdousbhai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dde5e48f85d3cb4b76cbc213d50ca52476050b14 -
Trigger Event:
push
-
Statement type: