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.13.tar.gz (44.1 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.13-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tzamuncode-0.1.13.tar.gz
  • Upload date:
  • Size: 44.1 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.13.tar.gz
Algorithm Hash digest
SHA256 557c019e302856a342dfd2bb638cdfe76ca29e8469105c585d7d1fc65886a3e9
MD5 19ac0a65dc5a85c9902af81b232f5b03
BLAKE2b-256 582aa050642b4e2536f5d385736a60572b94c6b36a84d9919a5e4603bf7bb1b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tzamuncode-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 53.7 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f0b3bd1681c4a67d6ca70cd1db7a2437b8d83eecb7e78d24adebc3c35197b3e3
MD5 297f2e270a0b205e581ccbd8bebc5766
BLAKE2b-256 1354fd12b1e801aef3abf040f8569a899be7acb271115421215cbcd22d65b6bf

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