draht
The AI coding agent built for freelancers.
Multi-model. TDD-first. DDD-native. German-compliant.
Installs from source. npm registry coming soon.
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