Repository navigation
Agent Factory v4: the factory no longer needs our reference cluster's Crossplane, Kueue or octo-sts, and you drive it in plain English from a coding agent or Slack. Its controller, Maku, runs its own agent pods and model gateway, gives your coding agent six tools instead of nineteen, and judges each pull request by its diff. Proven on our GKE and EKS reference clusters; installs on other clusters are built and tested in CI but not yet recorded live.
Why v4, and what it changes
In v3, the Agent Factory proved that shaping an issue before code is written, running repository checks inside the sandbox, and merging on a single maintainer approval produce better pull requests per dollar. But v3 had two big limitations: only our reference cluster could run it (it depended on our Crossplane AgentRun composition, Kueue, octo-sts and the ZITADEL directory reader), and day-to-day use had too many moving parts (19 MCP tools in coding agents, a rigid template in Slack, noisy webhook messages, and merge rules tied to issue labels instead of the actual diff).
v4 (Maku v0.33.0 → v0.53.11, ai-native-ref v3.1.0 → v4.0.0) addresses both:
- The factory stands on its own: Maku runs its own agent pods (
maku-run-controller) and model gateway (maku-gateway), works with any OIDC login and your own PostgreSQL, tries out on a laptop (task demo), and generates a GitOps install withmaku install --printandmaku preflight. - Everyday use is plain English: you describe what you want from your coding agent (
handoff→start) or by mentioning@factoryin Slack. The planner drafts the issue, asks at most one question, the factory runs the workflow you confirm (quick,standardorcareful), and the merge gate evaluates the pull request's diff against a catalog of merge policies.
- Start here: Get started · How it works · Day-2 operations · Status and roadmap
- Maku guides: README · Onboard a repository · Merge policies · CLI and tools · Slack App · Hardening
- See a run: a real run, end to end, and a replay to drive
What shipped since v3.0.0
1. Run the factory on your own cluster, or try it on a laptop
Intent: remove every dependency on our reference host, so a platform engineer with Kubernetes, Helm and GitHub Apps can run the factory.
- Laptop demo:
task demoboots the factory onkindork3d, creates your GitHub App through GitHub's manifest flow, and runs a labelled issue to a reviewed pull request in about 15 minutes. It is a demo, not production: runs useruncrather than gVisor, it needs a public repository, and you bring your own model API key (quickstart). - One Helm chart for production:
charts/agent-factory(withcharts/agent-factory-crds) installs the factory, room broker, run controller, model gateway and Slack App. Several installs can share one cluster (install). Tested in CI on k3d; not yet recorded on a cluster other than our references. - No external runtime dependencies:
maku-run-controllerlaunches gVisor agent pods directly, andmaku-gatewayroutes the factory's model calls and enforces budgets, replacing the CrossplaneAgentRuncomposition, Kueue andocto-sts. The reference still runs Envoy AI Gateway beside it for other traffic; removing it is an open decision. - Bring your own OIDC and PostgreSQL: any OIDC identity provider (
preset: genericorzitadel; ZITADEL stays our reference issuer). Users link their GitHub account once at/link/github, so room access follows their GitHub permissions. - Guided install and health checks:
maku install --printgenerates your GitOps manifests, GitHub rulesets and secret templates;maku preflightchecks DNS, auth, webhooks and cluster health from your laptop. - Onboard a repository:
maku repo add <owner/name>reads your branch protection and writes a 12-lineRepositorymanifest and the ruleset (private GitHub Apps: pass--factory-app-id);maku repo checkverifies it live (onboard a repository).
2. Six tools in your coding agent, configured in one command
Intent: coding agents struggled with 19 overlapping MCP tools and raw JSON plan envelopes. Collapse the surface to the actions a developer actually takes.
- One-command setup:
maku setup <claude|codex|copilot|cursor|gemini|opencode>configures the CLI, logs you in, registers themakuMCP server, installs themaku-handoffskill and runsmaku doctor. For Claude Code and OpenCode it also writes the/makucommand (handoff,task,inbox,cancel) (CLI). handoff: describe the work in your own words; the broker's planner drafts the issue, checks which repository it belongs to, and asks at most one question with its recommendation.start: opens a confirmation form with the issue, workflow and budget. Only your answer to the form files the issue and starts the work.inbox: what is waiting on you across your tasks (or your recent tasks when nothing is).task: one task's state, what it needs, its cost, the merge gate's decision and recent milestones.waitandanswer:waitreturns when a task needs you, opens a pull request or ends;answerreplies to an open question (and restarts the task) or leaves a note for the next run.cancel, listed after the six: stops a task, or discards it with its pull request and branch, behind a confirmation form. The room page has the same two buttons.
3. A Slack thread that plans, stays quiet, and lets you act
Intent: replace the rigid Slack draft syntax and noisy webhook messages with a natural conversation and safe confirmation buttons.
- Plain-English proposals: mention
@factoryin your own words. The factory posts one proposal message with a workflow section andConfirm/Cancel; replying in the thread updates that same proposal in place (Slack App). - Four quiet updates and one end line: by default a thread posts when work starts, when it needs you, when a pull request opens, and one end line (
Ended/Merged #45) with total cost, duration and the merge policy used. Other line types are opt-in. - Approve a push from Slack: when an attended run asks to push to its branch, the thread shows Allow the push / Deny under the same four-eyes and GitHub permission checks as the web UI.
- Stop, retry or answer from the thread: Stop on a waiting task, Retry on an escalated one, or reply when the scoper asks a question, each behind a 10-minute confirmation bound to you. Opt-in per channel (
intentActions).
4. Workflows choose the agents; merge policies judge the diff
Intent: decouple "how agents work on an issue" from "whether the pull request is safe to merge without a person".
- Three named workflows:
quick:implementeronly, for small, obvious fixes and scheduled tasks.standard(default):implementer→reviewer.careful:scoper→implementer(with repository search and atier-lightcompletion judge) →reviewer.
- Compare workflows on live traffic:
Factory.spec.evaluation(controlPercent,mode,treatment) sends a control share of tasks to another workflow to measure cost and merge rate before switching the default. Built; the reference trial was turned off (#414) before it recorded a task. - The merge gate judges the pull request's actual diff: it inspects the changed files and line counts against every policy bound to the repository, not the issue's label, and merges under the strictest
livepolicy that matches (merge policies). The gate's reason for "no policy covers this diff" is nowno_policy_matched(wasclass_unarmed). - Built-in catalog of four policies:
docs-links,revert,deps-patchanddocsship with the chart and run inshadow, collecting evidence until you set one tomode: live. The reference excludesdeps-patchfrom the catalog and keeps its own copy. - Approve to merge, as an option: with
merge.approveToMerge, a maintainer's approval of the current head is the merge signal and the merger App merges it. Off by default; on in the reference. - Settings and Evidence pages: policies, shadow evidence, per-PR decision timelines and saved approval rules in the web UI (
/settings/merge-policies,/settings/evidence).
5. Hardening for public repositories, multi-repo plans, and the RunLore knowledge base
Intent: protect repositories where anyone can file an issue, coordinate changes across repositories, and turn incidents into reusable knowledge.
- Untrusted-input hardening (built, off by default): stages H0–H5 move GitHub writes out of the sandbox, behind checks T1–T4 (T5 audits only), with safe outputs (
output_push,output_pr) andmaku drill plantto test the defences. Each repository opts in withhardening.enforceOutputs; the reference has not enabled it (hardening). - Multi-repository planning:
coordination_planplans a change spanning two repositories, with a parent issue and one task per repository. Execution is built and stays inert (multi-repository). - RunLore knowledge base: when RunLore investigates a live alert and the factory merges a fix, the lesson is filed as a reviewed entry in
runlore-kb. Search from a task (kb_search) is built; its live check has not passed yet.
6. Faster first minute, lower model spend, clearer docs
Intent: cut cold-start waits, stop paying frontier prices for simple checks, and keep every doc page short and accurate.
- Warm weekday sandbox node and boot telemetry:
aws-0keeps a warm gVisor node during working hours (08:00–19:00 Europe/Paris), and Maku records pod boot and git clone spans next to prompt-cache hit rates. - Right-sized models per role: workflows route scoping and completion judging to
tier-lightwhile implementation and review keeptier-frontier. The planner's ownreasoningEffortis configurable (human.intake.plan.reasoningEffort). - Reorganised documentation: Maku's 57 docs pages and
airef.ogenki.ioare split into tutorials, how-to guides (including Day-2 operations), explanations and adocs/reference/directory, checked in CI for broken links and page length.
What is on, in shadow, or off in the reference
| Capability | Chart default | Reference (aws-0) |
|---|---|---|
Merge policies docs-links, revert |
shadow | live on cloud-native-ref |
Other catalog policies (docs, deps-patch) |
shadow | shadow |
Approve to merge (merge.approveToMerge) |
off | on |
"Start now" offered after handoff (human.mcp.start) |
on for planner-served repositories, except those listed | on |
Slack thread actions (intentActions) |
off | per channel |
Untrusted-input hardening (hardening.enforceOutputs) |
off | off |
| Multi-repository execution | inert | inert |
Workflow evaluation (Factory.spec.evaluation) |
off | off (#414) |
policy-bot (mergeDefaults.policyBot) |
off | off; its deployment is still present on both clusters |
Proven live on GCP (GKE) and AWS (EKS)
| What we proved live | Cloud & Maku version | Evidence |
|---|---|---|
Standalone runtime end to end: broker from charts/maku, CRDs from agent-factory-crds, maku-gateway and maku-run-controller taking issue #377 through triager, implementer and reviewer to merged PR #383, with the Crossplane AgentRun, Kueue, octo-sts and the ZITADEL reader removed |
GCP (gcp-0), Maku v0.46–v0.49; again on AWS (aws-0) |
#370–#392, results (B1–B5) |
Planner and multi-repo planning: handoff plans public tasks in about 4 s on glm-5.3, and coordination_plan builds validated two-repo plans |
AWS (aws-0), Maku v0.38 |
#318, #319, #325 |
Slack proposals and self-serve linking: @factory link links Slack and GitHub accounts; a mention creates an in-place proposal that files and starts on Confirm / ✅ |
AWS (aws-0), Maku v0.37–v0.38.1 |
#312, #315, #324 |
RunLore knowledge-base loop: live incident → investigation → merged fix → verified entry in runlore-kb, plus historical replay |
AWS (aws-0), Maku v0.33–v0.39 |
runbook 25, live 4 results |
GitOps CRDs and merge-policy UI: Factory, Repository and MergePolicy reconciled live with simulation, dual evaluation and the Settings and Evidence pages |
AWS & GCP, Maku v0.39–v0.47 |
#327, #336, #339, #374 |
Six tools, maku setup opencode, workflows and the diff-chosen gate in shadow: a one-line handoff to a merged pull request (issue #479, PR #480: 12 minutes, $0.14) |
AWS (aws-0), Maku v0.53.1–v0.53.11 |
runbook 28, results, screencast |
Not yet proven live: a second person confirming in Slack (four-eyes rows), an autonomous merge under a v4 live policy, kb_search, untrusted-input hardening, the workflow comparison, and an install on a cluster other than our references (GKE and kubeadm installs are recorded next).
Upgrading from v3.0.0
Full step-by-step tables: Maku upgrading guide. In order:
- CRDs first (
charts/agent-factory-crds): installs theFactory,Repository,MergePolicy,Task,RoomandAgentRunCRDs and shared ClusterRoles. The CrossplaneAgentRunXRs,kueue.queueNameandocto-stsare gone. - GitHub: link accounts and two Apps. The ZITADEL directory reader (
zitadelReaderSecret) and the shared git tokens are removed. Each user links their GitHub account at/link/github(create the GitHub-link OAuth client), and the factory uses two GitHub Apps (apps.factory,apps.agents) plus the merger. Grant the merger Appstatuses:writeand the agents Appissues:write. - Config into CRDs and the right values keys: run
maku config migrateandmaku config validateto turn legacy config files intoFactory,RepositoryandMergePolicymanifests (workflowsreplacesharnessProfiles,policyManagement.stagereplaces the boolean stage flags,merge.maxPerDayreplacesautoMergesPerDay). Factory settings go undermaku-factory.configand the policy catalog under the umbrella'smergePolicies.catalog: a misplaced key fails the release (503 and a Helm rollback, #422, #428, #429). One component owns schema migrations (#413). - Broker, Slack App and clients: in broker values, replace
human.mcp.sessionStartwithhuman.mcp.start: {default, except[]}. This is not an inverted flag: "Start now" is then offered on every planner-served repository not listed inexcept. In the Slack App, remove theproposals:key; thenotifydefault now drops four line types, andintentActionsis opt-in per channel. Each developer runsmaku setup <client>and deletes any old.agents/skills/factory-handofffolder. - Alerts and dashboards: repoint anything matching the gate reason
class_unarmedtono_policy_matched.class:andprofile:labels are ignored; aquickpull request under a policy without a diff shape waits for a person (reviewer_verdict_missing).
On the reference host (cloud-native-ref):
- Move to host contract 8 (the
factory-slacklistener on both clouds, therunloremachine user and the RunLore ingress). - Pin
ai-native-refv4.0.0and theagent-factorychart0.53.11. - Kueue,
octo-sts,room-broker-caand the ZITADEL reader are pruned by Flux; ZITADEL remains the OIDC issuer.
Known limits and what's next
- Installs beyond our references: the GKE and kubeadm installs and an outside user's laptop run are the next recorded proofs.
- The planner reads public repositories only: a private repository is refused before any call (
private_repository_unsupported); file the issue on GitHub instead. - Multi-repository execution stays inert until repository merge policies finish their shadow window and hardening stages H2–H5 complete two consecutive weekly drills.
- Costs and approvals: some final costs settle after the task status is written (maku#279, maku#280); a few approval-binding edge cases remain (maku#304).
- CI log quotes for the completion judge stay empty unless the sandbox's egress allows GitHub's Actions log host.
Versions
| Component | Version |
|---|---|
Maku (factory, broker, run-controller, bridge, Slack App, Helm charts, maku CLI) |
v0.53.11 |
maku-harness |
v0.53.11 |
agent-factory chart |
0.53.11 |
| RunLore | v0.20.0 |
Host contract / HOST_REF |
8 / e7bf01f |
OCI artifact (cosign-signed by release.yaml) |
ghcr.io/smana/ai-native-ref:v4.0.0 · sha256:8b583c4e9626f6f0a2e425b989140e90c58f02ff62017fa2196cd19117a350b3 |
| Previous major release | v3.0.0 (Maku v0.32.3, 2026-10-31) |
🤝 Looking for a partner company
I've spent a lot of time on this project (and quite a few tokens 😅). Next, I want to put it to the test in the field: I'm looking for a partner company ready to try it with its teams, on real use cases. Interested? Get in touch or find me on Bluesky.