Technical Architecture

Built for CTOs who care how things actually work.

Warden is an event-driven, serverless-first stack where Next.js, Supabase, Python agents, and Stripe Connect work together to enforce the trust protocol across AI and human lanes.

Next.js 14 dashboard

app.usewarden.com runs on Next.js 14 with the App Router. Server Actions orchestrate CRUD, auth, and Stripe. The UI is built with Tailwind and shadcn-inspired components.

Supabase as the system of record

Postgres stores users, organizations, projects, milestones, and commits. pgvector stores scope embeddings so agents can ground decisions in the original PRD.

Python agents with LangGraph

A separate Python service orchestrates Architect, Coder, and Critic agents with LangGraph, running builds inside E2B sandboxes so AI never touches your production infra directly.

Stripe Connect Vault

Stripe Connect holds client funds in platform-controlled accounts. Milestones are locked as 'LOCKED' until Code Witness verification flips them to 'RELEASED'.

From prompt to Vercel deployment.

The Express lane is a closed-loop system where agents plan, code, test, and deploy—while the Vault and Code Witness keep money and commits in sync.

  1. 1. Prompt: Founder types "Build a to-do app" in the Next.js dashboard. The request is stored in Supabase as a project with mode='AI'.
  2. 2. Scope & plan: Architect AI (GPT-4o + Claude 3.5 Sonnet) turns the idea into a file plan and milestone JSON via Instructor-enforced schemas.
  3. 3. Code in sandbox: LangGraph agents spin up an E2B micro-VM, write React/Node code, run builds and tests, and self-correct until green.
  4. 4. Git & Witness: Successful code is synced to GitHub. Code Witness tracks commits, ticket IDs, and CI status.
  5. 5. Deploy: When checks pass, the system deploys to Vercel using the API and updates Supabase so the founder can approve the milestone.

Security and blast radius by design.

Stripe Connect separates client funds from operating accounts. E2B keeps AI agents inside isolated sandboxes. Supabase handles auth, row-level security, and realtime channels so every actor sees only what they should.

Warden's job is not just to ship features—it's to guarantee that features, funds, and commits all move through the same governed path.