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.9.tar.gz (41.7 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.9-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tzamuncode-0.1.9.tar.gz
  • Upload date:
  • Size: 41.7 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.9.tar.gz
Algorithm Hash digest
SHA256 a71b05ce3836fce9830ae7db002c282d9e13039268cf69a2708f2464a1de2e44
MD5 0f7bdd4a61bd612ed1d58782712f59e7
BLAKE2b-256 7b867b68e9fa84582e2ff902cd3c6e8defbb92c3ba9ece635087ad77035bab95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tzamuncode-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 50.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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9e19bd629c659baa8ca023d98ff82ed3cb2215d6991c6b03929d844010be37
MD5 f54b918a4e719596ed9ad10e36a35e3a
BLAKE2b-256 f736b8239a2aa1b5db1b72349b26e70ece6c2605ae23660ab7daa01ad82ccedf

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