Consistent architecture across the platform your coding agent builds. Services, MCP servers, and AI agents — ~70% of the code generated, not prompted.
Left alone, coding agents wire every repo and feature differently — turning a growing platform into mismatched services. Your agent drafts a short contract; you confirm it. Highbay compiles it into servers, validation, and tool schemas — no model in the loop. Your agent writes only the handlers, in a plain Go service your Python, TypeScript, or web apps can call.
Highbay is an open-source (MIT) local workspace and MCP server that runs the coding agents you already use — Claude Code, Codex, Gemini CLI, Cursor, Antigravity, Windsurf, Copilot, and VS Code:
- One consistent layout & Golden Path playbook. Every generated Highbay
project starts with the same two-module structure (
design/,gen/,cmd/,internal/, andeval/, or an external suite registered viahighbay verification setsuch asexamples/orders-eval) and built-inhighbay://golden-pathrules for auth, OpenTelemetry tracing & readiness checks (Clue), Redis Streams, job queues, & worker pools (Pulse), and durable workflows — so engineers and coding agents move across services without re-learning conventions or maintaining.cursorrulesfiles. - ~70% generated at zero LLM tokens. From one confirmed contract, Highbay
compiles HTTP, JSON-RPC, and MCP servers, OpenAPI 3 specs (callable from
Python, TypeScript, Go, or web apps), request validation,
Injectserver-supplied run labels,BoundedResultcursor contracts, andConfirmationpause gates (~70% of non-test Go code in the Orders reference platform) — leaving clean typed interfaces ininternal/for your coding agent to implement. - Confirm open choices upfront, verify in a separate copy before merge. Your
coding agent drafts the contract and opens a plain-language Change Card and
compiled C4 architecture diagram in your browser. Once confirmed, a second
coding agent in
.highbay-testswrites scenario checks ineval/from that agreement, blocking approval until checks pass.
brew install goadesign/tap/highbay
highbay upRun highbay up once, then run highbay in a new service folder (or existing
Goa repo) to open the browser workspace — or invoke /highbay ($highbay in
Codex) inside an already open coding agent. Install covers Homebrew,
npm (npx @goadesign/highbay up), the shell installer, and go install.
After installing Highbay, run highbay up once. In an empty project
folder, run highbay to open Highbay Studio in your browser, choose a coding
agent if needed, and describe what you want to build:
Build a multi-tenant incident platform: a triage agent and remediation agent with MCP tools to search pod logs, correlate deploys, and roll back services with on-call approval.
If you already have a coding agent open in the project, give it the same goal
with /highbay ($highbay in Codex). Highbay attaches that session as the
project's guide and opens the browser workspace.
The prompt leaves an architectural boundary open: which actions may
RemediationAgent execute autonomously versus pause for human approval?
| Cluster action | Autonomous staging + gated production | Approval required everywhere |
|---|---|---|
| Pod logs & deploy correlation | Autonomous (BoundedResult pages) |
Autonomous (BoundedResult pages) |
Staging rollback (rollback_staging) |
Autonomous self-healing | Pauses at Confirmation |
Production rollback (rollback_production) |
Pauses at Confirmation for on-call |
Pauses at Confirmation for on-call |
A freehand coding agent silently guesses the staging-versus-production rule (and
whether a viewer JWT may call /runs/{id}/approval), returns unbounded log
slices that pass on 20 lines and blow prompt caps on 50 MB crash logs, and locks
its own assumptions into green unit tests. Highbay surfaces open choices to you,
compiles architectural and runtime guardrails into Go, and checks the agreed
behavior in a separate working copy:
- Describe. In a new folder (even one that already holds notes such as
prompt.txtorREADME.md), the Architect creates a blank Go starter and its first commit (~2 minutes), writes a Story (the system's actors and journeys in Go), and proposes a Change Card: summary, open questions, user journeys, concrete examples, C4 architecture diagram, and behaviors to keep. You can plan multiple changes in parallel on the Board, steer the Architect in chat anytime (with file/screenshot attachments,↑/↓prompt history, and Maximize view), and see live status as agents prepare replies. - Agree (and preview the architecture). Use the top Plan Bar to jump
between Questions, Architecture, Journeys, and Examples, or
open How it will be built right below the questions—before or after
agreeing—to inspect the compiled C4 topology, toolsets, server-injected
fields (
Inject), andConfirmationgates. Answer open questions (choosing an answer outside the draft or entering your own custom answer automatically sends it to the Architect and shows Updating plan… until the revised plan is ready) and press Agree in the Plan Bar. - Build in priority order (and steer live). Pressing Agree switches the
Change page straight to its dedicated Building view—showing a 4-step
progress track (
Workspace→Acceptance tests→Implementation→Verification), live Tester and Builder activity with one-click Message steering (plusTo: Architect | Builder | Tester | Teamin chat while the build is open), Agreed plan and Diagram tabs, and Stop build… / Restart build… controls. Agreed changes enter Up next on the 5-column Board (Planning→Up next→Building→Ready to merge→Merged) and start automatically one at a time (or reorder / Pause the queue anytime). The Builder implements handlers in.highbay-build. When no external verification suite is stored, the Tester implements one scenario test per finished journey in.highbay-tests; Highbay regenerates the Story test table andeval/gen/, verifies that nothing outsideeval/changed, and compiles the test binary before accepting those tests. - Verify. The Builder asks Highbay to verify its commit. Highbay rejects
any candidate commit whose
design/differs from the agreed design or (when using.highbay-testsrather than a stored suite) that changes handwritten files ineval/(eval/gen/andeval/AGENTS_QUICKSTART.mdexcluded), builds the candidate, and runs the accepted test commit against it. WhenConfirmationpausesrollback_productionand the Builder's/runs/{id}/approvalendpoint forgets to enforce theoncallrole (expected 403 Forbidden, got 200 OK), verification fails and blocks merge until fixed. - Approve & Merge. Review the inline scenario report on the same Change
page and press Approve & Merge into
<branch>to record your approval and merge the verified candidate and accepted tests into your local branch in one step.
Only you can confirm a change, start a build, approve a result, or merge. Each agent connects to the server with role-scoped permissions. You can go back at any step: revise the change, build again, or submit updated tests. How Highbay works covers every step, and Going back explains what stays valid when you do.
In a moderated 8-flow Go build on a sample application, real coding agents did the work: Codex built the service and Claude Code wrote the scenario tests (an AI participant played the developer directing them, and the service's own model calls in tests were scripted). The new scenario had 32 named checks; Codex's first commit failed two of them, so seven of eight scenarios passed. Highbay blocked approval, Codex fixed the handler, and the locked suite passed eight of eight about three minutes later.
What you confirm becomes three compact pieces of Go. These excerpts illustrate
the incident-platform walkthrough above; they are not files in this repository
(for a checked-in platform, see examples/orders).
// design/agents.go (illustrative excerpt)
// 1. The toolset and agent contract drafted by your coding agent and confirmed by you.
var opsTools = Toolset("ops", func() {
Tool("rollback_staging", "Roll back a staging service.", func() {
BindTo("ops", "rollback_staging")
Inject("org_id")
})
Tool("rollback_production", "Roll back a production service after on-call approval.", func() {
BindTo("ops", "rollback_production")
// Inject omits org_id from model-visible tool JSON and binds the trusted run label.
Inject("org_id")
// Confirmation pauses every call to rollback_production until approved.
Confirmation(func() {
Title("Approve production rollback")
PromptTemplate(`Roll back {{ .service }} in production?`)
DeniedResultTemplate(`{"status":"denied"}`)
})
})
})
var _ = Service("ops", func() {
// ... service methods ...
Export(opsTools)
Agent("remediation", "Safe service rollbacks.", func() {
Use(opsTools)
RunPolicy(func() {
DefaultCaps(MaxToolCalls(4), MaxRecoveryTurns(1))
TimeBudget("45s")
})
})
})// eval/acceptance/incidents.go
// 2. The scenario test written in .highbay-tests by a separate coding agent.
func (h *Hooks) ProductionRollbackRequiresApproval(ctx context.Context) (eval.Result, error) {
run, err := h.startRollback(ctx, "production", "api-gateway")
if err != nil {
return eval.Result{}, err
}
resp, err := h.approveAs(ctx, run.ID, "viewer") // caller lacks oncall role
if err != nil {
return eval.Result{}, err
}
return eval.Result{Checks: []eval.Check{
check("suspended_for_oncall_confirmation", run.PendingConfirmation),
check("non_oncall_approval_rejected", resp.StatusCode == http.StatusForbidden),
check("zero_unapproved_rollbacks", h.cluster.Rollbacks() == 0),
}}, nil
}// internal/ops/service.go
// 3. Plain Go business logic written by the builder against generated types;
// the service verifies tenant access on the server-injected org_id.
func (s *Service) RollbackProduction(
ctx context.Context, req *genops.RollbackArgs,
) (*genops.RollbackOutcome, error) {
if err := s.authz.RequireTenantAccess(ctx, req.OrgID); err != nil {
return nil, err
}
return s.rollouts.RollbackProduction(ctx, req.OrgID, req.Service)
}Agents author a compact design/ package and plain Go business logic; Goa and
Goa-AI generate the transport, validation, OpenAPI, and tool-schema code. This
method comes from the Orders reference platform in
this repository:
// examples/orders/design/orders.go: what an agent writes.
Method("chat", func() {
Description("Send a message to the refund assistant and start a run.")
Payload(func() {
Token("token", String, "Customer bearer token.")
// MinLength becomes a check in the generated HTTP request decoder.
Attribute("message", String, "What the customer says.", func() { MinLength(1) })
Required("token", "message")
})
Result(RunView)
HTTP(func() {
POST("/chat")
Response(StatusAccepted)
})
})// examples/orders/gen/orders/service.go: what Goa generates for it.
type Service interface {
// Send a message to the refund assistant and start a run.
Chat(context.Context, *ChatPayload) (res *RunView, err error)
// ...
}From that declaration Goa generates the HTTP route, request decoder and validation, typed client, and OpenAPI 3 descriptions. For LLM-assisted development across multiple services, this has four practical effects:
- Zero model output tokens spent on generated files. In the
Orders reference platform (and
Highbay's own
gen/), Goa generates over 70% of non-test Go code — routers, codecs, OpenAPI 3, validation, and tool JSON schemas — keeping each agent's read/edit surface to compactdesign/files andinternal/interfaces. Highbay spends a second agent session on independenteval/verification rather than boilerplate; net token and wall-clock totals depend on your task and model. - Identical layout and generated shape across projects and models. Projects
initialized with Highbay share the same
design/,gen/,cmd/,internal/, andeval/layout (existing Goa projects may also register a separate suite module viahighbay verification set), plus a generatedAGENTS_QUICKSTART.mdmap, and generated code stays identical whether Claude, Codex, or Gemini wrote the surrounding business logic. - Code-enforced guardrails at every boundary. Changing a result type in
design/and regenerating failsgo buildon stale handlers, builder checks compile and unit-test inside a Linux Docker container, and Highbay refuses a test report that touches files outsideeval/or a builder commit whosedesign/differs from the agreed design or (without stored verification settings) alters handwritten files ineval/(eval/gen/andeval/AGENTS_QUICKSTART.mdexcluded). - Built-in architectural playbook. Highbay serves a 12-section playbook over
MCP at
highbay://golden-path(GOLDEN_PATH.md), pairing Goa, Goa-AI, Story, and Model C4 diagrams with production patterns for Temporal workflows andgen_ai.*model spans (Goa-AI), Pulse event streams (pulse/streaming), job queues & consistent-hash worker pools (pulse/pool), and replicated rate-limit maps (pulse/rmaprmap.Join), plus Clue OpenTelemetry exporter setup (clue.ConfigureOpenTelemetry) and dependency readiness probes (clue/health).
Any Python, TypeScript, Go, or web client can call the generated OpenAPI 3,
HTTP, JSON-RPC, and MCP endpoints. Highbay's built-in highbay gen generates
HTTP, JSON-RPC, and MCP transports and refuses designs declaring GRPC
transports (protoc is not bundled in highbay gen; standalone goa gen with
protoc compiles gRPC); see highbay gen.
| Term | Meaning |
|---|---|
| The server | The project's Highbay server, one per project folder. It keeps what you agreed, who was asked to do what and what was accepted, and it runs the checks. |
| The page | The server's page in your browser. You agree on changes and approve results there. |
| Story | A description of what the system does, written as Go in the project's design, one flow at a time. |
| Flow | One path through a Story: who starts it, the steps, and the outcome. A flow with a start, an outcome and no open question is finished. |
| Change Card | One proposed change: summary, open questions, user journeys, concrete examples, C4 architecture preview, and behaviors to keep. |
| Architect | The coding agent you talk to in the Studio rail (guide on the wire). It writes the Story and proposes or revises Change Cards. |
| Builder | The coding agent that writes the application code in .highbay-build (builder on the wire). |
| Tester | The coding agent that writes the change's scenario tests in .highbay-tests (test_writer on the wire). |
| Herdr Core | The local runtime that starts interactive agent terminals. Open a role's terminal in Highbay. |
| Chorus | The local messaging service that carries the project conversation between the browser and agents. |
- It is not a sandbox. All agents run as you on one machine. Highbay runs
the code they write as ordinary programs with your access to files and the
network. Roles limit what each agent can call in Highbay, not what its
programs can reach. The page says so next to Agree. One
check, the builder's compile and unit test run, uses a local Docker
container; see
check_project. - It does not judge what a test asserts. Highbay checks that every finished flow has a scenario test and that the tests build, then runs them. Whether the assertions are strong enough remains your review. The page shows which answers and examples the test writer says each scenario covers.
- It operates on Go modules structured with Goa. You can scaffold a new Go
service or MCP gateway alongside an existing Python, TypeScript, or Go stack
in ~2 minutes via
highbayor/highbay, or adopt Highbay in an existing Goa repository; Highbay does not generate non-Go servers or patch arbitrary Express, FastAPI, or rawnet/httprouters in place.
Highbay needs:
- macOS or Linux.
- Go 1.27.3 or newer.
- Git 2.45 or newer, with your name and address configured. Highbay records accepted tests as commits under your identity.
- Docker Desktop, or another local Docker engine, for the builder's checks.
- A coding agent that supports MCP. The setup reference lists the clients that setup registers.
Choose an installation method.
# Homebrew.
brew install goadesign/tap/highbay
highbay up
# npm, with Node.js 20 or later.
npx @goadesign/highbay up
# Shell installer. It verifies the release and runs highbay up.
curl -fsSL https://raw.githubusercontent.com/goadesign/highbay/main/scripts/install.sh | shRun highbay from your project folder. If you installed through npm, use
npx @goadesign/highbay.
highbay up checks Go, Git, and Docker, offers to install compatible Herdr Core
and Chorus executables when needed, and registers Highbay with the coding
agents it detects. Herdr Core runs the agents' terminals. Chorus carries
the messages you see in the Architect conversation rail. Reload an already open coding
agent to discover the /highbay skill, and rerun highbay up after installing
another agent. See prerequisites and install options.
You can also install from a published Go release with
go install github.com/goadesign/highbay/cmd/highbay@latest, then run highbay up.
For a development build, see highbay init to
select the published Highbay module a new project will use.
Highbay needs no account and no model key. Each coding agent uses its own
sign-in. The tests a test writer wrote receive no provider key; a test of an
agent uses a scripted model kept in the test module. A provider key or a
model gateway matters in two cases. The first is when the
builder tries prompt wording on a live target, a running copy of the
application that the server starts from a commit. The second is when you
register a test program of your own that calls a live model. For a live
target, export the provider's key, such as ANTHROPIC_API_KEY or
OPENAI_API_KEY, in the environment that starts your coding agent. Your
coding agent must pass that environment on to Highbay; see
stdio integration. While no model is chosen,
live targets then use claude-sonnet-4-6 or gpt-5.4-mini, and Live preview & AI model on the Change page changes the model.
Run highbay update or choose Update & Restart when the browser offers a
new release. Highbay installs the version you approve and restarts the
project server in place. The browser session and running agent terminals
can continue. Choose Reload when you are ready to load the updated
workspace.
Run highbay update -check to see the available release without installing
it. For npm installations, use npx @goadesign/highbay@latest or update
the global package with npm install -g @goadesign/highbay@latest. See the
update command.
In an empty folder, run highbay, choose a coding agent if needed, and
describe your goal on the welcome screen. The Architect creates a blank Goa
and Goa-AI starter with an architecture diagram, an empty Story, and a test
module with one startup test.
See init_project.
In a project you already have, Highbay needs a Goa or Goa-AI project with
at least one Git commit and tests it can run. Those tests are either a test
module in Highbay's layout or a test program of your own that you register
with highbay verification set. With your own program, Highbay uses it for
every change and starts no Tester. See
what a build adds.
The browser stays signed in during a reload while the project server is
running. Run highbay to reopen the page, or ask your connected coding agent
to open it. Use the Architect rail to send messages and open a role's
Terminal when it needs an answer or permission.
Terminal operation
covers highbay --print-link, highbay status, highbay stop (this project),
and highbay down (all Highbay project servers and shared background services)
for operators and browser automation.
These commands need no server, no agents and no model key. They run Goa with
the module's own versions, so no separately installed goa is needed.
# Create a blank service and its test module.
# Add -example for a worked example, a price-answering service.
highbay init -dir shop -module example.com/shop
# Compile shop/design and print its containers, boundary edges,
# agent policies and tool contracts.
highbay preview -dir shop
# Regenerate shop/gen after you edit shop/design.
highbay gen -dir shop
# List all commands. "highbay help <command>" prints a command's flags.
highbay helpThe Orders example is a complete platform with
its own test suite (including SIGKILL worker crash recovery, API restart
during pending confirmation, redacted holdouts, and a token-budget gate). From a
checkout, highbay preview -dir examples/orders prints its architecture. The
reference covers highbay verify and
highbay approve, which check a commit against a test suite outside any server.
- How Highbay works: the journey step by step, by who acts.
- Reference: commands, MCP tools, builds, the page and the server's contracts.
- Story language: the declarations a Story is written with.
- Golden Path architecture: the built-in rules every agent follows, and who owns what in Highbay.
- Story flows and the tests a build requires: for contributors, how a Story becomes tests and how Highbay checks them.
- Orders example: a complete platform with its test suite.
- Product direction: what Highbay is meant to be and for whom.
Why the name? A high bay is a tall factory hall where large things are assembled and inspected before they leave. Highbay does the same for a change: it is built, checked against what you agreed, and only then merged.
Highbay is released under the MIT License.