Skip to content
Components, ports, images and packages

Components, ports, images and packages

Binaries, container images, listening ports, release tags, Kubernetes resources and Go package layout for Architecture.

Ports

PortBinaryWho calls it
:8080maku-brokerHumans in the web UI and maku, both through oauth2-proxy
:8443maku-brokerThe bridge in each run pod; system callers (the factory)
:8090maku-brokerThe agents’ room_* tools through the model gateway
:9090maku-brokerMetrics and probes
:8082maku-factoryPOST /v1/runs, TLS 1.3 when api.tls is set (internal/tlsreload): the broker’s start_run
:8080maku-factoryPOST /intake/runlore
:9090maku-factoryMetrics and probes
:9090maku-run-controllerMetrics
:9091maku-run-controllerProbes (/healthz, /readyz)
:8085maku-bridgeThe kubelet’s probes of the native sidecar (HEALTH_ADDR)
:8080maku-slackSlack’s events, POST /slack/events
:8081maku-slackThe broker’s webhooks, POST /webhooks, cluster only
:9090maku-slackMetrics and probes

Binaries and images

BinaryRuns asImage
maku-brokerStateless service in agent-system; owns the Room CRD (maku.ogenki.io/v1alpha1); subcommands serve, retention, migrateghcr.io/smana/maku-broker
maku-bridgeNative sidecar in every AgentRun pod that names a room; relays harness events, carries the room tokenghcr.io/smana/maku-bridge
maku-factoryThe factory’s orchestrator in agent-system, two replicas, one leading; owns the Task CRD; chart oci://ghcr.io/smana/charts/maku-factoryghcr.io/smana/maku-factory
maku-harnessMain container of every AgentRun pod: OpenHands agent-server plus agent-run, the git credential helper, gh with the PR footer and the trailer hook (images/maku-harness)ghcr.io/smana/maku-harness
maku-run-controllerA Deployment, on clusters without cloud-native-ref’s Crossplane runtime; reconciles maku.ogenki.io AgentRuns into gVisor podsghcr.io/smana/maku-run-controller
maku-slackThe factory’s Slack App, a Deployment beside the factory; its config is --config or SLACK_APP_CONFIG (Slack App)ghcr.io/smana/maku-slack
makuA developer’s CLI: list, follow, post, queue and fork rooms; maku setup writes the maku-handoff Agent Skill for local coding agents; maku token for scripts. Never steers or approves: those stay in the web UIRelease assets maku-{linux,darwin}-{amd64,arm64} + maku.sha256; before a release, go build ./cmd/maku

Every image is multi-arch (linux/amd64, linux/arm64). The Go ones are static binaries on distroless nonroot; the harness is OpenHands’ Python image, run as uid 10001.

maku configure --url https://rooms.<domain>                       # the broker serves the issuer and ids; maku doctor checks VPN, CA, login, GitHub
maku login                                                        # device flow, in any browser
maku rooms --needs-me                                             # issue, title, task, PR per room; --repo, --mine, --json
maku needs                                                        # what needs you across rooms, in one order; --since, --room, --repo
maku status 3kq7x2ma                                              # the brief's head, then the card; --json, --after seq:N
maku watch 3kq7x2ma
maku post 3kq7x2ma --queue "address L42"
maku fork 3kq7x2ma --at 42 --role implementer --egress pypi --note "try uv"
maku setup                                                        # registers MCP server and skill for your coding agent

Releases

TriggerTagWorkflow
Each push to a PR from this repov<next-patch>-pr<N>.<sha8>, <sha8> = the PR headci.yaml → prerelease
The same push, the factory chart<next-patch>-pr<N>.g<sha8> (the g keeps it semver)ci.yaml → chart-prerelease
A v* git tagthe tag, e.g. v0.11.0release.yaml

Never latest. Consumers pin by digest. Every pushed image carries SLSA provenance (mode=max) and an SBOM as attestations, and a keyless cosign signature on its digest:

cosign verify ghcr.io/smana/maku-broker@sha256:<digest> \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github\.com/Smana/(agent-platform|maku)/\.github/workflows/release\.yaml@refs/tags/v'

Releases before v0.30.0 carry the Smana/agent-platform identity, hence both names in the regexp. That accepts released images only. PR pre-releases are not release-grade (they run unreviewed branch code): see verifying an image for their variant.

Where each piece lives

ResourceNamespaceDefined inBuilt from
agent-factory Deployment, Service, PDB, RBAC and configagent-systemcharts/maku-factory hereImage ghcr.io/smana/maku-factory, this repo
Task CRDcluster; CRs in agent-systemcharts/maku-factory, a copy of config/crd/api/factory/v1alpha1 here
maku chartbroker, run controller, Room and AgentRun CRDs, runs namespacecharts/maku hereThe umbrella for a cluster without cloud-native-ref; the laptop profile is the one-run quickstart. The broker runs human.mode: local and runIssuers[].mode: tokenreview there (broker fields); room-broker migrate is its schema init container
Factory secrets: agent-factory-github, agent-factory-merger, openbao-ca, agent-factory-oidc, agent-factory-intakeagent-systemMounted per the chart README, which names each secret’s sourceThe platform’s secret store
room-broker Deployment and Service (App claim room-broker)agent-systemcloud-native-ref infrastructure/base/room-broker/Image ghcr.io/smana/maku-broker, this repo
Room CRDcluster; CRs in agent-systemVendored by cloud-native-ref as crd-rooms.yamlapi/v1alpha1, config/crd/ here
SQLInstance xplane-rooms (CNPG)agent-systemcloud-native-refComposition in crossplane-configuration; migrations internal/store/migrations/ here
Retention CronJob room-broker-retentionagent-systemcloud-native-refThe broker image, retention subcommand
Certificate room-broker-tlsagent-systemcloud-native-refcert-manager, ClusterIssuer openbao
room-bridge sidecar and its room-token volumeagentscrossplane-configuration’s AgentRun compositionImage ghcr.io/smana/maku-bridge, this repo
agent-harness imageagentscrossplane-configuration’s AgentRun compositionimages/maku-harness, this repo
Secret room-broker-caagentscloud-native-ref ExternalSecretThe platform’s private CA
CNPsagent-systemcloud-native-ref—
ServiceMonitors, PodMonitors, PrometheusRule makuthe release namespaceThe umbrella chart, with monitoring.*.enabled (observability); cloud-native-ref runs its own VMServiceScrapes and VMRules until it turns them oncharts/agent-factory, this repo
oauth2-proxy, HTTPRouteagent-systemcloud-native-ref—
agent-router MCPRoute backend for :8090agent-systemcloud-native-ref—

Integration lists what each consumer carries and pins.

Where it plugs in

RepoConsumes
cloud-native-refDeploys the broker (App claim), its CNPG database xplane-rooms, the Room CRD, RBAC and network policies
crossplane-configurationThe AgentRun composition injects the room-bridge sidecar and its room token

Design: collaboration rooms, part of the Agent Factory programme.

The programme’s sub-project codes, where you meet them in the specs: SP2 is the rooms, SP3 the factory.

Code layout

The code follows Go conventions and a clean architecture modelled on RunLore. AGENTS.md owns the full standard; five rules shape the tree.

RuleIn practice
Packages split by domain or pipeline stage, never by layerenvelope, redact, store, authn, runwatch, roomctrl, bridgeapi, bridge, policy, fanout, humanapi, mcp: no service/, repository/ or handler/
cmd/<bin> stays thincmd/maku-broker, cmd/maku-bridge, cmd/maku, cmd/maku-factory, cmd/maku-run-controller and cmd/maku-slack parse arguments and dispatch; the wiring lives in internal/app
Interfaces are declared on the consumer sideA package asks for the few methods it calls (the bridge API’s Log, the controller’s Store) instead of importing a wide type
The store is the only SQL adapterNothing outside internal/store writes SQL, the retention job’s DELETEs included
One egress clientEvery outbound HTTP call goes through internal/httpx; a lint rule bans the bare net/http helpers elsewhere

Broker, bridge and CLI, by pipeline stage:

PackageStage
cmd/maku-brokerserve, retention and migrate subcommands
cmd/maku-bridgeThe sidecar binary
cmd/maku-run-controllerThe AgentRun controller binary
cmd/maku, internal/makuThe human CLI and its client; maku mcp, the stdio relay to /mcp
cmd/maku-slack, internal/slackappThe factory’s Slack App: intake from a thread, webhooks to the thread (Slack App)
internal/maku/skillThe embedded maku-handoff Agent Skill (MCP first, shell fallback), released with maku; maku setup and skill install write it, skill.Version reads its stamp for the doctor’s skill drift check
internal/appWiring per binary, the only importer of every adapter
internal/configThe broker’s config file: strict decode, defaults, validation
internal/loggingA binary’s *slog.Logger: JSON or text, level by env
internal/versionBuild version stamped by -ldflags
internal/httpxThe one audited egress client: timeouts, a redirect cap, no credential header across hosts
internal/bridgeThe sidecar: harness adapter over loopback, event mapping, status, uploader, SSE consumer
internal/wireBridge and browser frames: the types both ends of a connection share
internal/authnOffline JWT verification for runs, system callers and humans; principal mapping
internal/sponsoredWhat the broker and the factory must agree on for a sponsored principal
internal/envelopeEvent types, payload builders, validation, limits
internal/redactSecret detection over every JSON string of a payload
internal/store (+ migrations/)Append, range, cursors, seal; the only package that speaks SQL
api/v1alpha1The Room types and deepcopy; the CRD is generated into config/crd/
internal/runwatchThe AgentRun informer: liveness, membership, run events, end reason
internal/roomctrlThe Room reconciler: row, first event, finalizer, status projection
internal/suspendThe suspend trigger: a suspendable run waiting on an approval in an idle attended room is suspended, and resumed once nothing waits
internal/runctlThe run controller: maku.ogenki.io AgentRuns into pod, ServiceAccount, ConfigMaps and CNP
internal/bridgeapi:8443: hello, events, SSE stream, system API, approvals
internal/tlsreloadThe reloading certificate loader of :8443 and the factory’s run-request API; tlsreload/tlsreloadtest is its test-only pair writer
internal/mcp:8090 MCP server, the room_* tools
internal/mcpwireThe JSON-RPC wire both MCP servers share: one message in, one answer out
internal/github, internal/verdictpostThe factory App client; the leader’s verdict comments
internal/brief, internal/runrequestThe fenced brief; manifest and factory run requesters
internal/prpatternA repository’s pull-request URL patterns, compiled once per repository in a bounded cache
internal/webhookThe broker’s outbound events: id-only payloads, signed as Standard Webhooks sign them
internal/fanoutLISTEN/NOTIFY hub: coalesced per-room reads, a 1 s poll while the listener is down
internal/policyThe permission matrix
internal/summaryThe pure fold of a room’s log into summary/v1, the one object the room page and maku status render
internal/roomviewThe factory’s four room views as maku renders them; the one place that makes untrusted text inert
internal/ghidentity, internal/repoaccessA member’s GitHub login from their IdP link; whether it may read a room’s repository, cached, failing closed
internal/humanapi + ui/dist/:8080 WebSocket, room list, actions, embedded UI; POST /mcp, the humans’ MCP server
web/TypeScript UI and its vitest suite
internal/metricsThe metric set and the Prometheus exporter maku-broker serves

The factory, by the same stages. Its wiring is internal/app/factory.go.

StagePackageContract
Entrycmd/maku-factoryThe binary; FACTORY_CONFIG, POD_NAMESPACE
Entryinternal/factory/configThe factory’s config file: strict decode, defaults, validation, its hash
Intakeinternal/factory/intakeThe issue poller: maintainer labels, snapshots, dedup, stop labels
Intakeinternal/factory/sanitize, internal/factory/taskidUntrusted text defused to a fixpoint; task names and ids
Intakeinternal/factory/fenceThe single-owner fence: a repository is acted on only by the factory its default branch’s .github/agent-factory.yaml names
Intakeinternal/factory/findingWhat both RunLore intakes write the same way: the task text, the public stub issue, the label charset that keeps attacker-influenced identifiers inert
Tasksapi/factory/v1alpha1The Task types and deepcopy; CRD generated into config/crd/
Tasksinternal/factory/triage, internal/factory/reconcilerTemplate, tier and budget; the Task state machine
Tasksinternal/factory/runs, internal/factory/killswitchThe AgentRun claim; the stop object
Tasksinternal/factory/steeringA task class’s steering note, read on the default branch at triage; an agent pull request that changes one is refused
Tasksinternal/factory/ledgerThe budget ledger: one ConfigMap per UTC day, its resourceVersion the transaction; admission reserves a run’s ceiling, the run’s end releases it, the meter owns the spent and settled columns; api, intake, meter and reconciler import it
Gateinternal/factory/filefence, internal/factory/mdlinks, internal/factory/semverdiffA class’s file conditions on a diff, one implementation for the gate and the adopt poller; Markdown link targets as the links-only shape reads them; whether a diff is a dependency bump of one kind
Gateinternal/factory/decisionthe per-decision record: the values each declared row read, so the tally can replay a cap
Gateinternal/factory/fluxwatchFlux’s objects for the post-merge monitor (MC7): uncached, read-only, unstructured
Outinternal/factory/forge, internal/factory/narrateGitHub as the factory App (internal/factory/forge/forgetest: its test-only fake); narration, at least once
Outinternal/factory/minterPer-run tokens: Roles, the one role table every run and publisher token is minted from, and Minter, a token for one repository and role from the agents App
Outinternal/factory/roomsThe broker’s system API over TLS
Opsinternal/factory/meter, internal/factory/fmetrics, internal/factory/tracingThe run meter; the metrics; one root span per task
APIinternal/factory/apiPOST /v1/runs