| Crates.io | kandil_code |
| lib.rs | kandil_code |
| version | 2.1.1 |
| created_at | 2025-11-14 19:47:53.842441+00 |
| updated_at | 2025-11-17 18:18:28.093259+00 |
| description | Intelligent development platform (CLI + TUI + Multi-Agent System) with cross-platform AI model benchmarking, system diagnostics, and advanced development tools |
| homepage | https://github.com/Kandil7/kandil_code |
| repository | https://github.com/Kandil7/kandil_code |
| max_upload_size | |
| id | 1933343 |
| size | 1,648,841 |
Kandil Code is an intelligent development platform (CLI + TUI + Multi-Agent System) built in Rust, designed to transform ideas into integrated software projects. It supports multi-language projects, AI integration, requirements engineering, code generation, testing, deployment, and professional role simulations.
This platform combines the efficiency of command-line interfaces with the interactivity of terminal-based UI, all powered by AI-assisted development. The system automates many development tasks while maintaining high security standards and accessibility.
doctor command/ref, /test, /fix, /review)Download the appropriate binary for your platform from the releases page:
# Linux/macOS
curl -L https://github.com/Kandil7/kandil_code/releases/download/v2.0.0/kandil_linux_x86_64.tar.gz | tar xz
sudo mv kandil /usr/local/bin
# Windows (PowerShell)
Invoke-WebRequest -Uri "https://github.com/Kandil7/kandil_code/releases/download/v2.0.0/kandil_windows_x64.zip" -OutFile "kandil.zip"
Expand-Archive -Path "kandil.zip" -DestinationPath .
git clone https://github.com/Kandil7/kandil_code.git
cd kandil_code
cargo build --release
After installation, initialize your configuration:
kandil init
kandil config set-key <provider> <api-key> # e.g., claude, openai, qwen (for cloud providers)
Kandil Code comes with built-in support for local models that work automatically:
Automatic Model Selection: On first run, Kandil Code will detect your hardware and automatically select an appropriate model based on available RAM:
Manual Model Management: You can manually install and manage local models:
kandil model list # List all available models
kandil model list --compatible # List models compatible with your hardware
kandil model install qwen2.5-coder-7b-q4 # Install a specific model
kandil model use qwen2.5-coder-7b-q4 # Set as default model
kandil model benchmark # Benchmark your current model
kandil model verify qwen2.5-coder-7b-q4 # Verify model integrity
kandil model remove qwen2.5-coder-7b-q4 # Uninstall model
The local models are stored in your user data directory and are automatically managed by Kandil Code.
# Create project directory
mkdir my-awesome-app && cd my-awesome-app
# Initialize Kandil project
kandil init
# Create from template
kandil create flutter my_flutter_app
# Chat with the AI assistant
kandil chat "How do I implement authentication in my Flutter app?"
# Generate code based on requirements
kandil agent code "Create a user profile page with avatar upload" dart
# Launch the interactive development environment
kandil tui
# Generate project documentation
kandil docs generate
# Generate and execute tests
kandil test generate src/main.rs
kandil test execute
Kandil Code includes powerful slash commands for rapid development tasks:
# Start the interactive shell
kandil chat
# Refactor code
/refactor src/main.rs
# Generate tests
/test src/main.rs
# Analyze and fix issues
/fix
# Review code
/review
These commands provide quick access to common development tasks with AI assistance.
Kandil Code follows a hexagonal (ports & adapters) architecture with clear separation of concerns:
External Interfaces
├── CLI (Clap-based)
├── TUI (Ratatui-based)
└── Agents API
Application Core
├── Agent Framework (ReAct pattern)
├── AI Abstraction Layer
├── Project Management
└── Security Layer
Infrastructure Adapters
├── AI Providers (Ollama, Claude, Qwen, OpenAI)
├── Database (SQLite with Supabase sync)
├── File System
└── Plugin System
Kandil Code provides unified access to multiple AI models:
API keys are securely stored in your OS keyring:
kandil config set-key claude sk-ant-...
kandil config set-key openai sk-...
kandil config set-key qwen your-qwen-key
Switch between AI models seamlessly:
kandil switch-model claude claude-3-opus
kandil switch-model openai gpt-4-turbo
The platform features a sophisticated agent framework based on the ReAct (Reason-Act-Observe) pattern:
Agents can work independently or collaboratively:
# Single agent task
kandil agent requirements "Build a note-taking app with sync"
# Multi-agent workflow
kandil workflow full-stack "E-commerce website with payment"
Kandil Code simulates professional software development roles:
kandil simulate pm plan-sprint "feature-branch" 2-weeks
kandil simulate pm retrospective 5
kandil simulate ba validate "user-authentication-service.md"
kandil simulate ba user-story "Allow users to reset password"
kandil simulate architect review "system-architecture.md"
kandil simulate architect decide "microservices-vs-monolith"
kandil simulate developer pair "team-member" "implement-feature-x"
kandil simulate qa plan "payment-processing-module" high
Full i18n support with:
Supported languages include:
Comprehensive accessibility features:
Kandil Code runs on multiple platforms with consistent experience:
All platforms support the same feature set through a unified codebase.
Kandil Code includes built-in tools for performance evaluation and system health:
# Benchmark your current model across different runtimes
kandil model benchmark
# Benchmark with specific output format
kandil model benchmark --format json
# Benchmark all available runtimes
kandil model benchmark --all-runtimes
# Run comprehensive system diagnostics
kandil doctor
# Run platform-specific diagnostics
kandil windows doctor # On Windows
kandil macos doctor # On macOS
kandil linux doctor # On Linux
These tools help optimize performance and diagnose system issues.
We welcome contributions! Please see our Contributing Guide for details.
cargo buildcargo testFor maintainers looking to create a new release, please follow the Release Management Guide.
Releases are automated via GitHub Actions when a new tag is pushed in the format v*.
Kandil Code is available through multiple distribution channels:
Download pre-built binaries from the Releases page.
git clone https://github.com/Kandil7/kandil_code.git
cd kandil_code
cargo run --release
For hosting options and distribution methods, see our Hosting Guide.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ and Rust. Join our community for updates and discussions!