Why Do Coding Agents Work Better on Linux?
David Heinemeier Hansson says coding agents work better on Linux than on Mac or Windows. They like the Unix idea of separate tools called from the command line, and on Linux almost everything is a config file or a command-line tool. Those used to be the reasons people avoided Linux. They are now the selling points, because an agent can read the files, change them, and copy a setup from one machine to another.
A Mac still hides pieces of the setup. Homebrew has gotten quite good as the missing package manager, but Raycast has no config file you can simply open. The export goes onto a USB stick and gets imported somewhere else. Default Mac key bindings are a manual click-through. Linux inside Windows, through Windows Subsystem for Linux, stays in a sandbox. He wants the system unleashed so an agent can configure the machine and save that configuration for the next one.
#501 – DHH: Future of Programming, AI, Agentic Engineering, Vibe Coding & Linux ·
From the transcript
So it's all happening on Linux. And this was the other major breakthrough with Agents. Agents love the Unix philosophy. It loves individual tools that it can invoke through the command line. And there is no operating system on Earth that of the majors, I'm counting three here, Mac, Windows, Linux, that works as well with that mechanism as Linux.
Everything in Linux is either a config file or a CLI tool. Now, that was its main drawback five minutes ago. This was the reason people didn't like Linux. It's like it's all config files and CLI tools. What great irony. that the universe has plated upon us that now the drawbacks of Linux five minutes ago are now its major selling points. This was one of the things I thought I was stuck for a weekend with a Mac