This manual walks you along the one guided path: set up the factory, describe what you want, click „Bauen“ (build), try the result and keep improving it (chapter 2). It then covers the „Einfach“ (simple) and „Experte“ (expert) views, installation and AI access in detail, what happens in a run, and further development over many runs. Everything for advanced users is collected in the expert chapter.
The user interface is German; this manual quotes its labels in German and explains them in English.
As of version 0.66.0. Deutsche Version: Benutzerhandbuch.
Contents
- What the Software Factory is (and isn't)
- Getting started: the guided path
- View: simple or expert
- Installation and AI access in detail
- 4.1 Prerequisites
- 4.2 Mode A — Claude plan
- 4.3 Mode B — Codex plan (OpenAI/ChatGPT)
- 4.4 Mode C — Kimi plan (Moonshot AI), Gemini plan
- 4.5 Mode D — API keys
- 4.6 Mode E — Local model (air-gap)
- 4.7 Isolation of agent runs (MCP null state)
- 4.8 Starting & logging in
- 4.9 Switching to a new version
- What happens in a run
- Workspace and Git
- Further development over many runs
- Troubleshooting & FAQ
- Expert chapter
- 9.1 Detailed wizard and empty project
- 9.2 Master data: the 13 project-definition fields
- 9.3 What the factory generates (artifacts)
- 9.4 Example definitions
- 9.5 Run with all options
- 9.6 Build settings and build gate
- 9.7 Quality gate in detail
- 9.8 Guardrails in detail
- 9.9 Approval options and policy-as-code
- 9.10 Agents and teams
- 9.11 Control artifacts
- 9.12 Adopting an existing Claude Code project
- 9.13 Governance: attestation, why-trace, export, compliance
- 9.14 Spec mode (spec-driven development)
- 9.15 Workflows
- 9.16 End-to-end example with the wizard
1. What the Software Factory is (and isn't)
The Agentic Software Factory is a local control plane for AI-assisted software development. Instead of driving a coding agent (Claude Code, OpenAI Codex, Kimi, Gemini, Aider) directly in the shell, you describe your plan in a user interface. The factory turns it into precise input for the agent, starts supervised runs, collects logs, tokens and cost, and enforces Git discipline and a build gate.
The idea behind it: you describe what you want and click „Bauen“ (build). The factory creates a project, starts a run, lets the agent work in its own folder, commits, builds and tests (depending on the project e.g. mvn verify, dotnet test, pytest). The outcome is a traceable result with Git history. The factory sets team, agent and checks with defaults; in the „Experte“ view you can change each of them.
Current maturity (honest): the factory does both — setting up a new project and developing a project over many versions: persistent workspace, import of existing projects, plan and build runs with a backlog, branch isolation, pull requests, an automatic correction loop, milestone releases and scheduled routines (see chapter 7). What is still missing or limited is listed in 7.4.
2. Getting started: the guided path
The path from an empty machine to the first result has five stops:
- First-time setup — once, by the administrator: choose AI access, check the system, get going.
- Quick start („Schnellstart“) — describe the project and click „Bauen“ (new project), or give a folder or Git address and say what should change (existing project).
- Run page — shows progress, „Was jetzt?“ (what now?) and the one button you need right now.
- Result — download as a ZIP, start it yourself, keep improving.
- Project page — the next task and all previous runs.
2.1 Install and log in
You need Java 25, Docker (only for the database), Git and the CLI of the AI agent you want to work with (e.g. Claude Code). The full list is in 4.1.
# in dist/einzelplatz/ (with the .jar placed next to it)
cp .env.example .env # adjust SOFTWAREFABRIK_ADMIN_PASSWORD!
./start.sh # Windows: ./start.ps1
Then open http://localhost:8080 and log in as admin with your SOFTWAREFABRIK_ADMIN_PASSWORD. The distribution JAR needs a license for runs with real AI agents (runs with the mock work without one): import the license file under Einrichtung → Lizenz (setup → license, section „Lizenz importieren“).
2.2 First-time setup (administrator)
As long as the first-time setup is not finished, the dashboard shows administrators the box „Willkommen — richte die Fabrik in drei Schritten ein“ (welcome — set up the factory in three steps) with the button „Ersteinrichtung starten“ (start first-time setup, /einrichtung/start). Next to it, „Nur Systemprüfung ansehen“ (only view the system check) leads straight to the system check. Other roles do not see the box.
AI access („KI-Zugang“). Under „KI-Agent“ pick one of the installed agents (Claude Code, OpenAI Codex, Google Gemini, Kimi Code, Aider). Each one shows whether it is installed and in which version. Under „Anmeldung“ (sign-in) you choose:
- „Ich habe ein Abo …“ (I have a subscription) — you sign in once in the CLI (e.g.
claude,codex login). Aider has no subscription mode. - „Ich nutze einen API-Schlüssel …“ (I use an API key) — enter the key. The factory stores it encrypted and checks it right away. Leaving it empty means: use the key that is already stored.
„Speichern und weiter“ (save and continue) makes the chosen agent the default. „Überspringen“ (skip) moves on without changes. „Erst ohne KI-Agent ausprobieren (Mock)“ (try without an AI agent first) makes the mock the default: a run shows the whole flow (steps, approval, checks) but produces no real code; it needs neither license nor key. You switch to a real agent later right here (Einrichtung → KI-Zugang).
- „Ich habe ein Abo …“ (I have a subscription) — you sign in once in the CLI (e.g.
System. The page shows only the system-check items that are not OK — with finding, explanation and a button for the next step (e.g. install tools or allow an import folder). At the top it says „Bereit für echte Läufe.“ (ready for real runs) or „Noch nicht bereit.“ (not ready yet). „Erneut prüfen“ (check again) re-checks after your fixes, „Weiter“ (next) goes to step 3.
Get going („Loslegen“). „Neues Projekt beschreiben“ (describe a new project) or „Bestehendes Projekt weiterentwickeln“ (develop an existing project further) completes the setup and opens the quick start with the matching path selected. The box then disappears from the dashboard.
The first-time setup has no license step. You can return to it any time via Einrichtung → KI-Zugang („Einfach“ view) or Einrichtung → Ersteinrichtung („Experte“).
System check („Systemprüfung“). Under Einrichtung → Werkzeuge & System or Einrichtung → Systemprüfung (/einrichtung/systempruefung, administrators only) you see on one page whether the factory is ready for a real run. The rows are grouped in four sections: „KI-Zugang“ (agent CLIs with version, sign-in via subscription or API key, active adapter), „System“ (git and Git author, Docker, workspace directory, license), „Build-Werkzeuge“ (build tools) and „Projekte holen und abgeben“ (import folders, Git hosts). Each row gives the finding (ok, warning, missing), one sentence of explanation and the next step. Keys are only checked for presence, never shown. The „Mock-Adapter aktiv“ notice in the header leads administrators here via „Zur Systemprüfung“: with the mock, runs turn green but produce no real code. If you picked the mock in the first-time setup, it is listed here as the active adapter (a warning, not an error).
2.3 New project: describe and build
„Neues Projekt“ (new project) on the dashboard and in the project list opens the quick start (/wizard/schnellstart). At the top you choose what you want to do: „Neues Projekt erstellen“ (create a new project, preselected) or „Bestehendes Projekt weiterentwickeln“ (develop an existing project further, section 2.4). Below, only the form for the chosen path is shown. For a new project three inputs are enough:
„Wie heißt das Projekt?“ (what is the project called?) — a name, e.g. "Snake Remake".
„Was für ein Projekt ist es?“ (what kind of project is it?):
Kind (UI label) Short Spiel mit MonoGame (.NET) 2D/3D desktop game Web-Anwendung mit Java (Spring Boot) server with a web UI Web-Anwendung mit Node.js und React API plus browser UI Python-Dienst (FastAPI) interface or tool in Python .NET-Anwendung (C#) service or library in C# Etwas anderes something else: the description decides; stack set later „Was soll entstehen?“ (what should be built?) — describe it the way you would explain it to a colleague: features, controls, what belongs in the first version.
Above the button a line „Kosten:“ (cost) shows the expected cost. For a new project this is a rough estimate (see 5.3).
Without a valid license: the mock walkthrough. If a real AI agent is set (Claude Code in the single-seat starter package) and the license situation currently allows no run with it — no license, license expired, daily or euro limit reached, trial version expired — a notice appears above the button: „Ohne gültige Lizenz läuft dieser Durchgang mit dem Mock (reason): Du siehst den ganzen Ablauf — Schritte, Freigabe, Prüfungen —, es entsteht aber kein echter Code.“ (without a valid license this run uses the mock: you see the whole flow, but no real code is produced). Administrators also get the link „Lizenz einrichten →“ (set up license). The button then reads „Mit dem Mock ausprobieren“ (try with the mock) and starts the run with the mock; the run page shows a „Mock-Lauf“ box with the reason. You need not change any setting. The same applies to „Bestehendes Projekt weiterentwickeln“, „Nächster Auftrag“ on the project page, „Neuer Lauf“ and the backlog. Only these entry points in the interface do this: routines, automatic follow-up proposals, workflows, spec runs and the API never fall back to the mock but are rejected without a license. If you explicitly pick a real agent in „Experte“, you get the rejection as well. Every rejection leads back to the form with your input kept; a rejected quickstart creates no project.
„Bauen“ creates the project and immediately starts the first run. The description is its task. You land on the run page. The factory fills in the rest with defaults: product name = name, language German, technology from the chosen kind. As the database it picks one without its own server: for „Web-Anwendung mit Java (Spring Boot)“ „H2 (eingebettet, Datei)“ (embedded H2, file mode) — the data lives in a file inside the project folder (data/) and survives a restart; the tests use an in-memory database. Everything stays editable on the project page.
If the run cannot start (e.g. missing rights, budget, policy), it stays as a draft. The run page names the reason.
2.4 Develop an existing project further
In the quick start, choose „Bestehendes Projekt weiterentwickeln“ at the top (directly: /wizard/schnellstart?weg=bestehend). Below, only its form is shown:
- „Wo liegt das Projekt?“ (where is the project?) — a folder on the machine the factory runs on, or a Git address (
https://…,ssh://…,git@host:path). - „Was soll geändert werden?“ (what should change?) — your task, e.g. "The game crashes on start when no highscore file exists. Please fix it and write a test for it."
„Importieren und bauen“ (import and build) creates the project (name = folder name), takes a copy of your project and starts the first run with your task. The factory detects language and build tool itself. Your original stays untouched.
For this to work, the administrator must have allowed the source:
- A folder must lie under an allowed import folder.
- A Git address must point to an allowed Git host (default
github.com).
An administrator sets both under Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts (import folders and Git hosts, /einrichtung/freigaben), without a restart. If the import fails, the project page opens. Its „Import“ section names the reason; „Jetzt importieren“ (import now) tries again.
2.5 The run page
The run page (/runs/{id}) answers three questions: where does the run stand, what happened, what now?
- „Auftrag“ (task) is at the very top: what the agent is to do, with your line breaks. A long task is collapsed: you see its beginning and „— ganzen Auftrag zeigen“ (show the whole task). Expanded, only the full text is shown (since 0.57.3 no longer twice); „Auftrag wieder einklappen“ (collapse the task) closes it.
- Status and phase are at the top, with German labels (e.g. „Agent arbeitet“, agent working; „Wartet auf deine Freigabe“, waiting for your approval).
- „Fortschritt“ (progress) shows a bar: „2 von 7 Schritten“ (2 of 7 steps).
- „Was jetzt?“ says in one sentence what to do next.
- „Aktionen“ (actions) shows only the buttons that work in the current state.
A started run works in the background; the page updates itself. Status, phase and progress follow along. When the state changes, the page reloads so that „Was jetzt?“ and the buttons are correct. If you are typing, a notice to refresh appears instead. You can close the page and come back later.
Approval with one button. When the run waits for you, the page shows „Änderungen seit Start des Laufs“ (changes since the run started) and the button „Freigeben und fortsetzen“ (approve and continue). „Begründung und Aufwand (freiwillig)“ (reason and effort, optional) is collapsed. Approving requires at least role MAINTAINER; on a single seat that is you as administrator. When a run waits for your approval is set by the guardrails (5.4).
More buttons:
| Button | When | Effect |
|---|---|---|
| „Lauf starten“ (start run) | run is a draft | starts the run (with a cost confirmation) |
| „Starten und gleich freigeben“ (start and approve right away) | run is a draft, an approval before execution would be due and you may give it yourself | starts the run and gives the approval before execution along with it (same cost confirmation as „Lauf starten“; see 5.4) |
| „Pausieren“ (pause) | run is working | stops at the next step boundary |
| „Fortsetzen“ (resume) | run is paused | resumes |
| „Abbrechen“ (cancel) | run has not ended | ends the run (with confirmation; reason optional) |
| „Erneut versuchen“ (try again) | run failed or was cancelled | starts a new run with the same task |
When something goes wrong. For failed or cancelled runs, the very top shows „Warum der Lauf gescheitert ist“ (why the run failed) or „Warum der Lauf abgebrochen wurde“ (why the run was cancelled) with the cause and a link to the logs. Below it, „Was soll anders sein? (freiwillig)“ (what should be different? optional) asks for a hint. The factory appends what you enter to the task. „Erneut versuchen“ creates a new run (title with „(erneut)“) and starts it.
„Build nicht geprüft“ (build not checked) appears as a warning, not an error: the factory did not detect a build, so the result is not tested automatically. What you can do about it is in 8.
Cost. The „Kosten“ card shows the total and the billing type. „Kosten je Schritt“ (cost per step) is collapsed in „Einfach“.
In the „Einfach“ view, „Schritte im Einzelnen“ (the phase table) and „Freigabeentscheidungen“ (approval decisions) are collapsed too. In „Experte“ they are open, and you additionally see branch, pull request, quality-gate result and the buttons „Git-Status“, „Quality-Gate“, „Warum-Trace“ (why-trace) and „Leitplanken dieses Laufs“ (guardrails of this run).
2.6 The result
When the run has ended, the „Ergebnis“ (result) card sums up:
- Where the changes are — in the project's workspace (branch, e.g.
main) or in the pull request when the project is connected to GitHub. For a run that did not complete, partial results are on the run branch. - Project folder — the path on the machine the factory runs on. If the factory runs on a server, the folder is there, not on your machine.
- „Geänderte Dateien“ — the list of changed files.
- „Selbst ausprobieren“ (try it yourself) — the factory builds and tests without a screen. You only see an application or game when you start it yourself. The card names the command, derived from the real project file (e.g.
dotnet runwith the executable.csprojrather than a test project,npm startornpm run dev,mvn spring-boot:run, a Python entry point). - „Ergebnis als ZIP herunterladen“ (download result as ZIP) — the project folder without Git data, dependencies and build artifacts (e.g. without
.git,node_modules,.venv), at most 500 MB.
After a successful run, two buttons lead on:
- „Weiter verbessern“ (keep improving; highlighted in green) opens „Neuer Lauf“ (new run) for the same project. Describe the next task and click „Bauen“. Since 0.57.3 the field is prefilled with the task of the project's most recent build run — without the hints that „Erneut versuchen“ appended — and below it says „Vorbelegt mit dem Auftrag des letzten Laufs — ändere ihn oder starte ihn so noch einmal.“ (prefilled with the task of the last run — change it or start it again as it is). If there is no build run yet, the field shows the project's target vision as before.
- „Vorschläge machen lassen“ (get suggestions) starts a plan run. It changes no code but writes suggestions for the next steps into the backlog (7.1).
„Ergebnis in ein eigenes Repository übernehmen →“ (take the result into your own repository) leads to the Git commands on the project page („Experte“ view, 7.1).
2.7 The project page: the next task
The project page (/projects/{id}) is the place for everything that follows. Top to bottom:
- Description — short description and „Zielbild“ (vision).
- „Nächster Auftrag“ (next task, from role
DEVELOPER) — „Was soll der nächste Lauf tun?“ (what should the next run do?) and „Bauen“. The button creates the run and starts it; the title is the first line of the task. If a run for the project is active, a notice appears here: only one run per project at a time. If build tools are missing, the card names them. If you may approve yourself, „Bauen und gleich freigeben“ (build and approve right away) sits next to it (see 5.4). - „Ergebnis“ — the result of the last successful run: „Ansehen und ausprobieren“ (view and try) or „Als ZIP herunterladen“ (download as ZIP).
- „Bisherige Läufe“ (previous runs) — the latest runs with status and date; „Alle Läufe“ (all runs) opens the run list.
- „Statusdatei“ (status file) — what the agent left in the status file (read-only) and the setting „Statusdatei führen“ (keep a status file) with its path (see 7.1).
- „Import“ — only for imported projects: source, preview, detected project profiles and baseline (dry run of the build gate, see 7.1).
- „Technische Einstellungen“ (technical settings) — collapsed in „Einfach“ ("the factory sets them automatically; change only if needed"). What is in there is explained in 9.6.
- „Kosten im laufenden Monat“ (cost this month) — usage and budget bar; „Budget verwalten“ (manage budget) opens the budget with the project preselected.
The project page also updates itself while an import or a dry run is running.
2.8 Ansehen: what it looks like
Build and tests do not tell you whether the result looks right. With „Ansehen“ (look at it) the factory takes pictures after a successful build run and shows them on the run page in the section „So sieht es aus“ (what it looks like). You look at them; on request a model also names conspicuous things (advisory, see „Bilder bewerten lassen“ below).
Switching it on: project page → build settings → „Ansehen: Bilder nach dem Build“ (off by default). Whoever may change the build settings may change it (maintainer and above). Commands are entered one argument per line — there is no shell line (no pipes, no &&).
Kind „Web“ — for web user interfaces:
- Start command, e.g.
npm/start(two lines) ormvn/-q/spring-boot:run. The command getsPORT,HOST=127.0.0.1andSERVER_ADDRESS=127.0.0.1— let your application honour these values. - Port (1024–65535), paths (default
/, one per line) and window sizes (default1280x800and390x844), waiting time until the port answers. - After the run the factory fetches this run's state (its commit) into a separate working folder, prepares it (e.g.
npm ci), starts the application, waits for the port and lets a browser (Google Chrome, Chromium or Microsoft Edge) take pictures ofhttp://127.0.0.1:<port><path>. Afterwards it stops the application including all child processes. Your project folder is left untouched.
For a Node or Spring Boot project the page suggests start command and port; check the port before you save. Next to each picture you see — if there is one — the picture of the same address and size from the last earlier run, plus the HTTP status and the page title.
Kind „Programm“ (program) — for desktop programs and games: the factory cannot look into another program's window. So your program takes the pictures itself, in a demo mode. The factory calls the picture command and sets the environment variable FABRIK_BILDER_ORDNER to an empty folder (outside the project folder). The program renders a few meaningful states, writes one PNG per state there and exits without input and without network with exit code 0. While this kind is switched on, the factory tells the agent so in every build run — the agent builds the demo mode itself.
Example MonoGame: picture command dotnet / run / --project / Spiel.DesktopGL / -- / --bildschirmfotos. A suggestion for the demo mode (the agent may solve it differently):
// Game1.cs — only active when FABRIK_BILDER_ORDNER is set
private readonly string _bilderOrdner = Environment.GetEnvironmentVariable("FABRIK_BILDER_ORDNER");
private readonly string[] _zustaende = { "start", "spiel", "pause" };
private RenderTarget2D _ziel;
private int _bild;
protected override void Draw(GameTime gameTime)
{
if (_bilderOrdner != null && _bild == _zustaende.Length) return; // schon fertig
if (_bilderOrdner != null) GraphicsDevice.SetRenderTarget(_ziel ??= new RenderTarget2D(GraphicsDevice, 1280, 720));
ZeichneZustand(_bilderOrdner == null ? _aktuell : _zustaende[_bild]); // as in the game
if (_bilderOrdner == null) return;
GraphicsDevice.SetRenderTarget(null);
using (var datei = File.Create(Path.Combine(_bilderOrdner, $"{_bild + 1:00}_{_zustaende[_bild]}.png")))
_ziel.SaveAsPng(datei, _ziel.Width, _ziel.Height);
if (++_bild == _zustaende.Length) Exit(); // exit code 0, no input needed
}
On Linux without a display the factory starts the command with xvfb-run if it is installed. A game still needs a graphics interface — if that fails, the reason is shown on the run.
On the run: the pictures appear scaled down, a click opens the picture, and the section names the commit they come from. While they are being made the page says „Bilder werden gemacht …“ (pictures are being made). „Jetzt ansehen“ (look now) takes new pictures of this run's state — also for an older run and for a run with a pull request (same role as „start run“). If the factory could not look (no browser, port in use, start failed, time limit, no valid pictures, commit deleted), the section names the reason — the run stays green anyway. If you start a new run, the factory aborts pictures in progress („abgebrochen“).
„Dazu einen Auftrag anlegen“ (create a task for it): below each picture you describe what is wrong. This becomes a new run with the same agent. Claude Code gets the picture as a file in the project folder (.fabrik-bild/, never versioned, removed after the run) and, in the task, the note that it is a screenshot and not a task. Agents that cannot read pictures only get your text — with the note that no picture was handed over. Without your click the factory does not fix anything by itself.
„Bilder bewerten lassen“ (have the pictures judged): below the pictures, with the same role as „start run“, together with a cost estimate („kostet ungefähr …“) and the access used (e.g. the Claude Code CLI with your subscription). A model then names conspicuous things — empty page, cut-off text, overlapping elements, unreadable text, a visible error message, for web also a layout that changed since the last run — with a severity (low, medium, high) right at the picture, or „Sieht in Ordnung aus“ (looks fine). This is a model's assessment, advisory: it can be wrong, never fails a run and starts nothing. Next to each finding „Als Folgeauftrag“ (as a follow-up task) leads to the form above; the finding goes along as marked foreign text, your own text may stay empty. The cost appears on the run, project and tenant budgets and the euro limit apply; at most three judgements per set of pictures and at most 20 paid judgements per project and day (click and automatic together, configurable by the operator). When the daily limit is reached, the automatic judgement pauses until the next day as well. In the „Ansehen“ setting you can switch on „Nach jedem Ansehen die Bilder automatisch bewerten lassen“ (judge automatically after every look; off by default). If it did not work (no AI access, budget reached, time limit, unusable answer), „Nicht bewertet: …“ (not judged) shows the reason.
Limits: web only without the container sandbox and only with Chrome, Chromium or Edge installed on the factory's machine. Programs only if the project has the demo mode. At most 12 pictures per run, at most 5 MB each, only real PNG with 8 bits per channel. Older pictures go when a project uses more than 200 MB. No input, no videos; a verdict only as an advisory judgement by a model.
Caution: while looking, project code runs as a process on the factory's machine — as in the build: without the factory's secrets, with a time limit, in a working tree of its own on the run's commit (not in the project folder), stopped afterwards.
3. View: simple or expert
With the switch „Einfach | Experte“ (simple | expert) at the top of the header you choose how much the interface shows. „Einfach“ shows fewer options and sets defaults instead. „Experte“ shows all options. The choice is per user and is saved.
The mode is presentation, not permission. What you may do is decided by your role alone (VIEWER, DEVELOPER, MAINTAINER, OWNER, ADMIN). You see what both role and mode allow. Pages of the expert view stay reachable via their address.
Defaults:
- A freshly installed factory starts the first administrator on „Einfach“.
- Existing users stay on „Experte“.
- New users without a choice of their own:
VIEWERandDEVELOPER„Einfach“,MAINTAINER,OWNERandADMIN„Experte“.
What differs:
| Area | Einfach | Experte additionally |
|---|---|---|
| Navigation | Dashboard, Projekte, Läufe; Einrichtung (setup) in the user menu (click your initial) | Auswertung (analytics); Einrichtung in the main navigation |
| Quick start | name, kind, description, „Bauen“; existing project with location and task | „Nur Projekt anlegen“ (only create project), „Zum ausführlichen Assistenten“ (to the detailed wizard), own name on import, „Import mit allen Optionen (Assistent)“ |
| New run | project, task, „Bauen“ | team, title, AI tool (adapter), „Nur anlegen“ (only create) |
| Run page | status, progress, „Was jetzt?“, actions, result, cost; details collapsed | details open; branch, pull request, quality gate, correction attempts; Git status, why-trace, guardrails of this run |
| Project page | description, next task, result, previous runs; technical settings collapsed | technical settings open; „Lauf mit allen Optionen anlegen“ (run with all options), „Ergebnis übernehmen“ (take over result), „Generierte Artefakte“ (generated artifacts) |
| Setup („Einrichtung“) | five cards: KI-Zugang, API-Schlüssel, Werkzeuge & System, Sicherheit, Kosten (for administrators also „Vorgaben für alle Projekte“, rules for all projects) | grouped by start, AI and tools, security and cost; for administrators the collapsed „Betrieb und Nachweise“ (operations and evidence) |
| Guardrails („Leitplanken“) | choose a level | approval as one of three options, individual values |
| Agent | „Was der Agent darf“ (what the agent may do); texts for AGENTS.md collapsed |
texts open |
Terms: the interface says „Lauf“/„Läufe“ (run/runs), spells „Quality-Gate“ and shows statuses, phases and decisions with German labels. Technical names (e.g. WAITING_FOR_APPROVAL) are no longer shown in the interface since 0.55. The area for settings is called „Einrichtung“ (setup; up to 0.48 „Verwaltung“).
The interface also works on narrow screens (tables scroll sideways). Delete and discard actions ask for confirmation first. Forms lock their buttons after submitting so nothing is triggered twice.
4. Installation and AI access in detail
For getting started, 2.1 and the first-time setup are enough. This chapter describes all operating modes in detail. You can set adapter and sign-in type in the interface (first-time setup or Einrichtung → Einstellungen, table „KI-Zugang“) or in .env; a value set in the interface takes precedence over .env.
The single seat runs hybrid: Postgres in a Docker container, the factory app natively as your OS user. Reason: in plan mode the factory calls the agent CLI (claude / codex) as the same OS user and reads its login from the home directory — in a container neither the CLI nor the login would exist.
4.1 Prerequisites
| What | For | Check |
|---|---|---|
| Java 25 (JRE/JDK) | runs the factory | java -version |
| Docker (Desktop/Engine) | only for Postgres | docker compose version |
| Agent CLI (one of them) | called as a subprocess | claude --version / codex --version / kimi --version / gemini --version / aider --version |
| Git | workspaces, diffs | git --version |
| (target project's build tool) | for the build gate. The factory installs JDK, Maven, Gradle, .NET SDK, Node.js, Go and uv itself under Einrichtung → Werkzeuge (setup → tools); other stacks (e.g. Rust, CMake, Poetry) need their own tool or the container sandbox | depends on stack |
| (optional) Trivy | SBOM and dependency/licence scan | trivy --version |
| (optional) Docker/Podman | container sandbox per run | docker --version |
The single-seat starter package lives in the repo under dist/einzelplatz/ (compose.yml, .env.example, start.sh, start.ps1, install-softwarefabrik.sh, install-voraussetzungen.sh, install-voraussetzungen.ps1, uebernehmen.sh, uebernehmen.ps1, README.md, KURZANLEITUNG.md, INSTALLATION.html, ANLEITUNG-TESTER.html, PROJEKT-ANLEITUNG.html). scripts/tester-paket.sh builds it as a ZIP with the distribution JAR; if you only have the files from the repository, place softwarefabrik-app.jar from the GitHub release next to the start scripts. The start scripts check Java 25, Docker, git and the CLI of the selected adapter, and point out a missing git-lfs, dotnet or mvn. The distribution JAR requires a license for real AI agents (runs with the mock work without one): after the first start, request the Community license or import the license file under Einrichtung → Lizenz („Lizenz importieren“). KURZANLEITUNG.md (German) walks through a test with your own repository in ten steps.
4.2 Mode A — Claude plan (sign-in)
Runs use your Claude Max/Pro plan instead of an API key.
- Sign in once:
Credentials then live underclaude # go through the login/OAuth flow~/.claude(Linux/WSL/macOS) or%USERPROFILE%\.claude(Windows). - In
.env:
In plan mode the factory actively strips anySOFTWAREFABRIK_EXECUTION_ADAPTER=claude SOFTWAREFABRIK_CLAUDECODE_AUTH_MODE=subscriptionANTHROPIC_API_KEYfrom the subprocess (otherwise the key would take precedence over the plan). - Optional, if credentials are not at the default location:
SOFTWAREFABRIK_CLAUDECODE_CONFIG_DIR=/path/to/.claude
Personal use. Plan mode is intended for personal use: you, the plan holder, run the factory yourself on your own machine, with your own Claude plan, on the unmodified Claude Code CLI. If several people work with one instance, it belongs in operating mode
TEAM_API_POOLwith an API key or gateway.Billing (as of 2026-10-18): the runs count against your plan's usage limits; no separate API bill is created. According to Anthropic support (article 15036540) the announced change to programmatic use has been paused since 2026-06-15 —
claude -p, the Agent SDK and third-party apps still draw from the plan limits. Since 2026-10-07 Max and Team plans additionally include monthly API credits (Agent SDK,claude -p, Claude API, Managed Agents); these do not cover Claude Code itself and do not change the usage limits (API credits). The advertised limits for Pro/Max assume "ordinary, individual usage" (Legal and Compliance).The EUR costs the factory shows per run are computed as tokens × API price table. In plan mode they are an estimate at API rates and are not billed — the cost views (why-trace, cost per tenant/seat, CSV) flag such runs as "estimate (API rates), not billed".
4.3 Mode B — Codex plan (Sign in with ChatGPT)
Analogous, with OpenAI Codex on a ChatGPT Plus/Pro plan.
- Sign in once:
Credentials land incodex login # "Sign in with ChatGPT"~/.codex/auth.jsonor%USERPROFILE%\.codex\auth.json. - In
.env:
In plan modeSOFTWAREFABRIK_EXECUTION_ADAPTER=codex SOFTWAREFABRIK_CODEX_AUTH_MODE=subscriptionOPENAI_API_KEYis actively stripped from the subprocess. - Optional, if the credentials are not in the default location:
SOFTWAREFABRIK_CODEX_CONFIG_DIR=/path/to/.codex
The auth mode is also switchable in the UI under Einrichtung → Einstellungen (table „KI-Zugang“) and takes effect without a restart (max. 5 min cache).
4.4 Mode C — Kimi plan (Moonshot AI)
Same idea as Claude and Codex, using the Kimi CLI with a "Kimi for Coding" membership (flat rate instead of per-token billing).
- Sign in once:
Credentials land inkimi login~/.kimi-codeor%USERPROFILE%\.kimi-code. - In
.env:
Note: the Kimi CLI reads keys only from itsSOFTWAREFABRIK_EXECUTION_ADAPTER=kimi SOFTWAREFABRIK_KIMI_AUTH_MODE=subscriptionconfig.tomlor theKIMI_MODEL_*override trio. In subscription mode the factory actively strips that trio from the subprocess; in API-key mode it injects it fromKIMI_API_KEY/MOONSHOT_API_KEYor (from 0.41.2) the Kimi key stored under Integrations — agent runs do not see a hostconfig.toml(see 4.7). - Optional, if the credentials are not in the default location:
SOFTWAREFABRIK_KIMI_CONFIG_DIR=/path/to/.kimi-code
In subscription mode the model aliases
k3andkimi-for-codingare valid; the cost view reports them at €0.00 because a flat rate incurs no token cost.
Gemini plan (Login with Google)
Analogous, with the Gemini CLI on your Google account (Google AI plan or Gemini Code Assist) instead of an API key.
- Sign in once: start
geminiinteractively and choose "Login with Google". Credentials land in~/.gemini/oauth_creds.jsonor%USERPROFILE%\.gemini\oauth_creds.json. - In
.env:
In subscription mode the factory removesSOFTWAREFABRIK_EXECUTION_ADAPTER=gemini SOFTWAREFABRIK_GEMINI_AUTH_MODE=subscriptionGEMINI_API_KEYandGOOGLE_API_KEYfrom the subprocess and setsGOOGLE_GENAI_USE_GCA=true, so the CLI uses the Google login and never silently falls back to an API key. - Optional, if the credentials are not in the default location:
SOFTWAREFABRIK_GEMINI_CONFIG_DIR=/path/to/.gemini
If the Gemini CLI keeps its credentials in the system keychain instead of
oauth_creds.json, agent runs cannot find them (see 4.7).
4.5 Mode D — API keys
Classic API-key operation (no plan sign-in). Auth mode stays the default api-key; you just provide the matching key.
| Adapter | .env |
Key |
|---|---|---|
| Claude Code | SOFTWAREFABRIK_EXECUTION_ADAPTER=claude |
ANTHROPIC_API_KEY=sk-ant-… |
| OpenAI Codex | SOFTWAREFABRIK_EXECUTION_ADAPTER=codex |
OPENAI_API_KEY=sk-… |
| Google Gemini | SOFTWAREFABRIK_EXECUTION_ADAPTER=gemini |
GEMINI_API_KEY=… |
| Aider | SOFTWAREFABRIK_EXECUTION_ADAPTER=aider |
depends on backend model |
| Kimi (Moonshot) | SOFTWAREFABRIK_EXECUTION_ADAPTER=kimi |
KIMI_API_KEY=… or MOONSHOT_API_KEY=… |
| Local model | SOFTWAREFABRIK_EXECUTION_ADAPTER=local-llm |
— (OpenAI-compatible endpoint) |
| AWS Bedrock | SOFTWAREFABRIK_EXECUTION_ADAPTER=bedrock |
AWS credentials (experimental) |
| Google Vertex AI | SOFTWAREFABRIK_EXECUTION_ADAPTER=vertex |
GCP credentials (experimental) |
| Azure OpenAI | SOFTWAREFABRIK_EXECUTION_ADAPTER=azure-openai |
Azure credentials (experimental) |
| Mock (no tool/key) | SOFTWAREFABRIK_EXECUTION_ADAPTER=mock |
— |
The three cloud gateways (Bedrock, Vertex, Azure OpenAI) are implemented but not verified end-to-end against real cloud credentials. Verify before production use.
Example (Claude via API key):
SOFTWAREFABRIK_EXECUTION_ADAPTER=claude
SOFTWAREFABRIK_CLAUDECODE_AUTH_MODE=api-key
ANTHROPIC_API_KEY=sk-ant-...
Tip for cost-free exploration: with the mock you can walk the entire run flow without a real agent — ideal for learning the UI and lifecycle before spending real money/tokens. „Erst ohne KI-Agent ausprobieren (Mock)“ in the first-time setup is enough; without a license, runs started from the interface use the mock anyway, announced beforehand (see 2.3).
SOFTWAREFABRIK_EXECUTION_ADAPTER=mocksets it as the fixed default.
4.6 Mode E — Local model (air-gap)
For operation without any network access: an OpenAI-compatible local backend (Ollama, vLLM, LM Studio, self-hosted).
SOFTWAREFABRIK_EXECUTION_ADAPTER=local-llm
For true air-gap operation, additionally:
- enable the container sandbox (Leitplanken page: level „Vorsichtig“ or the single value sandbox
container; orSOFTWAREFABRIK_EXECUTION_SANDBOX_VARIANT=container); it encapsulates build and scans per run in an ephemeral container. The agent CLIs run as host processes — for a real air gap, block network access at host/network level (firewall, egress rules) and point Maven at an internal mirror, - leave PR/CI feedback off (the default) and keep the remote host allowlist empty or restricted to internal hosts,
- licence without a callback channel: see
docs/adr/0009-air-gap-ueber-refresh-required-false.md.
4.7 Isolation of agent runs (MCP null state)
Every agent CLI call gets a fresh, empty HOME. In plan mode the factory copies only the sign-in data from your configuration directory (Claude .credentials.json, Codex auth.json, Kimi credentials/, Gemini oauth_creds.json) and writes refreshed tokens back after the run. Your MCP servers, plugins, hooks, settings.json/config.toml and Git identity therefore do not apply to agent runs — by design (ADR-0017). The plugin approval under Policy as Code → Allowed plugins is recorded but has no effect in agent runs: no plugins are installed in the empty HOME.
The same applies to configuration that an imported repository brings along: Claude Code starts with --setting-sources=user and hooks turned off, so it reads neither the repository's .claude/settings.json (hooks, env, helper commands) nor its .mcp.json. If the factory finds such entries in the workspace, it records them in the audit chain (AGENT_KONFIG_AUSFUEHRBAR_VORGEFUNDEN). For your own, trusted Claude Code projects the project level can be enabled per project (CLAUDE.md, subagents, skills, settings.json; hooks and .mcp.json stay off), see "Adopting an existing Claude Code project" in section 9.12.
The BAIT/MaRisk/DORA and BSI/VS-NfD compliance profiles additionally enforce the MCP default ban: agent CLIs run only with a passed isolation proof for the installed CLI version. Until one exists, only the mock adapter is usable there. Create the proof under Einrichtung → Betrieb und Nachweise → Isolationsnachweise (isolation proofs) via "Run canary" (two short CLI calls per version; attestation signing must be active). Every CLI update needs a new run.
4.8 Starting & logging in
# in dist/einzelplatz/ (with the .jar placed next to it)
cp .env.example .env # set SOFTWAREFABRIK_ADMIN_PASSWORD!
./start.sh # Windows: ./start.ps1
The script brings up Postgres and starts the factory. Then open http://localhost:8080, log in as admin / your SOFTWAREFABRIK_ADMIN_PASSWORD.
Stop: Ctrl+C (app) and docker compose down (Postgres; -v also deletes the data).
4.9 Switching to a new version
From 0.46 the starter package includes uebernehmen.sh (Linux, WSL, macOS), and for Windows uebernehmen.ps1 (PowerShell). Unpack the new version into its own folder (do not overwrite the old one), stop the old factory with Ctrl+C, then in the new folder:
./uebernehmen.sh /path/to/old/version
./start.sh
or on Windows (if scripts are blocked: powershell -ExecutionPolicy Bypass -File .\uebernehmen.ps1 …):
.\uebernehmen.ps1 C:\path\to\old\version
.\start.ps1
Both scripts behave the same. On Windows the script renames the folder in one step on the same drive and otherwise copies it with robocopy via a staging folder (junctions and symbolic links are copied as links); if a program has files in the workspaces open, it stops without changing anything.
.envis taken over; an existing.envin the new folder is backed up first.- Database (projects, runs, settings):
./start.shtakes it over on the first start; the old database volume stays as a backup. - Workspaces move into the new folder (
./workspaces): moved on the same drive, copied otherwise. This includes workspaces that earlier version switches left in an older package folder. On the first start the factory rewrites the stored paths (projects, runs, sub-runs, SBOMs) to the new location and repairs the git worktree links; the markerSF_WORKSPACES_UMZUG_VONin.envmay stay. Only after a complete, verified move does the script write the completion markerworkspaces/.umzug-fertig(copies go through a staging folder, so./workspacesnever holds a partial copy); without it the factory rewrites nothing. If./workspacesalready holds data without a matching marker, the script stops without changing anything. A workspace folder of your own outside the package folders (SOFTWAREFABRIK_WORKSPACES_ROOT, e.g.~/softwarefabrik/workspacesfrominstall-softwarefabrik.sh) stays where it is — so does a folder that<old>/workspacesmerely links to (symlink). If the script cannot tell whether the old factory is still running, it asks; anything it cannot map unambiguously stays untouched and the script stops with a message. - The Claude login (
~/.claude), the factory's tools (~/.softwarefabrik/werkzeuge) and the API key (in the database) are kept anyway.
Delete the old folder only once the factory reports “Workspace-Umzug ABGESCHLOSSEN” on start-up, no “Workspace-Umzug … FEHLGESCHLAGEN” line appears (including the second line “Workspace-Umzug (git-Worktrees) …”) and the projects show their files in the new version. A FEHLGESCHLAGEN line names the reason and the way out — keep the old folder then. If nothing was moved (own workspace folder, no workspaces), none of these lines appears; then it is enough that the projects show their files. ./uebernehmen.sh --workspaces-belassen /path/to/old/version (Windows: .\uebernehmen.ps1 C:\path\to\old\version -WorkspacesBelassen) leaves the workspaces in the old folder (previous behaviour) — then do not delete the old folder.
From 0.46 the database volume and the Compose project have fixed names (sf-einzelplatz-pgdata, sf-einzelplatz); previously they depended on the folder name, and a new version folder started with an empty database.
Windows by hand — fallback only, if uebernehmen.ps1 aborts and the reported cause cannot be fixed: stop the old factory and run docker compose down in the old folder; copy .env into the new folder; move the workspaces folder into the new folder (if the old .env pointed SOFTWAREFABRIK_WORKSPACES_ROOT into an older package folder, move that folder and delete the line); add to the new .env:
SF_WORKSPACES_UMZUG_VON=C:\path\old\workspaces
SF_ALTE_DATENBANK=<foldername>_sf-einzelplatz-pgdata
SF_WORKSPACES_UMZUG_VON is the location the old version used (separate several with ;); docker volume ls shows the volume name. Only once the move is completely finished, create the completion marker (PowerShell in the new folder; without it the factory reports “nicht abgeschlossen” and rewrites nothing):
Set-Content -Encoding UTF8 -Path .\workspaces\.umzug-fertig -Value 'C:\path\old\workspaces'
With several old paths, one line per path: -Value 'C:\a\workspaces','C:\b\workspaces'.
start.ps1 then takes over the database and the workspace paths as on Linux; delete the old folder only once the factory reports “Workspace-Umzug ABGESCHLOSSEN” on start-up, no FEHLGESCHLAGEN line appears and the projects show their files in the new version.
5. What happens in a run
A run („Lauf“) is a supervised execution of the agent against a task. This chapter explains what happens between „Bauen“ and the result.
5.1 Phases and statuses
A run goes through seven business phases:
INTAKE → PROMPT_ASSEMBLY → WORKSPACE_PREPARATION → EXECUTION → VALIDATION → CORRECTION → COMPLETION
and technical statuses: DRAFT → READY → PREPARING → RUNNING → (WAITING_FOR_APPROVAL) → VALIDATING → COMPLETED (or NEEDS_CORRECTION, WAITING_FOR_PR, WAITING_FOR_INPUT, FAILED, TIMEOUT, CANCELLED, PAUSED).
Flow:
- Start (draft or ready →
PREPARING): the factory creates the workspace (git initor import on the first run), writes the Markdown artifacts and commits them (checkpoint). „Bauen“ starts this step right away; a draft starts with „Lauf starten“. RUNNING: the agent works. The logs („Logs anzeigen“) follow live.VALIDATING: the build gate builds and tests (5.5).COMPLETEDorNEEDS_CORRECTION.
The run works in the background. „Pausieren“ (pause) stops at the next step boundary, „Fortsetzen“ (resume) continues, „Abbrechen“ (cancel) ends it. An action that does not fit the current state (double click, second tab) leads back to the run with a notice. The dashboard only shows statuses that have runs in them.
5.2 Usage limit in subscription mode
Usage limit in subscription mode (from 0.43): if Claude Code or Codex hits the subscription quota in subscription mode (5-hour, weekly or model limit), the run no longer fails but goes to PAUSED. The run page shows when it will continue on its own: the reset reported by the CLI plus one minute, or after 30 minutes if the CLI reports none. The factory then repeats the interrupted agent call (for a correction with the same feedback) and carries on, even after a restart of the factory. "Fortsetzen" (resume) brings the start forward, "Abbrechen" (cancel) ends the run, also while it is resuming. Before resuming, the factory checks the budget and the attestation requirement again; if another run is using the same workspace, it waits. The paused run keeps its slot in the parallelism limit. After five pauses per run it fails as before. API-key mode is unchanged. Billing limits such as a spend limit or exhausted credits do not count as a usage limit. Settings: softwarefabrik.execution.usage-limit.* (auto-fortsetzen, max-pausen, puffer-sekunden, standard-wartezeit-minuten).
5.3 Cost and budgets
Cost (from 0.42): the run page shows a "Kosten" (cost) card with the total and the split by phase — EXECUTION for the agent (including correction loops), VALIDATION for the reviews in the quality gate — plus the billing type: API billing, subscription estimate (tokens valued at API rates, not billed) or both. While the run is active the figure refreshes every five seconds; the agent reports its usage after each call (for Claude Code after each pass, not token by token). The run list has a cost column ((Abo) marks estimates), and the project page shows the cost of the current month with a budget bar: amber from the project budget's alert threshold, red when exceeded.
Budgets still apply before the start: if a budget with enforcement is exceeded, no new run starts. The factory does not stop a running run. For Claude Code it passes the remaining hard budget (project budget with enforcement, tenant hard cap, licence euro limit — the smallest wins) per agent call as --max-budget-usd (converted with the price table's USD→EUR factor); the CLI aborts the call when it reaches the limit. Other adapters have no such limit.
Cost estimate before the start (from 0.42): before every start the factory shows what the run is likely to cost — on the run page ("Vor dem Start", plus a confirmation when you click "Start run"), in the quick start, in the „Neuer Lauf“ (new run) form, in the backlog before „Plan-Lauf starten“ and "Aktivieren", in a workflow before "Bereite Tasks starten" (one child run per ready task) and before "Analysieren mit KI" in artefact evolution. If the project has at least three finished runs of the same kind (build/plan/spec) with the same model, it is a range: median and P80 of the last ten such runs (agent plus reviews). Otherwise it is a rough estimate from the size of the known texts (objective and project definition) with factors for the agent re-reading its context — it shows the order of magnitude, not the amount. For the AI merge, the project's previous merges count, or else the size of the control artefacts (upper bound; without a conflict there is no cost).
5.4 Approval and inline diff
Before the execution phase (EXECUTION) an approval gate kicks in: the run goes to WAITING_FOR_APPROVAL. Without an active approval policy this is done by the setting run.approval-vor-merge (on by default) — despite its name it holds the run before EXECUTION, not before the merge. An additional approval before the merge (phase VALIDATION) exists when an approval policy or policy-as-code requires it (see the administration manual, chapter 6), and always when the build stayed „nicht geprüft“ (not checked, see 5.5). On the run detail page you see an inline diff of the workspace changes since the earliest checkpoint (up to 256 KB) and approve via "Approve and continue" (UI label „Freigeben und fortsetzen“; role MAINTAINER or higher, optionally with a reason). "Cancel" („Abbrechen“) ends the run instead (CANCELLED).
Start and approve right away (since 0.59.0)
If a run would wait for your approval before execution, a second button sits next to the start button:
| Where | Start button | Second button |
|---|---|---|
| Run page of a draft, card „Aktionen“ | „Lauf starten“ (start run) | „Starten und gleich freigeben“ (start and approve right away) |
Form „Neuer Lauf“ (/runs/new) |
„Bauen“ (build) | „Starten und gleich freigeben“ |
| Project page, card „Nächster Auftrag“ | „Bauen“ | „Bauen und gleich freigeben“ (build and approve right away) |
With it you give the approval before execution at start; the run does not stop there and the agent begins at once. What for: with a small, clear task („Fix the typo in the title of the start screen“) you do not have to wait next to the run until it reaches the stop. You only see the button if
- an approval before execution is due for this run at all,
- you may give it yourself (role
MAINTAINERor higher, project in your tenant), and - no rule requires another person or the stop itself: neither the four-eyes principle nor a policy-as-code that makes the approval before execution mandatory.
On a single seat you are administrator: with the guardrail level „Ausgewogen“ (default) or „Vorsichtig“ and the four-eyes principle off you see the button; with „Schnell“ there is no stop before execution and therefore no second button.
How the factory checks. On submit it checks the same again. If it does not apply (for instance because an administrator has meanwhile switched on the four-eyes principle), nothing starts and the page reports „Starten und gleich freigeben geht hier nicht: …“ (not possible here) with the reason, e.g. „Das Vier-Augen-Prinzip ist an: Eine andere Person muss den Lauf freigeben.“ (the four-eyes principle is on: another person must approve the run) or „Für diesen Lauf steht keine Freigabe vor der Ausführung an — „Lauf starten“ genügt.“ (no approval before execution is due — „Lauf starten“ is enough). After the start the actions show „Freigabe beim Start vorgemerkt von …“ (approval at start noted by …). At the stop the factory checks a third time: four eyes and policy-as-code, and whether your account is still active, may approve according to its stored role and belongs to the project's tenant. If everything still holds, it says „Freigabe vor der Ausführung: beim Start erteilt von … am … Uhr. Sie gilt nur für diesen Lauf und nur für diesen Halt.“ (given at start by … at …; applies only to this run and this stop). If anything changed, the run waits for an approval as usual and the run page names the reason („Die Freigabe beim Start (von …) galt nicht: … Der Lauf wartet wie gewohnt auf eine Freigabe.“ — the approval at start did not apply).
What the button does not do. The approval applies only to the stop before execution and only to this run. Further stops, if configured, remain: the approval before the merge (only with a matching approval policy or policy-as-code) and the one for „Build nicht geprüft“ (build not checked). Out of the box there is no further stop after the one before execution: a checked build is merged without another stop. „Erneut versuchen“ (try again) creates a run that waits again. The cost confirmation before the start appears as with a normal start. The approval is recorded like a normal one under „Freigabeentscheidungen“ (approval decisions; reason „Vorab beim Start erteilt“, given in advance at start, your name, the time) and in the audit chain.
When a run waits for your approval is set by an administrator under Einrichtung → Sicherheit or „Leitplanken“ (guardrails, /leitplanken). Three levels set approval, quality check and sandbox at once:
| Level | Approval | Quality check | Sandbox |
|---|---|---|---|
| Vorsichtig (careful) | before execution | blocking, strict | container |
| Ausgewogen (balanced, default) | before execution | advisory, lenient | unchanged |
| Schnell (fast) | never | advisory, lenient | unchanged |
A project can additionally switch the approval on, but not off when it is on globally or for the tenant. Details: 9.8 and 9.9.
5.5 Build, check, correct
In the VALIDATION phase the factory builds and tests the project with the matching tool. It detects the stack by its project files (Maven, .NET, Gradle, Python, Node.js, Go, Rust, CMake). If it detects no build, the result is „nicht geprüft“ (not checked) — that does not count as passed, and by default the run waits for your approval. All details (build command, build directory, build container, missing tools) are in 9.6.
After a successful build the quality gate runs: reviewers check the changes for security, architecture and invented references. By default it only advises (9.7).
When something fails, the automatic correction loop kicks in: the factory feeds the feedback as a work instruction into another agent pass on the same run branch (NEEDS_CORRECTION → RUNNING). Triggers are
- a red build,
- a blocking quality gate (mode
blocking, resultFAILED/ERROR), - a merge conflict when merging into the base branch,
- a red PR CI (only with PR feedback enabled,
git.pr-feedback.enabled).
There are at most 2 automatic correction attempts per run. After that the run stays in NEEDS_CORRECTION; the work remains on the run branch for inspection, and you create a new run with an adjusted objective (see chapter 7).
6. Workspace and Git
Every project has a persistent workspace under <workspaces-root>/<project-slug>/workspace/. It contains:
- a Git repo initialized by the first run (or cloned/copied on repo import),
- the generated Markdown artifacts (rewritten from the project definition on every run; with drift protection manual edits are kept, see below),
MEMORY.mdfrom the curated project memory,PROJECT_NOTES.mdwith the project's rules for all runs and the rules for all projects (see 7.1),- the status file (suggested
STATUS.md) if the project keeps one — it belongs to the agent and to you; the factory only creates it if it is missing (see 7.1), AGENTS.mdwith the engineering guardrails as the shared, vendor-neutral basis for all agents (from 0.46 with the agents of the default team), plus aCLAUDE.mdthat imports it via@AGENTS.md(Claude Code does not load a file that is merely mentioned). The run task namesPROJECT.md,INSTRUCTIONS.md,AGENTS.mdandMEMORY.mdexplicitly, because agent runs load no project settings — and therefore no project memory files — on their own for isolation reasons,- the code produced by the agent.
Important: the workspace belongs to the project, not the run. A follow-up run continues on the existing code — that is what makes iterative development possible. Each build run branches off to
sdlc/run-<id8>and, on success, is merged into the base branch or opened as a pull request. On failure the work stays on the run branch for inspection and the base stays clean.Consequence: only one run per project executes at a time (concurrency guard). Different projects run in parallel. Exception: with the workflow layer switched on (
SOFTWAREFABRIK_WORKFLOW_ENABLED=true, off by default), the child runs of a workflow run in parallel, each in its own Git worktree (see the administration manual, section 13a).
How to bring the result into your own repository without GitHub is described in 7.1 ("Take over the result"). How to protect the control artifacts (AGENTS.md etc.) against being overwritten is in 9.11.
6.1 git in the project folder: what the factory does not do (since 0.57.2)
git executes what .git/config and .git/hooks of the folder it runs in contain. An agent can write both, so can the code it builds, and an imported repository brings both along. So that this does not become a way to start foreign programs with the factory's rights, the factory has been calling git with fixed overrides since 0.57.2 and checks the project folder's configuration before every call. For your work this means:
- No hooks of your project. The factory runs neither
pre-commitnorcommit-msgnor any other hook, including Husky's. A formatter or linter that runs via a hook for you does not run in the factory. If it should run, add it to the build command (see 9.6) or let it run in your original after taking over the result. - No signed commits and tags. Even with
commit.gpgSignset, the factory does not sign. If your remote requires signed commits, sign them yourself after taking over the result. - No token from the environment.
GITHUB_TOKENorGH_TOKENfrom your terminal do not reach git. Enter the GitHub token under Einrichtung → Integrationen. - The factory removes inadmissible entries from
.git/config. These include acore.sshCommand, acredential.helper,include.path,url.*.insteadOf,http.*settings and merge drivers. This affects the factory's workspace, not your original. If you need such a thing (for example your own SSH command), the operator puts it into the global git configuration of the user the factory runs as (git config --global …). - No git at all in these cases: a custom filter driver (e.g. git-crypt), a partial clone,
.gitas a symbolic link or a.gitthat git does not use. The run then fails with a message starting with „git-Wächter: …“ (git guard) or „Die Git-Konfiguration … enthält einen eigenen Filter-Treiber …“ (contains a custom filter driver) that says what to do (see 8). - Submodules: the factory does not see changes to files inside a submodule; a changed submodule reference stays visible in status, diff and review.
- In the build container
.gitis read-only. A build that wants to write to.gitthere fails. - Import without hooks: when importing a local folder,
.git/hooksdoes not come along. - Git 2.31 or newer is required (
git --version). With older Git the factory runs no git and says why.
Details for operators are in the administration manual, section 5 ("The factory's git calls in the project folder").
7. Further development over many runs
The factory is not only meant for the first draft. Building from scratch and developing existing code run through the same factory, over many runs and versions.
7.1 The loop: plan, build, learn
Plan (plan run) → backlog from plans/*.md → select/activate
→ Build (build run on the persistent workspace) → validate
→ Learn (memory) → re-plan
Project-persistent workspace + re-run. Follow-up runs continue on the existing code/Git repo (
<root>/<slug>/workspace) instead of starting empty. "Run 2" sees "run 1"'s code. Only one active run per project at a time (concurrency guard).Real repo import. The
existing-repo-importtemplate brings an existing repo (local path → copy incl..git; Git URL →git clone) into the persistent workspace; development then proceeds via plan/build runs — not via re-scaffolding. From 0.40.1 a local path must lie below a directory the operator has allowed as an import folder (environmentSOFTWAREFABRIK_IMPORT_ALLOWED_ROOTS, default: empty = off; additionally in the interface under Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts); otherwise the import rejects it with a hint. Symlinks in the repo are not copied; the run log lists them. From 0.44 a Git URL must pass the same policy as a push remote:https://,ssh://orgit@host:pathon an allowed Git host (SOFTWAREFABRIK_GIT_ALLOWED_HOSTS, defaultgithub.com; additionally under Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts). A path ending in.gitcounts as a local path.Import as a separate step (from 0.44). The project page of an import project shows the Import section. "Jetzt importieren" (import now; DEVELOPER and above) takes over the repository right away instead of in the first run, without build output (
target/,bin/,obj/). The preview shows size, Git LFS findings, directories not copied, detected project profiles and agent configuration found, with what the factory does with it. "Profil bestätigen" (confirm profile; MAINTAINER and above) sets the build directory for a subdirectory. "Probelauf des Build-Gates" (trial run; MAINTAINER and above) builds the imported state without an agent and without a commit; the result is kept as the baseline on the project. So you know before the first paid run whether the factory can build your project.Take over the result (without GitHub). From role DEVELOPER, the project page shows in the „Experte“ view the section Ergebnis übernehmen: the workspace path and the ready-made commands for the latest build run. Run them in the original repository:
git remote add fabrik "<workspace-path>" # once; later git remote set-url fabrik "<path>" if needed git fetch fabrik git merge fabrik/sdlc/run-<id> # or review first: git switch -c review fabrik/sdlc/run-<id>This works because the import brings the history along (
.gitis copied or cloned): the original and the workspace share the same commits, so the merge is an ordinary merge. A successful run is already merged into its base branch in the workspace; thengit merge fabrik/<base>works as well. If the factory runs in WSL and the original lives on Windows (or vice versa), give the path in the other system's form (\\wsl$\Ubuntu\home\…or/mnt/c/…). With a Git remote on the project (GitHub) you do not need this: the run pushes its branch and opens a pull request.Large repositories and Git LFS. After the import the run log states the size ("Repo-Import: 1.234 Dateien, 512,3 MB (davon .git …, Git-LFS-Objekte …)"). An import from a local path copies the working tree as it is in the original, including
.git/lfs: if the original has the LFS contents checked out, the contents come along; if it only has pointers (cloned withoutgit-lfs), they stay pointers — the factory does not fetch anything. Pointers in the working tree are logged asWARN; rungit lfs pullin the original before importing. If the repository uses LFS (filter=lfsin.gitattributes) andgit-lfsis missing on the factory host, the log warns as well: withoutgit-lfsGit sees the real contents as a change, and the run commit would check in the binaries instead of the pointers. Installgit-lfson the factory host (git lfs install) before importing an LFS repository.Project memory. Curated learnings/decisions per project (DB source, editable in the UI under Memory) are mirrored into the workspace as
MEMORY.mdbefore each run and ingested back from an agent-updatedMEMORY.mdafterwards. Adapter-independent, version-stable.Roadmap/plans as a backlog. A plan run (changes no code) has the agent produce
plans/NNNN-*.mdwith next steps; the factory indexes them as backlog items (selection menu under Backlog / Plans). "Activate" starts a build run whose objective is the plan MD — against the existing code. Plan content lives in the repo (plans/), status/order in the DB.
Status file (since 0.59.0)
So that the next run knows where to continue, the agent keeps a status file. The task of every build run instructs it to read the file at the start, update it at the end (state, last done, open, next step, known problems) and commit it with its changes; plan and spec runs are to read it only. Whether it does so is up to the agent — the factory does not check the content, and a mock run does not change the file.
Where: project page, box „Statusdatei“: the checkbox „Statusdatei führen“ (keep a status file), the field „Pfad im Projektordner“ (path in the project folder; suggested STATUS.md, empty also means STATUS.md) and „Speichern“ (save). Changes need role DEVELOPER and apply from the next run. Every project created since 0.59.0 — including a newly imported one — keeps the status file out of the box as STATUS.md; projects that existed before only once you switch it on.
Example: your project already keeps its state in Documentation/ImplementationStatus.md.
- Open the project page and make sure „Statusdatei führen“ is ticked in the „Statusdatei“ box.
- Enter
Documentation/ImplementationStatus.mdin the field „Pfad im Projektordner“ and click „Speichern“. The page says „Gespeichert: Der Agent liest und pflegt die Statusdatei ab dem nächsten Lauf.“ (saved: the agent reads and maintains the status file from the next run). - Start the next build run. As the file already exists, the factory creates nothing; the agent reads it and writes its state into it. If the file is missing, the factory creates it at the start of the run from a short template (log: „Statusdatei … angelegt (kurze Vorlage)“).
- After the run the box shows what the agent entered (at most 20,000 characters, plain text only; longer files with the note „Gekürzt …“, shortened).
Note for an import via the quick start: „Importieren und bauen“ (import and build) starts the first run at once, still with STATUS.md. The factory then creates a STATUS.md, and the agent maintains it in that run. Enter your file's path afterwards; you can delete the created STATUS.md.
Limits and messages: only .md files in the project folder are allowed, with letters, digits, spaces, _, - and . in the path; not in hidden folders such as .git or .claude, not under plans/ or specs/ and, in the top folder, not under the name of a file the factory writes or manages itself (PROJECT.md, AGENTS.md, MEMORY.md, README.md, CHANGELOG.md …). For an inadmissible path the box says „Nicht gespeichert: …“ (not saved) with the reason, and your input stays in the field. The factory never overwrites existing content, not even an empty file. You cannot edit the file in the box — what you want to tell the agent goes under Memory. Switching it off leaves the file in place („Die Datei selbst bleibt liegen.“). Sub-runs of a workflow do not create it.
Rules for all runs and for all projects (since 0.59.0)
What should apply to every run of a project — for example "English commit messages, each topic its own commit" — goes onto the page „Projekt bearbeiten“ (edit project; project page → „Technische Einstellungen“ → „Bearbeiten“), field „Vorgaben für alle Läufe (Freitext / Sonderwünsche)“ (rules for all runs; until 0.58 it was called „Freitext / Sonderwünsche“); then click „Speichern“. The form „Neuer Lauf“ links to it. Something that only matters for the next runs is better placed under Memory.
What should apply to all projects is maintained by an administrator under Einrichtung → „Vorgaben für alle Projekte“ (rules for all projects, /einrichtung/vorgaben; only administrators see the tile, it is missing on the public demo): one text for all projects of the own tenant, on a single-user installation for all projects, at most 8,000 characters; saving it empty removes it.
How it reaches the agent: the text does not go into the task itself: before every run the factory writes both into the file PROJECT_NOTES.md in the project folder (only if something is entered), and the agent finds it there. If you changed the file by hand, the factory backs up your version first and names it in the log. The project's rules come first, with the sentence „Vorgaben des Projekts gehen den Vorgaben für alle Projekte vor.“ (project rules take precedence over rules for all projects). If there are rules for all projects, the task tells the agent explicitly „Lies PROJECT_NOTES.md und halte dich daran.“ (read PROJECT_NOTES.md and follow it). Without them the task does not mention the file separately; the project's rules are then, as before, also in the section „Freitext / Kontext des Auftraggebers“ of PROJECT.md, which the task names (unless drift protection keeps a changed PROJECT.md, see 9.11). Changes apply from the next run; a running run keeps what it already has.
Example: all your projects should use English commit messages. As administrator open Einrichtung → Vorgaben für alle Projekte, enter "English commit messages, each topic its own commit." and click „Speichern“. The page says „Gespeichert. Die Vorgaben gelten ab dem nächsten Lauf — laufende Läufe bleiben unberührt.“ (saved; the rules apply from the next run — running runs are not affected). If a single project should keep German commit messages, enter "German commit messages." under „Vorgaben für alle Läufe“ there — the project's rules take precedence.
What it is not: the rules are instructions to the agent, not a check. The factory does not verify that a commit message really is English. Do not enter passwords or keys — the text goes to every agent. Every change of the rules for all projects is recorded in the audit chain (secrets masked).
Import from GitHub issues (since 0.58.0)
If the project's remote is on an approved GitHub host (by default github.com), the roadmap shows the box „Aus GitHub-Issues übernehmen“ (import from GitHub issues). „Issues abrufen“ (fetch issues) reads the repository's open issues once — never on its own, never when the page loads. Optionally narrow it down with „Nur mit Label“ (only with label) and „Nur aus Meilenstein“ (only from milestone, number or title). Per fetch the factory gets the 100 newest open entries and leaves out the pull requests among them — so there may be fewer than 100 issues.
The preview shows number, title, labels, an excerpt and the link to the issue. Every issue has a checkbox, unticked by default. Issues already on the roadmap are marked „schon übernommen“ (already imported). „Angehakte übernehmen“ (import ticked) creates one entry per issue under „Vorschläge“: origin „aus GitHub-Issue #n“ (from GitHub issue #n), the text is the issue's text (at most 20,000 characters, secrets masked, invisible characters removed). No AI is involved and nothing builds on its own. Fetching again never creates a second entry. If an issue changed on GitHub and you have not edited the entry, the preview offers the checkbox „Das Issue wurde in GitHub geändert — Text aktualisieren“ (the issue was changed on GitHub — update text); if you have edited it, your version wins („in GitHub geändert“, changed on GitHub). „Ansehen und bauen“ names the origin, links the issue and says „Text stammt aus GitHub und wurde nicht von der Fabrik verfasst“ (text comes from GitHub and was not written by the factory) — read it before building: with „Jetzt bauen“ it becomes the agent's task.
Example (public repository, without a token):
- The project has the Git remote
https://github.com/<owner>/<repo>(project page → technical settings → „Git und Claude-Kontext“). - Open the roadmap. In the box „Aus GitHub-Issues übernehmen“ enter e.g.
enhancementunder „Nur mit Label (optional)“ and click „Issues abrufen“. - In the preview tick the issues you want to build and click „Angehakte übernehmen“. They now appear under „Vorschläge“ with „aus GitHub-Issue #n“.
- Accept one, open „Ansehen und bauen“, read the text and only then click „Jetzt bauen“.
Who, limits, messages: fetching and importing require the maintainer role; the preview is valid for 30 minutes („Die Vorschau ist abgelaufen oder fehlt. Bitte die Issues noch einmal abrufen.“ — the preview has expired or is missing). Without a GitHub token (Einrichtung → Integrationen) the factory reads public repositories only (GitHub then allows 60 requests per hour); for private ones the token needs the Issues: Read permission. If fetching fails, the box names the reason, e.g. „GitHub begrenzt gerade die Zahl der Anfragen (Rate-Limit). Bitte später noch einmal.“ (rate limit), „GitHub hat den Token abgelehnt (HTTP 401). …“ (token rejected), „Das Repository gibt es auf GitHub nicht, oder es ist privat (HTTP 404). …“ (does not exist or is private) or „Für dieses Repository sind die Issues in GitHub abgeschaltet (HTTP 410).“ (issues disabled). If the operator has switched fetching off, it says „Der Betreiber hat das Abrufen von GitHub-Issues abgeschaltet.“ Importing writes nothing to GitHub.
Mirror the roadmap to GitHub issues (preview). The other direction — creating issues for accepted entries, setting own labels fabrik:geplant to fabrik:blockiert and commenting progress — is not enabled out of the box. The operator enables it with SOFTWAREFABRIK_GITHUB_SPIEGEL_ERLAUBT=true; then a maintainer switches the mirror on per project in the box „Roadmap in GitHub-Issues spiegeln“. It needs a token with Issues: Read and write; for a public repository you must confirm that comments and entries become publicly visible. Comments never contain prompts, agent output, logs or cost. If the secret check fires, no issue or comment is created. If GitHub rejects the token, the permission is missing or the repository becomes public later, the factory pauses the mirror and says why on the roadmap. A run never fails because of GitHub. Settings for operators: administration manual, section 2.6.
7.2 Branch/PR, self-correction and auto-loop
- Branch isolation per build run. Each build run works on its own branch
sdlc/run-<id>; on success it is merged into the base branch (or a PR is opened, see below), on failure the work stays on the branch for inspection and the base stays clean. - Push + pull request (GitHub). If a Git remote URL is set on the project and a GitHub token is stored under Integrations, a successful build run pushes its branch and opens a pull request (merge via the PR) — otherwise the local merge applies. If a remote URL is set but no GitHub token is stored, the factory also merges only locally; the run log then contains a warning, the run page shows the box „Nur lokal zusammengeführt, nichts übertragen: kein GitHub-Token hinterlegt (Einrichtung → Integrationen)“ (merged locally only, nothing transferred: no GitHub token stored) with a link, and the project page points this out in the section „Git und Claude-Kontext“.
- Automatic correction feedback loop. On a red build the factory feeds the build feedback into another run on the same branch (
NEEDS_CORRECTION → RUNNING), up to 2 attempts; after that the run stays inNEEDS_CORRECTION. - Quality gate in the pipeline. After a successful build the AI quality gate optionally runs as part of the pipeline. Mode on the Leitplanken page:
off/advisory(default: run + log) /blocking(FAILED/ERROR triggers the correction loop). - Auto follow-up proposals. Optionally (Einrichtung → Einstellungen → „Erweitert“ → „Läufe“) a successful build run automatically triggers a plan run → the Plan→Build→Plan loop closes itself.
7.3 Milestones, routines, backlog
Milestone release. Under /projects/{id}/milestones you bundle runs into a version. The release produces a changelog entry, a Git tag and — with a GitHub remote configured — a GitHub release.
Routines. Under /projects/{id}/routines you schedule plan or build runs (toggleable). Together with auto follow-up suggestions the loop plan → build → check → merge → plan again keeps going without manual triggering — with the approval points as deliberate stops.
Backlog with dependencies. Backlog items can depend on each other; an item becomes DONE only once its build run is actually merged — not when code was written.
Repository reality. Before each build run the base branch is fast-forwarded to the remote state. A merge conflict does not abort the run; the conflicting files enter the correction loop as a work instruction. With PR feedback enabled (git.pr-feedback.enabled, off by default) the run waits in WAITING_FOR_PR for green CI and a merge; red CI likewise starts a correction.
7.4 What is still open (outlook)
- More Git hosts: push, pull request, CI status polling and releases are implemented against the GitHub API. GitLab, Bitbucket and Azure DevOps are missing; there the local merge applies.
- Issue-tracker sync with Jira and Linear as a backlog source. GitHub issues can be imported on the roadmap since 0.58.0 (7.1); the mirror in the other direction is a preview and off by default.
- Parallel execution in normal operation: without the workflow layer only one run per project executes at a time. Parallel child runs exist only via the workflow layer, which sits behind a feature flag (off by default; administration manual, section 13a).
- Seat-level budget caps — the per-user breakdown exists (
/mandanten/seat-kosten), but the hard cap only applies per tenant. - Cloud gateways (Bedrock/Vertex/Azure OpenAI) are not verified end-to-end.
- Cross-project learning.
7.5 Recommended workflow
- New project: quick start → name, kind, description → „Bauen“. Existing project: quick start → choose „Bestehendes Projekt weiterentwickeln“ at the top → location and task → „Importieren und bauen“.
- Follow „Was jetzt?“ on the run page; if needed „Freigeben und fortsetzen“.
- Try the result („Selbst ausprobieren“ or ZIP).
- „Weiter verbessern“ or, on the project page, „Nächster Auftrag“ → „Bauen“.
- Optionally „Vorschläge machen lassen“: the AI proposes the next steps as
plans/*.md. Activate an item in the backlog → a build run implements it. - Optionally: set a Git remote on the project and a GitHub token under Einrichtung → Integrationen → build runs open pull requests.
- Curate memory: decisions and learnings flow into every follow-up run.
With the mock adapter you can practise the whole loop at no cost.
8. Troubleshooting & FAQ
- „Mock-Adapter aktiv“ in the header — runs turn green but produce no real code. An administrator picks a real agent in the first-time setup or under Einrichtung → Einstellungen; the system check shows what is missing for that.
- Import rejects the folder or Git address — the source is not under an allowed import folder or Git host. An administrator adds it under Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts. System directories, the root and home directory and folders that contain the factory installation are rejected there — choose the folder your projects are in.
claude: command not found/CreateProcess error=2— CLI not on PATH. Checkclaude --version; setSOFTWAREFABRIK_CLAUDECODE_COMMAND(or…CODEX_COMMAND) to the full path.- Run auth error / 401 — plan login missing. Run
claude/codex loginonce; the credential directory must be populated. - Plan mode still bills via API? — make sure no
ANTHROPIC_API_KEY/OPENAI_API_KEYis set in the environment. The factory strips it in plan mode, but it's cleaner to leave it out entirely. EUR values in the cost view do not mean API billing in plan mode: they are an estimate at API rates. Port 8080 in use— stop the other app or setSOFTWAREFABRIK_PORT.- Postgres won't start — is Docker running? (
docker ps). Windows: start Docker Desktop first.Port 5432 in use→ stop your local Postgres. - "Build nicht geprüft" / run waits for approval — the summary of the build result names the reason (section 9.6):
- No project profile detected and no build command: set a build command or build directory; for projects without a build choose "project deliberately has no build".
- Tool or image missing (in the container exit 125 = image cannot be loaded, 126/127 = tool not executable/not found; without a container the program is missing on the host): install the tool under Einrichtung → Werkzeuge (the project page lists it under "Fehlende Werkzeuge") or set an image that contains it under Build-Container (Poetry and CMake have no default image).
- Environment cannot be set up (e.g.
python3-venvis missing): install the package on the host or set a build container image. - No build or test step checked anything (e.g. no
build/testscript, pytest finds no tests; a linter alone does not count): add tests or scripts, or set a build command.
- "Run 2 doesn't build on run 1" — should not happen: the workspace is project-persistent. Check that it really is the same project and that the previous run was merged (on
NEEDS_CORRECTIONthe work is still on the run branch). - „Starten und gleich freigeben geht hier nicht: …“ (start and approve right away is not possible here) — a rule requires another person or the stop itself (four-eyes principle, policy-as-code), or no approval is due at all. Start normally with „Lauf starten“ or „Bauen“ (5.4).
- „git-Wächter: … Die Fabrik führt in diesem Ordner deshalb kein git aus.“ (git guard: … so the factory runs no git in this folder) — the project folder's git structure is unusual:
.gitis a symbolic link, git uses a different directory than the existing.git, or a worktree folder was copied. The message names the path. Check the folder; if this was not intended, a run or an imported project changed the structure. The simplest fix is to import the project again. - „Die Git-Konfiguration … enthält einen eigenen Filter-Treiber …“ (contains a custom filter driver) — e.g. for git-crypt. The factory does not remove a filter (files would otherwise be committed unfiltered, with git-crypt in plain text) and runs no git. If the filter is wanted, the operator puts it into the global git configuration of the user the factory runs as and removes it from the project folder's
.git/config; otherwise remove it there (git config --local --remove-section filter.<name>). - „… nutzt eine Erweiterung des Repository-Formats, die die Fabrik nicht unterstützt …, z. B. einen Partial Clone“ (uses a repository format extension the factory does not support) — import the project as a full clone (without
--filter=…). - „Das installierte Git ist älter als 2.31 …“ (installed Git is older than 2.31) — update Git (
git --versionshows the version). - Your
pre-commithook (formatter, linter) does not run — intended since 0.57.2. Add the check to the build command or let it run in your original after taking over the result (6.1). - The agent does not find a tool outside the project folder that works in your terminal (e.g. MonoGame shaders via Wine with
MGFXC_WINE_PATH) — the agent gets only a few environment variables. The operator releases the ones needed (SOFTWAREFABRIK_AGENT_ENV_DURCHREICHEN, see the administration manual, section 5). - Run stuck in
WAITING_FOR_PR— the PR is not merged yet or CI is not green. Is the poller enabled? (git.pr-feedback.enabled). - Quality gate reports
ERROR— a reviewer crashed, timed out or returned unreadable output, or a mandatory policy requirement is not met. That is deliberately not a silent pass. A missing reviewer CLI only yieldsSKIPPEDfor that reviewer. - Merge conflict — the factory feeds the conflicting files back as a correction task (max. 2 attempts); after that the run stays in
NEEDS_CORRECTIONand you resolve it manually. - Just explore without cost — „Erst ohne KI-Agent ausprobieren (Mock)“ in the first-time setup (or
SOFTWAREFABRIK_EXECUTION_ADAPTER=mock). - „Ohne gültige Lizenz läuft dieser Durchgang mit dem Mock“ above the button — a real agent is set but the license situation does not allow it right now (reason in brackets). The run starts with the mock: no real code. For real runs set up the license (Einrichtung → Lizenz).
- Quality gate of a mock run shows „0 gesamt“ (0 total) — the AI reviewers were skipped (the mock calls no AI model); the „Mock-Lauf“ box on the run page and the log say so.
9. Expert chapter
This chapter describes the controls behind the guided path. You see most of them in the „Experte“ view (3). Operations, tenants and evidence for administrators are described in the administration manual.
9.1 Detailed wizard and empty project
Besides the quick start there are two ways to create a project. Both are in the project list next to „Neues Projekt“:
- „Ausführlicher Assistent“ (detailed wizard,
/wizard) — guided, step by step; in the „Experte“ quick start also via „Zum ausführlichen Assistenten“ or „Import mit allen Optionen (Assistent)“. - „Leeres Projekt (Experten)“ (empty project,
/projects/new) — asks only for title and product name, then opens the project editor where you fill in all remaining fields yourself.
In the quick start („Experte“ view), „Nur Projekt anlegen“ creates the project without starting a run. You land in the „Neuer Lauf“ form with the task already filled in.
The wizard guides you through six steps. Since version 0.11 it thinks in three orthogonal dimensions — target platform × backend × frontend(s) — so full-stack and multi-target products (one backend, several clients) can be expressed.
| Step | Content |
|---|---|
| 1 — Target platform & project type | „Web“ (runs in the browser) / „Mobil“ (mobile) / „Desktop“ (multi-select) or "import existing repo" |
| 2 — Backend | backend technology (Spring Boot, Quarkus, ASP.NET, FastAPI/Flask, Node) or "no backend" |
| 3 — Frontend(s) | multi-select, filtered by platform and backend (e.g. Thymeleaf/Vaadin only with Java, Blazor/WPF only with .NET, MonoGame without a backend or with .NET; React/Angular/Vue/Flutter are backend-agnostic) |
| 4 — Questions | base data + stack-specific fields (e.g. Java version, DB, architecture style) |
| 5 — Quality gates | optional toggles (ArchUnit, OWASP Dependency-Check, Trivy, ESLint, Playwright …), unioned over all chosen stacks; where SDD is enabled, also the spec mode (AUS/LEICHT/STRENG) and the spec format (FABRIK or SPEC_KIT, see 9.14) |
| 6 — Summary | review + local token/cost estimate + preview of the initial prompt |
At the end the wizard creates a project in "draft" status and lands you in the normal project editor — where all fields remain editable. At the top the editor then shows the next step: „Ersten Lauf starten“ (start the first run) opens the „Neuer Lauf“ form (task pre-filled with the vision), „Zur Projektseite“ leads to the project page. The fields below are optional.
Note on the filter: if a target platform is not covered by any selected frontend, the wizard warns (it does not block). You can deliberately continue without a frontend (e.g. an API only) and add one later.
9.2 Master data: the 13 project-definition fields
The project definition is the heart — the agent artifacts are generated from it. It has 13 content fields (plus master data title/product name):
| Field | Meaning | Example |
|---|---|---|
| shortDescription | one/two-liner of what it is | "REST API to manage maintenance orders." |
| vision | target picture, what should be achieved | "Technicians capture orders on mobile; dispatchers plan on the web." |
| targetAudience | who uses the product | "Field technicians and back-office dispatchers." |
| technologyPreferences | desired stack / versions | "Spring Boot 3.4, Java 21, PostgreSQL, Maven." |
| architecturePreferences | architecture style, layers, packages | "Hexagonal, ports & adapters, base package io.example.maint." |
| securityRequirements | security requirements | "OAuth2/OIDC login, roles Admin/Dispatcher/Technician." |
| accessibilityRequirements | accessibility | "WCAG 2.1 AA for the web UI." |
| nonfunctionalRequirements | NFRs (performance, availability, quality gates) | "p95 < 300ms; ArchUnit + OWASP check enabled." |
| gitWorkflowPreferences | branching/commit conventions | "Conventional Commits; trunk-based." |
| documentationRequirements | desired docs | "README, ADRs for architecture decisions, OpenAPI." |
| languagePreference | language for comments/docs (de/en) |
"en" |
| sectorContext | industry/domain context | "Facility management, GDPR-relevant." |
| freeText | anything else; the wizard prompt also lands here | (free) |
The more precise these fields, the better the agent's starting context. Empty fields show up as open placeholders in the generated prompt — fill them in the editor before you start the first run.
9.3 What the factory generates (artifacts)
On generation the factory turns the definition into versioned Markdown artifacts that the agent receives as input:
- PROJECT.md — 14 numbered sections, 1:1 from the fields (target picture, stack, architecture, security, NFRs, Git, docs, language, sector, free text).
- INSTRUCTIONS.md — way of working (autonomous), architecture/security guardrails, build/test (matching the project, e.g.
mvn verify,./mvnw verify,gradle build), Git discipline, forbidden shortcuts. - Plus: AGENTS.md, WORKFLOW.md, DEFINITION_OF_DONE.md, README.md.
These files are written into the workspace and committed on a run; PROJECT.md/INSTRUCTIONS.md additionally go straight into the agent call.
9.4 Example definitions
Example 1 — Spring Boot REST API + React web (full-stack)
Title: Maintenance order portal
Product name: MaintHub
shortDescription: Web portal + REST API to manage maintenance orders.
vision: Dispatchers plan orders on the web; a clean REST API later
also serves a mobile app.
targetAudience: Back-office dispatchers (web), later technicians (mobile).
technologyPreferences: Backend Spring Boot 3.4 / Java 21 / PostgreSQL / Maven;
frontend React + Vite + TypeScript.
architecturePreferences: Hexagonal (ports & adapters), base package
io.example.maint; REST under /api/v1.
securityRequirements: OAuth2/OIDC; roles ADMIN, DISPATCHER.
nonfunctionalRequirements: ArchUnit layer tests + OWASP Dependency-Check enabled;
p95 < 300 ms.
gitWorkflowPreferences: Conventional Commits, trunk-based.
documentationRequirements: README, OpenAPI spec, ADRs.
languagePreference: en
sectorContext: Facility management.
Wizard selection: platform = Web · backend = Spring Boot · frontend = React.
Example 2 — Python FastAPI service (API only, no frontend)
Title: Receipt extraction service
Product name: DocScan API
shortDescription: FastAPI service that structures uploaded receipts via OCR.
vision: Other systems send PDFs/images and get structured JSON
receipt data back.
targetAudience: Internal backends (machine-to-machine).
technologyPreferences: Python 3.12, FastAPI, SQLAlchemy + PostgreSQL, uv.
architecturePreferences: Layered (api / service / repository), root package docscan.
securityRequirements: API key per client; rate limiting.
nonfunctionalRequirements: Ruff + mypy + pytest-cov enabled; Bandit scan.
languagePreference: en
sectorContext: Accounting/fintech.
Wizard selection: platform = Web · backend = Python FastAPI · frontend = (none / API only).
Example 3 — Static frontend (no backend)
Title: Product landing page
Product name: LaunchPad
shortDescription: Fast, static marketing landing page.
vision: Performant, accessible page with no server backend.
targetAudience: End customers/prospects.
technologyPreferences: Node 22, Vite, plain HTML/CSS/JS.
accessibilityRequirements: WCAG 2.1 AA.
nonfunctionalRequirements: Playwright E2E + Trivy enabled; Lighthouse > 95.
languagePreference: en
Wizard selection: platform = Web · backend = no backend · frontend = static frontend.
9.5 Run with all options
„Neuer Lauf“ (new run, /runs/new; button „Neuen Lauf anlegen“ in the run list, „Lauf mit allen Optionen anlegen“ on the project page) shows all fields in „Experte“:
- Project and „Auftrag — was soll der Lauf tun?“ (task — what should the run do?, up to 4000 characters). This is where you say what this run should do, e.g. "Create the project skeleton according to PROJECT.md and implement the order CRUD."
- „Titel des Laufs“ (run title) — empty = first line of the task.
- „KI-Werkzeug (Adapter)“ (AI tool) — which agent executes (
claude,codex,gemini,aider,kimi,local-llm,bedrock,vertex,azure-openai,mock). Default from the settings, possibly restricted by project or tenant policy. - Team — the participating agent roles. The team decides which agent executes the run: BUILD the developer, PLAN and SPEC the architect (if the role is missing, the first active agent in team order). Its model, tools and policy apply. Without a team the default team applies (9.10).
„Bauen“ creates and starts right away. „Nur anlegen“ creates a draft; start it on the run page with „Lauf starten“. The cost estimate appears below the form once a project is selected.
9.6 Build settings and build gate
On the project page, „Technische Einstellungen“ (technical settings) has three sections:
- „Projekt“ — slug, product name, language, project folder, detected project profiles, missing tools, the way to the guardrails („Leitplanken ansehen und ändern“) and the buttons „Bearbeiten“ (edit; all master data from 9.2), „Memory“, „Backlog / Pläne“, „Specs“ (if enabled), „Meilensteine“ (milestones), „Routinen“ (routines) and „Artefakte anzeigen“ (show artifacts).
- „Build-Einstellungen“ (build settings) — build directory, build command, build container and „Wenn kein Build erkannt wird“ (if no build is detected) in one form. „Build-Einstellungen speichern“ changes and audits only what differs. Command, container and gate mode can be changed by
MAINTAINERand above. - „Git und Claude-Kontext“ — Git remote for push and pull request, „Claude-Code-Projektkontext laden“ (load Claude Code project context, 9.12), „Markdown-Artefakte generieren“ and „Auf bereit setzen“ (mark ready).
The build gate works as follows:
The VALIDATION phase builds the project with the matching tool:
- Maven: if there is a
pom.xmlin the build directory,mvn verifyruns. - .NET (since 0.41.6): otherwise a solution (
.sln/.slnx) or, without a solution, a single project file (.csproj/.fsproj/.vbproj) is enough. The gate runsdotnet tool restore(only with.config/dotnet-tools.json, e.g. for MonoGame's content buildermgcb), thendotnet buildand, if a project referencesMicrosoft.NET.Test.Sdk,dotnet test --no-build. Outside Windows it sets-p:EnableWindowsTargeting=true. The .NET SDK must be installed on the factory host (SOFTWAREFABRIK_DOTNET_COMMAND, defaultdotnet; or installed under Einrichtung → Werkzeuge) and match the project'sTargetFramework. Several solutions or several project files are not guessed: the summary starts withWARNUNG:, and the build directory resolves it. With the container sandbox active the .NET build runs in the SDK image matching the project (global.json, otherwise the highestTargetFramework, e.g.net9.0→mcr.microsoft.com/dotnet/sdk:9.0; see the administration manual). Coverage: if the test project referencescoverlet.collector(default in the xunit/NUnit/MSTest templates),dotnet testcollects Cobertura reports underTestResults/; the factory sums them into the run's coverage. Without the collector coverage stays "unknown"; the tests still run. - Build command (since 0.42): if the build cannot be detected, e.g. a solution with platform-specific projects, enter a build command on the project page (MAINTAINER and above only, every change is audited). It replaces detection and runs in the build directory as an argument list without a shell: quotes group arguments; pipes,
&&, redirections and$VARIABLESdo not exist. If you need them, spell the shell out explicitly:sh -c "dotnet tool restore && dotnet build Game.DesktopGL/Game.DesktopGL.csproj". The command inherits none of the factory's secrets. With the container sandbox it runs in the project's build container image if one is set; otherwise in the .NET image if the build directory contains a .NET project, otherwise in the Maven image. Exit code 0 = passed. Do not put credentials into the command (audit and summary mask recognisable values such as-k …or-p:FeedPassword=…, but other roles can read them); connect private feeds viaNuGet.Configor the project environment. - Otherwise (no project profile detected, see project profiles below, and no build command) the gate finds no build: result
NICHT_GEPRUEFT(not checked; from 0.44, previouslySKIPPED). It does not count as passed. What happens next is set on the project page under "Wenn kein Build erkannt wird" (MAINTAINER and above only, audited):- Require approval before the merge (default): the run stops in
WAITING_FOR_APPROVALafter validation, even where it would otherwise be approved automatically; the run page shows "Build nicht geprĂĽft". - Fail the run: the run ends as
FAILED; the work stays on the run branch. - Project deliberately has no build (e.g. a docs-only repo): the gate does not run, the result is
NICHT_ANWENDBAR(not applicable) and counts as passed. Both are attested (BUILD_NICHT_GEPRUEFT,BUILD_NICHT_ANWENDBAR) and appear in the why-trace. An approval only covers the build result it was given for: if a correction follows (merge conflict, red PR CI) and the build is unchecked again, the run stops again. In a workflow an unchecked combined state stays a warning (the child runs were approved individually); with "fail the run" the workflow fails.
- Require approval before the merge (default): the run stops in
Project profiles (from 0.44): the factory describes every supported stack as a profile: how it recognises it, how the build gate builds and tests it, which commands the agent may run for it, and which files are exclusive. The project page shows under "Erkannte Projektprofile" (detected project profiles) what was found in the workspace, including direct subdirectories (monorepo). Shipped from 0.45:
| Profile | detected by | gate runs | level |
|---|---|---|---|
| Maven | pom.xml |
mvn verify |
A |
| .NET (incl. MonoGame) | .sln, .csproj … |
dotnet build, dotnet test |
A |
| MonoGame (add-on to .NET) | package MonoGame.Framework.* or MonoGame.Content.Builder.Task in a .csproj, or a .mgcb file |
like .NET, plus the step "build content" | B |
| Gradle / Gradle wrapper | build.gradle(.kts) / gradlew |
gradle build / ./gradlew build |
B / A |
| Python (pip) | pyproject.toml, setup.py, requirements.txt |
own venv .venv-fabrik, pip install, pytest |
B |
| Python (uv / Poetry) | uv.lock / poetry.lock |
uv sync + uv run pytest / poetry install + poetry run pytest |
B |
| Node.js (npm, pnpm, Yarn) | package.json (+ lockfile) |
npm ci/install, scripts build and test if present |
B |
| Go | go.mod |
go build ./..., go test ./... |
B |
| Rust | Cargo.toml |
cargo build, cargo test |
B |
| CMake (C/C++) | CMakeLists.txt |
cmake in build-fabrik/, ctest |
B |
| Vulkan (add-on to CMake) | find_package(Vulkan, Vulkan::…, #include <vulkan/vulkan.h>, Vulkan GLSL or .spv |
like CMake, plus the step “check shaders” (glslc), tests with lavapipe |
B |
Level A is checked, level B usable (not yet in the practice suite). The tools must be on the factory host; with the container sandbox the steps run in the profile's image (Poetry and CMake have none yet). If a tool is missing or the environment cannot be set up (e.g. python3-venv is missing), the result is "not checked" instead of red — the agent could not fix that. The same applies when no build or test step checked anything (no build/test script, pytest finds no tests). Directories created by the build (node_modules/, .venv-fabrik/, build-fabrik/, Python caches) never end up in the run commit.
Build container per project (from 0.45): on the project page, under "Build-Container" (MAINTAINER and above only, audited), you set your own image, CPUs, memory and a time limit for the build gate and the trial run. Image, CPUs and memory apply with the container sandbox, the time limit always. The official toolchain images are allowed; the operator can allow more (administration manual). Empty = automatic: Maven builds in the image matching the Java version in pom.xml (above JDK 21, e.g. 25 → maven:3.9-eclipse-temurin-25, as long as the operator has not set a custom Maven image), .NET matching TargetFramework, other stacks in their profile's image.
Tools (from 0.45): if the host lacks a tool that a profile needs (JDK, Maven, .NET SDK, Node.js, Go, uv), the project page lists it under "Fehlende Werkzeuge" (missing tools). Under Einrichtung → Werkzeuge (setup → tools; ADMIN) the factory installs it itself — without administrator rights, from the official source, with a checksum. Agent and build gate then use the same tools, even without Docker.
Reviewers and linters (from 0.45): the reviewers no longer work for Java only. A new import missing from the manifest (package.json, requirements.txt, pyproject.toml, *.csproj, go.mod, Cargo.toml) is reported as a hint. If the project has ruff set up, or lint/typecheck scripts in package.json, the gate runs them as a check step (with Poetry, ruff only if it is listed as a dependency). If a check step fails, the gate is red and the run enters the correction loop. A check step alone does not count as a build or test: if nothing else ran, the result stays "not checked". If a rule does not apply to a stack, the reviewer says so instead of reporting "no findings".
MonoGame: A .NET project counts as a MonoGame game when a .csproj references a package MonoGame.Framework.<platform> (DesktopGL, WindowsDX, DesktopVK, Android, iOS) or MonoGame.Content.Builder.Task, or when a .mgcb file lies in the project (searched up to six folders deep, without sample, test and docs folders such as samples/ or tests/). The MonoGame profile is an add-on to the .NET profile: the gate builds like any .NET project and also checks:
- Build content as a step of its own. The build summary starts with
MonoGame: MonoGame (DesktopGL) erkannt — Content: …and lists every step with its result ([VORBEREITEN]=dotnet tool restore,[CONTENT],[BAUEN],[TESTEN]). Without the MSBuild package but withdotnet-mgcbin the tool manifest, the gate runsdotnet mgcb /@:Content.mgcbin the folder of the.mgcb. WithMonoGame.Content.Builder.Taskor a content builder project of its own, the content is built by the normaldotnet build; the[CONTENT]line then shows whether it was built there. A shader error shows up on the run page as "Content: Shader konnten nicht kompiliert werden …" (shaders could not be compiled) instead of disappearing in the general build noise. - **Shaders (
.fx) on Linux and macOS** need Wine (MonoGame's shader compilermgfxcruns through Wine there). Without it, the "Prerequisites" box shows a warning with the fix but does not block. The build gate then reports the shaders as "not checked" instead of red; the code is still built and tested. As always, "not checked" needs your approval before the merge. How to set up Wine is in the administration manual (section MonoGame). - With the container sandbox the standard SDK image has no Wine. The gate then reports the content step with shaders as "not checked: shaders need Wine, the build image has none". Enter an image with Wine under Build container on the project.
- WindowsDX only builds on a Windows machine. If the factory runs on Linux/WSL or in the container, the "Prerequisites" box says so, and if the build fails only because of the Windows target, it is "not checked" instead of red. Red tests and every other error (C#, analyzers, NuGet …) stay red — the agent can fix those.
DesktopGLprojects build on Linux/WSL and Windows.
Vulkan: A CMake project counts as a Vulkan project when a CMake file names find_package(Vulkan, a Vulkan::… target or glslc, the sources include vulkan/vulkan.h or vulkan.hpp, a shader uses Vulkan GLSL (gl_VertexIndex, layout(set = …), push_constant) or a .spv file lies in the project (up to six folders deep, without build/, sample, test and third-party folders). The Vulkan profile is an add-on to CMake: the gate builds with cmake and ctest, and the factory also checks:
- Check shaders as its own step
[SHADER]: every GLSL shader (.vert,.frag,.comp,.geom,.tesc,.tese,.glslwith a recognisable stage) is compiled on its own withglslc(otherwiseglslangValidator -V) — into a temporary folder outside the project. An error appears with file:line in the summary ([Shaderprüfung der Fabrik] Fehler: shaders/light.frag:4: …) and goes to the agent for correction. - Tests without a graphics card: if the software renderer lavapipe is installed (
mesa-vulkan-drivers), the gate uses it forctest. If the factory finds no Vulkan driver at all and every red test fails only because there is no Vulkan device, the result is “not checked” instead of red; any other test failure stays red. - The “Prerequisites” box tells you what is missing before the run (glslc, Vulkan headers/loader, lavapipe) — with a remedy, without a block. On Ubuntu 24.04/WSL:
sudo apt install glslc libvulkan-dev mesa-vulkan-drivers vulkan-tools(on 22.04glslang-toolsinstead ofglslc). If only the tools are missing, the gate reports “not checked”; a C/C++ or shader error next to it stays red. - With the container sandbox there is no standard image for CMake; without your own image under Build container everything is “not checked: build image without Vulkan SDK”. An example image is in the administration manual (section 13h).
- Limit: the factory does not do real GPU or image-comparison tests; it checks the build, the shaders and everything that runs without a graphics card.
Large files on import: If the imported state contains files over 50 MB, or more than 500 MB in total, outside Git LFS (typical: videos, textures, models of a game), the import step on the project page shows the box „Große Dateien außerhalb von Git LFS“ (large files outside Git LFS) with the largest files and two ways on: „Behalten und weiterarbeiten“ (keep and continue; from DEVELOPER, audited) or „Import verwerfen und Quelle aufräumen“ (discard import and clean up the source; from MAINTAINER; deletes only the folder the factory created during the import, and only if that folder was empty before the import and no run has worked in the project yet). Then run e.g. git lfs migrate import --include="*.mp4" in the original and import again. If the first run does the import, the warning is in the run log.
Monorepos: If the pom.xml (or the solution) is not in the workspace root but, say, under app/, enter the build directory app on the project page. The gate then runs mvn -B -f app/pom.xml verify in the workspace root and reads test coverage from app/target. Only a relative path without .. is allowed; a missing directory or one redirected through a symlink makes the gate fail instead of skipping. If neither build directory nor build command nor a confirmed project profile is set and the root holds no build file, the gate looks into the direct subfolders itself (at most 200): backend/ wins (this is how the wizard lays out backend + SPA), otherwise exactly one folder with a build file counts. Nothing is saved and the same path checks apply. Only that folder is built — a frontend next to it is not checked by the gate. The factory always shows this, even when the build is green: as a WARN line in the validation run log, in the phase summary and as a box „Nur ein Teil gebaut“ (only part built) on the run page („Build-Verzeichnis automatisch erkannt: backend — geprüft wird nur dieser Ordner; nicht gebaut: frontend. Gebaut lokal …“ or „… im Container“), plus the audit event BUILD_VERZEICHNIS_AUTOMATISCH. The start command on the result card changes into the folder accordingly (cd backend && …). If another Maven or .NET project sits next to the chosen folder, the gate builds nothing („nicht geprüft“, hint to set the build directory). If it is ambiguous (several folders with a build file, none named backend), the build summary starts with WARNUNG: and lists the candidates.
Since 0.52.0 a subfolder gets built. If a repository's only build project sits in a subfolder (e.g.
tools/build.gradle), runs and the post-import trial run now execute its build and tests — that is code execution of the project: without the container sandbox locally on the factory host (without the factory's secrets), with the container sandbox inside the container. In „blocking“ mode a red build can trigger the correction loop or fail the run. To turn it off: set a build directory or build command, confirm a project profile, or choose „Projekt hat bewusst keinen Build“ (project deliberately has no build).
Java projects: Maven, Gradle, Spring Boot, Kotlin
- Which Java version? The factory reads it in this order:
.java-version(e.g.21ortemurin-21.0.1),.sdkmanrc(java=21.0.2-tem),.tool-versions(java temurin-21.0.1),pom.xml(maven.compiler.release,<release>,java.version), Gradle file (JavaLanguageVersion.of(17),jvmToolchain(17), also insidekotlin { },sourceCompatibility). The pre-check compares this with the installed JDK — now for Gradle too — and names the source („Das Projekt verlangt Java 25 (.java-version)“). In the container the gate picks the matching image: Mavenmaven:3.9-eclipse-temurin-<LTS>, Gradlegradle:9-jdk17|21|25, Gradle wrappereclipse-temurin:17|21|25-jdk. JDK 17 can now be installed under Einrichtung → Werkzeuge. - Wrapper: if the project ships a Maven wrapper (
mvnwand.mvn/wrapper/maven-wrapper.properties), the gate builds with./mvnw verify— with the project's Maven version. An installed Maven is no longer needed, only a JDK. The script starts viash— the factory does not change file permissions in the project. Success only counts with evidence („BUILD SUCCESS“, a fresh test report or new files undertarget/); anmvnwthat only does „exit 0“ is not a build. If the wrapper cannot load Maven (e.g. no network), the gate builds withmvnand says so in the first line of the summary — without an installed Maven this fallback is not possible, the build then stays red or „not checked“. A red Maven build of the wrapper stays red. For Gradle the profile „Gradle (Wrapper)“ runssh gradlew build; without „BUILD SUCCESSFUL“ and without new files underbuild/the result is „not checked“. - Test reports: after the build the gate reads the JUnit reports of Surefire (
target/surefire-reports), Failsafe (target/failsafe-reports) and Gradle (build/test-results), also in modules. The run page shows at the step „Bauen, testen, prüfen“ e.g. „Tests: 214 bestanden, 3 fehlgeschlagen, 2 übersprungen“ and below it the first ten failed tests with class, method and first message line. The agent receives the same list in the correction loop. Only reports from this build count. - Coverage per module: JaCoCo reports of all modules (
**/target/site/jacoco/jacoco.csv,**/build/reports/jacoco/**/*.csv) are added up. If there is an aggregate report (jacoco-aggregateor GradletestCodeCoverageReportor a report with „aggregat“, „root“ or „coverageReport“ in its name), only that one counts. Reports of the same class from several runs (GradletestandintegrationTest) are not added up: per class the report with the highest coverage counts. Reports from earlier runs do not count. - Error messages in plain language: newly recognised: Spring context does not start (
Failed to load ApplicationContext,APPLICATION FAILED TO START), port in use (Address already in use), Gradle cannot resolve dependencies, incomplete Gradle wrapper (gradle-wrapper.jarmissing), Gradle too old for the JDK (Unsupported class file major version), Maven Enforcer rule violated (forRequireJavaVersion: wrong Java version) and Testcontainers without Docker. Incomplete wrapper, Gradle/JDK, Java version and Docker are environment problems: no automatic correction starts, the run waits for you. - Agent instructions: the build rule in
INSTRUCTIONS.mdand the Definition of Done fits the project:mvn verifyfor Maven without a wrapper,./mvnw verifywith a wrapper,gradle buildor./gradlew build, for other profiles their build and test commands. If no profile can be detected (yet), e.g. a new project without files, it says „Build und Tests des Projekts ausfuehren (z. B. mvn verify, gradle build, npm test)“ instead of a fixed „mvn verify“. - Spring Boot 4: new Spring Boot projects in the wizard use Spring Boot 4.x (version from the version cache); under „Spring-Boot-Linie“ you can pick 3.x. The template tells the agent what differs in Spring Boot 4 (e.g.
spring-boot-starter-webmvc,spring-boot-starter-flyway, test starters, Jackson 3) and asks for a Maven wrapper. - Static analysis (Java package, step 2): the wizard offers the switches SpotBugs, Checkstyle and PMD for Spring Boot and Quarkus. A switch that is on asks the agent to add the plugin with a fixed version to the project (Maven: goal
checkin theverifyphase; Gradle: part ofcheck), with a lean rule set underconfig/checkstyle/orconfig/pmd/. The versions come from the version cache (start values:spotbugs-maven-plugin4.10.5.0, SpotBugs 4.10.5, Gradle plugincom.github.spotbugs6.5.15,maven-checkstyle-plugin3.6.0 with Checkstyle 14.4.0,maven-pmd-plugin3.28.0 with PMD 7.30.0). The build gate checks the plugins through the regular build. Checkstyle 14 needs Java 21 or newer. - Findings in the quality gate: if reports from SpotBugs, Checkstyle or PMD are in the workspace after the build (also in modules, only from the last build), the quality gate shows them as reviewer
statische-analyse— at most 100, most important first, marked as tool text; INFO is only counted. These findings never cover a mandatory category. SpotBugs and PMD priority 1 = MEDIUM, priority 2 and Checkstyle errors = LOW, the rest INFO. Advisory: with the bundled policies none of these findings blocks; a policy that lets MEDIUM or warnings block turns MEDIUM into a FAIL. - Invented imports:
hallucination-reviewernow also reports Java and Kotlin imports of known libraries (e.g. Lombok, MapStruct, Jakarta Persistence/Validation, JUnit, Mockito, Testcontainers) that are in nopom.xml, Gradle file orgradle/libs.versions.toml— not even via a starter. Deliberately cautious: Jackson, SLF4J, Guava, Commons, JDK packages, own packages and projects with an external parent POM are not checked. - Gradle with wrapper is level A: two reference projects of the practice suite build green. Gradle without a wrapper stays level B.
- Company mirror and private repositories: the operator can give the build gate its own
settings.xml(administration manual, section 13g). The agent does not get it — its ownmvn verifymay then fail, the gate afterwards still builds with it. - Ansehen: for Spring Boot, „Ansehen“ suggests
./mvnw -q spring-boot:run(with wrapper),mvn -q spring-boot:run,./gradlew bootRunorgradle bootRun, with the port fromserver.portinsrc/main/resources/application.propertiesorapplication.yml, else 8080.
9.7 Quality gate in detail
In addition to the build gate there is the quality gate (/runs/{id}/quality-gate). It invokes six read-only reviewers — plus spec-conformance when a bound, approved spec is present (see section 9.14), plus statische-analyse when SpotBugs, Checkstyle or PMD reports exist — and aggregates their findings into a verdict (PASSED / WARNING / FAILED / SKIPPED / ERROR):
| Reviewer | Kind | Checks |
|---|---|---|
claude-review |
LLM (read-only) | diff review via Claude Code |
aider-review |
LLM (read-only) | diff review via Aider |
security-reviewer |
static | hardcoded keys, path traversal, SQL concatenation, Runtime.exec, password logging |
architecture-reviewer |
static | layering violations, JPA in the domain layer, changes to existing Flyway migrations (CRITICAL). Layer rules for Java/Kotlin only (Maven/Gradle at the root, otherwise based on the diff); for other projects only migrations and config/env files, without confidence |
hallucination-reviewer |
static | invented classes/methods, TODO markers, "tests pass" without any test change; new imports missing from the manifest (package.json, requirements.txt, pyproject.toml, *.csproj, go.mod, Cargo.toml; Java/Kotlin: pom.xml, Gradle files, version catalog — known libraries only) |
dependency-scan |
Trivy | CVEs and licence violations in dependencies |
statische-analyse |
reports | only when the build wrote reports: findings from SpotBugs, Checkstyle and PMD (target/ or build/reports/, also in modules), advisory (at most MEDIUM, no confidence) |
spec-conformance |
static | only with a bound spec: acceptance criteria covered by tests, unknown AC IDs, changes without spec reference |
Linters (ruff, lint/typecheck scripts) are not reviewers but check steps of the build gate (section 9.6).
Reviewers are read-only — they never write into the workspace.
Policy: strict blocks CRITICAL + HIGH, requires SECURITY and ARCHITECTURE and sets a confidence floor of 0.70; lenient blocks CRITICAL only. Three rules apply always, regardless of policy: SECURITY/HIGH and SECURITY/CRITICAL block, ARCHITECTURE/CRITICAL blocks, and a crashed reviewer yields ERROR — never a silent pass. A missing reviewer CLI (e.g. aider, claude, trivy not installed) is not a crash: that reviewer reports SKIPPED. ERROR results from a reviewer crash, timeout or unreadable output, and when a mandatory requirement of the policy (required reviewer or category) is not met.
Operating mode (Leitplanken page; can be overridden tenant-wide via policy-as-code; from 0.46 it can also be tightened per tenant and project, see section 9.8):
| Mode | Effect |
|---|---|
off |
reviewers do not run |
advisory (default) |
findings are collected and shown but do not block |
blocking |
a FAIL produces feedback and starts the correction loop |
Since v0.14 the gate runs as part of the run pipeline after a successful build; you can additionally trigger it manually on the run detail page.
9.8 Guardrails in detail
From 0.46 the project page shows under Guardrails („Leitplanken“, /projects/{id}/leitplanken) what applies to the project's next run — each value with its origin (Standard, global, Mandant, Projekt, Policy, Profil or Konfiguration, i.e. default, global, tenant, project, policy, profile or configuration):
| Area | Guardrails |
|---|---|
| Review | quality gate mode (off/advisory/blocking), quality gate strictness (lenient/strict) |
| Approvals | approval (global: before execution, before the merge or never), approval before execution (holds the run before EXECUTION, see 5.4), four-eyes principle, mandatory approval per phase (policy) |
| Execution | sandbox for build, tests and scans (local/container), sandbox for the agent (local/container), network in the build container |
| Agent | guardrails in AGENTS.md, permission mode (Claude Code), allowed commands |
| Adapters and models | allowed adapters, model per run kind (PLAN/BUILD/SPEC), MCP gateway, MCP servers |
| Costs | monthly budget of the project and of the tenant |
| Build gate | "if nothing was checked", build container |
| Policy | active signed policy with version |
Three levels. Quality gate mode and strictness, approval before execution, four-eyes principle, guardrails, the sandbox for build, tests and scans and the sandbox for the agent are set on three levels: global → tenant → project. A lower level can only tighten, never loosen: the page rejects a looser value; if one is already stored, it has no effect and is marked as „lockert, daher unwirksam“ (loosens, therefore ineffective). The signed policy-as-code remains the upper bound. „— nicht gesetzt (erben) —“ (not set, inherit) removes a level's value. Every change is audited as LEITPLANKE_GESETZT, every removal as LEITPLANKE_ENTFERNT.
| Level | Who may change it |
|---|---|
| Project | MAINTAINER or higher |
| Tenant | ADMIN (only for projects with a tenant) |
| Global | ADMIN; on shared instances only the platform operator |
Global guardrails (from 0.49). Global values live in one place: the Leitplanken page (/leitplanken; Einrichtung → Sicherheit or Leitplanken). Three levels set approval, quality check and sandbox at once — Vorsichtig (careful: approval before execution, blocking strict quality gate, container sandbox), Ausgewogen (balanced, default: approval before execution, advisory lenient gate) and Schnell (fast: no approval, advisory lenient gate). If the values match no level, the page says „Angepasst“ (custom). In expert mode the single values follow, and approval is one of three options: before execution, before the merge or never. An existing approval policy that stops at more than one point is shown as „Eigene Einstellung (Freigabe-Policy)“ and stays unchanged until you explicitly pick an option. Everyone may read; only administrators change; every choice is audited.
A global administrator sets the sandbox on the global Leitplanken page (applies to all projects). You select the project's allowed adapters here via checkboxes (MAINTAINER or higher; none ticked = all allowed); up to 0.45 they were the "model policy" text field on the project page. Other values link to their own page (policy-as-code, budgets, build gate) or are „nur Konfiguration“ (configuration only: application.yml or an operator environment variable).
Behaviour change: a project can no longer switch off the guardrails itself — only globally.
Sandbox for build, tests and scans. This guardrail (until 0.60 labelled „Sandbox des Agenten“, agent sandbox) decides where the factory runs its own steps: the build gate (build and tests), the build gate's trial run, SBOM and dependency scan (trivy) and „Ansehen“ (preview) of the kind „Programm“ (program). With container they run in a short-lived container; „Ansehen“ of the kind „Web“ is skipped then (the image has no browser). The agent itself (Claude Code, Codex, Gemini, Aider, Kimi, the gateways, local-llm) runs as a process on the factory's machine by default — confined by its own fresh HOME, a filtered environment (no factory secrets) and the list of allowed tools and commands. Per project it can run in a container instead: see „Sandbox for the agent“ below.
You set the sandbox globally on /leitplanken (level „Vorsichtig“ or single value). On /projects/{id}/leitplanken you can tighten a project to container when local applies globally (MAINTAINER or higher; the tenant level needs ADMIN). The page rejects local below a container above („wäre lockerer … kann nur verschärfen“, would be looser … can only tighten) or shows it as „lockert, daher unwirksam“. A MAINTAINER can also delete the project's own setting again (then the level above applies): the project setting is only as strong as the MAINTAINER role. To prevent that, set the container globally or for the tenant.
What the container protects and what it does not. It protects the machine from the code that the factory itself builds, tests and scans: read-only root file system, only the project folder mounted, limits for CPU, memory and processes, network only where needed. It does not protect against the agent: the agent and the commands it may run (e.g. mvn, npm, dotnet per the list of allowed commands) run on the machine — even in a project with build container, unless the „Sandbox für den Agenten“ (sandbox for the agent) is set to container as well.
Without Docker. If container is set only globally and no container engine is available, the factory falls back to local as before (warning in the log and in the box „Voraussetzungen“, prerequisites). If a project or tenant has tightened to container, the factory does not silently build on the machine:
- Before a build run starts, the box „Voraussetzungen“ reports „Es fehlt: Container-Engine“ (missing: container engine) and blocks the start. As with other blocks, the checkbox „trotzdem starten“ (start anyway) lets you go on.
- If the run starts anyway, the build gate reports „Build NICHT GEPRÜFT: Container nicht verfügbar“ (build NOT CHECKED: container not available). The project setting „Wenn nichts geprüft wurde“ (if nothing was checked) then decides: by default the run holds before the merge and waits for your approval; with „blockiert“ (blocking) it fails.
- The trial run also reports „not checked“.
- The factory skips SBOM and dependency scan with a reason and does not run „Ansehen“, also with a reason.
- The run log contains a warning.
Sandbox for the agent (agent in a container). This second guardrail („Sandbox für den Agenten“) decides where the agent CLI runs. The default is local: the agent runs as a process on the machine, with your rights. With container the CLI and everything it starts (build tools, package managers, install scripts of third-party packages) run in a throwaway container. In there it sees only the project folder (.git read-only) and a fresh HOME with its own login — no SSH keys, no git or cloud credentials, no other projects, not the factory's database. The container runs as a normal user (never root), with a read-only file system, without capabilities, without access to Docker and with limits for CPU, memory and processes. Linux and WSL only.
What this does not protect.
- The content of the project folder: the agent reads and changes it — including secrets that are stored there (
.env, key files). - The agent's login (subscription login or API key): it has to use it, so it can read it. From the container only a verified token renewal is written back to the machine; the factory discards anything else and reports it in the run log. The CLI does not get keys of other vendors.
- Exfiltration over the network: the container's network is open — the agent needs the model API, the build needs the package sources. Whatever the agent sees it can send; services in the local network are reachable — including services on this machine that listen on all addresses (
0.0.0.0), such as the factory's UI or a database. The guardrail „Netz des Agent-Containers“ narrows this to allowed addresses (see below). - Wrong or malicious code in the result: review, quality gate and approval remain in charge.
- A container is not a virtual machine: a kernel or Docker vulnerability reaches through.
Setting it up, step by step.
- Prerequisites: Linux or WSL; Docker installed and running; the user the factory runs as may call Docker. The agent's CLI is installed and logged in on the machine as before.
- On
/projects/{id}/leitplanken, set the row „Sandbox für den Agenten“ tocontainer(project:MAINTAINERor higher; tenant and global:ADMIN). The build container („Sandbox für Build, Tests und Scans“) is set on the same level along with it — without it the build gate would run the agent's code on the machine. The box „Netz nur zu freigegebenen Adressen“ (network only to allowed addresses) next to it is pre-ticked and also sets the network toallowliston the same level (can be unticked; a network already set there stays; greyed out with the reason without Docker 28 or newer). - In the box „Agent im Container“ on the same page choose „Agent-Image bauen“ (build agent image). The factory builds the image on your machine: the project's build image plus Node.js plus the CLI in the version installed on the machine. This takes a few minutes; after a reload the page shows state and output. Nothing is uploaded.
- Start a run. The run page shows „Agent: im Container (Projekteinstellung). Er sieht nur den Projektordner und seine eigene Anmeldung. Netz: offen.“ (in the container, sees only the project folder and its own login, network open).
Never a fallback. If something is missing — Docker, the image, Linux/WSL, the build container, a .git in the project folder — the agent does not start, and not on the machine instead either. The run ends with the reason („Agent nicht gestartet: …“); beforehand the box „Voraussetzungen“ and the line „Agent: Container verlangt …, aber nicht verfügbar“ name it. This holds on every level, also with a global-only setting, and also when the factory cannot read the setting. The checkbox „trotzdem starten“ does not change that.
Which agents. Available in the container: Claude Code, Codex, Gemini, Kimi and Aider — directly and via Bedrock and Azure OpenAI. The image contains the CLI in the version installed on your machine; if it is missing there, the factory builds no image and says so. Not available: Aider via Vertex AI (the login is a file on the machine) and Aider with a local model (the server listens on the machine, which the container deliberately cannot reach) — a run with these two does not start in the agent container and states the reason. Aider makes no commits of its own in the container. The addresses for the Kimi subscription are an assumption (from the CLI's program, not verified by a run). The mock simulation starts no agent process and runs unchanged; the run page then says „Dieser Adapter startet keinen Agenten-Prozess“. AI reviews and the AI merge of control artefacts still run on the machine (read-only and without tools respectively).
What is missing in the container. Passed-through environment variables (SOFTWAREFABRIK_AGENT_ENV_DURCHREICHEN) and tools of the machine (Einrichtung → Werkzeuge, Wine for MonoGame shaders, Blender, the graphics card) — the image's tools count. Under „Geht im Container nicht“ the page lists what affects your project; you can still use the switch. Parallel runs in their own working copies cannot use git in the container. The first run per project downloads dependencies again (the caches live in .sandbox-m2, .sandbox-home and .sandbox-nuget in the project folder and are not committed). After an update of the CLI on the machine or a different build image a new image is needed. MCP gateway in the container. MCP servers allowed through the MCP gateway are reachable for the agent in the container too — through the factory's gateway door: only the MCP endpoint of your run, with this run's token, nothing else on the machine. This works with the open network and with allowed addresses, but in both cases it needs the proxy image and Docker 28 or newer; if one is missing the agent does not start and the run names the reason. Claude Code only. Own MCP servers in the container. If the operator has approved own MCP servers (single-user only, Blender for example), the agent in the container can use them too — the same way. The servers keep running on the machine (the factory starts them for the call and ends them afterwards); the agent sees only the approved tools, under the name mcp__softwarefabrik__<server>__<tool>. An approved tool acts on the machine, not in the container. Details: administration manual, section 8c.
Network of the agent container (allowed addresses only). With the agent container alone the network is open. The guardrail „Netz des Agent-Containers“ (network of the agent container; offen by default, allowlist) narrows it: the agent container then sits in an internal network with no way out and reaches only allowed addresses — through a proxy that the factory starts for each agent call. The agent can no longer reach services on your machine or in the local network, and it can no longer send what it sees to an arbitrary address.
Switching it on.
- Prerequisite: the agent container as above, plus Docker 28 or newer.
- On
/projects/{id}/leitplanken, set the row „Netz des Agent-Containers“ toallowlist(„nur freigegebene Adressen“, allowed addresses only; project:MAINTAINERor higher; tenant and global:ADMIN). Agent container and build container are set on the same level as well. - In the box „Netz des Agenten“ on the same page choose „Proxy-Image bauen“ (build proxy image; about a minute, once for all projects; after a factory update a new build may be needed). „Agent-Image bauen“ also builds a missing proxy image.
- Start a run. The run page shows „Agent: im Container (…). Er sieht nur den Projektordner und seine eigene Anmeldung. Netz: nur freigegebene Adressen.“ (network: allowed addresses only).
The list. The box „Netz des Agenten“ shows every allowed address with its origin: Agent-CLI (model API and login of the one agent of the run, e.g. api.anthropic.com and platform.claude.com for Claude Code), Projektprofil (the package sources of your confirmed profile — what is merely detected in the project folder does not count —, e.g. repo.maven.apache.org, registry.npmjs.org, api.nuget.org, pypi.org), Betreiber (operator: for all projects, also from the operator's Maven settings.xml) and Projekt (project).
Extending the list. If your build needs another address, enter it under „Zusätzliche Adressen“ (additional addresses; MAINTAINER or higher), one per line: pakete.example.com, or as a wildcard *.example.com (applies only to names below the domain, at least two labels after the asterisk). No IP addresses, no paths. Addresses in the local network (your own mirror) and ports other than 443 can only be allowed by the operator — on the page /leitplanken. The change applies from the next agent call and is audited.
What the log shows. After every agent call the run log names every rejected connection with target, count and reason („Netz des Agent-Containers: Verbindung zu example.com:443 abgelehnt (3-mal, nicht freigegeben).“) and, in one line, the addresses that were reached. If there are very many different targets, the log says that the list is incomplete. The run page summarises the rejected targets in a note and leads to the place where you allow them. Not every rejected address is missing for the build: agent CLIs report usage data to their vendor, for example (Claude Code: http-intake.logs.us5.datadoghq.com) — that is lost without consequences. If the build fails because of a rejected address, another attempt by the agent does not help: allow the address and start the run again.
Limits. The list prevents direct connections to other addresses and access to your machine and the local network. It does not prevent data from leaving through an allowed service that itself forwards or publishes: the model API (vendor tools such as web fetch or web search run with the agent's login on the vendor's servers), a package source that accepts uploads (npm, PyPI, crates.io, NuGet, Maven repositories), or another service behind the same address (shared CDNs, encrypted server name). Allow only what the build needs. General-purpose stores such as github.com are therefore not included by default (the Gradle wrapper cannot download its distribution then), nor is the Go module proxy proxy.golang.org: it fetches modules from their origin servers itself and thus forwards to arbitrary addresses — a Go project needs the operator to allow it or a mirror of its own (GOPROXY). The build container is not bound to the list; its network is best left off. The agent reaches the MCP gateway not through the list but through the gateway door (see above, „MCP gateway in the container“). If something is missing — Docker 28 or newer, the proxy image — the agent does not start, not even with an open network.
Where the build runs. The run page shows at the top (and under „Leitplanken dieses Laufs“) a line such as „Build, Tests und Scans: auf dem Rechner (globale Einstellung)“ (on the machine, global setting) or „… im Container (Projekteinstellung)“ (in the container, project setting), plus the line about the agent: „Agent: auf dem Rechner, mit deinen Rechten.“ (on the machine, with your rights), „Agent: im Container (…). Er sieht nur den Projektordner und seine eigene Anmeldung. Netz: offen.“ or — as a warning — „Agent: Container verlangt (…), aber nicht verfügbar — … Der Agent startet nicht.“ (container required but not available, the agent does not start). If Docker is missing, it says e.g. „… auf dem Rechner — eingestellt ist der Container (globale Einstellung), aber Docker fehlt“ or „… nicht möglich — der Container ist verlangt (Projekteinstellung), aber Docker fehlt“. The same statement appears briefly before the start — in the form „Neuer Lauf“, at the button „Lauf starten“ on the run page and at „Bauen“ on the project page — with the link „Leitplanken des Projekts“. The project page shows the line as well.
Per run. Every execution records its guardrails as the attested event RUN_LEITPLANKEN. The run page shows them under „Leitplanken dieses Laufs“ (/runs/{id}/leitplanken): the values at the start of execution. For the sandbox it shows the value with its origin (entry SANDBOX=<value>@<origin>, plus SANDBOX_RUNTIME=fehlt if Docker was missing). For the agent it shows AGENT_SANDBOX=<value>@<level>; for every agent call in the container the event RUN_AGENT_CONTAINER records image, network, the requiring level and — if the agent could not start — the reason. Runs before this version have no entry: there the agent ran on the machine. So the run page shows later what applied then. Runs before 0.46 have no snapshot.
9.9 Approval options and policy-as-code
Globally there are exactly three options for approvals (on the „Leitplanken“ page in „Experte“, section „Freigaben“, question „Wann soll ein Lauf warten?“ — when should a run wait?):
| Option (UI label) | Effect |
|---|---|
| vor der AusfĂĽhrung (before execution) | The run waits before the agent starts working. |
| vor dem Merge (before the merge) | The agent works and the result is built and checked; the run waits before it is taken over. |
| nie (never) | No stop — the run goes through as long as build and checks allow it. |
„Freigabe speichern“ (save approval) applies the option. Only administrators may change it; every choice is audited. A level sets the approval too („Vorsichtig“ and „Ausgewogen“: before execution, „Schnell“: never). An existing approval policy that matches no option (for example because it stops at both points) is shown as „Eigene Einstellung (Freigabe-Policy)“ (own setting) and stays unchanged until you explicitly choose an option. Before the merge is also kept when a level is chosen.
Requirements per phase now exist only in policy-as-code (Einrichtung → Betrieb und Nachweise → Policy-as-Code und Compliance, /policy-as-code, administrators only). If the signed policy requires an approval, the guardrails page shows this under „Freigaben“. How policy-as-code, compliance profiles and the four-eyes principle work together is described in the administration manual, chapters 6 to 8.
9.10 Agents and teams
Agents and teams (from 0.46). You manage agents (/agents) and teams (/teams) from role MAINTAINER (previously ADMIN); on shared instances only the platform operator. Each agent has one page (/agents/{id}). Under „Was der Agent darf“ (what the agent may do) you define what affects the call (the old address /agents/{id}/steuerung redirects there):
- Model — chosen from the model catalog; empty = routing decides (capability routing, role default, adapter).
- Tools — read (always included), Git read, build and test (commands of the project profile), change files.
- Policy — Voll (full: the tool selection applies) or Nur lesen (read only: no changes, no build commands, e.g. for reviewers).
From this the factory derives the allow list of the Claude Code call: the intersection of configuration, agent and project profile; without "change files" additionally --disallowedTools for Edit, Write, MultiEdit and NotebookEdit. It can therefore only restrict. The profile intersection applies only once an agent's tools have been explicitly selected and saved; existing agents keep their allow list. The selection is enforced only with the Claude Code adapter; other adapters report in the run that it is not enforced. "Build and test" runs project programs that can themselves write files — only the "read only" policy is truly read-only. An Architect with "read only" cannot write a spec, a Developer without "change files" delivers no changes.
The team order decides who executes a run: BUILD the first active Developer, PLAN and SPEC the first active Architect, otherwise the first active agent. Runs without a team use the default team (behaviour change: model and permissions come from its responsible agent). The default team cannot be deleted or unset without designating another one; AGENTS.md contains its agents. Teams can be renamed, copied and deleted, and so can agents (deleting only once the agent no longer belongs to a team). The team page shows the responsible agent per run kind and the preview "what the agent gets" (/teams/{id}/vorschau): model, tool groups, allow list and permission flags. Every run records the responsible agent as the attested event RUN_AGENT (team, agent, role, tools, model, durchgesetzt=true|false).
Engineering guardrails. A vendor-neutral behavioural policy flows into the context of every coding agent on every run and is projected into the repo as AGENTS.md — one source, several projections, instead of one maintained copy per tool. From 0.46 a project can no longer switch off the guardrails itself, only globally (section 9.8).
Skill library („Skill-Bibliothek“). Under /skills you manage versioned skills and plugins. Before each run they are materialized into the workspace as .claude/skills/<name>/SKILL.md, .claude/agents/<role>.md and .claude/settings.local.json. That makes it traceable which extension, in which version, was in the agent's context.
9.11 Control artifacts
Protecting the control artifacts (drift protection)
By default every run rewrites the six control artifacts (PROJECT.md, INSTRUCTIONS.md, AGENTS.md, WORKFLOW.md, DEFINITION_OF_DONE.md, README.md) — a rule you or an agent added directly to AGENTS.md would be gone afterwards. With mode protect (Einrichtung → Einstellungen → „Erweitert“ → Steuerartefakte; the UI sets the mode factory-wide):
- If the workspace file still matches the version the factory last wrote, it is updated as before.
- If it was changed, the factory does not rewrite it. The workspace version is saved as an immutable version (
SNAPSHOT), the run log warns, and the agent works with the changed file. - The guardrails header and the spec index in
AGENTS.mdare managed by the factory and do not count as changes. A customizedCLAUDE.mdis kept too.
Under Project → Artifacts each file lists all versions with status, origin (GENERATED, MANUAL_UI, WORKSPACE_SNAPSHOT, WORKSPACE_ADOPTED, RESTORED, MERGED) and SHA-256. Restore turns an earlier version or a snapshot into the new valid version. Regenerating unchanged content creates no new version.
Evolving the control artifacts (artifact evolution)
Under Project → Artifacts → Artifact evolution you bring the six files up to date with the project definition and current templates without losing your additions:
- Analyse compares three versions per section: the one the factory last wrote (BASE), the workspace one (CURRENT) and the newly generated one (NEW). What only you changed stays; what only the template changed comes in; what both changed differently is a conflict — your version stays until a decision.
- Analyse with AI additionally lets a model merge conflicts (default: Claude Opus 5.5 — directly via the Anthropic API when an API key is set, otherwise via the Claude CLI with a plan). Every proposal is checked: it may only touch its own section, must not introduce secrets, hooks, MCP servers or permissions, and must not drop a rule from a security section. Otherwise the conflict stays open. Artifact content goes to the model as data, not as instructions.
- The preview shows the diff per file, the decision per section, the conflicts, the AI's reasons and contradictions between files.
- Approve and apply (MAINTAINER or higher; Reject discards the update) applies all files as one set: the factory checks the workspace has not changed since the analysis, writes atomically, versions and commits only these files. A critical conflict (security section) without a valid proposal blocks approval. On failure the previous state is restored.
Existing repositories: if a file does not follow the factory structure (no sections in common with the template, e.g. when importing a grown repo), the analysis appends nothing. It proposes to adopt the file as baseline. After that the factory never overwrites it with a generated version; when the project definition changes, only the changed template parts appear as a proposal or conflict.
With modes approval and auto-safe (Einrichtung → Einstellungen → „Erweitert“ → Steuerartefakte) the factory also reacts during a run: if it finds changed files it creates an update for approval; with auto-safe it applies unambiguous updates without conflicts right away. The AI does not run there.
9.12 Adopting an existing Claude Code project
You already work with Claude Code in your own repository (CLAUDE.md, .claude/agents/, skills, commands, .claude/settings.json) and want to develop it further through the factory from now on, with plan/build runs, approvals, quality gate, pull requests and audit chain. Here is how (from 0.41.5):
- Start the factory natively (single-seat bundle, see 4.1) so that the Claude CLI is reachable. For the API key path, set
SOFTWAREFABRIK_CLAUDECODE_AUTH_MODE=api-keyin.envand store the key under Einrichtung → Integrationen after startup. It then applies to agent runs, reviews and the AI merge. - Protect the control artifacts: under Einrichtung → Einstellungen → „Erweitert“ → Steuerartefakte set the mode to
protectorapproval. In modeoffevery run rewrites the factory's six control artifacts (README.md,AGENTS.md, …) and would replace your versions. The factory never replaces your ownCLAUDE.md, in any mode. - Import the repository: in the project wizard choose „Bestehendes Repository importieren“ (import existing repository) (template
existing-repo-import) with a Git URL or a local path; the quick start („Bestehendes Projekt weiterentwickeln“) imports and starts a run right away. A local path must lie below an allowed import folder (Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts orSOFTWAREFABRIK_IMPORT_ALLOWED_ROOTS). - Adopt the existing files: under Project → Artifacts → Artifact evolution click "Analyse"; adopt files that do not follow the factory structure as the baseline.
- Load the Claude Code project context: tick the box on the project page and save. Claude Code runs then start with
--setting-sources=user,projectinstead ofuser. - Optional: set a build directory (monorepo) and enter the Git author of the factory's commits under Einrichtung → Einstellungen („Arbeitsbereich und Git-Autor“).
Then start plan and build runs as usual; every build run works on its own branch and delivers via pull request or local merge.
What applies in factory runs (verified empirically with Claude Code 2.1.310):
| Project content | without project context | with project context |
|---|---|---|
The repository's CLAUDE.md |
not loaded (the run instruction only names AGENTS.md etc.) |
loaded |
.claude/agents/ (subagents) |
not loaded | loaded |
.claude/skills/, .claude/commands/ |
not loaded | loaded |
.claude/settings.json (permissions) |
not loaded | loaded; its allow rules extend the factory's allowlist |
.claude/settings.json with env, helper commands, additionalDirectories, bypassPermissions or MCP enablement |
not loaded | project context suspended for the run (since 0.42.3, see below) |
Hooks (from settings.json or skills) |
off | off (disableAllHooks) |
.mcp.json |
not loaded | not loaded (MCP null state); enable servers via the MCP gateway |
.claude/settings.local.json |
not loaded | not loaded |
Personal ~/.claude (your own CLAUDE.md, agents, plugins) |
not loaded (empty HOME) | not loaded; move into the repository if needed |
The project context is meant for trusted repositories only: their settings.json then co-determines the agent's command permissions. Switching it is recorded in the audit chain (PROJEKT_CLAUDE_KONTEXT_GEAENDERT).
Protection since 0.42.3:
- If the factory finds entries under
.claude/before the start that do more than allow commands —env(e.g. a redirected API endpoint), helper commands (apiKeyHelper,statusLine…),additionalDirectories,bypassPermissionsor MCP enablement — this run starts without the project context. The run log names the file, the audit chain recordsCLAUDE_PROJEKTKONTEXT_AUSGESETZT. Remove the entry and the project context applies again. - The factory does not keep agent changes to agent configuration. Anything a run changes or creates under
.claude/, in.mcp.json,.codex/,.gemini/,.kimi-code/or in the Aider files is reset to its state at the start of the run before the commit — even if the agent committed it itself (AGENT_KONFIG_ZURUECKGESETZT). An agent therefore cannot write itself permissions for later runs. Maintain subagents, skills and settings in the repository yourself.CLAUDE.mdandAGENTS.mdin the root are not affected.
The factory places its own subagents (one per team role) and skills from the library under .claude/. These files carry a marker; a file of the same name without the marker belongs to your project and is never overwritten. The generated files are listed in the workspace's .git/info/exclude and so never end up in your commits or pull requests.
9.13 Governance: attestation, why-trace, export, compliance
For evidence and audits the factory records what happened and makes it verifiable:
- Why-trace („Warum-Trace“,
/runs/{id}/trace, button on the run page in „Experte“) — why a run went the way it did: task, model, approvals, checks and the attested events of the run. - Guardrails of this run („Leitplanken dieses Laufs“,
/runs/{id}/leitplanken) — the values at the start of execution (9.8). - Attestation („Attestierung“,
/attestierung) — verifies the signed audit chain: intact or broken. - Audit export („Audit-Export“,
/export) — evidence bundle for a project or run as JSON. - Policy-as-code and compliance („Policy-as-Code und Compliance“,
/policy-as-code) — signed, versioned rules and ready-made rule sets (EU AI Act, BAIT/MaRisk/DORA, BSI).
These pages are under Einrichtung → Betrieb und Nachweise (operations and evidence; collapsed, administrators only).
Multi-user operation. Roles (VIEWER … ADMIN), tenants, optional SSO, budget caps, policy-as-code, compliance profiles and the signed audit chain are available — described in the separate administration manual.
9.14 Spec mode (spec-driven development)
If you want requirements captured not only as free text in the run objective but as an approvable spec, use Specs (button on the project page, visible only when enabled: feature flag softwarefabrik.spec.enabled and — with an active license system — tier Professional/Enterprise; details in the administration manual, section 13b).
- Create from the template. A spec has an ID (
SPEC-001,SPEC-002, …), a goal, non-goals and acceptance criteria with IDsAC-001-01,AC-001-02, … (EARS form recommended: When …, the system shall …). Every change creates a new draft version; nothing is overwritten. - Approval (from role MAINTAINER). The factory checks mandatory sections, ID schema and uniqueness and tells you plainly what is missing. An approved version is immutable; a new approval supersedes the old one. The detail page shows a comparison of two versions at the level of acceptance criteria (new, removed, changed).
- In the workspace. In spec mode
LEICHTorSTRENG(set on the spec overview; defaultAUS= everything as before) every run places the specs underspecs/SPEC-<nnn>-<slug>/spec.md. If an agent changes that file, the factory takes the change over after the build as a new draft — approval remains a human decision. - Backlog and quality gate. In mode
LEICHT/STRENGthe plan run writesSpec: SPEC-<nnn>andAC: AC-<nnn>-<nn>, …into every plan; the backlog shows the reference and warns when the spec is missing, not approved or AC IDs are unknown. InSTRENGsuch an item cannot be activated. The build run hands the reviewers the acceptance criteria of the approved spec — the gate thereby checks for the first time whether the code does the right thing. - Traceable down to the AC ID (from 0.39.0). A build run with a spec reference receives the bound acceptance criteria (ID + text) directly in its objective — the same for every agent — and
AGENTS.mdgets a spec index. The factory commit and the pull request carrySpec: SPEC-<nnn>andImplements: AC-…; the run's why-trace shows which spec version (version, hash, AC IDs) was built against. If the spec is not approved yet, the run still starts — unbound, with a hint in the log. - Workflows and wizard (from 0.39.0). In a workflow you state spec and AC IDs per task (when adding it or under "Spec-Bezug erklären"); all child runs of the workflow then verifiably work against the same spec version. In mode
STRENGa plan can only be approved once every writing task names an approved spec. The project wizard asks for the spec mode in step 5 (defaultAUS). Every approval additionally stores the acceptance-criteria block as contractSPEC-<nnn>-acunder Contracts. - Does the code do the right thing? (from 0.37.0). For runs with a bound spec the reviewer
spec-conformancereports every bound AC ID for which no test is found — name the ID in the test name, as@Spec("AC-…")or in a comment. It also points out tests with unknown AC IDs and changed files without an AC assignment (commit trailerImplements:or a path in the spec). InLEICHTthese are hints; inSTRENGmissing coverage blocks the quality gate and the run enters the correction loop. - The factory drafts the spec with you (from 0.39.0). On the spec overview you start a spec run from an idea: a few sentences are enough, the factory creates the spec and lets an agent work out goal, non-goals, acceptance criteria with IDs and negative and boundary cases per criterion. On the detail page you sharpen an existing spec the same way (optionally with an order). The agent writes only under
specs/— everything else is discarded and named in the run log. Whatever it cannot derive it writes as a question into the section "Offene Fragen" instead of guessing. The result is always a new draft version; a draft with findings is taken over too and shows them on the detail page. Approving stays your decision. From role DEVELOPER; the spec mode may beAUSfor this. - When the spec is mandatory (from 0.39.0, Enterprise). If your administrator made spec approval mandatory in the policy (or applied the EU AI Act or BAIT/MaRisk/DORA profile), a build run starts only from a plan item that references an approved spec — even if the project is in spec mode
AUS. The factory states the reason (spec mode, missing reference, missing approval) before anything runs; a workflow plan can be approved only once every writing task names an approved spec. If the policy also demands a minimum AC coverage, the quality gate blocks while too few of the bound acceptance criteria are covered by tests — the run enters the correction loop and the log states covered/bound. Under Kennzahlen (choose a project) you see how SDD performs: share of starts with an approved spec, AC coverage, spec drifts and spec changes per release; the audit export attaches the bound spec versions, signed. - The agent asks back (from 0.39.0). If the spec run left open questions, it ends as "waiting for answers" (
WAITING_FOR_INPUT) instead of completed. On the spec detail page you see each question on its own: answer it or mark it not relevant — the factory records who answered what and when. Continue becomes possible only once no question is open; a follow-up pass then starts with your answers as input and produces another draft version (the waiting run counts as completed). You can cancel a waiting run at any time. - Reverse spec for existing code (from 0.39.0). For a project with an imported repository the spec overview offers Reverse-Spec starten: the agent derives a spec from code and tests that describes what the system does today — assumptions, non-goals and open questions explicitly marked. Without an imported repository the button is not offered.
- Spec changed — what is outdated now? (from 0.37.0). When you approve a new version, the factory compares it with the old one at the level of acceptance criteria. Open backlog items and running workflow tasks bound to a removed or changed criterion are marked outdated (backlog:
VERALTETwith reason; workflow: "Veraltete Grundlage" with the spec binding). Activating binds the new version. If your spec names a contract undercontracts:that received a breaking version, the spec overview shows "prĂĽfbedĂĽrftig". - Bring specs in from GitHub Spec Kit (from 0.40.0). If your project's workspace contains Spec Kit specs (
specs/<NNN>-<slug>/spec.md, template v1.2.2), the spec overview lists them under Spec-Kit-Specs im Workspace. Vorschau & Import (from role DEVELOPER) shows, before anything is created, which Spec Kit ID becomes which AC ID (every acceptance scenario becomes[US1-AS2], everyFR-003becomes[FR-003]at the start of the criterion), what is not taken over and what the parser flags. Success criteria (SC-<nnn>) go to the context by default; the switch "Erfolgskriterien als Akzeptanzkriterien übernehmen" turns them into criteria[SC-001].[NEEDS CLARIFICATION: …]markers and missing non-goals become open questions. Only Import bestätigen creates anything — always as a draft: a new spec or, if the same file was imported before, a new version of that spec (known aliases keep their AC ID). More than 99 requirements or a file without Spec Kit headings is rejected with a hint. The other way round, Spec-Kit-Export on every version downloads aspec.mdin Spec Kit format (Given/When/Then criteria as acceptance scenarios, the rest asFR-<nnn>, each with its AC ID at the end of the line) — forplan,tasksandanalyzeoutside the factory; the workspace stays untouched, and re-importing the file comes back with the same IDs and texts. The reviewerspec-conformancealso accepts the alias in tests (FR-003in a test name or comment). - Projects in the Spec Kit layout (spec format
SPEC_KIT, from 0.40.0). If you work with GitHub Spec Kit, or want to, choose the spec formatSPEC_KITin the wizard (step 5) or later on the spec overview (from role MAINTAINER); the default staysFABRIK. When you import a repository that contains.specify/or Spec Kit specs, the wizard proposesSPEC_KIT(for a Git URL this is only detectable after the first run — the spec overview then lists the specs found for import; nothing is imported automatically). In the Spec Kit layout every run writes the Spec Kit templates (v1.2.2) to.specify/templates/, generates.specify/memory/constitution.mdfrom the factory's engineering guardrails (section "Governance": human approval, quality gate, binding to approved versions) and projects every spec asspecs/<NNN>-<slug>/spec.mdin Spec Kit format — the number is that of the factory spec, every criterion carries its AC ID in parentheses, the header comment names spec, version and hash. If you change that file in your IDE (or a run does), the factory takes it over at the next run as a new draft of the same spec; known criteria keep their AC ID, new ones get new IDs — approval stays a human decision. If you edit the constitution by hand, the next run regenerates it from the guardrails (the run log says so): the guardrails are the single source. The spec run writes the spec followingspec-template.md(user stories with acceptance scenarios,FR-<nnn>, edge cases, assumptions) and marks questions as[NEEDS CLARIFICATION: …]; you answer them in the spec UI as usual, and the follow-up run records the answers under## Clarifications. The plan run additionally placesplan.md(and, if needed,research.md,data-model.md,quickstart.md,contracts/) followingplan-template.mdin the spec directory; changes tospec.md,tasks.mdor below.specify/are discarded and named in the log. What the factory does not do: install or execute Spec Kit — nospecifyCLI, no/speckit.*commands, no scripts or extensions, notasks.md. If the workspace check finds such parts (.specify/scripts/,.specify/extensions.yml,.claude/commands/), they are attested and, under the MCP default ban, block the quality gate until you remove them; the factory deletes nothing. A format change is audited and applies from the next run; unchanged files of the old format are cleaned up, changed ones are left in place and named.
9.15 Workflows
A workflow splits a goal into tasks that run in parallel as separate child runs — each in its own Git worktree. Workflows are a feature switch (off by default): an administrator turns them on with SOFTWAREFABRIK_WORKFLOW_ENABLED=true and restarts the factory. Whether the switch is on is shown under Einrichtung → Einstellungen → Funktionsschalter (feature switches).
When it is on, the run list gets the tab „Workflows“ (/workflows). There you create a workflow under „Neuer Workflow“ with title and goal. On its page you add tasks, finish planning, approve the plan („Plan freigeben“) and start with „Bereite Tasks starten“ (start ready tasks; with a cost estimate per child run). „Zusammenführen und prüfen“ (merge and check) combines successful branches; only the integration gate decides success. A merge conflict stops the workflow: „Erneut versuchen“ (try again) or „Branch verwerfen und fortfahren“ (discard branch and continue).
What an administrator needs to know about ownership rules, leases and automatic start is in the administration manual, section 13a.
9.16 End-to-end example with the wizard
A complete walkthrough with example 1 (Spring Boot + React):
- Wizard:
/wizard→ platform Web → backend Spring Boot (Java 21, PostgreSQL, hexagonal, packageio.example.maint) → frontend React (TypeScript) → quality gates ArchUnit + OWASP → summary → create and edit project. - Editor: review/complete the fields from 9.4, save. Generate Markdown artifacts.
- Create run („Lauf mit allen Optionen anlegen“): adapter claude (or mock to practice), pick a team, task: "Create the Spring Boot skeleton per PROJECT.md, implement the order CRUD (entity, repository, REST under /api/v1) and a React frontend with an order list. mvn verify must be green."
- „Bauen“ (or „Nur anlegen“ and then „Lauf starten“ on the run page). The run works in the background and the page updates itself; the logs show what is happening.
- "Approve and continue" once the run waits for your approval (by default before execution, i.e. before the agent works; with the option „vor dem Merge“ after build and checks, then with the inline diff).
- After
mvn verifyis green → COMPLETED. In the default modeadvisorythe quality gate runs automatically; its result is under Quality Gate on the run detail page (where you can also re-run it). - Inspect the result workspace and adopt it into your repo.