Skip to main content

AI-powered development assistant for code generation, refactoring, and project management

Project description

image

BlitzCoder

โšก AI-Powered Development Assistant - A comprehensive CLI tool for code generation, refactoring, and project management.

Features

  • ๐Ÿค– AI-Powered Code Generation - Generate code using Google's Gemini model
  • ๐Ÿ”ง Code Refactoring - Automatically refactor and improve existing code
  • ๐Ÿ“ Project Scaffolding - Create complete project structures with architecture plans
  • ๐Ÿง  Memory System - Remember previous conversations and context
  • ๐Ÿ› ๏ธ Development Tools - File inspection, execution, and management tools
  • ๐Ÿ” Code Analysis - Explain and analyze code functionality

Installation

Option 1: Install from Source (Recommended)

# Clone the repository
git clone https://github.com/Raghu6798/Blitz_Coder.git
cd BlitzCoder/blitz_cli

# Install in development mode
python install.py

Option 2: Manual Installation

cd blitz_cli
pip install -e .

Option 3: Direct Script Execution

# Windows
python scripts/blitzcoder.bat

# Linux/Mac
python scripts/blitzcoder

Quick Start

1. Set up your API Keys

You'll need a Google API key for the Gemini model:

# Set environment variable
export GOOGLE_API_KEY="your-api-key-here"

# Or on Windows
set GOOGLE_API_KEY=your-api-key-here

2. Start Interactive Chat

blitzcoder chat

3. Search Memories

blitzcoder search-memories --query "your search term"

Usage Examples

Interactive Chat Mode

blitzcoder chat

This starts an interactive session where you can:

  • Ask questions about code
  • Request code generation
  • Get help with refactoring
  • Search through previous conversations

Search Previous Conversations

blitzcoder search-memories --query "React component"

Use with API Key Parameter

blitzcoder chat --google-api-key "your-api-key"

Available Commands

Command Description
chat Start interactive AI chat session
search-memories Search through conversation history

Development

Project Structure

.
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ blitzcoder/
โ”‚   โ”‚   โ””โ”€โ”€ cli/
โ”‚   โ”‚       โ””โ”€โ”€ cli_coder.py      # Click-based CLI entrypoint
โ”‚   โ””โ”€โ”€ main/
โ”‚       โ””โ”€โ”€ graphapi.py           # Core LangGraph agent logic and state graph
โ”œโ”€โ”€ tools/
โ”‚   โ”œโ”€โ”€ scaffold_and_generate_files.py # High-level tool for project creation
โ”‚   โ”œโ”€โ”€ run_shell_command_in_sandbox.py # Secure command execution tool
โ”‚   โ””โ”€โ”€ ... (many other modular tools)
โ”œโ”€โ”€ config/
โ”‚   โ”œโ”€โ”€ settings.py
โ”‚   โ””โ”€โ”€ templates/                # Contains templates for dozens of frameworks
โ”‚       โ”œโ”€โ”€ Backend/
โ”‚       โ”œโ”€โ”€ Frontend/
โ”‚       โ””โ”€โ”€ ...
โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ llm_model.py              # LLM (Gemini) configuration
โ”‚   โ””โ”€โ”€ embedding_model.py        # Embedding model configuration
โ”œโ”€โ”€ observability/
โ”‚   โ””โ”€โ”€ tracing.py                # Tracing and observability setup
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ unit/
โ”‚   โ””โ”€โ”€ integration/
โ”œโ”€โ”€ pyproject.toml                # Project metadata and dependencies (for PyPI)
โ”œโ”€โ”€ install.py                    # Main installation script
โ””โ”€โ”€ Dockerfile         

Running Tests

# Install development dependencies
pip install -e ".[dev]"

### Quick Start
1. Set up your API Keys
BlitzCoder requires two API keys to function. It will prompt you for them on the first run, or you can set them as environment variables.
Google Gemini API Key: For the core AI reasoning.

export GOOGLE_API_KEY=your-gemini-api-key

E2B Sandbox API Key: For secure command execution. Get a free key at e2b.dev.

export E2B_API_KEY=your-e2b-api-key

# Run tests
pytest

Code Formatting

# Format code
black src/
isort src/

# Type checking
mypy src/

Configuration

The package uses environment variables for configuration:

  • GOOGLE_API_KEY - Required for Gemini model access
  • GROQ_API_KEY - Optional for additional models
  • NOVITA_API_KEY - Optional for embeddings

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Acknowledgments

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

blitzcoder-1.0.17.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

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

blitzcoder-1.0.17-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

Details for the file blitzcoder-1.0.17.tar.gz.

File metadata

  • Download URL: blitzcoder-1.0.17.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for blitzcoder-1.0.17.tar.gz
Algorithm Hash digest
SHA256 55704aa0c7fc70a5d83c5d546d1c0ceda3fcedaf62c2bb3f88b90b64e1fb7bdf
MD5 74623b3b96ae588dfe2939758c3d29ff
BLAKE2b-256 b638fe9895f8093e8f40218050f65b73856db9aee3051be42f52905bcb3ce270

See more details on using hashes here.

File details

Details for the file blitzcoder-1.0.17-py3-none-any.whl.

File metadata

  • Download URL: blitzcoder-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 41.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for blitzcoder-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 de4fe4b6fdc9bccd7cf13d1d8b66b212959d20473a0a7c512a0da307350d5a23
MD5 ab91510dd44f24103b73adaf2dcf8358
BLAKE2b-256 c43df6b7bb56bf214149e04a7f678eb4dd171ffe787ca716cd24af55835cd06a

See more details on using hashes here.

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