Skip to content
中文
← PostsStuck Building a Software Factory: You Don't Need Agents, You Need Someone Filing Issues

Stuck Building a Software Factory: You Don't Need Agents, You Need Someone Filing Issues

Software factories rarely stall because agents can't write code—they stall for lack of quality issues upstream. Split the factory in two with an issue tracker: use scheduled loops to turn logs and session replays into issues upstream, and use an auto label to trigger agents to open PRs downstream. Build upstream first if your backlog is empty, or label-triggered execution first if it's overflowing.

2026年9月4日·989 words·5 min readRead Chinese original
An idle execution pipeline starts moving once problem evidence lands in an issue

That architecture diagram sat on my whiteboard for two weeks without me writing a single line of code.

It mapped out the much-hyped “software factory”: where tasks come from, how they queue, how agents pick up work, how failures retry, and who runs tests for acceptance. The starting point was small enough: hand Claude Code an issue, watch it read the context, edit the code, and open a PR. I already had that flow down. Following that thread, I wanted to wire the whole pipeline into a fully automated loop.

The more I drew, the more it looked like a complex distributed scheduling system—and then I completely stalled.

What unstuck me was realizing I’d fallen into a classic engineering trap: I kept building a complex scheduler for the pipeline, while nothing was entering at the intake.

You Don’t Need More Agents—You Need Issue Writers

Hand a well-defined issue to an agent today, and it can usually open a PR within minutes. The code implementation side stopped being the bottleneck a while ago.

What actually stalls the whole pipeline sits upstream: who is writing the issues in your backlog?

You are. Late at night after work, typing a few lines from memory into the board: “polish the pricing page,” “fix login timeout.” Toss an issue like that to an agent, and it can’t even find the scene of the error—all it can do is guess against the codebase.

A software factory really only does two things:

  1. Pre-triage: turning the unstructured world (error logs, user cancellations, session replays) into structured issues;
  2. Implementation: turning structured issues into PRs.

An issue tracker connects generating, storing, and completing work

An engineer’s instinct is to charge straight at the second half and try to build a fully automated execution engine. The reality is simpler: as long as the upstream half still relies on you manually watching monitors, scrubbing through recordings, and writing issues by hand, your software factory is still a manual workshop.

The smartest move Pierson Marks made when building his software factory was slicing it right down the middle with an issue tracker (like Linear or GitHub Issues), cleanly separating the two halves.

If the Intake Is Empty, Build the Issue-Finding Half First

If your backlog regularly hits zero, don’t touch any automated coding logic yet. Build the input side first.

The core of the input side is having AI watch the data sources you never bother checking day-to-day, automatically producing high-quality issues that carry first-hand evidence:

  • Log patrols: Run a scheduled scan over Sentry and gateway logs every night; when an uncaught exception shows up, open an issue directly with the stack trace and occurrence count attached.
  • Session replay: Scan through user session recordings. Recordings clearly show which button users rage-clicked and which step made them get stuck and drop off. The recordings have always been there—no human can just watch hundreds of them a day.
  • Churn analysis: Pull data on users who clicked cancel in the past 24 hours along with their pre-cancellation action trail, figure out whether they hit a bug, fell short on usage, or ran into friction in the core experience, and generate concrete improvement suggestions.

Issues produced this way naturally come with reproduction steps, error stack traces, and user context. “User clicked checkout 3 times on the pricing page with no response” is vastly more useful than “polish the pricing page,” because the agent immediately knows which interaction to inspect.

Even if you still write every line of code in the second half by hand, you’ve effectively hired a product manager who watches your data 24/7 and files clear specs.

The Execution Half: Delegating Authority One Label at a Time

Once high-quality issues flow steadily from upstream, the trigger chain on the implementation side is surprisingly short.

You don’t need an elaborate permissions system or a master pipeline console. The boundary between human and machine collaboration can collapse into a single action: adding a label.

  1. Default state: Issues opened by upstream patrols do not get the auto label by default.
  2. Human review: A human skims the issue list, confirms the problem is real with a clear reproduction path, and drops the auto label on it.
  3. Agent gets to work: A webhook catches the label change, spins up a remote agent, reads the issue, edits the code, runs browser verification, and opens a PR.

Labeling an issue with auto triggers an agent to open a PR

The elegance of this design lies in progressive delegation:

You don’t have to choose between “all manual” and “fully autonomous black box.” At the start, a human reviews and labels everything. Once a specific patrol (like clear-cut Sentry alerts or frontend formatting fixes) proves reliable, let it apply the auto label itself for a closed loop. The day it starts opening bad PRs, you simply revoke its permission to auto-label.

Delegating control doesn’t require a master switch for the whole pipeline—a single label is enough.

Half a Factory Is Already Worth Building

Looking back at that giant diagram on the whiteboard, the biggest mistake was assuming I had to ship the entire closed loop in one shot.

The real approach is to go step by step based on your bottleneck:

  • If your backlog regularly runs dry, pick one data source today—error logs, support chats, or cancellation records—write a scheduled prompt to catch problems and file issues, and keep doing the implementation by hand;
  • If your backlog is already overflowing, flip the order: set up a webhook first so issues tagged auto automatically trigger an agent to write code, and hold off on generating even more backlog upstream.

Cut the two halves apart with an issue tracker first, then automate whichever half of the factory is actually holding you back.


This space focuses on breaking down the practical details of one-person software factories and engineering automation. Next, I’ll keep documenting input-side automation, progressive delegation via labels, and how to build a solo pipeline with minimal system complexity. Follow along if that’s your kind of thing.

Copyright

Author
XingKaiXin
Title
Stuck Building a Software Factory: You Don't Need Agents, You Need Someone Filing Issues
Published
2026年9月4日

Licensed under CC BY-NC-ND 4.0 DEED.

XingKaiXinXingKaiXin

Stamp book

0 / 10
  • 初来乍到Visit for the first time
  • 颠倒世界Flip the world once
  • 手不释卷Read a post to the end
  • 愿者上钩Fish something out of the pond
  • 余音绕梁Play the record to the end
  • 手下留情Pinch Kaixin's cheek
  • 暗房一游See the photos in the darkroom
  • 误入歧途Find a page that doesn't exist
  • 夜深人静Drop by late at night
  • 终端潜行Successfully run cat or mcp call in the Agent shell

Stamps are kept only in this browser