Skip to content

A Python tool that leverages Claude AI to intelligently analyze repositories and suggest code changes based on natural language tasks. Perfect for developers who want to speed up code reviews and refactoring! πŸš€

Notifications You must be signed in to change notification settings

kwisser/claude-ai-repo-coder

Repository files navigation

Claude AI Repo Coder πŸ› οΈπŸ€–

A Python tool that leverages Claude AI to intelligently analyze repositories and suggest code changes based on natural language tasks. Perfect for developers who want to speed up code reviews and refactoring! πŸš€

✨ Features

  • πŸ—‚οΈ Smart File Selection: Automatically identifies relevant files based on task requirements
  • πŸ“ˆ Automated Code Analysis: Analyzes code and recommends specific improvements
  • πŸ”„ Interactive Mode: Engage with Claude AI for follow-up questions during analysis
  • πŸ’° Token & Cost Tracking: Estimates token usage and keeps track of costs
  • βš™οΈ Configurable Ignoring: Set up file/directory ignore patterns as needed
  • 🌈 Colorized Console Output: Displays results in easy-to-read, colorized output

πŸ“‹ Prerequisites

  • 🐍 Python 3.12+
  • ☁️ Google Cloud Platform account with Vertex AI enabled
  • πŸ†” GCP Project ID

πŸ› οΈ Installation

  1. Clone the repository πŸ“₯

  2. Install dependencies using Poetry:

    poetry install

βš™οΈ Usage

Basic usage:

python main.py <repo_path> "<task_description>" --project-id <your-gcp-project-id>

Options

  • 🌍 --location: Specify the Anthropic API location (default: us-east5)
  • 🚫 --ignore: Add custom ignore patterns
  • πŸ‘€ --show-ignored: Show all currently ignored patterns
  • πŸ—¨οΈ --interactive: Enable Interactive Mode for ongoing discussions with Claude AI

Example

python main.py ./my-repo "Add error handling to database operations" --project-id my-gcp-project --interactive

🧩 Configuration

The tool relies on the following packages:

  • πŸ€– anthropic (with vertex extras)
  • ☁️ google-cloud-aiplatform
  • πŸ”’ tiktoken
  • 🌈 colorama

πŸ‘€ Author

Klemens Wisser πŸ“§ wisserklemens@gmail.com

About

A Python tool that leverages Claude AI to intelligently analyze repositories and suggest code changes based on natural language tasks. Perfect for developers who want to speed up code reviews and refactoring! πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published