Skip to main content

AI Software Engineer as a Service — Powered by Copilot SDK

Project description

Hauba

Your AI Engineering Team — In One Command

CI PyPI Python License

InstallQuickstartFeaturesArchitectureContributing


Hauba is an open-source AI agent framework that orchestrates a full engineering team — architect, backend, frontend, DevOps — controlled by a Director agent that thinks before it acts.

One command. Zero external dependencies. Works offline with Ollama.

pip install hauba
hauba init
hauba run "build me a landing page with modern design"

Why Hauba?

Feature Hauba Others
Multi-agent collaboration Director → SubAgent → Worker hierarchy Single agent or basic chains
Zero-hallucination tracking TaskLedger with SHA-256 hash verification Trust-based, no verification
Works offline First-class Ollama support Requires cloud API
Declarative teams hauba.yaml (like docker-compose for AI) Code-only configuration
Browser automation Persistent sessions, stealth mode, crash recovery Basic or none
Voice mode Talk to your AI team Text-only
Replay mode Watch & share agent sessions No replay
Single install pip install hauba — no Docker, Redis, or Postgres Complex setup

Install

# From PyPI (recommended)
pip install hauba

# From source
git clone https://github.com/NikeGunn/haubaa.git
cd haubaa
pip install -e ".[dev]"

# Optional extras
pip install hauba[computer-use]   # Browser + screen control
pip install hauba[voice]          # Voice mode (Whisper + TTS)
pip install hauba[web]            # Web dashboard
pip install hauba[all]            # Everything

Requirements: Python 3.11+ — nothing else.

Quickstart

1. Initialize

hauba init

Pick your LLM provider (Anthropic, OpenAI, Ollama, DeepSeek) and enter your API key.

2. Run a task

hauba run "create a REST API with user authentication"

The Director agent will:

  1. Deliberate — understand your request and assess complexity
  2. Plan — decompose into steps with a dependency DAG
  3. Execute — use tools (bash, files, git, browser) to build it
  4. Verify — TaskLedger ensures every step completed with hash verification
  5. Deliver — only after all 5 verification gates pass

3. Check system health

hauba doctor

Hauba Compose

Define your AI team declaratively:

# hauba.yaml
team: "my-saas"
model: "claude-sonnet-4-5-20250929"

agents:
  architect:
    role: "Senior Software Architect"
    skills: [system-design, database-design, api-design]

  backend:
    role: "Backend Engineer"
    skills: [fastapi, postgresql, auth]
    depends_on: [architect]

  frontend:
    role: "Frontend Engineer"
    skills: [nextjs, tailwind, react]
    depends_on: [architect]

  devops:
    role: "DevOps Engineer"
    skills: [docker, ci-cd, monitoring]
    depends_on: [backend, frontend]
hauba compose up "build a SaaS dashboard with auth and billing"

Features

Multi-Agent Hierarchy

  • Director — receives your task, deliberates, creates a project plan
  • SubAgent — manages a milestone, coordinates workers
  • Worker — executes specific tasks with retry logic
  • CoWorker — ephemeral helpers for sub-tasks

TaskLedger (Zero-Hallucination System)

Every task is tracked with a bit-vector and SHA-256 hash chain. Five verification gates ensure nothing is skipped or faked:

  1. Pre-execution — Ledger must exist before work begins
  2. Dependency — All dependencies verified before task starts
  3. Completion — Output hashed and verified on disk
  4. Delivery — Full ledger gate check at each level
  5. Reconciliation — Plan count matches ledger count

Browser Automation (Persistent Sessions)

hauba run "scrape product data from the competitor website"
  • Persistent browser context — sessions survive crashes
  • Stealth mode — anti-bot detection evasion
  • Auto-retry with crash recovery

Voice Mode

hauba voice

Talk to your AI team. Uses Whisper (local) for speech-to-text and edge-tts for responses. Works fully offline with Ollama.

Replay Mode

hauba replay <task_id>
hauba replay <task_id> --speed 5

Every agent action is recorded and replayable with speed control.

Skills & Strategies

10 built-in skills and 6 strategies ship with Hauba:

hauba skill list                    # See all available skills
hauba skill show code-generation    # View a skill's details
hauba skill install ./my-skill.md   # Install a custom skill

Web Dashboard

hauba serve

Real-time web dashboard with WebSocket event streaming at http://localhost:8420.

Channels

hauba voice      # Voice conversation
hauba serve      # Web dashboard

Plus Telegram and Discord bot integrations.

CLI Reference

hauba init                          # Interactive setup wizard
hauba run "task description"        # Execute a task
hauba status                        # Show config and status
hauba doctor                        # Diagnose setup issues
hauba logs                          # View recent logs
hauba config <key> [value]          # Get/set configuration

hauba compose up "task" [-f file]   # Run with agent team
hauba compose validate              # Check hauba.yaml syntax

hauba skill list                    # List all skills
hauba skill show <name>             # View skill details
hauba skill install <path>          # Install a skill
hauba skill create <name>           # Scaffold new skill

hauba voice                         # Voice conversation mode
hauba serve [--port 8420]           # Start web dashboard
hauba replay <task_id> [--speed 2]  # Replay a session

Configuration

# Anthropic (default)
hauba config llm.provider anthropic
hauba config llm.api_key sk-ant-...

# OpenAI
hauba config llm.provider openai
hauba config llm.api_key sk-...

# Ollama (offline, free)
hauba config llm.provider ollama
hauba config llm.model llama3.2

Architecture

Director (1 per task)
├── SubAgent (per milestone)
│   ├── Worker (per task)
│   │   └── CoWorker (ephemeral)
│   └── Worker
└── SubAgent
    └── Worker

Stack: Python 3.11+ | asyncio | SQLite | litellm | Typer | Rich | Pydantic v2

Contributing

We welcome contributions! See CONTRIBUTING.md for details.

git clone https://github.com/NikeGunn/haubaa.git
cd haubaa
pip install -e ".[dev]"
pytest tests/ -v

License

MIT License — see LICENSE for details.


Hauba doesn't guess. Hauba verifies.

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

hauba-0.2.1.tar.gz (134.4 kB view details)

Uploaded Source

Built Distribution

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

hauba-0.2.1-py3-none-any.whl (147.0 kB view details)

Uploaded Python 3

File details

Details for the file hauba-0.2.1.tar.gz.

File metadata

  • Download URL: hauba-0.2.1.tar.gz
  • Upload date:
  • Size: 134.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hauba-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4a9067c5bb199832cd1fd07bda2a9021de27f5eb3cd9ce8abe1cd53b8c591936
MD5 e24de286d5e8d17ddd5e1d3a9ab6353b
BLAKE2b-256 dabc27125a2e8a6487c12da69e336988a272083b975270427c800b022a7773f3

See more details on using hashes here.

File details

Details for the file hauba-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: hauba-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 147.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hauba-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9615d78c88e8feecec32f41d25fbad7ed701436b99cacc43af582e5323a6d565
MD5 c84f1e3687688aa2043dc6c153b3cf31
BLAKE2b-256 08105ab94105d288b21d24e82b64f1a1aa6ef2c7678a4cc7d4cf375938aa6e7b

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