highbay

package module
v0.0.0-...-f137929 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Highbay

Release npm Glama MCP Server Highbay on Serverdex Go Reference MCP MIT License

Highbay

Design a multi-service platform with your coding agents, agree on it, then build and verify it against what you agreed. Its services, MCP servers and the AI agents your product runs get their plumbing generated rather than prompted.

Left alone, coding agents wire every repository and feature differently, and a growing platform turns into mismatched services. With Highbay, your coding agent designs the platform with you in the browser: the flows of what happens in your domain, the services and how they call each other, their contracts, and a design doc, all checked against each other. A second agent reviews the design without editing it. Once you agree, Highbay compiles the contracts into servers, clients between services, validation and tool schemas, with no model in the loop. Builders write only each service's handlers, and a separate Tester proves your flows end to end.

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.

Highbay involves two kinds of agent. Coding agents design and build your repository: Highbay coordinates them, running their terminals with Herdr Core and carrying their messages with Chorus. Product agents are optional AI agents inside the system you build, such as an incident commander that rolls back a canary release once a person approves. You design them with Goa-AI, and Highbay generates and tests them like the rest of the system.

  • One repository, many services, one layout. A Highbay system keeps each service under services/<service>/, its flows in design/stories/, its C4 model in diagram/, and its design doc in docs/design/. Every agent follows the built-in highbay://golden-path rules for authentication, OpenTelemetry tracing (Clue), event streams and worker pools (Pulse), and durable product agents (Goa-AI).
  • Generated, not prompted. From the agreed contracts, Highbay generates HTTP, gRPC and MCP servers, OpenAPI 3 specs, request validation, each service's main, and a typed client for every call one service makes to another, derived from the C4 model. An import check keeps services from reaching into each other's code. In the Incidents example, files Highbay generates hold 92% of the system module's non-blank, non-test Go lines; the hand-written service code is about 6% and the design about 2%.
  • Agree on the design, then verify the build against it. Open choices are Decisions pinned to the flows, each with a preview of what it changes. The Skeptic flags gaps before you agree. One Builder per affected service, up to four at once, implements the handlers. A Tester that writes no application code turns each finished flow into a scenario test, and Highbay blocks approval until every service passes them.
brew install goadesign/tap/highbay
highbay up

Run highbay up once, then run highbay in an empty folder or an existing Highbay system to open the Studio in your browser. From a coding agent that is already open, invoke /highbay ($highbay in Codex) instead. Install covers Homebrew, npm (npx @goadesign/highbay up), the shell installer, and go install.

One change, start to finish

After installing Highbay, run highbay in an empty folder, choose a coding agent if asked, and describe what you want to build:

Build an incident response platform: ingest paging alerts, correlate them with recent deploys and error spans, and let an AI incident commander roll back a bad canary release only after the on-call engineer approves.

That goal leaves a real boundary open: may the commander roll back a young canary on its own during a severe incident, or does every rollback wait for a person? A freehand coding agent guesses, writes the guess into code, and locks it in with unit tests that agree with it. Highbay puts the choice in front of you, compiles the agreed boundary into code, and checks it with tests written by an agent that did not write the code:

  1. Describe. The Architect, the coding agent you talk to, creates the project and drafts the design in its own copy of it. It writes flows, services, a C4 model and a design doc. The Studio shows the flows as soon as they evaluate, while the services are still being written.

  2. Review and decide. Move between Flows, System (C4) and Design Doc, or show two side by side with Split. Step through a flow with one of its examples and the same step lights up on the diagram. Each open choice is a Decision pinned to the step it affects, such as whether a canary rollback needs on-call confirmation. Focus an option to see on the diagram what it would add, change or remove, or type your own answer. Meanwhile the Skeptic, a second agent that never edits the design, reviews it and leaves review notes for anything it thinks you should decide.

  3. Agree. The Studio bar says what is left, such as 2 Decisions left → or Skeptic reviewing…. When it shows ✓ Ready, press Agree & Build. If only the Skeptic's review is still running, you can press Agree without review instead, and the change records that you did.

  4. Build. Highbay commits the agreed design and its generated code as the build's starting point, then starts one Builder for each affected service, up to four at once. Each Builder writes only its own service's hand-written code, and Highbay checks each service's part before assembling them. The Tester writes one scenario test per finished flow in the test module, eval/, and Highbay checks those tests before it accepts them. Workstreams lists every change and its build, so you can reorder, pause or stop builds.

  5. Verify. Highbay refuses a candidate whose design or generated contracts differ from what was agreed. It then builds every service, starts them together, and runs the accepted tests against them. When a flow fails, for example because the commander rolls back without the on-call engineer's confirmation, Highbay reopens the services that flow involves and sends their Builders the failure.

  6. Approve & Merge. When the status line says ✓ Verified, press Approve & Merge… in the Studio bar. It opens Verification evidence, which shows each scenario's result and what the run verified. Press Approve and merge into <branch> there to record your approval and merge the verified work into your local branch.

Only you can agree on a change, approve a result, or merge. Each agent connects to the server with permissions for its role. You can go back at any step: revise the change, build again, or have the tests written again. How Highbay works covers every step, and Going back explains what stays valid when you do.

The agreement is code

What you agree on is Go source in your repository, which Highbay evaluates as a whole. These excerpts come from the Incidents example, the incident platform above built as three services: intake, correlator and commander.

// examples/incidents/design/stories/incidents.go: one step of a flow,
// with the open choice pinned to it.
Reaction("execute_rollback", "Deploy controller rolls back suspect canary after responder confirmation", func() {
	When("agent_triages")
	InArea("autonomous_mitigation")
	ByAgent("incident-commander")
	RequiresConfirmation()
	Calls("commander", "confirm_mitigation")
	Publishes("incident_events", "mitigation.completed")
	AsOutcome()

	Decision("rollback_gate", "Should canary rollback require human responder confirmation during Sev-1?", func() {
		Option("Always require on-call confirmation before rollback", func() {
			NoStructuralChange()
		})
		Option("Auto-rollback Sev-1 canaries under 5 minutes old", func() {
			ChangesContainer("commander", "Execute Sev-1 canary rollbacks automatically without responder confirmation")
		})
	})
})
// examples/incidents/diagram/model/model.go: the commander calls the correlator over gRPC.
// Highbay generates the commander's client for exactly these operations.
_ = Container(commanderdesign.CommanderService, "Incident Commander", func() {
	Key("commander")
	Uses(Correlator, "Reads correlation bundles", "gRPC", func() {
		Transport("grpc")
		Calls("get_correlation")
	})
})
// examples/incidents/services/commander/design/design.go: the agent's rollback tool.
Tool("execute_canary_rollback", "Roll back a suspect canary release after human responder confirmation.", func() {
	Args(func() { /* responder_id, incident_id, suspect_release */ })
	Return(MitigationOutcome)
	BindTo("commander", "execute_canary_rollback")
	// Inject keeps responder_id out of the model's tool arguments; the server supplies it.
	Inject("responder_id")
	// Confirmation pauses every call until a person approves it.
	Confirmation(func() {
		Title("Confirm canary rollback")
		PromptTemplate(`Roll back release {{ .suspect_release }} for incident {{ .incident_id }}?`)
		DeniedResultTemplate(`{"incident_id":{{ json .incident_id }},"status":"no_action_needed"}`)
	})
})

Highbay checks these parts against each other before you agree. A step that calls another service needs a C4 relationship that carries the call, each service needs its page in the design doc, and every option of a Decision must say what it changes. The page lists anything that does not line up.

Generated plumbing, written by no model

Agents write compact design packages and plain Go business logic; Goa, Goa-AI and Highbay generate the rest. For each service, generation produces the transport servers and their validation, OpenAPI 3 descriptions, the service's main with its health endpoints, and a client package under services/<caller>/clients/<package>/ for each relationship the C4 model declares, with a mocks package for tests. A Pulse stream or worker pool the design declares gets a typed publisher, handler, dispatcher or job handler in the same way.

This has four practical effects for LLM-assisted development across several services:

  • No model output spent on generated files. Routers, codecs, OpenAPI 3, validation, tool JSON schemas and service-to-service clients are generated. Each agent reads and edits compact design files and the interfaces it implements.
  • The same layout and generated shape across services and models. Generated code stays identical whether Claude, Codex or Gemini wrote the business logic around it.
  • Guardrails enforced by code at every boundary. Changing a type in a design and regenerating fails go build on stale handlers. A service that imports another service's packages, or Pulse directly, fails Highbay's import check. A Builder's check compiles and tests inside a Linux Docker container. Verification refuses a candidate whose design or generated contracts differ from what was agreed.
  • A built-in architectural playbook. Highbay serves its playbook over MCP at highbay://golden-path (GOLDEN_PATH.md). It pairs Goa, Goa-AI, the Story language and Model C4 diagrams with production patterns: Temporal workflows and gen_ai.* model spans in Goa-AI, Pulse event streams (pulse/streaming), job queues and consistent-hash worker pools (pulse/pool), Clue OpenTelemetry setup, and dependency readiness probes (clue/health).

Any Python, TypeScript, Go or web client can call the generated HTTP, gRPC and MCP endpoints. highbay gen runs the generators with your module's own Goa versions and Highbay's pinned protobuf tools.

Words you will meet

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 Studio The server's page in your browser, where you review the design, decide, agree and approve.
System One repository holding one or more services under services/<service>/.
Flow One path through what happens in your domain: a Trigger starts it, What happens steps record facts, and Reactions respond to them, until an outcome. Flows are written as Go in the Story, in design/stories/.
Area A group of business rules inside one service. Flows place each step in an Area.
Decision An open choice pinned to a flow or step. Each option says what it would change in the design.
Change Card One proposed change: your request, the Architect's analysis, and the design it was evaluated from.
Revision A new version of a Change Card. After you agree to a change, the Architect proposes any further change to it as a revision, which you review and Adopt to make it the version that builds.
Review note Something the Skeptic found. A note that needs your call is settled by a Decision, or you dismiss it with a reason.
Container, Relationship Words of the System (C4) diagram: a container is a service or a store of the system, and a relationship is one of them calling or publishing to another.
Architect The coding agent you talk to (guide on the wire). It drafts the design and proposes or revises Change Cards.
Skeptic A second coding agent that reviews each proposal without editing it (skeptic on the wire).
Builder A coding agent that writes one service's application code in its own working copy (builder on the wire).
Tester The coding agent that writes the scenario tests in eval/ (test_writer on the wire).
Herdr Core The local runtime that starts interactive agent terminals. Open a role's terminal in the Studio.
Chorus The local messaging service that carries the conversation between the browser and agents.

What Highbay does not do

  • 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. One check, a 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 Studio shows which answers and examples the Tester says each scenario covers.
  • It builds Go services designed with Goa. You can add a Highbay system beside an existing Python, TypeScript or Go stack, which calls it over HTTP, gRPC or MCP. Highbay does not generate non-Go servers or patch arbitrary Express, FastAPI or net/http routers in place.
  • It does not deploy. Approving and merging puts verified commits on your local branch. Releasing and deploying stay with you.

Install

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 Builders' checks.
  • A coding agent that supports MCP. The setup reference lists the clients that setup registers.
  • Redis or Valkey 7 or newer, as redis-server or valkey-server on your PATH, when your design declares Pulse event streams or worker pools. Verification starts its own server and gives each test scenario a separate namespace. Highbay does not install it; without it, verification stops with "Pulse checks need redis-server or valkey-server 7 or later".

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 | sh

Run 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 exchange with the Architect. Reload an already open coding agent to discover the /highbay skill, and rerun highbay up after installing another agent. Two more tools install on request:

  • highbay up -protobuf installs the pinned protobuf compiler and Go plugins that gRPC designs need.
  • highbay up -temporal installs the pinned Temporal development server that the tests of a system with product agents run on. Without it, those tests use temporal from your PATH.

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 Tester's tests receive no provider key; a test of a product 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 a Builder tries prompt wording on a live target, a running copy of the system 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 use claude-sonnet-4-6 or gpt-5.4-mini, and Try it live in the Studio changes the model.

Update Highbay

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.

Start a project

In an empty folder, run highbay, choose a coding agent if asked, and describe your goal on the welcome screen. The Architect creates the project and its first commit, then drafts your design. The starter is a system with one service, named after the last element of the module path: its contract, C4 model, design doc, empty Story and a test module with one scenario that starts the service. See init_project.

In a system you already have, Highbay needs a Goa project in Highbay's layout with at least one Git commit and tests it can run. Those tests are either the test module in eval/ 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. Send the Architect messages in the conversation beside the Studio, 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.

Use the tools without a team

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 new system and its test module.
highbay init -dir incidents -module example.com/incidents

# Regenerate generated code after you edit a design: Goa output, service
# commands, clients between services, and the C4 model's JSON.
highbay gen -dir incidents

# List all commands. "highbay help <command>" prints a command's flags.
highbay help

The Incidents example is a complete three-service system with its own test suite in examples/incidents/eval. The suite runs the Story's flow, four contract and recovery scenarios and one hidden scenario against all three services, each scenario with its own Redis and Temporal namespaces, and checks the live prompt path. From a checkout, highbay gen -dir examples/incidents regenerates the system, and highbay gen -dir examples/incidents/eval its test module.

The reference covers highbay verify and highbay approve, which check a commit against a test suite outside any server.

Dive deeper

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.

License

Highbay is released under the MIT License.

Documentation

Overview

Package highbay holds the go.mod Highbay was built from, so code that needs Highbay's own dependency versions reads them from the binary instead of looking for a go.mod on disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoMod

func GoMod() string

GoMod returns the go.mod Highbay was built from. The design evaluator (internal/designeval) reads its go directive and the Goa, Goa-AI and Model versions it requires, as the Go version and generator versions for designs that do not require them. Starter generation (internal/scaffold) copies the Goa, Goa-AI, Model and Story module versions into every new project. Because the file is compiled in, the result does not depend on the working directory or on a source checkout being present.

Types

This section is empty.

Directories

Path Synopsis
cmd
highbay command
This file is the composition root of `highbay check-run`, the hidden check helper role that highbay serve starts for each check_project and update_dependencies operation (see controlplane.RunCheckHelper).
This file is the composition root of `highbay check-run`, the hidden check helper role that highbay serve starts for each check_project and update_dependencies operation (see controlplane.RunCheckHelper).
This file defines explicit client choices and installed-client capabilities.
This file defines explicit client choices and installed-client capabilities.
targetprompt
Package targetprompt describes how Highbay lists and edits the prompts registered by a live evaluation target.
Package targetprompt describes how Highbay lists and edits the prompts registered by a live evaluation target.
gen
internal
abspath
Package abspath resolves existing and not-yet-created filesystem paths without changing which directory a symlink followed by a parent component selects.
Package abspath resolves existing and not-yet-created filesystem paths without changing which directory a symlink followed by a parent component selects.
controlplane
This file resolves the builder's working folder within its copy.
This file resolves the builder's working folder within its copy.
depinstall
Build-tool provisioning shares the release downloader with companion installation.
Build-tool provisioning shares the release downloader with companion installation.
designeval
This file converts declared Goa errors to types owned by the calling service.
This file converts declared Goa errors to types owned by the calling service.
designeval/designdoc
Package designdoc parses modular Markdown design specifications under docs/design/ and validates @symbol cross-references and per-service specification completeness against the evaluated system inventory.
Package designdoc parses modular Markdown design specifications under docs/design/ and validates @symbol cross-references and per-service specification completeness against the evaluated system inventory.
designversion
This file reads the guide's draft, the module folder where the guide writes the next revision's design, as a refresh evaluates it.
This file reads the guide's draft, the module folder where the guide writes the next revision's design, as a refresh evaluates it.
diff
Package diff compares generated sources, domain declarations, Model diagrams, agent policies, and module dependencies without claiming runtime compatibility.
Package diff compares generated sources, domain declarations, Model diagrams, agent policies, and module dependencies without claiming runtime compatibility.
genpublish
The publication manifest records generated files outside gen so another generation can recover after an interruption without deleting user files.
The publication manifest records generated files outside gen so another generation can recover after an interruption without deleting user files.
gitenv
Package gitenv owns the environment variables that make git act on another repository, work tree, index, object store or reference store than the one a command names, and the filter that removes them from an environment.
Package gitenv owns the environment variables that make git act on another repository, work tree, index, object store or reference store than the one a command names, and the filter that removes them from an environment.
goldenpath
Package goldenpath embeds and serves the public Golden Path architecture playbook (`GOLDEN_PATH.md`) for building multi-service agentic platforms on the Goa Design suite (goa, goa-ai, pulse, clue, model, and chorus).
Package goldenpath embeds and serves the public Golden Path architecture playbook (`GOLDEN_PATH.md`) for building multi-service agentic platforms on the Goa Design suite (goa, goa-ai, pulse, clue, model, and chorus).
hc
Package hc is Highbay's client for herdr-core, the local daemon that runs each agent in a terminal.
Package hc is Highbay's client for herdr-core, the local daemon that runs each agent in a terminal.
importguard
This file renders the test implementation of an authored external client.
This file renders the test implementation of an authored external client.
modelsettings
Package modelsettings names the environment variables of the direct model providers a live target or an operator's evaluator may call, and holds their values so that no formatting or serialization reveals them.
Package modelsettings names the environment variables of the direct model providers a live target or an operator's evaluator may call, and holds their values so that no formatting or serialization reveals them.
procgroup
Package procgroup runs a command in its own process group and stops the whole group, so a command that starts children (go build starting the compiler, a suite starting candidates and Temporal) never leaves them running after it returns.
Package procgroup runs a command in its own process group and stops the whole group, so a command that starts children (go build starting the compiler, a suite starting candidates and Temporal) never leaves them running after it returns.
project
This file implements project management, persistent agent authentication, and browser sessions that live only in this server's memory.
This file implements project management, persistent agent authentication, and browser sessions that live only in this server's memory.
pulsedev
Package pulsedev starts the native Redis used by local Pulse scenarios.
Package pulsedev starts the native Redis used by local Pulse scenarios.
renameat
Package renameat performs atomic directory-relative renames that either refuse to overwrite an existing destination or exchange two existing paths, using each operating system's native kernel syscall without non-atomic fallbacks.
Package renameat performs atomic directory-relative renames that either refuse to overwrite an existing destination or exchange two existing paths, using each operating system's native kernel syscall without non-atomic fallbacks.
scaffold
This file owns the unpublished starter tree and command logs.
This file owns the unpublished starter tree and command logs.
selfupdate
Package selfupdate checks published Highbay releases and installs an exact approved version.
Package selfupdate checks published Highbay releases and installs an exact approved version.
shquote
Package shquote quotes text so that a POSIX shell reads it as one word.
Package shquote quotes text so that a POSIX shell reads it as one word.
testmodule
This file selects compiler storage at trusted test composition roots.
This file selects compiler storage at trusted test composition roots.
testwriter
This file names the branches of Highbay's builds and reads, with git, the facts Highbay checks before it uses a commit of the open build.
This file names the branches of Highbay's builds and reads, with git, the facts Highbay checks before it uses a commit of the open build.
traceview
Package traceview saves safe operation diagnostics for one control plane.
Package traceview saves safe operation diagnostics for one control plane.
verify
This file names the environment a test program starts with.
This file names the environment a test program starts with.
verifyrun
This file owns a written-test live target's executor-owned loopback model gateway.
This file owns a written-test live target's executor-owned loopback model gateway.
Package skills embeds the /highbay agent skill, so `highbay setup -global` installs it without downloading anything.
Package skills embeds the /highbay agent skill, so `highbay setup -global` installs it without downloading anything.
story module
verify
candidate
Package candidate builds and runs the code Highbay's coding agents write.
Package candidate builds and runs the code Highbay's coding agents write.
service
Package service supplies the listener contract between a generated service command and the evaluator that starts it.
Package service supplies the listener contract between a generated service command and the evaluator that starts it.
suite
This file owns the native infrastructure shared by one generated evaluator run.
This file owns the native infrastructure shared by one generated evaluator run.
targetprompt
Package targetprompt mounts Highbay's authenticated prompt endpoints on a generated service started as an interactive live target.
Package targetprompt mounts Highbay's authenticated prompt endpoints on a generated service started as an interactive live target.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL