AI-powered code generation using Claude Code (Claude 4.5 Sonnet).
- β Autonomous code generation - Claude Code analyzes and implements features
- β Automatic testing - Runs tests and fixes errors iteratively
- β Git integration - Creates commits with meaningful messages
- β PR creation - Automatically opens pull requests
- β Context-aware - Understands your entire codebase
- β Enterprise-grade - Built on Claude 4.5 Sonnet
Create .github/workflows/autodev.yml:
name: 'AutoDev'
on:
workflow_dispatch:
inputs:
prompt:
description: "What to build"
type: string
required: true
jobs:
autodev:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: load28/auto-dev/action@main
with:
prompt: ${{ inputs.prompt }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}- Go to Settings β Secrets and variables β Actions
- Add ANTHROPIC_API_KEY with your Claude API key
- Get your API key: https://console.anthropic.com
- Go to Actions tab
- Click AutoDev workflow
- Click Run workflow
- Enter your prompt:
"Add user authentication with JWT" - Click Run workflow
- β Wait ~2-5 minutes for PR creation!
"Add a README.md file with project description""Create a .gitignore for Rust project""Add license file (MIT)"
"Add Google OAuth authentication""Create REST API for user management""Add database migrations for PostgreSQL""Implement JWT token generation and validation"
"Add unit tests for all API endpoints""Add integration tests with test database""Fix all Clippy warnings""Add error handling with thiserror"
"Refactor authentication to use async/await""Split monolithic file into modules""Add comprehensive documentation""Optimize database queries"
| Name | Description | Required | Default |
|---|---|---|---|
prompt |
Instructions for what to build | Yes | - |
base_branch |
Branch to create PR from | No | main |
agent |
AI agent to use | No | claude_code |
task_title |
Title for the pull request | No | AutoDev Task |
| Name | Description | Required |
|---|---|---|
ANTHROPIC_API_KEY |
Your Claude API key | Yes |
GITHUB_TOKEN |
Automatically provided | Yes |
| Name | Description |
|---|---|
pr_url |
URL of the created pull request |
pr_number |
Number of the created pull request |
branch_name |
Name of the created branch |
- Analysis - Claude Code analyzes your codebase and requirements
- Planning - Creates an implementation plan
- Coding - Generates code changes across multiple files
- Testing - Runs tests and fixes errors automatically
- Iteration - Refines code until tests pass
- Commit - Creates meaningful commit message
- PR - Opens pull request with summary
- Be specific - Clear prompts get better results
- Start small - Test with simple tasks first
- Review PRs - Always review AI-generated code
- Break down - Split large features into smaller tasks
- Iterate - Use follow-up prompts to refine
- Vague prompts - "Make it better" won't work well
- Too complex - Don't ask for entire applications at once
- Skip review - Always review security and logic
- Expect perfection - AI makes mistakes, review carefully
Costs are based on Claude API usage (prompt + completion tokens):
- Simple tasks (add file, small changes): $0.50-1
- Medium tasks (API endpoint, auth): $2-5
- Large tasks (full feature, multiple files): $5-15
- Complex features (with iterations): $10-30
- Your code runs in your GitHub Actions runners
- API keys are stored as GitHub Secrets
- Claude Code has read-only access to most operations
- All changes go through pull requests for review
β Add the secret in Settings β Secrets and variables β Actions
β Ensure workflow has permissions:
permissions:
contents: write
pull-requests: writeβ Check that your prompt is clear and achievable β Try breaking down into smaller steps
β Prompt might be too vague β Try being more specific about implementation
β Claude Code will automatically try to fix test failures β May need manual intervention for complex issues
Contributions are welcome! Please see CONTRIBUTING.md.
MIT License - see LICENSE
Powered by Claude Code - The agentic coding assistant from Anthropic