Consort: a Spec-First Branched-Database TDD agent framework for building transactional applications on Lakebase (Databricks' serverless Postgres/OLTP database, not the Delta Lakehouse). A deterministic orchestrator drives role agents through a spec-first design lane and a test-driven build lane whose every cycle runs against a live copy-on-write branch of a real Postgres database, with human-in-the-loop gates that fail closed. For application backends on Postgres, not ETL or analytics. Run /consort:start to launch the workflow.
Consort keeps AI-written code clean and correct: spec-first and test-driven, driven by a deterministic state machine with human-approval gates and immutable tests. Engineering discipline is no longer left to chance at the whim of a model. Every green is a real test run on a live branch of a real Lakebase database, enforced by contract, not suggestions.
Consort takes its name from the field of music. A consort is an ensemble that plays in concert: each musician holds one part, and a conductor keeps them in time. Consort is that, applied to building software. A set of agents each take on one familiar role from the software lifecycle — a spec author, an architect, a DBA, a test strategist, a UX designer, and a navigator/driver pair at the keyboard — while the product owner is the human's own seat (you, or a Human Proxy standing in headless), a deterministic conductor keeps them in sequence, and the human approves every gate. No agent plays another's part.
What Consort builds. Consort builds transactional application backends (an API, and optionally a web UI) on Lakebase, Databricks' serverless, Postgres-compatible OLTP database that branches in about a second. Every git branch is paired with its own Lakebase branch, so each has a real, isolated database and the schema evolves in lockstep with the code. It isn't for the Delta Lakehouse, ETL, analytics, or BI; it's for building app backends on Postgres. See docs/positioning.md for how Consort compares to other spec-first tools.
Quick start
Setting up Consort is easy. Copy the command below and enter it into any terminal window.
# Install: doctor + Claude Code plugin + toolkit (needs a Lakebase-enabled Databricks workspace)
bash <(curl -sL https://tinyurl.com/consort-bootstrap)
Then, run /consort:start in your agent session. Getting started has the prerequisites and a full walkthrough.
Why Consort
AI agents write code fast, but you can't trust that the code is correct or maintainable over the long haul. On their own they mark a task "done" with no test behind it, drift off the request, weaken a test to reach green, tangle the layers, and lose the plan across a context reset. The database is the hardest part to get right: it's the one dependency you can't cheaply branch, so it gets faked with mocks that fall out of sync with production, or shared across a staging box the tests quietly diverge from.
Lakebase removes that constraint. A database branch is a real, governed, copy-on-write copy created in about a second, so the work runs against real data instead of a mock. Consort builds on that to make an agent's "done" checkable. Every increment is:
Verified against real data: "green" means a real test runner passed against a live database branch, not an agent's say-so.
Independently reviewed: the agent that writes the code is never the one that judges it.
Spec-first and immutable: intent is frozen at a hashed gate, and within a unit of work the tests can't be edited to force a pass.
Deterministically driven: the control loop is codified, so it can't drift, skip a step, or get lost after a long session.
Human-gated: the gates fail closed, and nothing advances past one without your approval.
What makes Consort different. Other spec-first frameworks ask the agent to comply: a strong spec then a trusted build (Spec Kit), or a firm test-first rule the model is told to honor (superpowers). Under pressure to go green, an agent can set either aside. Consort puts the controls in a deterministic state machine the agent runs inside but cannot edit: routing is code, human-approval gates fail closed, tests are immutable within a unit of work, and green means a real run against a real database. Engineering discipline is enforced by contract, not suggestions.