draht

The AI coding agent built for freelancers.
Multi-model. TDD-first. DDD-native. German-compliant.

$ curl -fsSL https://draht.dev/install.sh | bash

Installs from source. npm registry coming soon.

View on GitHub โ†’ See Features

What Draht Does

๐Ÿง  Model Router

Role-based model selection with automatic fallback. Architect tasks use Claude Opus, boilerplate uses DeepSeek. Direct API calls โ€” no OpenRouter latency.

๐Ÿงช TDD-First

Tests before implementation. The agent writes failing tests first, then implements until green, then refactors. Not optional โ€” it's how Draht works.

๐Ÿ—๏ธ DDD-Native

Every project starts with a domain model. Bounded contexts, aggregates, ubiquitous language โ€” baked into project templates and code review.

๐Ÿ”Œ Extensions

SST resource manager, deploy guardian, client knowledge base. Load custom tools via the extension API. Build your own.

๐Ÿงพ Invoicing

Lexoffice API integration for German invoicing. Toggl time tracking. Generate invoices from your terminal: /invoice create.

๐Ÿ›ก๏ธ Compliance

GDPR PII scanner, EU AI Act documentation checker, German legal templates. Automated compliance checks on every commit.

Architecture

draht-mono/
โ”œโ”€โ”€ packages/
โ”‚   โ”œโ”€โ”€ coding-agent/     # Core agent โ€” read, bash, edit, write tools
โ”‚   โ”œโ”€โ”€ ai/               # Unified LLM API โ€” Anthropic, OpenAI, Google, DeepSeek
โ”‚   โ”œโ”€โ”€ router/           # Role-based model routing with fallback chains
โ”‚   โ”œโ”€โ”€ knowledge/        # Per-client vector DB for context persistence
โ”‚   โ”œโ”€โ”€ orchestrator/     # Multi-agent task decomposition (GSD Controller)
โ”‚   โ”œโ”€โ”€ ci/               # GitHub Action for AI-powered PR review
โ”‚   โ”œโ”€โ”€ deploy-guardian/  # Pre-deploy checks, rollback automation
โ”‚   โ”œโ”€โ”€ invoice/          # Lexoffice + Toggl invoicing
โ”‚   โ”œโ”€โ”€ compliance/       # GDPR scanner, EU AI Act, legal templates
โ”‚   โ”œโ”€โ”€ templates/        # AGENTS.md templates (SST/TS, Astro, Go/gRPC)
โ”‚   โ”œโ”€โ”€ workflows/        # n8n workflow templates
โ”‚   โ”œโ”€โ”€ infra/            # SST v4 infrastructure definitions
โ”‚   โ””โ”€โ”€ landing/          # This website (Astro)
โ””โ”€โ”€ .planning/            # GSD methodology โ€” roadmap, plans, execution logs

Monorepo. 15 packages. TypeScript + Bun. Zero runtime dependencies where possible.

Getting Started

# Install globally

$ npm install -g @draht/coding-agent


# Or run directly

$ npx @draht/coding-agent


# Initialize a project with GSD methodology

$ draht init

$ draht create-project "My App"

$ draht create-requirements

$ draht create-domain-model

$ draht create-roadmap


# Configure model routing

$ draht router show

$ draht router set architect anthropic/claude-opus-4-6

Pricing

Draht is open source. The tooling is free. You pay for the AI models you use.

Open Source

Free

  • โœ“ All packages
  • โœ“ Model router
  • โœ“ TDD/DDD workflows
  • โœ“ Extensions
  • โœ“ Community support

Freelance Setup

โ‚ฌ499 one-time

  • โœ“ Everything in Open Source
  • โœ“ Custom AGENTS.md for your stack
  • โœ“ Invoice + compliance setup
  • โœ“ 2h onboarding call
  • โœ“ 30 days email support