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

Or install from source:

git clone https://github.com/ferdousbhai/autonomous-claude.git
cd autonomous-claude
uv tool install .

Prerequisites

Claude Code CLI must be installed and authenticated:

npm install -g @anthropic-ai/claude-code
claude login

Usage

build [PROJECT_DIR] [SPEC]     Build from description or spec file
resume [PROJECT_DIR]           Continue existing project
continue [PROJECT_DIR] [TASK]  Add new features to any project

All positional arguments are optional — prompts interactively if not provided.

Build a new app

# Interactive - prompts for project name and description
autonomous-claude build

# With arguments
autonomous-claude build ./notes-app "An Apple Notes clone - local .md storage, folders, rich text, search"

# From a spec file
autonomous-claude build ./notes-app ./app-spec.md

Resume an existing project

Continue implementing existing features where you left off:

autonomous-claude resume ./notes-app

# Or interactive
autonomous-claude resume

Continue with new features

Add new features to any existing project - whether built with this tool or not.

Note: If your project has incomplete features, you'll be asked to confirm. Use resume to continue without adding new features.

# Interactive
autonomous-claude continue

# Adopt an external project for maintenance
autonomous-claude continue ./my-nextjs-app "Add dark mode toggle and fix the sidebar collapse bug"

# Add new features to a project built with this tool
autonomous-claude continue ./notes-app "Add note sharing via public links and real-time collaboration"

Options

Option Short Description Default
--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)
--verbose -V Stream Claude output in real-time false

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)

[tools]
allowed = ["Read", "Write", "Edit", "MultiEdit", "Glob", "Grep", "Bash", "WebSearch", "WebFetch"]

[ui]
pending_display_limit = 10     # Max pending features to show

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
feature_list.json Tracks features and their completion status
app_spec.txt The full application specification
claude-progress.txt Session notes and progress updates
.autonomous-claude/logs/ Session logs (stdout, stderr, prompts)

Use --verbose (-V) to stream Claude's output in real-time instead of showing a spinner.

How It Works

Building new projects (build)

  1. Session 1 (Initializer): Creates feature_list.json with testable features
  2. Sessions 2+ (Coding Agent): Implements features one by one, marking them as passing

Adopting existing projects (continue)

  1. Session 1 (Adoption Initializer): Analyzes codebase, creates feature_list.json for requested tasks
  2. Sessions 2+ (Coding Agent): Implements the new features

Adding features to existing projects (continue with feature_list.json)

  1. Session 1 (Enhancement Initializer): Appends new features to existing feature_list.json
  2. Sessions 2+ (Coding Agent): Implements the new features

Progress is persisted via feature_list.json and git commits. Press Ctrl+C to stop, then resume to continue.

Example

$ autonomous-claude build ./apple-notes-clone "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

Starting new project - initializer will run first
...

Security Note

This tool uses --dangerously-skip-permissions for autonomous operation. Only run in trusted environments.

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-0.6.4.tar.gz (20.0 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-0.6.4-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for autonomous_claude-0.6.4.tar.gz
Algorithm Hash digest
SHA256 26877d9b12ea25e948ffac8aa75032fb793b6acf138571f83eec036bff0bf1b4
MD5 59de6d918cd071779e22b0ab53e6bcc6
BLAKE2b-256 709a4f2abab5cb5b2ede54e298348bca787a46cb7ada0a03c50d67af4e2ad371

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonomous_claude-0.6.4.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-0.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for autonomous_claude-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 810093026630ccb34418cbc04abe9e3cd74553c7d888da6fbb03256d2d4000d6
MD5 01b4f12a522672265a41e62a0d33c3a5
BLAKE2b-256 bbdf5d64b9306acd5afbf428b621dd74cb641d1a8d186f986bded9e7a73a1991

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonomous_claude-0.6.4-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