Unofficial Hacker News companion — get notified on comment replies, and more.

Self-hosted software development factory (opens external site)

331 points by ingve 2 days ago | kudmitry.com | 188 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (52)

  1. I just open claude code or codex and ship. I've never once had a measurable improvement in revenue generated or time saved by making a "factory" or trying to make a perfect "harness".
    Replies (10)
    1. There’s nothing one orc can’t do that 1000 orcs can. Being a Sauron of agents doesn’t produce better results.
      Replies (1)
      1. Have you not been paying attention to the advances in math being facilitated by tens of thousands of agents working collectively?
        Replies (1)
        1. Thousands of agents make it faster, not smarter.
          Replies (1)
          1. Your original point wasn’t this, but I’d argue your framing here is flawed regardless. We are temporal creatures, how fast something happens is important and relevant. There’s a big difference between I can build something in ten years and I can build something in a day, so in that sense 1000 orcs being able to collaborate to collapse time horizons is incredibly relevant to accomplishing what one orc couldn’t in the same amount of time. We don’t compete in a vacuum where time isn’t a relevant factor.
    2. Because that is not for you, software factories like the real factories, are for management to replace a whole team, and leave only one or two persons behind, responsible to keep the factory going without major issues.
      Replies (4)
      1. is there any evidence whatsoever that this approach has actually had any benefits for any real code anywhere in this world?
        Replies (6)
        1. Its too early to tell. Im generally a cynic, but a year ago people were saying the same about codegen in general (all those articles about how it actually cost more time)
        2. Since different "software factories" work quite differently, I'm not sure it makes sense to ask whether "this approach" has benefits, because there isn't one approach.

          But I do generally believe that the way we use LLMs to develop software right now, by having multiple threads in a harness like Claude Code that then has connectors to Jira, Confluence, and other systems, is probably not the best possible way, and some of the ideas from some software factories probably make sense.

        3. It can be pretty magical when combined with an ultra-opinionated framework that agents just cannot fuck up, and tripling down on the verification side of things. I have zero doubt that it represents a very unevenly distributed future, and that the tech is still maturing.
        4. Yes, it used to be called offshoring, now gremlins in Boomi, Workato, Opal, Sitecore AI, Contentful workflows,... take care of the work.

          The benefits aren't for the code, the benefits are for management cutting down cost centers.

        5. Mastra uses their own factory. As a Mastra user it’s a game changer. Almost any bug I report is fixed and shipped in 2 days
        6. What evidence would convince you?

          The revenue growth charts of the big labs could be a point of evidence, since they're likely on the bleeding edge of what a software factory can look like.

      2. >Because that is not for you, software factories like the real factories, are for management to replace a whole team,

        Your comment may give readers the wrong impression of this thread's article. The "software factory" the author is talking about is his self-hosted home setup of agents for personal projects. It's not a cost-cutting technique to layoff employees. Just a guy at home configuring a bunch of bots to do brute-force exploratory work on a modest 32GB server that he wants to monitor from his MacBook.

        Replies (2)
        1. It is still the same, even if there is only one personal at the factory floor.

          This guy would have need to sub contract real humans instead, if it wasn't for the software factory on the basement.

          Replies (2)
          1. >This guy would have need to sub contract real humans instead, if it wasn't for the software factory on the basement.

            Not necessarily and your conclusion that reduces the AI tools motivation to a single reason of "replacing humans" is not always correct.

            For most home/personal projects, the alternative to no AI assistance wasn't hiring humans. Instead, no AI means not bothering to do the work at all.

            More examples of that fork in the road ...

            - a homeowner configures self-hosting NAS that records video from his house webcams to use AI detection tools to notify when people approach the house. If the homeowner didn't use AI, it doesn't mean he would have hired human security guards to monitor his webcams. Instead, he'd just live with "dumb" webcams instead of "smart" ones.

            - owners of Tesla cars use the AI self-driving functionality to transport them around. If they don't use the AI, it doesn't mean they would have hired human chauffeurs to drive for them. Instead, it means they have to drive themselves or in cases of older senior citizens who can't drive, they don't go anywhere at all and stay stuck at home.

            We need to be realistic here. The vast majority of hobbyists messing around with self-hosted agent harnesses at home would not pay for extra human developers for whatever coding experiments they want to pursue. If the author of this article was hesitant about spending extra money for 64GB RAM and thus decided on cheaper 32GB RAM for his home server, it definitely means he wasn't going to spend thousands for human developers.

            Yes, the Klarna CEO laid off hundreds of employees because he wanted cheaper AI chatbots to replace them. However, that's not what this thread's particular article is about.

            Replies (3)
            1. This reminded me of a common argument media corporations make against piracy, i.e. every pirated copy is a lost sale. It's not. In most cases the preson would simply wouldn't bother.
            2. >Not necessarily and your conclusion that reduces the AI tools motivation to a single reason of "replacing humans" is not always correct. For most home/personal projects, the alternative to no AI assistance wasn't hiring humans. Instead, no AI means not bothering to do the work at all.

              It's not always the motivation, but it's the one which will dominate and do damage.

              In short term, some people can finish some pet projects thanks to AI assistance.

              In long term, the same people might be out of a job due to AI.

              If you ask them then, how many would say they'd rather still have jobs in a world without AI, than having had AI and having finished those pet projects?

            3. Would you prefer having people planting and harvesting your crops one by one, having a blacksmith making every nail you use and all your clothes made by hand ? Then prepare for a reduction in life quality... You probably couldn't afford a hand made computer.

              Industrialization happens to software at a higher abstraction level than the other trades, but I would be surprised if it doesn't improve the quality of life like it did for everything else. Sure, some people will have obsolete jobs (or will be high-end artisans for top quality products) but I am certain that most of them can learn other ways of contributing to the society and use them to get a revenue.

              Continue this thread (1 replies) →

          2. I think it’s possible the work wouldn’t have happened at all. And that in fact he’s adding a person (himself).

            If teams are smaller, might there then be more teams?

        2. >The "software factory" the author is talking about is his self-hosted home setup of agents for personal projects. It's not a cost-cutting technique to layoff employees.

          The author's use case isn't. But the general idea, as sold, is.

      3. Maybe this will never apply to SV but in the rest of the world a poorly setup software factory can easily dwarf the costs of an actual human team just in tokens spending.
        Replies (1)
        1. Yes, we are aware of the offshoring factory outcomes, this is only the next level.
      4. software factories are for agencies, that regularly ship tens+ CRUD microservice apps for various use cases and stitch them together.

        sort of like web-design agency with cookie-cutter wordpress sites.

        imagine the world where you dont know postgrest exist, and you charge each client for the cookie-cutter app the big bill, while reusing 95% of the stuff

        Replies (1)
        1. How do imagine enterprise consulting with SaaS and iPaaS works?
    3. I agree with you, the best way to deep work with AI is to pair with it. Trying to create an unattended factory doesn't create something maintainable or robust.

      I still use the factory pattern to parallelize work on low-stakes tickets. I get value from fast exploration and turnaround. I don't use AI to triage. Human once-over into the appropriate queue works better for my experience, but your tickets my vary. Then I try to have as few human touches as feasible (but not fewer) as AI does the grunt work of reproducing bugs, making speculative UI changes, etc.

      Replies (3)
      1. Factory pattern? Just tell Claude "open subsessions for every issue so work on multiple issues can run in parallel" and it simply does it. No elaborate setup needed.
        Replies (1)
        1. Whatever "just" you do might be a pattern, you know?
          Replies (1)
          1. Fair point. Haven't considered that.
      2. I think factory is interesting for the constant low brained scan and improve type of tasks. I'm building factories to maintain security, compliance and CI, which are all constantly moving windows that get rug pulled out from under you as the agents constantly evolve your codebase, because agents simply cannot focus on those keeping your stuff up to date and relevant appropriately while they are building features. Simple oneshot tasks that have the repo guidance injected and run once a day as maintenance to keep the machine running. Then you're steering the feature bots and driving the design work yourself
      3. Right now, I still struggle with attention. Even a half dozen "fix these low stakes bugs" is enough to fatigue me from context switches because you have to set aside your mental model to constantly pick up a new bug even when you're just doing the QA role.

        I saw up-thread someone has claude automate their QA into videos for review. I don't think that's bad but I also don't think that solved the problem either. You still have to review what's being tested and then put on your QA hat, review a video, and give feedback. That context switch is expensive and if you have enough of those you don't get anything done other than answering the robot prompts.

        I also don't know what the answer is. A "factory" that auto-completes low effort tickets is awesome, but who's on the hook when that code breaks? Every ounce of my engineering experience says it's still me, the eng w/ the pager.

        Replies (1)
        1. My opinion (not shared by all colleagues) is that we should throw away more work. AI says the way to solve this bug is to write a bad PR? Throw it away. Attach the appropriately high story points to the ticket, then decline it saying there's no bandwidth to fit this in. If it's important enough to justify spending that level of effort, then it fits onto someone's schedule to deep work on it.

          I've gone a whole day with only one solved ticket out of twelve. My attention was still on my actual, committed work I was pairing with AI on.

    4. They don’t work. Humans need teams because people can only do/know so much. An AI doesn’t need a marketing department, it can just do marketing. You don’t need a “supervisor” to do performance reviews with AI.
    5. But, but... are you a 10x engineer this way? /s

      I'm the author. I get you. But the world is so f-ed up right now that some days I feel really depressed with the state of software engineering. Aside from doing non computer related stuff, messing up with computers the way I described in the article, brings back the joy I used to have 10 years ago when I was just fooling around.

      Do you need it? Probably no. Was it fun to build it? Hell yes. Do I chuckle every time I look at this tiny machine doing things autonomously? You bet I do.

      Replies (1)
      1. > Do you need it? Probably no.

        Love it. Sometimes I see ppl tie themselves into knots doing fun things while feeling pressure to justify it is practical or profitable. It can be a fun thing! And maybe or maybe not practical or something someone else would do!

    6. Factory: Agree. I don't even know what exactly that means.

      Harness: I increased my productivity by building a harness tailored to my use cases. I found myself degraded to the manual QA team of my agents. "Give me manual testing instructions" I used to ask. Now I have a setup where agents give me narrated demo videos that I can watch and comment on at the spot by voice to have things changed.

      Replies (1)
      1. In Claude Code desktop you can ask it to test a bunch of scenarios, it will add some test data in your local db, open a browser inside CC Desktop, and do the tests for you in front of your eyes.

        Seems like your harness is already obsolete.

        Replies (4)
        1. I feel like if you want to ship your own gas town or harness you should simply show evals of it performing better than the vanilla ones out of the gate for me to give a shit about it. Otherwise its a nice token fire and while there might be a big corporation constantly supplying you wood eventually they are going to start charging more for that. Find better ways to keep warm
        2. > Seems like your harness is already obsolete.

          Obsolete? It sounds like he built it for his own needs, not the masses, and it appears to be working well.

        3. Those are two different workflows. One is more asynchronous than the other
        4. It does this in Android Studio for mobile apps as well.
    7. > I just open claude code or codex and ship

      Assuming you're using clis or desktop apps for this, this creates a little bit of friction suited for desk work. And also encourages working on a single task at a time (assuming you only have a single branch of your project checked out locally at a time)

      I suppose this blog post is describing a workflow more like "I open an issue on github, assign a bot to the issue, review the PR, and ship"

      The latter has the benefit of being operated fully through mobile-optimized web ui's so it can be done on-the-go. This can be very freeing.

      It also has the benefit of parallelization. Multiple issues can be opened, assigned, and worked-on concurrently and independently.

      Replies (3)
      1. No, you just open a new tmux tab, create a new git worktree for whatever new task, and kick it off. I usually have several going at once. Nothing about a terminal workflow is single-task by necessity.
      2. "And also encourages working on a single task at a time (assuming you only have a single branch of your project checked out locally at a time)"

        Not really. Codex can definitely work on multiple things at once. You're really just limited in the number of things you want to context switch between (as a human).

      3. > And also encourages working on a single task at a time

        I view this as a feature, not a bug

        Maybe open issue -> assign to the bot -> review the PR (lol) -> ship might work for hobby projects, or things that just aren't that important, but for anything going anywhere near actual users, I would rather pair with the harness and make sure I know exactly what is being done and going out

    8. A custom harness is the only way I can tolerate paying for API tokens. It gives me nearly total control and it doesn't take a lot of work. You can build one in 20 minutes by bootstrapping off someone else's harness.

      A good coding harness can be as simple as ExecuteShell and ApplyPatch. Those are the only two physical tools you need. That's all I've been using for the last year.

      Replies (1)
      1. It really is amazing how far you can go with a tiny custom harness.

        Are you hopping between different models at all? I've been doing almost all my work on one of the cheaper coding-specific models, and it's handling almost everything I need to get done easily. But recently it stumbled implementing a few tasks, and I've wondered how effectively a higher level model would have handled those specific tasks.

    9. I've got an app live in the Play Store. It's a decent app, but it's more a learning experience than a serious attempt to make money.

      I tried to see how far I could push the AI. My ultimate aim was to have an idea for a feature, and have the AI code it, test it, push it live and create a video ad for it. I could probably get there, but I still think there are areas where you need to decide things and inject (for want of a better word) "taste".

      Replies (1)
      1. that's interesting, my little sister (zero code experience) did the same. Pretty much end to end in Apple and Google's stores with subscription support setup with stripe and all the bureaucracy required for that.

        When you needed to "inject taste" did you do that at the code level or instruct the AI to make adjustments? My sister put together a beta build using TestFlight ( again, all on her own ), talked to her users and made a list. Then she worked through the list with ChatGPT and had it give her what she needed to tell ClaudeCode and then copy/pasted that in to claude. I told her she could go directly to ClaudeCode but she's more comfortable with ChatGPT. It was interesting/amusing to me that she talked to ChatGPT and asked it to tell her what to give to ClaudeCode. At any rate, it worked for her and she's on to all kinds of things now related to her apps.

        https://apps.apple.com/us/app/baxter-admissions/id6796755981

        Replies (1)
        1. Because it's an app myself, it was more reviewing what the AI suggested against my own expectations and steering it the way I wanted (I'm no Jonny Ive).

          I was originally cutting and pasting prompts from Claude into Cursor to maximise my tokens, but now I'm cutting and pasting between regular Claude into Code, similar to your sister. But I have a few Claude chats - one as an overall planner, including releases in Play Store (live and testing etc), one for marketing and reviewing analytics, one for video rendering etc.

          I could probably do the lot in code, but I keep that for actual code changes.

    10. Its about chaining agentic workflows with correct guardrails around hand-off patterns and HITL