Skip to main content

TzamunCode - AI Coding Assistant powered by local models

Project description

TzamunCode CLI ๐Ÿš€

AI Coding Assistant powered by local models - Built in Saudi Arabia ๐Ÿ‡ธ๐Ÿ‡ฆ

TzamunCode is a privacy-first AI coding assistant that runs entirely on your local infrastructure using Ollama and vLLM. No cloud dependencies, no API costs, complete control.

โœจ Features

  • ๐Ÿค– Agentic AI - Multi-step planning and execution
  • ๐Ÿ“ Code Generation - Create files, functions, and entire projects
  • โœ๏ธ Multi-file Editing - Edit multiple files in one operation
  • ๐Ÿ”ง Tool Calling - Git operations, file search, command execution
  • ๐ŸŽฏ Context Aware - Understands your project structure
  • ๐Ÿ”’ Privacy First - Everything runs locally
  • โšก Fast - Powered by vLLM for optimized inference
  • ๐ŸŒ Multi-model - Use any Ollama model (15+ available)

๐Ÿš€ Quick Start

Installation

# Clone the repository
git clone https://github.com/tzamun/tzamuncode-cli.git
cd tzamuncode-cli

# Install
pip install -e .

# Or install from PyPI (when published)
pip install tzamuncode

Prerequisites

Basic Usage

# Start interactive chat
tzamuncode chat

# Generate code
tzamuncode generate "Create a Flask REST API with authentication"

# Edit a file
tzamuncode edit app.py "Add error handling to all routes"

# Explain code
tzamuncode explain main.py

# Quick alias
tzc chat

๐Ÿ“– Documentation

Commands

chat - Interactive Chat

tzamuncode chat
tzamuncode chat --model qwen2.5:32b

generate - Code Generation

tzamuncode generate "Create a Python web scraper"
tzamuncode generate "Add unit tests for user.py" --output tests/

edit - File Editing

tzamuncode edit app.py "Refactor to use async/await"
tzamuncode edit . "Add type hints to all functions"

explain - Code Explanation

tzamuncode explain complex_function.py
tzamuncode explain --detailed auth.py

review - Code Review

tzamuncode review pull_request.diff
tzamuncode review --strict src/

Configuration

Create ~/.tzamuncode/config.yaml:

# Default model
model: qwen2.5:32b

# Ollama settings
ollama:
  base_url: http://localhost:11434
  timeout: 120

# vLLM settings (optional, for faster inference)
vllm:
  enabled: true
  base_url: http://localhost:8000
  model: deepseek-coder-7b

# Preferences
preferences:
  show_diff: true
  auto_apply: false
  max_context: 64000
  temperature: 0.7

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚     TzamunCode CLI                  โ”‚
โ”‚  (Typer + Rich UI)                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Agentic Layer (LangChain)         โ”‚
โ”‚  - Multi-step planning              โ”‚
โ”‚  - Tool calling                     โ”‚
โ”‚  - Context management               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   AI Backend                        โ”‚
โ”‚  - Ollama (15+ models)              โ”‚
โ”‚  - vLLM (fast inference)            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

๐Ÿ“„ License

MIT License - see LICENSE for details.

๐ŸŒŸ Built by Tzamun Arabia IT Co.

TzamunCode is part of the Tzamun AI ecosystem:

  • TzamunAI - AI platform with 15+ models
  • TzamunERP - ERPNext + AI integration
  • Auxly - AI coding assistant for IDEs
  • AccessHub - Privileged Access Management

Visit tzamun.com to learn more.


Made with โค๏ธ in Saudi Arabia ๐Ÿ‡ธ๐Ÿ‡ฆ

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

tzamuncode-0.1.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

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

tzamuncode-0.1.0-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file tzamuncode-0.1.0.tar.gz.

File metadata

  • Download URL: tzamuncode-0.1.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for tzamuncode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 af4ae202ddc32a1cfa9d823447d005987ece279ccf80ec9674dd209388e39e36
MD5 d27e33425617d478a33b671385d65f44
BLAKE2b-256 af1e0f9ba8b6a44589ec295f5c7af5dd2fb224fcdd40648d3b0adc5c25d95d73

See more details on using hashes here.

File details

Details for the file tzamuncode-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tzamuncode-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for tzamuncode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83013505ae82962a2dcf5c50b3fae9ed8ab6703e644f6a3dcff8dd4de052e1e1
MD5 526797985bba8f67ee3ac22aaa3204c9
BLAKE2b-256 70803600489dcb6ea4cf1272e7fe21b74dd84adf086ef74d7c3a67d6347b454c

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