Self-hosted software development factory

(kudmitry.com)

124 points | by ingve 7 hours ago

24 comments

  • eterm 6 hours ago
    I'm not sure why I invested the time to read all this, but even so, it left me confused, because it seems very limited in ambition.

    And in that case, why not just use claude-desktop, it supports VMs (or SSH) for environments, and supports forks and child sessions passing messages back to parent sessions.

    So I'm not sure what has even been achieved here which can't be done by using /goal and scheduled tasks in claude desktop.

    I'm actually fairly hopeful of "software factories", but to stand-out you need to be shipping a very compelling user story, and a clear explanation of how you overcame these issues:

        - Factory gets distracted building the factory
        - Factory gets distracted fixing bugs / edge cases instead of shipping features
        - Factory spends more time coordinating work than shipping fixes
        - Factory rinses through tokens, forcing you onto API tier pricing
        - Factory can't say no to fixing issues filed
    
    
    Right now, I very much believe that a person with a claude subscription can massively out-ship a fully automated software factory despite the latter costing an order of magnitude more to run, especially if you measure shipping by actual features and outcomes rather than lines of code or PRs merged.

    Don't get me wrong, I would love to move to use one of these factories, and one day they will solve these problems and be better, but right now all the current generation seem to run into similar problems, and I don't see enough evidence here that this one is any better than the hundreds of others out there.

    • Aurornis 3 minutes ago
      > And in that case, why not just use claude-desktop, it supports VMs (or SSH) for environments, and supports forks and child sessions passing messages back to parent sessions.

      I regularly spot check LinkedIn, podcasts, and influencer outlets to see what’s being talked about. “Software factories” and elaborate harnesses have been a popular influencer topic all year. Everyone wants to one up each other with how complicated their setup is.

      For a while I kept hearing variations of the same meme across podcasts and LinkedIn posts: That the best way to evaluate engineers in the AI age was to ask about their coding setup. The implication being that the more complicated it was, the better. I’ve lost count of how many times I’ve seen or heard someone say that the epitome of a “cracked AI engineer” was that they vibecoded their own harness. Using Claude Code directly was a signal that you were a noob.

      Which is all very bizarre for people who use Claude Code and all of its features. Every time I talk to someone with an elaborate custom setup excitedly explaining things it can do, they seem confused or surprised when I point out that I can do those things with the basic tools, too.

      Thankfully there does seem to be a return to simplicity. The trend now is back toward simpler environments like Pi or just using Claude Code directly. People are ditching their giant skills libraries and slimming down their collections of MCP tools. The “software factories” meme lives on, but you have to filter out all of the noise of people reinventing the wheel to get down to real advancements that are worth their weight over basic tools.

    • rsalus 5 hours ago
      Agreed. I've found far more success automating different parts of the typical SDLC workflow. For instance, I've frontloaded most of my effort towards creating design artifacts, then decomposing those artifacts into a `/workflows` on claude-desktop.

      To supplement this, I've largely automated the PR process, using github stacks and event-driven agents to review and drive PRs to merge. Recently, I added a classification router using the OpenAI Decisions API to assist with this since some features I want to test personally.

      I highly recommend adding some kind of GitOps philosophy where merged changes deploy to a QA build automatically... It's saved me so much time during testing, and furthermore you can point agents + tests at that environment for further validation.

      Beyond that, IMO the only remaining gaps are verification and perhaps some sort of context engine. In the former case, I find this takes the form of two dimensions: (design) intent and (code) correctness.

      • zhiyuanvision 2 hours ago
        [dead]
      • jwilliams 4 hours ago
        We route the same way: an evaluator categorizes each PR as it arrives, by what it touches and how far a mistake would travel, and decides which go straight through. It started with one minor patch bump (https://jonathannen.com/start-with-one/) and now 100+ a day with 3/4 auto merge is a normal day.
    • twelvechairs 1 hour ago
      You need very different systems and setups for different use cases e.g. pushing out template websites, analysing mechanical CAD designs or doing sociological research. Some need more human input, some more frontier ai vs simpler models, some more visual outputs, etc. Until I see a system that can handle that i wouldnt think its better for my own purpose than whatever im doing myself.
    • siscia 5 hours ago
      I am very biased because I do build and host my version of a "software factory". I find "software factory" to be more the marketing term for "workflow automation".

      > - Factory gets distracted building the factory

      Just use something simple - what I am doing is simply have a language that describe how the factory should look like, and the platform just automatically set it up for me.

      > - Factory gets distracted fixing bugs / edge cases instead of shipping features

      I don't quite find this to be the case, the factory does what it is told to do. It is easy to just let it work on edge cases? Sure. But it is not like it automatically does something that it should not be doing. For fixing bugs, it seems like a good thing.

      > - Factory spends more time coordinating work than shipping fixes

      Not quite sure what you mean here, but of course if you push 100 PRs every day, you need some coordination.

      > - Factory rinses through tokens, forcing you onto API tier pricing

      They are doing more work of what you can do iteratively, they do use more tokens. However tokens and intelligence are getting cheaper and cheaper. I find deepseek perfectly adeguate for most tasks my software factory is doing.

      > - Factory can't say no to fixing issues filed

      Yes, they absolutely can. My factory has fork and decision point. If someone decides that the tasks should not be done, it is simply not done. Similarly, my factory can ask a human for review. Or it can route work - something is complex and requires planning and design and then implementation vs something is trivial just do it vs something add no value, just terminate now.

      However, I agree that R&D work happens better in a iterative session - mostly because there is so much back and forth and we are still steering the machine.

      But, there is a lot of work that is not R&D - and that does not need constant human supervision.

      • siscia 5 hours ago
        One detail that is missing.

        Most people when they talk about software factory, they think of a huge set of automations that do everything. I don't find that useful at all.

        I have ~10 of software factories and each has a small and simple goal, eg. Pay down technical debt, Ensure the documentation is up to date, review PRs that need rebase, merge low risk PRs, etc...

        It is not ONE BIG FACTORY, they are many small one - each doing something to make the codebase a tiny bit better, so that I can focus on the R&D work.

        • kooi 2 hours ago
          At what point is a small software a specialized harness or a set of text based skills?
          • siscia 1 hour ago
            I call "factory" something that doesn't wait on your feedback to take action.

            While an harness or set of skills are used interactive. Even if just starting the run.

            But yeah the line is very thin...

      • Fordec 4 hours ago
        I think it comes down to expectations and partially people trying to just shoehorn in buzzwords for attention. But I think there is a slight genuine distinction.

        Workflow automation: deterministic outcomes Software factory: non-deterministic outcomes

        And that in one stack you can totally have both parts of the system being deterministic and non-deterministic, but if you have a mix you can only have a non-deterministic output.

    • XorNot 6 hours ago
      I just have a cheap second hand machine with a lot of ram under my stairs and an app which lets me get notified on my phone for things like secrets or deployment approvals.

      So yeah I agree: I think people vastly over engineer these things.

    • varispeed 6 hours ago
      Claude can sabotage your work, so it is not a sensible choice. They also have thing called "adaptive reasoning" which means they can serve you output quality of a cheaper model for the price of more advanced one. You can never predict when you get dumbed down processing. It's like building a house on a swamp.
      • arcanemachiner 5 hours ago
        That doen't sound right. It's the same model, they just dynamically adjust how much effort is devoted to reasoning for a given response, based on the expected difficulty of the given prompt.

        At the end of the day, you're paying by the token. If you're asking an easy question, you don't need to tell the model to think really hard about it.

        And if you don't like adaptive reasoning (I don't), just turn it off.

  • hizlikovboy27 13 minutes ago
    You mentioned choosing a Micro form factor case for lower power consumption. So, what does the monthlu electricity bill look like on average for keeping those Optiplex and ThinkCentre units along with the agent VMs that run 24/7 powered on?
  • simplesocieties 4 hours ago
    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".
    • llIIllIIllIIl 49 minutes ago
      There’s nothing one orc can’t do that 1000 orcs can. Being a Sauron of agents doesn’t produce better results.
  • nilleb 46 minutes ago
    Hello!

    The markdown files repository describing the agents tasks, the agents sandboxing (docker container or micro-vm), agents access to secrets, all reminds me of Varda (https://github.com/nillebco/varda), as well as the policies to handle assignment of users to file paths, orchestration by means of a WORKFLOW.md, injection of AGENTS.md,

    Disclaimer: I am the author. Happy to receive feedback!

  • cpb 3 hours ago
    Thanks for sharing this! I've been scrounging up available hardware to approach the same, with slightly different arrangements.

    I didn't notice anything about harness telemetry. Would you poke a few more holes in your vlan in order to get better observability over the agents?

    I don't have the hardware to support proxmox at hand, so I'm seeking to stretch more out of what I've got with flatcar and gvisor isolated containers.

    Seeing the similarities and differences in our approaches has inspired me to write mine up. Thanks for taking the leap!

  • sroerick 6 hours ago
    This is cool, but is missing details on a lot of what is, to me, the actually interesting parts of this, like:

    How did you actually process the orchestration loop? Is it just a prompt which says "please fix this forgejo issue?" That's my read on it, looks like tmux, forgejo, and Claude

    Do you have a multi step process with review? Or is it just one shot per feature.

    How do you track acceptance? How do you know if the work is completed?

    Have you seen any emergent structures like agent swarms or gates/laws emerging?

    Are you using permanent / long running / claw style agents or regular Claude? Do agents have different roles?

    What have been the big obstacles in actually getting work done?

    What have you used the factory to produce and are you happy with the results?

    Do your agents get depressed?

  • smy20011 4 hours ago
    I'm not sure why everyone try to build a software factory. The cost of copy a software is essential zero. There are no need for 1000+ copy of MS word and each one have their own bug.
    • TwisterK 3 hours ago
      i built it bcoz i hav my own very specific use cases and i wan it to be useful for me and that it. It kinda like how mechanic will put all their favor tools into one box and bring it to whatever place.
      • smy20011 3 hours ago
        But it's not something that will be mass produced
        • baq 24 minutes ago
          New software is not what a software factory does, but a ticket processing plant doesn’t have a nice ring to it
    • Gigachad 4 hours ago
      I was thinking lately, if your software is fully AI generated, your customer support is fully AI provided, your product managers are all claude, then your product is worthless. It can be cloned in an instant by another persons claude subscription.

      For software companies to stay valuable they will have to find something for their employees to do. Because having those people and offices is the moat which can't easily be copied.

      • jmathai 3 hours ago
        It’s all worthless until you find customers. Software factory is optimizing the wrong thing.

        Don’t get me wrong, I have my own version of a software factory. But the hard part is finding customers. The real value would be a customer factory.

        • skydhash 1 hour ago
          Exactly my thought. My software factory is my emacs config, a few unix tools and whatever scripts the current projects require. Before it was my vim setup, a bit more unix tools, and also shell scripts. Sometimes it was just a properly configured IDE.
    • breckenedge 4 hours ago
      Because we’re all snowflakes. I couldn’t find a factory that used tmux, instantiated resources including checking out multiple repos and opening multiple PRs across them, avoided virtualization penalties, had a kanban UI, and mobile UI with notifications, so I ended up making my own. I imagine many other people have similar but different needs.
    • fedupnow 30 minutes ago
      I hate peter theil, but he has that interesting lecture at standford about building monopolies, and how everyone falls into the trap of building the exact same thing as everyone else like a memetic disease of creativity. I guess this holds true 15 years later.
  • LeBit 4 hours ago
    Thanks for sharing this.

    I am working on something very similar. For my personal needs but also maybe for my professional life.

    I’ll try to do a ShowHN once it’s ready.

  • BubbleRings 3 hours ago
    Hey OP, you’re on the front page of HN, maybe run your post through an AI! This one is just an ordinary typo:

    > by mine does not have it You probably meant > but mine does not have it

    But typing “rouge” when you meant “rogue”, that was just funny! Thought you would want to know. I liked the article btw.

  • orbital-decay 4 hours ago
    How do you self-host Claude?
  • hasteg 6 hours ago
    > When an agent learns something valuable that is worth remembering for future sessions, it will write it into the project’s AGENTS.md, as long as it’s short. If it’s longer than a paragraph or two, then it will put a markdown file in docs/. This way all the project knowledge is stored inside the project. How do you define something valuable? Do you just add to the system prompt something prompting the model of along the lines to add “something valuable” that it learn to the agents.md? Or is it something that you find when analyzing output and tell it make note of that? Or something different entirely? > With the advent of AI summarization tools, I believe that not many humans will read this, so I guess my main reason for writing this to try to understand myself what have I done and how it works, but also inspire others who still like to read human generated content, to perhaps experiment. I find that’s why I write anything myself as well these days. To understand my own production and actually get the sense that I learned something. A lot of the time it feels like screaming into the void but at least in doing so I can actually use critical thinking to formulate how to best explain my point. Thanks for writing this by hand, made it a lot more compelling to read.
    • chrikrah 6 hours ago
      For me the trigger isn't the model deciding something is valuable. It writes a note when I correct it, or when it disproves an assumption it was working from.

      It is important that there is an index of some sort though that is kept up-to-date.

  • caniscrator 1 minute ago
    [dead]
  • fedupnow 36 minutes ago
    A whole lotta people sayi. g they're building "sotware factories" but I dont see them producing much software, other than the software factories themselves.

    Meta-agentic engineering, where you build tools for building things with agents but end up in a loop of just building tools for the tools (that have also been made 5000 times, literally everyone is building the same *exact* thing

    Its very similar to nvim config customization, where you feel productive because you're doing something but not the actualy thing

    AI is so lame.

  • singular_atomic 6 hours ago
    "Software factories" feel like the next version of whatever this was: https://steve-yegge.medium.com/welcome-to-gas-city-57f564bb3...
    • trymas 17 minutes ago
      Side-topic.

      The pace of change for LLM based development is crazy. I could've bet that I have read this article in early 2025 or late 2024. Apparently this was 7 months ago.

      Wonder what we will think in the next ~half year.

    • kooi 2 hours ago
      Technically: cool.

      Practically: ??

      Maybe im not creative enough to see value add for a customer using this 24/7 factory thing.

      Maybe continuous video editing, always-on social media presence..

    • superfrank 4 hours ago
      Gas Town is a software factory (or an attempt at it). Steve even says in that article

      > Gas Town is an industrialized coding factory

      I don’t think the term software factory was being widely used at the time when Gas Town was created, but that’s exactly what Gas Town was trying to be

      • sroerick 3 hours ago
        I think folks were saying "Orchestrator" at the time
  • Snibz 1 hour ago
    My boss is building something like this for our company with the vision to replace Jira with it. Can't wait to see how it turns out xd
  • reactordev 4 hours ago
    That’s a lot of off the shelf stuff to make this work.

    I wrote mine to have all of that self contained. A single binary I run on my Pi that orchestrates containers on my Sparks and Beelinks while hosting my stories/issues/tasks as well as my repositories and artifacts. Surprisingly, it takes little effort to software factory your software factory until you have an optimized assembly line of slop. I like mine. Hope you enjoy yours.

    Written in Go by Claude, Codex, Pi, and myself - supports git, docker, npm, pypy, cargo, maven - has a linear like project board and a GitLab like repo browser - bring your own server style clustering over websockets - swarms - GPU over docker or run agents. It works over cloudflare tunnels too.

  • bluerooibos 6 hours ago
    I stopped reading at software development factory. What even is the point?
    • xnx 6 hours ago
      Agree. I'm happy to have the prompts and harnesses improve for frontier models, but have zero desire to learn about someone's made up system.
      • mynegation 6 hours ago
        I have a similar system and it was interesting for me to read. Not that I am going to adopt it wholesale but there are interesting ideas and tips for me. Like Lima or Semaphore UI
  • serious_angel 6 hours ago

        > There are many various control panels for agents developed by various people. I explicitly decided against using these because they are most likely vibe-coded or VC-funded. 
        > I had the time, and my own vibe-coding abilities, to create something that works for me, rather than building my workflow around a tool by some YouTube influencer.
        > 
        > Source: https://kudmitry.com/articles/self-hosted-software-development-factory/
    
    Your project does not seem to be any different.

    In a few days, another one with ~$50 who has free cherished time, and has irresponsible attitude to the history vibe-coding, will have the same article with the same exact message.

    In a few months, there are 30 different articles and absolutely different incompatible opinionated tools.

    In a year, there's a mess no one knows how to manage: https://xkcd.com/927/

    • malfist 6 hours ago
      Yeah, but I can setup an agent loop to write new standards to unify all the standards once a new one is released. Automated N+1 standard creator! This is the future we've been too afraid to dream of
    • coffeefirst 6 hours ago
      I miss the good old days when everyone would just invent their own JavaScript framework.
  • abhinav_mishra5 1 hour ago
    [dead]
  • niyongsheng 3 hours ago
    [dead]
  • minfazhai 3 hours ago
    [dead]
  • leoc_dev 4 hours ago
    [dead]
  • pnkzin1024 4 hours ago
    [dead]
  • tacie 3 hours ago
    [dead]