Agent? Hier lang.
← Built

Software factory · S-01

ForgeCenter.

My own software factory in Europe. Software is built in loops, coordinated by AI. I built it because I did not want to depend on any single model.

  • My own project
  • 6 of 9 tracks delivered
  • Several hundred hours
Idea
A factory that builds software in loops. The AI coordinates. I approve.
Status
Six of nine tracks delivered. Maintenance of the factory by the factory itself is only sketched in.
Operations
Five separate machines in Europe. Vault for every secret.
Models
For each project, OpenRouter picks the model that fits.
Stack
TypeScript, Node, Docker Compose, Temporal, NATS, PostgreSQL.

What it is about.

I did not want to depend on any single AI model. In ForgeCenter the task decides which model works: an efficient one for an ordinary run, a heavy one when the problem is hard. Which one that is lives in configuration, not in code.

Around that sits European privacy law as the shell. It is governance that holds for Europe, and especially for Switzerland, no matter which model takes the call.

The whole thing is built as a loop. Software is not produced in one shot. It moves station by station.

Request Shape the work Estimate Sandbox Quality Deploy Cost it moves on only after a signature or a passed check · a person can step in at every waiting point
The loop. If a card is waiting, the pipeline is actually stopped.

Six challenges, six answers.

A factory that writes code and ships it can break a lot. These questions set the design.

Challenge 01

A mistake in test must never be production.

If everything sits on one machine, every mistake hits everything.

How it is solvedFive machines, separated on purpose: development, testing, production, one for data only, one for operations. Production gets only a pinned release, and only after a soak.

Challenge 02

A mistake in the portal must not take over the controls.

Customers and operators both need access. They do not need the same access.

How it is solvedTwo gateways that share nothing. The operator gateway may start workflows. The customer gateway only reads prepared records. The browser holds a session, not a key.

Challenge 03

AI work can get expensive.

A loop that wanders off burns money.

How it is solvedThe budget is reserved before any code is written. An overrun stops the pipeline and asks a person.

Challenge 04

Code that an AI runs needs a closed room.

A worker holding production keys would be a risk.

How it is solvedA closed sandbox outside the production network. It has one allowed way out and no production secrets, and the worker image installs nothing from the public network.

Challenge 05

How much freedom does an agent get?

Too much is dangerous. Too little makes the factory useless.

How it is solvedAutonomy is earned. A new worker starts with the tightest permission. It may draft. It may not write to a customer on its own, and it may not promote to production on its own.

Challenge 06

The factory does not get to write its own report card.

Whoever can change the test always passes it.

How it is solvedForgeCenter may not rewrite its own gate, or the contracts the project is measured against.

This is how the two circles stay apart:

Console Operator gateway Control plane Temporal Portal Customer gateway PostgreSQL Workers NATS Sandbox Models
A solid line starts the workflow. A dashed line only reads.

Where the AI works, and where it does not.

ForgeCenter is an example of how I use AI: a lot of room in the doing, hard limits on what counts.

The AI takes
  • Turn the request into scope, decisions, a plan, and a cost estimate
  • Write the plan as a graph of modules and dependencies
  • Change code, run tests, open a pull request
  • Check multi-step work against the criteria
I decide
  • Two confirmations for every new effort
  • The go-ahead into production
  • What happens when the budget is overrun
  • Whether I step in at a waiting point
The AI may not
  • Write to a customer on its own
  • Promote to production on its own
  • Rewrite its own gate or the contracts

The start is covered too: free text is cleaned before a model sees it.

What the AI gave me.

Independence

Because the model is configuration, I can switch as soon as another one is better or cheaper. A light run and a hard problem go through the same ceiling and the same trace.

A feel for autonomy

I now know how tight to make an agent's room at the start, and how to tell when it has earned more.

A confirmation from outside

On September 10, 2026, Cursor Projects arrived, with the same split: steer, build, share context, keep the sensitive part closed, a person at the end. The architecture was already standing before it existed as a product.

What the project shows.

  • ArchitectureFive machines, two circles, one database per environment. Every separation has a reason.
  • Security and governanceA closed sandbox, Vault as the only place for secrets, data classified before anything moves to staging or production.
  • Cost controlBudget reserved before the code. Billing per job.
  • A technology choiceDocker Compose instead of Kubernetes, because a small team still has to be able to explain the stack.
  • Leading autonomyPermissions are earned. They are not handed out.
  • Honest about where it standsSix of nine tracks are up. Maintenance of the factory by itself is only sketched in. A product spun out of an empty repository never became an offer.

Status today.

On September 10, 2026, Cursor Projects arrived, and with it the main goals were met. A project is a longer piece of work, led in conversation with a coordinator. He does not write the code. He plans, hands work to as many workers as the job needs, and brings the result back.

A SpaceX product now lets this change happen much faster than I could build it alone as a one-man show. What it does not replace is a safe development environment: data security, retention periods, chats. Data is classified before anything moves to staging or production. Billing per job, the portal, and the rules I operated myself stay.

Several hundred hours have gone into the project. I am still interested in finishing ForgeCenter.

Engineering in detail.

If you want the exact version: the long write-up, as I wrote it.

Open the long version

Architecture

Five machines, separated on purpose. A mistake in testing should not be production, and the record should not sit on a machine I rebuild when a worker changes. Development, where new behavior of the factory was proved. Testing, where the gates were calibrated, behind development. Production, only with a pinned release, and only after a soak. One machine for the data only. One for operations: Vault, alarms, and the step that pushes a release forward. Prometheus, Loki, and Grafana sat beside that path, not in it. An environment counted only once you could see it.

People came in through two gateways that do not share. The console talks to the operator gateway. Only that one may start a workflow. The portal talks to the customer gateway. That one reads prepared records and nothing else. Two applications, two sign-ins through Ory, two circles. A mistake in the portal was not allowed to become control of the operator. The browser held a session, not a key.

Master Control accepted work and started workflows. Temporal held the work item across a restart. The board in the console was that state, not a second list. That is why Temporal, and not a board you keep up on the side. NATS carried the events. The console, the trace, and later the self-maintenance all heard the same bus. A direct call from service to service would have left those listeners out.

PostgreSQL stood on its own machine, and only there. Projects, audit, billing, and the facts of the workflow each had a record per environment. The database did nothing else. Redis sat with each environment: development, testing, and production. A shared cache was rejected, because one outage would have taken all three.

Approach

A loop. Request, shape the work, estimate, sandbox, quality, deploy, cost. It moved on only if the station before had signed or a check had passed. If a card was waiting, the pipeline was actually stopped.

Free text was cleaned before a model saw it. A new effort needed two confirmations, and neither could stand in for the other. The requirements step turned that into scope, decisions, a plan, and a cost estimate. Simple work could take a shorter path. Hard work stayed in the conversation. The budget was reserved before code existed. An overrun stopped the line and asked a person.

After approval, the plan was a DAG. The requirements step wrote modules and their dependencies, not a loose list and not five-minute tasks. The development step ran the nodes: change code, run tests, open a pull request. A stale DAG was not reused. After a correction it was written again. The sandbox was closed. It sat outside the production network, left only through an allowed exit, and it held no production secrets. The worker image installed no packages from the public network. That is why a closed sandbox, and not a machine holding the keys to the live work.

Quality could check multi-step work against the criteria. A smoke gate checked the factory after deploy. A person could step in at every waiting point. Staging and production stayed separate. The description came from the record. I approved production. A release was allowed to run and still be provisional. The last trusted state moved forward only after a soak, once real work had gone through cleanly.

Autonomy was earned. A new worker started with the tightest permission. I kept the last mile: drafting yes, writing a customer on its own no, promoting to production on its own no. ForgeCenter was not allowed to rewrite its own gate, or the contracts the project is measured against. Six of nine tracks had been delivered. Maintenance of the factory by itself was only sketched in. A product spun out of an empty repository never became an offer.

Stack

TypeScript and Node, one repository, one language across agents, gateways, and the two surfaces. Docker Compose on the five machines. A swarm was the named path if one machine was no longer enough horizontally. I did not take Kubernetes. The stack had to stay explainable for a small team, with a hard cost ceiling and the platform living in Europe. Traefik held the edge. Vault was the only place for secrets, one role per machine, none of it in source. For each project, OpenRouter chooses the model that best fits the task. The name lived in configuration, not in code, so the project was not tied to a vendor. A light run and a hard problem went through the same ceiling and the same trace.

Next project · S-02immoHunterA quantitative analytics tool for my real-estate reports.
Read more →

In ForgeCenter I keep staging separate, the sandbox closed, costs capped, and secrets in the vault. I build software that way at stact, and in the AI audit I check whether it holds up too.

Contact

What is sitting in your backlog?

Tell me briefly where it is stuck. I will look at it and get back to you myself.

How should I reach you?