Skip to main content

Autonomous AI Software Engineering Terminal — intelligent routing, 5 free models, 12 agents, fully automatic

Project description

WIDDX CLI

⚡ WIDDX CLI

🤖 Autonomous AI Software Engineering OS

🚀 Powered by DeepSeek V4 + 5 Free Models — No API Key Required


PyPI version Python Version License Tests mypy Platforms Downloads


pip install widdx && python -m widdx

✨ One command. No config. No API key needed.


🌟 Features · 📦 Installation · 🖥️ Usage · 🤖 Agents · 🛠️ Skills · 🏗️ Architecture · 🔒 Security · عربي


🌟 Overview

WIDDX CLI is a fully autonomous AI software engineering environment that runs directly in your terminal. It orchestrates a team of specialized AI agents to plan, build, test, verify, and self-correct code — with zero human intervention required between steps.

✅ Works without an API key using 5 free models from opencode.ai. Upgrade to DeepSeek V4 for higher-quality outputs.


✨ Features

🔀 Intelligent Multi-Provider Routing

Plan Trigger Models Description
🟢 Plan A API key set deepseek-v4-pro + deepseek-v4-flash Sequential planning + parallel execution
🔵 Plan B No API key 5 free models via opencode.ai Intelligent task-type routing

🔄 Automatic fallback chain: 429 / Timeout → instant switch to next provider — no user intervention required.


✅ Verification & Self-Correction

Three-level automatic verification after every code change:

📝 Write/Edit Code
    └─► 🔍 Syntax Check ──FAIL──► 🔧 Auto-fix (max 3 attempts)
              │
             PASS
              │
        🧪 Run Tests ──FAIL──► 🔧 Fix + Retest (max 3 attempts)
              │
             PASS
              │
            ✅ Done

Levels:

  • 🔧 Tool-level — runs after every Write/Edit operation
  • 🤖 Agent-level — runs after each agent completes
  • 🏭 Pipeline-level — runs after all agents finish

🖥️ Professional Terminal UI

  • ⏳ Animated thinking spinner with live streaming output
  • 📝 Rich Markdown rendering in terminal
  • 🔔 Toast notifications + bell on task completion
  • 🌍 Full Arabic RTL support with contextual letter shaping
  • 🖥️ 14 terminal types automatically detected (iTerm2, Windows Terminal, tmux, etc.)

🎁 Additional Capabilities

Feature Description
🧠 Memory & Learning SQLite-backed memory, self-learning engine, cached fix patterns
🔌 MCP Protocol Built-in servers + external via stdio & HTTP, GitHub integration
🪝 Hooks System PreToolUse / PostToolUse / SessionStart / TaskCompleted with security checker
Scheduler Cron-based task scheduling with persistence
🔭 Bootstrapper /bootstrap <tech> researches docs and auto-generates skills + agents
🌐 Arabic RTL Full bidirectional text with contextual shaping
💻 Cross-Platform Windows · macOS · Linux with automatic OS detection

📦 Installation

📋 Requirements

  • 🐍 Python 3.10 or higher

⬇️ Install from PyPI

pip install widdx
python -m widdx

That's it. No API key. No configuration file. One command. ✅

🔑 Optional: Add DeepSeek API Key (higher quality)

# 🐧 Linux / macOS
export DEEPSEEK_API_KEY="sk-..."

# 🪟 Windows PowerShell
$env:DEEPSEEK_API_KEY = "sk-..."

Or type /key inside the WIDDX REPL at any time.


🖥️ Usage

💬 Interactive REPL

widdx                          # 🚀 Start interactive REPL
widdx "fix the auth bug"       # ⚡ Run a task directly

📋 Commands

Command Description
🔀 /providers Interactive provider manager (↑↓ Space to toggle)
🎯 /provider <name> Switch to one provider exclusively
🔭 /bootstrap <tech> Research a technology and generate project skills/agents/hooks
👥 /agents <task> Run a multi-agent team on a complex task
🗺️ /plan <desc> Create and execute a phased project plan
🛠️ /skills List all available skills
🪝 /hooks Show registered hooks grouped by event
🔌 /mcp Manage MCP servers (list / add / remove)
📚 /learn Show the self-learning ledger and draft assets
🔍 /knowledge <query> Search past project memory
📦 /compact Summarize conversation history to save tokens
🤖 /model Show current model info and session cost
📋 /tasks Show task execution history
🌿 /git Show git status
🔎 /search <query> Search codebase
↩️ /undo Undo the last file change
💾 /save <name> Save current session to disk
🧹 /clear Clear conversation
/help Show help
🚪 /exit Exit

🔭 Bootstrapper — Self-Learning

The /bootstrap command researches a technology, then automatically generates a skill file and agent profile for it:

widdx> /bootstrap flutter

  ◆ Bootstrapping: flutter
  🔍 Researching best practices, conventions, and patterns...
  ✅ Created: .widdx/skills/flutter.md
  ✅ Created: .widdx/agents/flutter.md
  🚀 Ready to work with flutter.

🤖 Agents

12 specialized agents are built in and ready to use:

Agent Specialization
🏗️ Software Architect System design, API contracts, task breakdown
⚙️ Backend Developer Framework-agnostic API development
🎨 Frontend Developer React, Vue, TypeScript, accessibility
🐘 Laravel Architect PHP, Eloquent, Blade, Artisan, Queues
🐳 DevOps Automator Docker, CI/CD, Kubernetes
🔬 QA Engineer Testing, code review, bug verification
🛡️ Security Reviewer OWASP Top 10, vulnerability assessment
📊 Data Engineer ETL pipelines, query optimization
🗄️ Database Architect Schema design, indexing, migrations
🏛️ Systems Architect Cross-service architecture, scalability
👁️ Code Reviewer Constructive code feedback
Full-Stack Developer End-to-end feature development

🛠️ Skills

17 built-in skills cover the full software development lifecycle:

🔍 code-review    🧪 tdd-workflow    🐛 bugfix          🚀 feat-dev
🛡️ security-review  📐 api-design   🚢 deploy          🗃️ db-migrate
🎨 ui-design      📚 docs-generate   ♻️ refactor        🔧 debug
🐘 laravel        ✅ testing         🗄️ database-design  ⚡ caching
📬 queue-jobs

Custom skills can be created manually in .widdx/skills/ or generated automatically via /bootstrap.


🏗️ Architecture

widdx-cli/
├── widdx/
│   ├── 🚪 cli.py                 # CLI entry point
│   ├── 🎛️  orchestrator.py       # Central coordinator
│   ├── 🔀 router/                # Intelligent multi-provider routing
│   ├── 🏭 pipeline/              # 7-step execution pipeline
│   │   ├── preflight.py          # Health checks + auto-install tools
│   │   └── execution.py          # Retry-based execution
│   ├── 🧠 memory/                # SQLite memory store
│   ├── 👥 agent_factory/         # Team generation + parallel execution
│   ├── 🛠️  skills/               # 17 built-in skills
│   ├── 🪝 hooks/                 # Event system
│   ├── ✅ verifier/              # 3-level verification + auto-fix
│   ├── 💬 repl/                  # Interactive REPL
│   ├── 🔁 tool_loop/             # Tool execution loop
│   ├── 🔌 mcp/                   # MCP Protocol
│   ├── 🔧 tools/                 # 8 local tools
│   ├── 🏗️  scaffolder/           # Automatic project scaffolding
│   ├── 🩹 repair_memory.py       # Cached fix pattern memory
│   └── 🖥️  ui/                   # Professional Rich terminal UI
└── 🧪 tests/                     # 512 tests

⚙️ Configuration

Default config location: ~/.widdx/config.yaml

models:
  architect:
    model: deepseek-v4-pro
    thinking: false
  executor:
    model: deepseek-v4-flash
    max_tokens: 32768

pipeline:
  complex_threshold: 3
  scaffold_enabled: true

memory:
  db_path: ~/.widdx/memory.db

🧪 Testing

# ▶️ Run all tests
python -m pytest tests/ -v

# 📊 Run with coverage report
python -m pytest tests/ --cov=widdx --cov-report=term-missing

🔒 Security

WIDDX is designed with security as a first principle:

  • 🚫 Zero shell=True — all subprocess calls use safe argument lists, eliminating shell injection vectors
  • 🔐 File permissions 600 — sensitive config files are restricted to owner read/write only
  • 🛡️ Hooks security checker — blocks dangerous commands from the hook execution pipeline
  • 📋 Full audit logging — complete error logging for traceability and post-incident review

📄 License

Proprietary — All Rights Reserved. © 2026 Muhammad Muslih — Widdx.

  • Personal use is permitted free of charge
  • Commercial use requires a written license agreement with revenue share
  • Modification and redistribution are prohibited without prior written permission
  • Attribution to Muhammad Muslih — Widdx is mandatory in all permitted uses

See LICENSE for full terms. For commercial licensing, contact: mem3071990@gmail.com


🛠️ Built by Muhammad Muslih — Founder of Widdx using DeepSeek V4

⭐ If you find this project useful, please give it a star!



⚡ WIDDX CLI

🤖 نظام تشغيل هندسة برمجيات ذاتي القيادة

🚀 مدعوم بـ DeepSeek V4 + 5 نماذج مجانية — لا يحتاج API Key للبدء


🌟 نظرة عامة

WIDDX CLI بيئة هندسة برمجيات ذاتية القيادة تعمل مباشرة في الطرفية. تنسّق فريقاً من الوكلاء الذكيين المتخصصين للتخطيط والبناء والاختبار والتحقق وتصحيح الأخطاء ذاتياً — دون تدخل يدوي بين الخطوات.

✅ تعمل بدون API Key باستخدام 5 نماذج مجانية من opencode.ai. يمكن الترقية إلى DeepSeek V4 للحصول على جودة أعلى.


📦 التثبيت

📋 المتطلبات

  • 🐍 Python 3.10 أو أحدث

⬇️ التثبيت من PyPI

pip install widdx
python -m widdx

خلاص. بدون API Key. بدون إعدادات. أمر واحد. ✅

🔑 اختياري: إضافة DeepSeek API Key

# 🐧 Linux / macOS
export DEEPSEEK_API_KEY="sk-..."

# 🪟 Windows PowerShell
$env:DEEPSEEK_API_KEY = "sk-..."

أو اكتب /key داخل WIDDX في أي وقت.


✨ المميزات

🔀 توجيه ذكي متعدد المزودين

الخطة الشرط النماذج الوصف
🟢 خطة A مع API Key deepseek-v4-pro + deepseek-v4-flash تخطيط تسلسلي + تنفيذ متوازي
🔵 خطة B بدون API Key 5 نماذج مجانية من opencode.ai توجيه ذكي حسب نوع المهمة

🔄 سلسلة Fallback تلقائية: 429 / Timeout → انتقال فوري للمزود التالي بدون تدخل المستخدم.


✅ التحقق والتصحيح الذاتي

ثلاثة مستويات من التحقق التلقائي بعد كل تغيير في الكود:

📝 كتابة/تعديل الكود
    └─► 🔍 فحص الصيغة ──فشل──► 🔧 إصلاح تلقائي (3 محاولات كحد أقصى)
              │
            نجاح
              │
        🧪 تشغيل الاختبارات ──فشل──► 🔧 إصلاح + إعادة (3 محاولات)
              │
            نجاح
              │
            ✅ تم

المستويات:

  • 🔧 مستوى الأداة — يعمل بعد كل عملية كتابة أو تعديل
  • 🤖 مستوى الوكيل — يعمل بعد انتهاء كل وكيل
  • 🏭 مستوى خط الأنابيب — يعمل بعد انتهاء جميع الوكلاء

🤖 الوكلاء

12 وكيلاً متخصصاً مدمجاً وجاهزاً للاستخدام:

الوكيل التخصص
🏗️ Software Architect تصميم النظم، عقود API، تقسيم المهام
⚙️ Backend Developer تطوير خلفي متعدد الأطر
🎨 Frontend Developer React, Vue, TypeScript، إمكانية الوصول
🐘 Laravel Architect PHP, Eloquent, Blade, Artisan, Queues
🐳 DevOps Automator Docker, CI/CD, Kubernetes
🔬 QA Engineer اختبار، مراجعة كود، تدقيق الأخطاء
🛡️ Security Reviewer OWASP Top 10، تقييم الثغرات
📊 Data Engineer خطوط ETL، تحسين الاستعلامات
🗄️ Database Architect تصميم المخططات، الفهارس، الترحيل
🏛️ Systems Architect معمارية الخدمات المتقاطعة، قابلية التوسع
👁️ Code Reviewer مراجعة كود مع تغذية راجعة بناءة
Full-Stack Developer تطوير شامل من البداية للنهاية

🛠️ المهارات

17 مهارة مدمجة تغطي دورة تطوير البرمجيات الكاملة:

🔍 code-review    🧪 tdd-workflow    🐛 bugfix          🚀 feat-dev
🛡️ security-review  📐 api-design   🚢 deploy          🗃️ db-migrate
🎨 ui-design      📚 docs-generate   ♻️ refactor        🔧 debug
🐘 laravel        ✅ testing         🗄️ database-design  ⚡ caching
📬 queue-jobs

📋 الأوامر

الأمر الوصف
🔀 /providers إدارة المزودين تفاعلياً
🎯 /provider <اسم> تبديل لمزود واحد حصرياً
🔭 /bootstrap <تقنية> بحث عن تقنية وتوليد مهارات/وكلاء/Hooks
👥 /agents <مهمة> تشغيل فريق وكلاء على مهمة معقدة
🗺️ /plan <وصف> إنشاء وتنفيذ خطة مشروع متعددة المراحل
🛠️ /skills عرض المهارات المتاحة
🪝 /hooks عرض hooks المسجلة حسب الحدث
🔌 /mcp إدارة خوادم MCP
📚 /learn عرض سجل التعلم الذاتي
🔍 /knowledge <استعلام> بحث في ذاكرة المشروع
📦 /compact تلخيص المحادثة لتوفير tokens
🤖 /model عرض معلومات النموذج وتكلفة الجلسة
📋 /tasks عرض سجل المهام
🌿 /git عرض حالة git
🔎 /search <بحث> بحث في قاعدة الشيفرة
↩️ /undo تراجع عن آخر تغيير
💾 /save <اسم> حفظ الجلسة
🧹 /clear مسح المحادثة
/help عرض المساعدة
🚪 /exit خروج

🔭 التعلم الذاتي

أمر /bootstrap يبحث في وثائق التقنية ويولد تلقائياً ملف مهارة وملف وكيل:

widdx> /bootstrap flutter

  ◆ Bootstrapping: flutter
  🔍 جاري البحث عن أفضل الممارسات والأنماط...
  ✅ تم: .widdx/skills/flutter.md
  ✅ تم: .widdx/agents/flutter.md
  🚀 جاهز للعمل مع flutter.

🏗️ الهيكل المعماري

widdx-cli/
├── widdx/
│   ├── 🚪 cli.py                 # مدخل CLI
│   ├── 🎛️  orchestrator.py       # منسق مركزي
│   ├── 🔀 router/                # توجيه ذكي متعدد المزودين
│   ├── 🏭 pipeline/              # خط أنابيب تنفيذ 7 خطوات
│   │   ├── preflight.py          # فحص صحي + تثبيت تلقائي للأدوات
│   │   └── execution.py          # تنفيذ مع إعادة المحاولة
│   ├── 🧠 memory/                # مخزن SQLite
│   ├── 👥 agent_factory/         # توليد الفرق + تنفيذ متوازي
│   ├── 🛠️  skills/               # 17 مهارة مدمجة
│   ├── 🪝 hooks/                 # نظام الأحداث
│   ├── ✅ verifier/              # تحقق وتصحيح ذاتي (3 مستويات)
│   ├── 💬 repl/                  # واجهة تفاعلية
│   ├── 🔁 tool_loop/             # حلقة تنفيذ الأدوات
│   ├── 🔌 mcp/                   # بروتوكول MCP
│   ├── 🔧 tools/                 # 8 أدوات محلية
│   ├── 🏗️  scaffolder/           # إنشاء مشاريع تلقائياً
│   ├── 🩹 repair_memory.py       # ذاكرة إصلاح بأنماط مخزنة
│   └── 🖥️  ui/                   # واجهة Rich احترافية
└── 🧪 tests/                     # 512 اختباراً

⚙️ الإعدادات

~/.widdx/config.yaml:

models:
  architect:
    model: deepseek-v4-pro
    thinking: false
  executor:
    model: deepseek-v4-flash
    max_tokens: 32768

pipeline:
  complex_threshold: 3
  scaffold_enabled: true

memory:
  db_path: ~/.widdx/memory.db

🔒 الأمان

  • 🚫 صفر shell=True — جميع عمليات subprocess تستخدم قوائم وسائط آمنة
  • 🔐 صلاحيات الملفات 600 — ملفات الإعدادات الحساسة محمية بصلاحيات مقيدة
  • 🛡️ مدقق أمني للـ Hooks — يمنع الأوامر الخطيرة من خط التنفيذ
  • 📋 تسجيل كامل للأخطاء — للتتبع والتدقيق

🧪 الاختبارات

# ▶️ تشغيل جميع الاختبارات
python -m pytest tests/ -v

# 📊 مع تقرير التغطية
python -m pytest tests/ --cov=widdx --cov-report=term-missing

📄 الترخيص

احتكاري — جميع الحقوق محفوظة. © 2026 محمد مصلح — Widdx.

  • الاستخدام الشخصي مسموح مجاناً
  • الاستخدام التجاري يتطلب اتفاقية ترخيص مكتوبة مع حصة من الأرباح
  • التعديل وإعادة التوزيع ممنوع بدون إذن كتابي مسبق
  • ذكر الاسم — محمد مصلح — Widdx إلزامي في كل الاستخدامات المسموحة

راجع LICENSE للشروط الكاملة. للترخيص التجاري: mem3071990@gmail.com


🛠️ بناه محمد مصلح — مؤسس Widdx باستخدام DeepSeek V4

⭐ إذا أعجبك المشروع، لا تنسَ إضافة نجمة!

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

widdx-1.8.5.tar.gz (324.6 kB view details)

Uploaded Source

Built Distribution

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

widdx-1.8.5-py3-none-any.whl (273.3 kB view details)

Uploaded Python 3

File details

Details for the file widdx-1.8.5.tar.gz.

File metadata

  • Download URL: widdx-1.8.5.tar.gz
  • Upload date:
  • Size: 324.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for widdx-1.8.5.tar.gz
Algorithm Hash digest
SHA256 c37239430d00905fbca6301d1ab1d525e0ad631b66238879010422b77f8537bf
MD5 7927fc17c4a2039a86e6c8f6ef23213a
BLAKE2b-256 883429409341199754b1a3f7cef18dbae9b2ddd6fb46d0651d6f8d8eb7a4f7db

See more details on using hashes here.

File details

Details for the file widdx-1.8.5-py3-none-any.whl.

File metadata

  • Download URL: widdx-1.8.5-py3-none-any.whl
  • Upload date:
  • Size: 273.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for widdx-1.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0114dc083b63ed6d75ef841458015a30bba1293ad5e5d5b6e277a032e34b54a5
MD5 ca7a7cd3584f1bb737cb621442678fdb
BLAKE2b-256 4c727e5b6e99cc0f9fceeded39371dbf85482ef5bb8a32a91f6aa56df9ad8825

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