A repo that can rebuild my laptop

post Main Image

You do the first step. The agent installs, configures, and verifies everything after it.

Next on this topic: 

  1.  These instructions focus on the MS surface book 1, these need to me made more generic for any laptop if possible but I suppose the steps need to be tested on other machines too.
  2. The idea also is to have the agent fix issues during the installation so that you end up with a machine where everything works (if possible, lol), specially if some tweaks and configuration changes are needed to make applications work on that particular device. That is how this differs from a distro, it is a dynamic installer and configurator that custom adjusts things to YOUR machine. 

For the last few months I've been turning a 2015 Microsoft Surface Book into the machine I actually want, and writing down every step as I went. Not as a "here's my setup" post, and not as dotfiles. As a set of instructions an agent can read and execute end to end. It's public now, in one repository: surface-hermes-workstation.

The premise is one sentence. Start from a stock Ubuntu 24.04 install, paste one prompt, and end up with the machine I use every day. The instructions are written for an agent, not a person, because the agent is the point: I don't launch applications from a launcher, I press Super+Enter and a terminal drops down with an agent already running, and I tell it what I want. That same agent is what rebuilds the machine it lives in.

What that machine does, concretely:

The kernel is the part that only matters once, and then matters a lot. A Surface Book boots stock Ubuntu and gets most of the machine wrong: touchscreen and pen dead, the detachable base a mystery, battery reporting half there. linux-surface patches that back in as a normal kernel package. And Wayland is not a philosophy, it's scaling — a 3000×2000 panel at 2× next to a 2560×1440 panel at 1× is something X11 cannot do at all, so it's Wayland or one unusable screen.

I wrote down what doesn't work too, because a guide that ends with "everything works" is where other people's weekends go. The camera tops out at 720p and looks flat. Bluetooth call audio is silent. The discrete GPU never enumerates. Closing the lid ends the session. Each one is in the repo with the command that exposes it and what has been tried so far.

The structure is what makes it repeatable. AGENT.md is the operating manual. manifest.json is the machine-readable plan: thirteen modules, each with a runbook in detect / do / verify / rollback form, a verify script, and a hardware gate so Surface-specific modules refuse to run on a ThinkPad and report as skipped instead. verify-all prints a PASS/FAIL table, and a pass is never just "the command exited 0" — a systemctl enable that exits 0 on a unit that then crash-loops is the most common false pass in this whole genre.

It starts an hour before the agent exists, with a human and a USB stick, because nothing can be delegated to a machine that doesn't exist yet. And it leaves my disk through make audit, which scans the tree and the git history for identifiers before anything goes public.

Why bother, when Windows would have taken an hour? Because then the custom software belongs to someone else, the failures are opaque, and my hands are on the mouse half the day. What's here instead is a decade-old laptop on a community kernel, every keyboard action within three keys, an agent on Super+Enter that can actually fix things, and a repository that turns the whole arrangement into something you can rebuild.