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.11.tar.gz (43.8 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.11-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tzamuncode-0.1.11.tar.gz
  • Upload date:
  • Size: 43.8 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.11.tar.gz
Algorithm Hash digest
SHA256 f3be0041c91847b58b8a0f651b36bdd8885dbf9a6faf856c598179d4cbe8e1e8
MD5 6b1563d90f72e81e9de88fea941ef489
BLAKE2b-256 ad214f7b0913113ebdc53f12b030206daf9eb0d2241bcc971686af3ba9fd60d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tzamuncode-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 53.4 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ed4f1affcf2447833ee6b688bceadbdaa4e2cba80218b0c81c27837f4dd58435
MD5 81e0a17219db0cd72f6255b96bf0c230
BLAKE2b-256 05b7464efcd0e446df35b374da796e4d3822ea8b1c3caa441319227fe61474bb

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