Manuscript Offprint

arXiv:2610.36254

Instant Software Factories

Wenxin Jiang, Mikola Lysenko

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Wenxin Jiang, Mikola Lysenko

Socket Inc.

{wenxin,mik}@socket.dev

Abstract—Coding agents can quickly build prototypes, but a long tail of fixes, optimizations, tests, and releases separates a prototype from a product. A software factory handles this ongoing work through a repeatable process. We ask whether this work needs dedicated orchestration and how such factories should be judged. Given a tested repository and a coding agent, an instant software factory uses only two coordination inputs, a swarm of cron-job agents with standing objectives and a shared communication board, such as GitHub, where agents coordinate through the traces they leave. We developed a bootstrap prompt designed to set up both inputs from one round of human input, with governance as a separable layer. We distilled it from two manually configured industrial factories, observed for 15 and 17 days, and have not yet evaluated it. In the GitHub-coordinated CLI factory, daily merges rose 15×15\times during agent rollout, an observed association. Its agents also filed 95% of new issues and authored 40 of 58 PRs that changed CI workflows, and at least 5.6% of issues marked as fixed were later found to have incorrect fixes. Unlike an agent scored on a fixed benchmark, a factory thus changes its own workload, evaluator, and measured progress. We formulate factory development as multi-objective optimization under this endogenous feedback. Over five months, we plan to evolve both factories, test the bootstrap on new repositories, and test five falsifiable hypotheses.

Index Terms—Autonomous software engineering, multi-agent systems, software factories, software maintenance

I. INTRODUCTION

Coding agents, systems based on large language models (LLMs) that read code, use tools, and propose changes, have opened over 930,000 pull requests (PRs) on GitHub [1] and quickly build prototypes. Yet a prototype is far from a product. Bugs, edge cases, regressions, compatibility breaks, flaky continuous integration (CI), and releases create a long tail of work (Fig. 1, top). Prompting an agent through every task makes developer attention the bottleneck. A software factory handles such work with specialized roles, common tools, and repeatable processes [2].

Building a factory for this tail is often treated as a substantial engineering effort. Stripe, Ramp, Spotify, and Uber have built internal agent platforms [3]–[6], research systems use orchestrators and message passing [7]–[9], and MAGE models factories as production systems with many controls [10]. But how much infrastructure does a software factory actually need, and how should its progress be judged?

We explore a simpler alternative, an instant software factory, and separate two claims. Our sufficiency hypothesis is that two coordination inputs suffice for a factory for PR-sized work. Our feasibility hypothesis is that a bootstrap prompt we developed can configure both inputs in one session from a

Figure

Fig. 1. Instant software factories. Cron-job agents and a communication board such as GitHub coordinate the factory. Governance is separable but mandatory.

single round of human answers (Fig. 1, bottom). One factory gives early evidence for the first, and the second is untested.

We distilled this design from two industrial factories built by hand before the bootstrap existed. They suggest that judging a factory is harder than assembling one, which we see as the main new problem. Agent benchmarks fix the tasks and tests, and studies of reward overoptimization fix the reward model [11]. A factory’s actions instead change its product, the work it is given, and the process that evaluates it, a loop we call endogenous feedback. In the CLI factory, agents filed 95% of issues (endogenous workload) and authored 40 of 58 CI workflow PRs (endogenous evaluation), and 7 incorrect fixes shipped unrepaired (delayed verdicts). Throughput can then overstate progress, so factories must optimize independently valued, validated, and delivered changes.

Key idea. Given a tested repository with CI and a coding agent with repository access, a factory for PR-sized work may need only two coordination inputs: (1) ☐ Cron-job agents with standing objectives, such as finding bugs or improving CI. Each run reads the board, does one bounded task, and exits. (2) ☐ A communication board, such as GitHub's issues, PRs, checks, and reviews. Agents coordinate through stigmergy, following each other's traces without an orchestrator. ☐ Governance, such as approval and a stop switch, is a separable, mandatory layer scaled to risk.

We contribute (1) a formulation of factory development as multi-objective optimization under endogenous feedback, with a progress measure that agents cannot edit and five testable hypotheses ( §\SV–VI), (2) observations of endogenous workload, endogenous evaluation, and delayed verdicts in two factories ( §\SIV), and (3) a two-input design, posed as a sufficiency hypothesis, with a released, not yet evaluated bootstrap prompt [12] ( §\SIII).

(a) The prompt's seven parts

1 Roles: eight standing objectives

2 Routines: the manager owns them

3 Inspect the repo, then ask once

4 Identity and human approval

5 Controls and a stop switch

6 Prove controls before enabling

7 Platform notes from setups

(b) One setup session

Q Inspect the repo, CI, and access

Ask the human once

Provision routines and a setup PR

Prove the controls

Approve the setup PR

Enable the schedules

(c) The factory at run time

Find

issue

Fix

issue

PR

Communication board

assign

Steer

PR

merge

Gate

Each run: wake, read, act once, exit

Governance: approval, stop switch

Fig. 2. Anatomy of the bootstrap. (a) Prompt parts. (b) Setup session. (c) Running factory. Orange dashed items form the separable governance layer.

References (45)

  • AIDev: Studying AI coding agents on GitHub
  • The software factory: A historical interpretation
  • Minions: Stripe’s one-shot, end-to-end coding agents—Part 2
  • Why we built our own background agent
  • 1,500+ PRs later: Spotify’s journey with our background coding agent (Honk, Part 1)
  • Running a software factory efficiently at Uber scale
  • ChatDev: Communicative agents for software development
  • MetaGPT: Meta programming for a multi-agent collaborative framework
  • TheBotCompany: Self-organizing multi-agent systems for continuous software development
  • Model-based agentic engineering: A case study in software engineering
  • Scaling laws for reward model overoptimization
  • instant-factory: One prompt that turns a GitHub repo into a Claude Code routine software factory
  • From Natural to Artificial Systems
  • The Hearsay-II speech-understanding system: Integrating knowledge to resolve uncertainty
  • SwarmWorld: Stigmergic technological evolution in societies of language-model agents
  • Towards a science of scaling agent systems (opens arXiv in a new tab)
  • Agentic workflows: Towards natural-language programming for GitHub Actions
  • Welcome to Peli’s Agent Factory
  • We built a software factory in 10 days. Here’s what we learned
  • Scaling long-running autonomous coding
  • Automate work with scheduled tasks
  • Guidelines for conducting and reporting case study research in software engineering
  • The promises and perils of mining GitHub
  • Characterizing and predicting which bugs get fixed: An empirical study of Microsoft Windows
  • Harness engineering: Leveraging Codex in an agent-first world
  • How do fixes become bugs?
  • An empirical study of supplementary bug fixes
  • Studying re-opened bugs in open source software
  • The impact of rapid release cycles on the integration delay of fixed issues
  • Search-based software engineering: Trends, techniques and applications
  • On the importance of initialization and momentum in deep learning
  • Multi-task learning as multi-objective optimization
  • Analysis of DAWNBench, a time-to-accuracy machine learning performance benchmark
  • Adam: A Method for Stochastic Optimization
  • Is the cure worse than the disease? Overfitting in automated program repair
  • Two case studies of open source software development: Apache and Mozilla
  • Six strategies for generalizing software engineering theories
  • Software factories: Assembling applications with patterns, models, frameworks and tools
  • Towards an AI software factory for data systems (opens arXiv in a new tab)
  • SoK: DARPA’s AI Cyber Challenge (AIxCC): Competition design, architectures, and lessons learned
  • No free lunch theorems for optimization
  • The Software Engineering Laboratory: An operational software experience factory
  • Meta-Harness: End-to-end optimization of model harnesses
  • Darwin Gödel Machine: Open-ended evolution of self-improving agents
  • Automated design of agentic systems