---
title: "How We Set Up a Software Factory (and Why We Call It an Agent Workshop)"
description: "Consultants define decisions, wiki pages and work packets in GitHub; coding agents claim, build and verify them; a person merges. Our agent"
url: https://quarkcs.com/blog/artificial-intelligence/how-we-set-up-a-software-factory-and-why-we-call-it-an-agent-workshop
---
[Blog](https://quarkcs.com/knowledge-hub)
/
[Artificial Intelligence](https://quarkcs.com/knowledge-hub/artificial-intelligence)

# How We Set Up a Software Factory (and Why We Call It an Agent Workshop)

Our consultants put work into GitHub as decisions, wiki pages and work packets. Two coding agents build and prove it, and a person accepts it. This is how, and why we do not call it a factory.

December 1, 2026  ·
14 min read

---

Quark Cyber Systems is building something large. For now it is a secret project, and we will say more about it when it is ready. It is the kind of system where correctness matters more than speed, and much of the work is careful and repetitive. That is work coding agents do well, provided a person stays in charge.

This article sets out how we organised that work, in three parts. First, how our consultants put work in: decisions, wiki pages, requirements, tasks and the project plan, all in one GitHub repository. Second, how the agents take work out: claiming a task, building it, proving it and handing it to a person. Third, the machine: a small server where the agents work, steered from a phone. The first two matter more. The machine only runs the agents. The repository decides what they may do.

## Why we do not call it a factory

The usual name for a setup like this is a software factory. The term is well established among defence programmes, platform teams and tool vendors, and it is the phrase most people search for. Our own documents still use it. We stopped using it to describe what we built, because the picture it brings is wrong.

- **A factory takes people off the line.** Its promise is that the output no longer depends on who is standing there. Ours depends on a person choosing the work, settling the questions and deciding what ships. Without that person, two agents would accept their own mistakes.
- **A factory makes identical units.** Our build is not a stream of identical parts. Every task, whether a calculation rule, a data model or an approval flow, is a small piece of design with its own judgement calls.
- **A factory hides the craft.** What matters here is the supervision: one agent builds, another checks, and a person signs off.
- **"AI factory" already means something else.** The industry uses it for GPU data centres.

So we call it an **agent workshop**: a bench that is always on, where two capable apprentices work under a person who picks the jobs, checks the work and signs it off. It is the same rule we follow in our [own operations](https://quarkcs.com/blog/artificial-intelligence/how-we-run-a-service-business-with-ai-agents): the agent proposes, and a person decides.

## One repository holds the work

An agent does not remember yesterday's conversation, and a new agent should not need it. So nothing the agents depend on lives in a chat or in someone's head. The requirements, the decisions, the tasks and the evidence all live in one GitHub repository, and every change to any of them goes through a pull request, exactly like a change to code. The same rules apply whether a person or an agent does the step.

*The workshop at a glance: who does each step, and where it is recorded.*

## How consultants put work in

Our consultants, functional and technical, do not hand the agents instructions in a chat. They put work into the repository in a fixed order, so that by the time a task reaches an agent, every question it depends on has already been answered by a person.

### 1. Sources: where a requirement comes from

Every requirement traces back to a source: a workshop, a standard, a regulation, a decision by the product owner. Each source is entered once in a source register, with what it supports and where its limits are. Client documents stay outside the repository. A consultant rewrites what is needed as our own requirement, with made-up examples in place of client data.

### 2. Wiki pages: written in the repository, reviewed like code

Our wiki is a folder of Markdown pages in the repository, not GitHub's separate wiki. A consultant adds or changes a page through a pull request, so a change to a requirement and the code that depends on it are reviewed in the same place. GitHub's own wiki tab is only a generated copy. Each page states its status, its owner and when it was last updated, before any detail.

### 3. Ideas: discussed on an "in progress" page

A design that is still being argued about gets its own "in progress" page. The consultant lists the open questions on it, each with an identifier and a recommendation, and the discussion happens in pull-request review. Agents may help draft and analyse these pages, but nothing on them may be built. The documentation check enforces that no accepted page links to one.

### 4. Decisions: recorded as architecture decision records

When the owner approves, the decision is written down as an architecture decision record, or ADR. Every ADR follows the same template: the decision in one line, its status, its owner and date, the business impact, the evidence, the options considered and their trade-offs, the decision and its limits, the consequences, and how it will be validated. An ADR number is never reused. A later change of mind is a new record that supersedes the old one.

One pull request does three things at once: it moves the accepted parts of the in-progress page to their proper wiki pages, adds the record to the decision register with the dated approval, and deletes the in-progress page. A rejected idea is recorded too, with the reason. An agent may recommend a decision. Only a person can record it as accepted.

### 5. Requirements, supporting material and expected results: decided before the code

Each requirement is entered in a register with an identifier, an owner, its source and the evidence that will show it has been met.

Consultants rarely start from a blank page. They bring supporting material: an Excel workbook that works a calculation through step by step, a sample report the system must reproduce, a process map, a form, an extract from a standard or a regulation. Each piece is registered as a source, with its revision, what it supports and where its limits are.

- **Our own material goes in the repository.** A workbook or document a consultant prepares for the purpose, with made-up figures, sits beside the requirement it supports and is versioned with it.
- **Client material stays outside.** A client's workbook or document is cited by name, revision and the exact sheet and cell or page, and never copied in. Where its logic is needed, the consultant rebuilds the worked example with made-up figures.

For the rules that matter most, a consultant then writes scenarios: given these records, when this happens, then exactly these results, and exactly these refusals. Each expected result points to where it came from, down to the workbook cell or the page of the document. A second person or run works every expected result out again from that source, without looking at the code. That is how the answer key is fixed before anyone writes the code, and why the builder cannot change it.

### 6. Tasks: written as work packets

A consultant turns the next piece of work into a work packet: a small file in the repository that describes the smallest outcome that can be built and checked independently. It starts as a GitHub issue from a template that asks for four things: the outcome and scope, the requirements and decisions it traces to, the acceptance evidence, and the dependencies and open decisions. The packet file itself records:

- **The outcome and who owns it.** What changes, for whom, and what is excluded.
- **What it depends on.** A packet cannot start until every packet it depends on is done.
- **Its stage.** Discovery, specification, implementation, integration or release. A specification task produces a specification, not code.
- **Where it may write.** The folders the builder is allowed to change.
- **How it will be judged.** Numbered acceptance criteria, each with the way it will be verified, and the exact commands to run.
- **Its limits.** The maximum number of attempts and minutes, and a model spend of zero beyond the subscriptions.
- **Its approval.** Who made it ready, when and where.

A packet stays in Draft while anything is unsettled. It becomes Ready only when its questions are answered, its commands run and its limits are set, and a person has approved it. The packet file is the authority. A label or a card on a board can never override it.

### 7. The project: a board and milestones

Every packet's issue sits on one GitHub Project with a status: Backlog, Ready for pickup, Running, Awaiting verification, Blocked, Done or Deferred. Saved views show what agents may pick up, what is waiting for verification and what is blocked. Milestones are outcomes with written exit criteria, and we leave their dates empty until we have measured how fast the work actually moves. Moving a card shows progress. It does not prove anything.

### 8. Answering the agents

When an agent meets a business question its packet does not answer, it does not guess. It marks the work Blocked, names the missing decision and its owner, and stops. The consultant answers through the same route as before: an in-progress page or a decision record, then an updated packet. The answer is then on the record for every agent that comes after.

## How agents take work out

### 1. Picking up work: the start guide

Every agent session, whether it is Claude, Codex or a person, starts in the same place: a short instruction file at the top of the repository and a start guide in the wiki. The guide says to begin from a fresh copy of the main branch, run the documentation check, and list the packets that are Ready, whose dependencies are done and which nobody has claimed. A small script does the listing. It refuses to answer if it cannot see the current claims.

### 2. Claiming work: a lock that git enforces

Two agents must never build the same packet. We do not run a scheduler for this. Before writing anything, an agent creates a branch named after the packet, containing one empty commit that records its run identifier and starting point. It pushes that branch with a condition that the branch must not already exist.

If another agent got there first, the push is refused, and the agent picks another packet. There is no taking over a claim because it looks stale. A handover is explicit and keeps the earlier evidence. The claim is also noted on the packet's issue, so the consultants can see who is working on what.

### 3. Building: inside the packet, never moving the goalposts

The builder stays inside the paths the packet allows and opens one pull request for one packet. It may not change the expected results the consultants fixed. If it believes one is wrong, the packet goes back to specification. A builder that could rewrite its own test would always pass.

### 4. Evidence: what ran, and what did not

Every pull request names the packet, its revision, the commit it started from and the commit being proposed. With it goes a short evidence record: the role, the model and version where the agent can report them, the commands actually run, their exit codes and the result.

A result is one of four words: passed, failed, blocked or not run. "Not run" is written down, never summarised away. Metadata the agent cannot see is marked unavailable, never guessed. A passing documentation check is not evidence that the software works, and the guide says so.

### 5. Verification: a different agent, on the exact commit

A separate session checks out the exact proposed commit, runs the acceptance commands and reports its findings. It does not fix anything. A fix goes back to the builder, and any evidence it affects has to be produced again. Where it matters most, the verifier is a different model from the builder: Claude builds and Codex verifies, or the other way round. A different model is a useful second opinion. It does not replace expected results worked out independently, and we do not treat it as if it did.

### 6. Acceptance: a person merges

A person acting as integrator checks the build results, the evidence, that the verifier really was independent, and that everything refers to the same commit. Only then is the pull request merged and the packet recorded as Done. Closing an issue, or writing "pass" in a file, is not enough. When a packet is done, the packets that depend on it do not become Ready by themselves. A person reviews each one and promotes it.

### 7. Checks on every change

A documentation check runs on every pull request with read-only permissions and no model keys. It catches broken links, unknown requirement references, packets with circular dependencies, packets marked Ready that still have open questions, and accepted pages that lean on in-progress ones. It keeps the queue honest. It does not check the software.

We are also clear about what this does not yet do. These controls are cooperative: they work because the agents are instructed to follow them, and people check that they did. They do not sandbox an agent or prove which model did the work. Automating those gates is on our own backlog, and until it is built we call this a supervised workflow, not an autonomous one.

## The machine: where the agents work

We already pay for two coding agents through ordinary subscriptions: Claude Code from Anthropic and Codex from OpenAI. For the machine we set five requirements: the agents keep working when the laptop is closed, they can be steered from a phone, they run on the subscriptions with no pay-per-use API keys, the machine is not reachable from the internet, and a person merges.

The result has four parts.

1. **A small server.** A cloud machine with two processors, 4 GB of memory and 4 GB of swap, for about 24 US dollars a month. It runs the agents, two or three tasks at a time, and the database services the project needs.
2. **Claude Code, driven remotely.** Claude Code runs on the server in its Remote Control mode. The Claude mobile app reaches it through Anthropic's own relay, so the server needs no open ports. Each task started from the phone gets its own copy of the code, so parallel tasks never collide.
3. **Codex alongside.** OpenAI publishes an official plugin that lets Claude Code call Codex on the same machine, with the same subscription login. Codex reviews a change, challenges a design, or takes over a task that has stalled.
4. **A private network.** Tailscale connects our phones and laptops to the server. The server's firewall accepts no connections from the internet at all.

### How we set it up

The setup is two scripts and a handful of small configuration files, published in our [agent-workshop repository](https://github.com/QuarkCyberSystems/agent-workshop). In outline:

- **Closed by default.** Ubuntu 24.04 on the smallest size that would not run out of memory. During setup the firewall allowed a single SSH connection from our own address, and that rule was removed at the end.
- **No administrator rights for the agents.** Security updates install themselves, logins use keys, and the agents run as their own user, which cannot become an administrator.
- **One repository, nothing more.** The agents use a fine-grained GitHub token that can write code, pull requests and issues in one repository. It cannot change settings or visibility, delete the repository or edit the build pipeline. We tested this on the server.
- **Logins once, by a person.** Each agent is signed in once with the subscription. The logins stay on the server and are never copied into code or a chat.
- **Proven with a reboot.** A small service keeps Claude's Remote Control running. After a reboot, the agents and the databases were back within a minute, with nobody logged in.

Both vendors also offer hosted sessions that work directly on a GitHub repository. We use them for quick tasks and independent reviews. Our own server is the main workbench, because it keeps the project's databases and test suites running between tasks.

## A working day, from a phone

With the work in the repository and the agents on the server, a typical packet runs like this. The consultant has already written it and a person has marked it Ready.

1. In the GitHub app, check the board and decide which Ready packet matters most.
2. In the Claude app, start a session on the workshop: "Pick up the next Ready packet, following the start guide." Claude lists the queue, claims the packet's branch and starts.
3. Answer the occasional question and approve the occasional command. A business question the packet does not answer goes back to the consultant as a Blocked packet, not into the chat. Then put the phone away. The work carries on.
4. Claude opens a pull request with its evidence record.
5. A second session, with Codex, verifies the exact commit against the packet's acceptance criteria and posts its findings.
6. In the GitHub app, a person reads the evidence and the findings, and either sends the work back or merges it and records the packet as Done.

On a phone, the person's job is to decide, not to type: which packet, which option, and whether it ships.

## Where the guardrails stop

Each guardrail has a limit, and we would rather state the limit than overstate the guardrail.

- **The claim branch is cooperative.** It stops two well-behaved agents from building the same packet. It does not stop an agent that ignores the guide.
- **Permission rules are a speed bump, not a wall.** Claude Code is told never to push to the main branch or to merge. Those rules match the wording of a command, so a differently worded command can get past them. The real control is branch protection in GitHub, which for private repositories needs a paid GitHub plan.
- **Independent review depends on independent inputs.** A second model reading the same mistaken expected result will agree with it. That is why the consultants fix the expected results from the source, separately from the code.
- **Billing stays on the subscription.** If an API key were present on the server, Claude Code would bill it instead. The service removes it at start-up.
- **Usage limits set the pace.** Two or three packets in parallel is realistic. When a limit is reached, the work pauses. Nothing breaks.

## What we have learned

- **Consultants write intent. Agents write code.** The best use of a consultant's hour is a clear decision record or a well-specified packet, not a long chat with an agent.
- **Decide before you build.** An agent handed an open question will answer it, confidently. Ideas stay on in-progress pages until a person decides, and nothing is built from them.
- **Put the task in the repository, not in the chat.** A packet that a new agent can pick up cold is worth more than a long conversation with an old one.
- **Let git be the lock.** A branch that can only be created once is a simple, reliable claim, and it needs no scheduler.
- **Keep the expected results away from the builder.** A builder that can change its own test will always pass it.
- **Write down what did not run.** "Not run" is useful information. A summary that hides it is not.
- **A board is a view, not evidence.** Cards and closed issues show progress. Acceptance needs the evidence and a person.
- **Do not open the server to make it reachable.** Allowing one IP address stopped working as soon as we used a phone on mobile data. A private network solved the problem without opening anything.
- **Bring the second agent to where you already work.** Driving Codex through a terminal on a phone was slow and awkward. Calling it from inside the Claude session made it part of the same conversation.

## What it costs

The server costs about 24 US dollars a month. Tailscale's personal plan is free. The agents run on the Claude and ChatGPT plans we already pay for, and every packet records a model spend of zero beyond those plans.

## Where to start

Start with the method, not the machine. Put an instruction file and a short start guide in your repository, and a wiki folder beside the code. Have a consultant write the first decision record and the first work packet, with an outcome, acceptance criteria, the commands that check it and its limits, and have a person mark it Ready. Agree that a branch named after the packet is the claim. Then have one agent build it, a different one verify it, and a person merge it. The server can come later, once the method works on a laptop.

The server scripts are on GitHub at [QuarkCyberSystems/agent-workshop](https://github.com/QuarkCyberSystems/agent-workshop). If you would like to set up an agent workshop for your own team, [talk to us](https://quarkcs.com/contact?interest=pilot).
