Skip to main content

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-sandbox to 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
uv tool upgrade autonomous-claude

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 --continue to 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)

[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
.claude/CLAUDE.md Project specification (auto-loaded by Claude)
.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

  1. Setup: Creates a private GitHub repo (if needed)
  2. Session 1 (Initializer): Creates GitHub Issues for each testable feature
  3. Sessions 2+ (Coding Agent): Implements features one by one, closing issues when done

Adding features to existing projects

  1. Session 1 (Enhancement Initializer): Creates new GitHub Issues for the requested features
  2. 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.

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)
~/.claude/plugins/ /home/node/.claude/plugins/ ro Installed plugins
~/.config/gh /home/node/.config/gh rw GitHub CLI auth (rw for token refresh)

Settings and plugins 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autonomous_claude-1.4.7.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autonomous_claude-1.4.7-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file autonomous_claude-1.4.7.tar.gz.

File metadata

  • Download URL: autonomous_claude-1.4.7.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autonomous_claude-1.4.7.tar.gz
Algorithm Hash digest
SHA256 2ea0e3f82f757304229b3fda58d7e0776c4cfcd576720d302b9b9096481bd02d
MD5 54b236f3d25abf1a190d0496cd48f848
BLAKE2b-256 d7f8d89a1b8ab338c1dd3a7470826aff1216fa09fce74f6f9e03f620939301e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonomous_claude-1.4.7.tar.gz:

Publisher: release.yml on ferdousbhai/autonomous-claude

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autonomous_claude-1.4.7-py3-none-any.whl.

File metadata

File hashes

Hashes for autonomous_claude-1.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 60ec3a9bed24d9f4e3bdd17b8d6e9a2a2b04ed562f1e9cf0991cf8f40ac23df6
MD5 f6119374afb4a9421fff3c1d41717aae
BLAKE2b-256 d603c81b6fbb1d6676e5d0b7b3fadfff4a2b39fb3a183b4c2af07c10e3b18ebf

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonomous_claude-1.4.7-py3-none-any.whl:

Publisher: release.yml on ferdousbhai/autonomous-claude

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page