Highbay
Highbay builds and verifies Goa services and Goa-AI agents with the coding agents you already use, separating who writes the service from who writes the scenario tests that gate approval. You confirm open product choices in your browser, one coding agent implements the service against Goa-generated interfaces, a second coding agent writes scenario tests in its own workspace, and Highbay runs those accepted tests against the candidate commit before you approve and merge.
For an interactive walkthrough of the $50 refunds example, see the Highbay page.
Installation
Highbay runs on macOS or Linux and requires Go 1.27.3+, Git 2.45+ (with user.name and user.email configured), and Docker (used by check_project to compile and unit-test builder work inside Linux containers).
Install the hbay binary and register your coding agents:
go install github.com/goadesign/highbay/cmd/hbay@latest
hbay up
hbay up registers the hbay stdio MCP server and /highbay ($highbay in Codex) skill with detected coding agents—Claude Code, Codex, Cursor, Antigravity, Gemini CLI, Windsurf, GitHub Copilot CLI, and VS Code—and starts Chorus when installed. Use hbay setup -global to register MCP and skills without starting Chorus. Reload your coding agent or start a new session if it was already open during setup.
When Herdr’s configuration folder ($HERDR_APP_HOME or ~/.config/herdr-app) exists, setup also installs the floating Highbay companion mod into mods/highbay/ and binds Command–Option–Shift–H (⌥⌘⇧H) on macOS when the shortcut is free.
Starting a Project
Open a folder in your coding agent and invoke /highbay ($highbay in Codex):
/highbay — build a refund assistant: refunds up to $50 get instant store credit; larger ones wait for a manager.
The first Highbay MCP call starts or attaches to the project’s local Highbay server, registers your current session as the guide, and calls open_views to open the browser page.
When the folder has not been initialized yet, your coding agent calls init_project(dir: ".") (deriving example.com/<folder> when you did not specify a Go module path; first-time setup takes a couple of minutes while Go modules download and compile):
- New workspace (
worked_example: false, default):init_projectandhbay initinitialize a two-module Go layout (<module>and<module>/eval) with Goa, Goa-AI, Model, and Story pinned ingo.modand a startup readiness check ineval/, ready for your ownStoryanddesign/. - Runnable sample (
worked_example: true/-example): Pass-exampleon the CLI or ask your agent forworked_example: truewhen you want to explore a complete Goa-AI agent, tool,Storyflow, and scripted evaluation suite first:
hbay init -dir ./demo-shop -module example.com/shop -example
- Existing Goa repositories: Adopting Highbay in an existing Goa or Goa-AI repository requires at least one Git commit and either a
<module>/evalsuite in Highbay’s layout or a test program registered withhbay verification set(when a saved verification suite is configured, Highbay runs it on every change and starts no test writer); see What a build adds. Note thathbay genand candidategenerate_codesupport Goa HTTP, JSON-RPC, and MCP designs; gRPC transport designs are refused becauseprotocfinalization is not bundled.


Roles and Responsibilities
When a single coding agent writes both an application and the tests that check it, open product questions get answered silently and encoded into both sides. Highbay separates those duties across distinct workspaces and MCP credentials:
| Participant | Connects Through | Responsibility |
|---|---|---|
| You | Browser views page | Answer open questions on the Change Card, inspect the architecture preview, start builds, record approval on a passing report, and merge into your local branch |
| Guide | highbay MCP (guide role) | Your active coding agent session; initializes empty folders, drafts Story flows and Goa designs, and proposes or revises Change Cards |
| Test Writer | highbay MCP (.highbay-tests copy) | Writes one scenario test per finished Story flow in eval/ from the confirmed Change Card without editing service code |
| Builder | highbay MCP (.highbay-build copy) | Runs generate_code to materialize the agreed design and gen/, implements business logic, checks inside a Linux container, and requests verification |
| Highbay Server | Per-project local process | Enforces role permissions, compiles and accepts eval/ suites, builds digest-pinned candidate binaries, runs verification, and records approvals |
Why Code Generation Matters for Coding Agents
If a coding agent writes HTTP routers, JSON-RPC handlers, MCP servers, request validation, and tool JSON schemas by hand, it spends tokens on work Goa can generate and leaves conventions to vary from turn to turn. Highbay makes generation part of the agreed build across separate owners:
- Service
gen/(generate_code): When the builder runsgenerate_code, Highbay writes the open build’s agreeddesign/into.highbay-buildand runs the project’s pinned Goa and Goa-AI generators to replace candidategen/—producing handlers, typed clients, codecs, and structural validation for the declared HTTP, JSON-RPC, and MCP transports, plus Goa-AI tool JSON schemas, method bindings, injected fields, confirmation declarations, andAGENTS_QUICKSTART.mdat the module root (unless disabled). Goa writes those files without model output tokens; overall token savings depend on how much context, iteration, and review the change needs. - Focused starting context: Edits start with
design/and the relevant generated Go interfaces rather than loading every transport and schema file into the prompt. - Uniform generated shape across models: Regenerating
gen/from one compiler keeps generated transport, validation, and tool-schema code consistent whether the implementation around it was written by Claude, Codex, or Gemini. - Compile-time and server checks across roles: Giving a method a new result type and regenerating fails
go buildon handlers still returning the old type (while invalid model-authored tool calls are rejected at runtime). Separately, Highbay writes requiredStoryflows toeval/design/story_tests.gowhen preparing or checking the test writer’s assignment, generates the Go runner ineval/gen/, builds the test program and checks its scenario listing, and refuses averify_changecommit whosedesign/differs from the agreed revision.
For guidance on structuring Goa and Goa-AI contracts for coding agents, see Develop with a coding agent.
Five Checkpoints (CP1–CP5)
Every architecture preview, accepted test commit, live target, verification run, and approval is bound to an exact request_revision digest of the Change Card:
CP1— Agree on a Change Card: Your coding agent evaluates aStory(github.com/goadesign/highbay/story/dsl) in its isolated draft and proposes a Change Card—a one-page summary of the change, any open product questions, concrete acceptance examples, and preserved behaviors. You answer open questions and confirm the card in your browser.CP2— Preview Architecture: Inspect the C4 containers, Goa-AI agent policies, and tool guardrails declared by the agreed Goa and Model design in Architecture before starting workers.CP3— Tune Prompts Live (Optional): When your service includes a Goa-AI agent and you configure a model provider key or gateway, the builder can start a live copy of the candidate commit and test runtime prompt overrides before committing.CP4— Run Independent Verification: Highbay compiles and checks the test writer’seval/module on branchhighbay/tests-<n>before accepting that test commit, then builds the builder’s candidate commit and runs the accepted test commit against it (no model API key is required unless youreval/suite calls a live provider). When an operator configures a separate evaluator with holdouts, Highbay shows each holdout’s outcome under an anonymous name and omits its scenario name, checks, and diagnostics from builder-facing reports (Report.ForBuilders(); the test writer cannot submit holdouts).CP5— Approve and Merge: Review the scenario report in Approve, record your approval (with optional release-binary digest checks when promotion settings are configured), and click Merge into current branch to merge the verified candidate and test commits into your local branch.
Side-by-Side Herdr Panes or Background Workers
On the Build view, you pick each worker role’s coding agent and model inline (choices are remembered per project). When multiple coding-agent families are installed (for example Claude Code and Codex), Highbay prefers different families for the builder and test writer; a single installed CLI can also fill both roles:
| Worker Mode | When Used | How It Runs |
|---|---|---|
| Herdr + Chorus | Herdr (herdr-core, herdr-app) and Chorus (chorus up) are available | Adopts your live coding-agent pane when compatible, splits the builder and test_writer panes beside it during Build, and closes worker panes automatically once the build is merged or dropped. Press ⌥⌘⇧H on macOS to open the Highbay companion and focus panes or reopen the browser window. |
| Background workers | Herdr is not installed or not running | Runs builder and test_writer as server-supervised non-interactive CLI processes with no Herdr or Chorus requirement once you confirm background worker execution in Build. |
Architecture and Process Boundaries
- Portable
StoryDSL (github.com/goadesign/highbay/story/dsl): Declares actors, flows (StartsWith,Step,Outcome), and openQuestionitems in Go alongsidedesign/. Every finished flow requires a matching scenario test ineval/before a build counts (Highbay checks that each required scenario is declared and runs it; it does not judge whether the assertions inside the test are sufficient). - Goa & Goa-AI code generation (
generate_code): Highbay materializes the agreeddesign/into.highbay-buildand runs the project’s pinned Goa and Goa-AI generators atomically so neither agent editsgen/by hand. - Test-module acceptance (
internal/testwriter): Before tests count, Highbay regenerates the Story test table, verifies nothing outsideeval/changed, compiles the test binary, and records the accepted commit onhighbay/tests-<n>. - Candidate verification & local execution (
verify/candidate): Role credentials limit what each role can call in Highbay—only you can confirm a Change Card, record approval, or merge. Agents, design evaluation, candidate binaries, andeval/suites run as ordinary local process groups under your user account with your access to files and the network, while buildercheck_projectruns compile and unit checks inside local Docker containers.
See Also
- Highbay GitHub Repository — Source code,
HOW_IT_WORKS.md,REFERENCE.md, andstory/dsl - Highbay Page — Interactive policy comparison and four-view browser walkthrough
- Chorus Documentation — Multi-agent
#channeland@agentcoordination used by Herdr worker panes - Develop with a Coding Agent — Design-first Goa and Goa-AI workflow