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.8.tar.gz (41.4 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.8-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tzamuncode-0.1.8.tar.gz
  • Upload date:
  • Size: 41.4 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.8.tar.gz
Algorithm Hash digest
SHA256 e1dba2259415a3869168e26bf9943b5987b9c92996c3b4d3a69c92a6dc6a6afe
MD5 9c7851f4e86acb062081271e783d2397
BLAKE2b-256 5f325322e2c2b8d7bcb80fbf4ff2639bb4c7660caf597f4bb2d2cfa4d93e8841

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tzamuncode-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 50.6 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 edf514dc5a13438ae8aaead803d8164ff192e52bbe4069c73137c8e9fe4e5df4
MD5 fce7d3c899403fa33855b11df2ab9b32
BLAKE2b-256 8c0304bb7685773edf1cbd256d0c0241586b8c833a0bc02bf2126ca39243bee2

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