A CLI-focused code assistant for AI-assisted development
Project description
Coda - AI Code Assistant
A powerful, modular AI code assistant that brings the best of AI-powered development directly to your terminal.
โจ What is Coda?
Coda is your AI pair programmer that lives in your terminal, built with a modular architecture that supports multiple AI providers including Oracle OCI GenAI, OpenAI, Anthropic, Google, and 100+ more via LiteLLM.
๐๏ธ Modular Architecture
Coda is built with a clean, three-layer architecture:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Apps Layer โ
โ (CLI, Web UI, Plugins, Custom) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Services Layer โ
โ (Integration, Orchestration, Workflows) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Base Layer โ
โ (Config, Theme, Providers, Session, Search, etc) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Base Modules
- ๐ง Config: Unified configuration management
- ๐จ Theme: Terminal UI and formatting
- ๐ค Providers: AI integration
- ๐ฌ Session: Conversation persistence
- ๐ Search: Semantic code search
- ๐ Observability: Logging and metrics
๐ Quick Start
Try without installing
# Run directly with uvx (no installation needed!)
uvx --from coda-code-assistant coda
Install from PyPI
# Install with pip
pip install coda-code-assistant
# Or install with uv
uv pip install coda-code-assistant
# Run Coda
coda
Install from source
# Clone the repository with submodules
git clone --recursive https://github.com/djvolz/coda-code-assistant.git
cd coda-code-assistant
# Install with uv (recommended)
uv sync
# Run Coda
uv run coda
Using Individual Modules
from coda.base.config import Config
from coda.base.providers import ProviderFactory
# Initialize configuration
config = Config()
# Create a provider
factory = ProviderFactory(config.to_dict())
provider = factory.create("openai")
# Start chatting
response = provider.chat(
messages=[{"role": "user", "content": "Hello!"}],
model="gpt-4"
)
print(response["content"])
๐ Documentation
In-Repository Docs
- Integration Guide - How to use modules together
- Module Documentation - Individual module READMEs
- Example Applications - Working examples
- Diagram Rendering Guide - How to create diagrams
Wiki Documentation
For comprehensive documentation, visit our Wiki:
- Getting Started Guide - Installation and setup
- AI Modes - Specialized AI personalities
- Development Guide - Contributing and development workflow
- Architecture Guide - Deep dive into the modular design
- Troubleshooting - Common issues and solutions
๐ฏ Key Features
- ๐ Provider Support: Works with Oracle OCI GenAI, Ollama, OpenAI, Anthropic, Google, and 100+ providers
- ๐งฉ Modular Design: Use only the components you need
- ๐ป Terminal-First: Designed for developers who live in the command line
- ๐ง Smart AI Modes: Specialized modes for coding, debugging, explaining, and reviewing
- ๐พ Session Management: Save, resume, and branch conversations
- ๐จ Beautiful Interface: Rich terminal UI with syntax highlighting
- ๐ง Tool Integration: File operations, web search, and more via MCP
- ๐ Diagram Rendering: Create flowcharts, UML diagrams, and graphs with diagram-renderer
- ๐งช Well-Tested: Comprehensive test suite ensures reliability
๐ ๏ธ Example Applications
Check out our example applications to see Coda modules in action:
- Simple Chatbot - Basic provider usage
- Session Manager - Persistent conversations
- Code Analyzer - AI-powered code analysis
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development
# Install development dependencies
uv sync --dev
# Run tests
uv run pytest
# Run type checks
uv run mypy coda
# Format code
uv run black .
uv run ruff check --fix
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Links
Made with โค๏ธ by the Coda community
Project details
Release history Release notifications | RSS feed
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 coda_code_assistant-2025.8.22.910.tar.gz.
File metadata
- Download URL: coda_code_assistant-2025.8.22.910.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9851e018bed060aa062a570af361e72760f6a5bacf14f31263aa58243682cb5d
|
|
| MD5 |
8113ce9f3c1a3481b7e229e6b1bb5cc4
|
|
| BLAKE2b-256 |
415180f0ea5d77eea7a4444fbbe8d8c9b4afb95cfb2a0b1622e499330664d790
|
File details
Details for the file coda_code_assistant-2025.8.22.910-py3-none-any.whl.
File metadata
- Download URL: coda_code_assistant-2025.8.22.910-py3-none-any.whl
- Upload date:
- Size: 406.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28d0f4708d29e76c43c24f99b7769f0f577ac4bc2c18b92adbbffbb816a9dbbe
|
|
| MD5 |
679db5020dc897030ffe5f23be285103
|
|
| BLAKE2b-256 |
8bcb5660c832ae884c851f227a69f029780fa1bbeebc22504a235efc0be91bad
|