G-AiCoder - Advanced AI development assistant with multi-modal intelligence
Project description
gCoder - Advanced AI Development Assistant
G-AICoder is an advanced AI-powered development assistant that supports multiple AI providers from local to cloud. It provides intelligent code editing, analysis, and development assistance through a clean command-line interface.
🚀 Quick Start
Installation
pip install g-aicoder
First Run Setup
gcoder chat
On first run, gCoder will guide you through:
- Permissions Setup - Grant file operation permissions
- Provider Selection - Choose your AI provider
- Model Selection - Select specific model
- API Key Setup - For cloud providers
✨ Features
- 🤖 Multi-Provider AI Support - Use any AI model (Ollama, OpenAI, Anthropic, Google, DeepSeek)
- 💻 Code Intelligence - Smart code editing, analysis, and improvements
- 📁 File Operations - Create, copy, move, delete files with AI assistance
- 🔍 Advanced Search - Regex pattern matching across codebases
- 🖼️ Multi-modal Analysis - Image analysis for screenshots and UI elements
- 💬 Interactive Chat - Natural conversation with conversation history
- ⚡ Real-time Streaming - Live response streaming for better UX
- 🔧 Command-line Interface - Intuitive CLI with multiple subcommands
🛠️ Usage
Interactive Chat Session
gcoder chat
Edit Files with AI Assistance
gcoder edit main.py --instruction "Add error handling"
Search for Patterns
gcoder search "TODO" --path src/
Analyze Codebase
gcoder analyze --path .
Image Analysis
gcoder image screenshot.png --context code
File Operations
gcoder file create new_file.py
gcoder file copy source.py destination.py
gcoder file move old.py new.py
gcoder file delete unwanted.py
🤖 AI Providers
gCoder supports multiple AI providers with a completely generic configuration system:
Pre-configured Providers
-
Ollama (Local) - Free, private, offline
- Models: qwen2.5-coder:7b, codellama:7b, deepseek-coder:6.7b, llava:7b
-
OpenAI (Cloud) - High-quality responses
- Models: GPT-4, GPT-3.5-turbo
-
Anthropic (Cloud) - Excellent for coding tasks
- Models: Claude-3-Sonnet, Claude-3-Haiku
-
Google AI (Cloud) - Fast and reliable
- Models: Gemini Pro
-
DeepSeek (Cloud) - Specialized for coding
- Models: DeepSeek Coder
Configuration
All providers are configured through ~/.gcoder/config.json:
{
"ai_provider": "ollama",
"providers": {
"ollama": {
"name": "Ollama (Local)",
"type": "local",
"base_url": "http://localhost:11434",
"api_endpoint": "/api/generate",
"models": [
{
"name": "qwen2.5-coder:7b",
"description": "Qwen2.5 Coder 7B - Recommended for coding"
}
],
"selected_model": "qwen2.5-coder:7b",
"timeout": 600,
"temperature": 0.7,
"max_tokens": 4096
}
}
}
📋 Requirements
- Python: 3.8 or higher
- Dependencies:
aiohttp>=3.13.0Pillow>=10.0.0
- Optional: Ollama for local AI models
🔧 Development
Installation from Source
git clone https://github.com/prdpspkt/gCoder.git
cd gCoder
pip install -e .
Project Structure
gcoder/
├── main.py # CLI entry point
├── core/ # Core AI functionality
│ ├── ai_assistant.py # Main AI assistant
│ └── chat_manager.py # Chat management
├── handlers/ # Request handlers
│ └── request_handlers.py
└── utils/ # Utility modules
🐛 Troubleshooting
Common Issues
-
Ollama Connection Error
- Ensure Ollama is running:
ollama serve - Check base URL in config:
http://localhost:11434
- Ensure Ollama is running:
-
API Key Issues
- Verify API keys for cloud providers
- Check provider configuration
-
Permission Errors
- Grant permissions during first-run setup
- Check file/directory permissions
Getting Help
- Issues: GitHub Issues
- Documentation: Check this README and inline help:
gcoder --help
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📞 Support
If you encounter any problems or have questions:
- Check the troubleshooting section
- Search existing issues
- Create a new issue with detailed information
gCoder - Making AI-assisted development accessible and powerful for everyone! 🚀
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file g_aicoder-1.0.2.tar.gz.
File metadata
- Download URL: g_aicoder-1.0.2.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f0dd9a100b4f5c937eddd0fde222d79b05229e1a6709160e9503b8374f65868
|
|
| MD5 |
77567e5364b3aba5cabfb3d3b617ee80
|
|
| BLAKE2b-256 |
0be2c38aebc1fb35432947bc0ce0e62ed875a02be19ab811c3dea108a10a1d09
|
File details
Details for the file g_aicoder-1.0.2-py3-none-any.whl.
File metadata
- Download URL: g_aicoder-1.0.2-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d23e17deae89b529ca05d6b0181ef8c2b9dd133f415393ea0a99732785a8c56
|
|
| MD5 |
7c59872d1d03a089beb1b45a76832dd9
|
|
| BLAKE2b-256 |
b78afb5e2e5b88236b52b573c234193c2d2689f8fa77db2c87ea1f6b68dbe659
|