Self-hosted software development factory

(kudmitry.com)

49 points | by ingve 3 hours ago

12 comments

  • eterm 2 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.

    • siscia 1 hour 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.

      • Fordec 28 minutes 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.

      • siscia 52 minutes 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.

    • rsalus 1 hour 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.

      • jwilliams 29 minutes 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.
    • XorNot 1 hour 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 1 hour 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 1 hour 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.

  • LeBit 17 minutes 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.

  • smy20011 27 minutes 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.
  • simplesocieties 33 minutes 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".
  • sroerick 2 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?

  • orbital-decay 32 minutes ago
    How do you self-host Claude?
  • singular_atomic 1 hour ago
    "Software factories" feel like the next version of whatever this was: https://steve-yegge.medium.com/welcome-to-gas-city-57f564bb3...
    • superfrank 28 minutes 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

  • hasteg 2 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 2 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.

  • bluerooibos 2 hours ago
    I stopped reading at software development factory. What even is the point?
    • xnx 2 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 2 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 2 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 2 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 2 hours ago
      I miss the good old days when everyone would just invent their own JavaScript framework.
  • leoc_dev 33 minutes ago
    [dead]
  • pnkzin1024 35 minutes ago
    [dead]