Essay · · 15 min read · Build notes · AI · Development

Why I Built claude-computer

How a relationship that began in a chat window a year ago, turned into a brain in every GitHub repo. A 1000+ commits across 80+ projects (big and small) later, it's a mature system that's made me 1000x more productive. I've released the system, for free.

Contents

    claude-computer is a Mac setup you install, for one person who works terminal-first in Claude Code. It began about a year ago in a chat window.

    Claude already had projects then, and I think Claude Code had arrived in the desktop app. It did not take me long to see how much was missing from a proper software development workflow.

    For a while I went with the infrastructure Claude suggested, Vercel and Neon among it. Then I got a couple of bills that were way too much, and decided to switch my brain back on.

    Floppies and Clock Cycles

    I learnt to code in the 90s, when I had no money, and there was never enough memory, disk space (think floppies) or clock cycles, and the internet didn’t exist. The era’s best-known line is the one about 640K of memory being enough for anybody, and Bill Gates told Bloomberg Business News in 1996 that he never said it: “No one involved in computers would ever say that a certain amount of memory is enough for all time.”

    The shortage came back with language models, in new units. A context window is working memory, and Anthropic’s engineers write that context “must be treated as a finite resource with diminishing marginal returns”: every new token “depletes this budget by some amount”. It is Kahneman’s finite tank, which I wrote about in an essay on attention, built into a machine. The tokens are the clock cycles, paid for in time and, on a bill, in money. So the habits of the 90s map straight across: load only what the task needs, keep the rest on disk until it is called for, and know what every instruction costs.

    So I went back to my roots. A terminal-first workflow that takes advantage of CLI tools. Infrastructure on Cloudflare, which gives me memory, compute, deep storage, domains and the edge for essentially nothing; the Workers free plan alone allows 100,000 requests a day. And brutal context management and scoping.

    Context mattered for another reason. I work across many projects, personal and professional, and I wanted one way of working for all of them.

    Jeeves Stands Down

    I started like a lot of other people and explored teams of named agents; Jeeves and his team of Wodehousian characters lasted for a while. I explored second brains built around Obsidian, which promised a lot and slowed everything down.

    On 7 April Jeeves, as chief of staff, ran a household of eight agents: Mycroft for research, Doyle as systems architect, Bunter to draft the specs for new hires, Lemon as the only one allowed to write to the Obsidian vault, Moneypenny as secretary, Callaghan to build the infrastructure, and Moriarty, an adversarial consultant meant to run on a model other than Claude, designed and never hired. Ten projects were architected that day, from mail and calendar to a personal chef. Each project was to have an orchestrator of its own, from a template whose first rule was that he “never works with his own hands”: every piece of work went to a hired agent, briefs arrived in an inbox folder, deliverables left through a brain/ folder, and the state of it all sat in a SQLite database. The vault the personas wrote, a read-only projection of that database, was abandoned in three weeks.

    In tokens, the household was dear. Every task paid for a brief written, the brief read, and the deliverable read back, and each persona had to be carried in every context that used it.

    Some choices from that day are still in place. Secrets live in one store encrypted with SOPS and age, and Telegram is still how the system reaches my phone when something is urgent. The main session still hands work to subagents and reviews what comes back, but none of them has a name or a persona.

    The big one was the difference between human readable documents (for me, that Claude ignores) and machine readable documents (that only Claude uses where there is almost zero ambiguity).

    It formed the basis of a key reversal. The Jeeves household kept its state in a database, and claude-computer has none. Everything I look at is a view over plain files that tools write, and six of those files are contracts, each with one writer, a version and a reader that never crashes on bad input. If the console that shows them is not running, nothing is lost: every dashboard is still a file and every command still works.

    Around this time I realised I already had an organising principle: GitHub repos. Every one of my repos represented a complete idea in my head, and the incomplete work each repo showed how little I could get done by myself.. So why not build a brain into each one, a Claude instance that understands that repo and actually does the heavy-lifting while my brain could focus on coming up with (not-so) bright ideas? A brain is scoping in its plainest form: a session opened in a repo reads the global rules and that repo’s own, and nothing of the other 71 brains that I have running today.

    Around the brains went what the earlier experiments had taught me. A system-wide set of rules that every brain follows. Hooks and CLI tools, so that no brain spends context or tokens on mechanical things. Deploy is just deploy.

    Those lessons are now nine principles, a page each in the template, in the order you meet them: how work is done, how it is kept safe, how it is kept. The first is the one behind deploy. In the template’s words, “a paragraph asking Claude to do something deterministic is a hope, and a script is a fact”: a script runs the same way each time, costs no context until it is used, and fails with an exit code that a hook or a scheduled job can act on. Deploy is held to the same standard. CI runs only what a commit can affect, because checks that take long get skipped, and a deploy waits for CI to be green on that exact commit.

    Rules in Layers

    The rules come in layers, and each layer is loaded only where it applies.

    The first is one global CLAUDE.md, kept in the claude-computer repo and linked into ~/.claude/, so every session on every Mac reads the same copy. Its opening line sets the split: “Global = who I am and how I work. Per-folder = what to do here.” It says who I am, what to ask me before doing (anything destructive, anything that touches credentials, anything that costs money), that secrets live in one encrypted store and nowhere else, and which tools are on the PATH, each of which answers --help.

    The second is each repo’s own CLAUDE.md, which says what to do there and nothing about anywhere else. This blog’s has a list of hard rules: no drop shadows or rounded corners, one accent colour and never a second, and a queued draft publishes on its date, so the date is set deliberately. None of that means anything in the mail brain, and none of it is loaded there.

    The third is skills, which hold the how-to. There are 19 in the global set, from building an app on Cloudflare to sign-in, errors and analytics, and each carries a one-line description that says when it applies. The contract every command-line tool follows is a skill (one file, --help, --json, the shared exit codes, a test); for example, lean, governs how Claude reports to me. Beside the skills sit three pinned subagents, each with a model and a job: implementer on Sonnet for work across several files from a plan, mechanic on Haiku for mechanical edits whose check can be written first, and scout on Haiku for read-only lookups. A subagent that reaches a decision hands it back rather than making it.

    The fourth is hooks, which enforce the rest at run time, because a rule Claude has to remember is a rule it can forget. At the start of every session a hook pulls the claude-computer repo and reports the state of the secrets store in a line. When a conversation is summarised, another prints the brain’s Resume line and open questions back in. When Claude waits on a permission prompt, a hook sends it to my phone; when a turn runs past ten minutes, one line goes to the homepage’s feed. A hook before every shell command warns Claude when it starts a command with cd or calls a tool by its path, the two habits that make the permission rules ask me about commands they would otherwise allow. And every repo has a gitleaks pre-commit hook that scans for leaked secrets before a commit; brains-audit checks every brain for it, along with its CLAUDE.md, TASKS.md and DECISIONS.md.

    Under all four sit the scripts. Anything deterministic becomes a script, and slash commands call the scripts rather than reimplement them. morning --json gathers the calendar, the mail, the due tasks of every brain (there are 72) and every open question into one document, so the morning brief never rereads a task list. bye-check finds anything uncommitted, unpushed or stashed before a session closes, which makes ending one a check rather than a judgement. A new tool starts from new-tool, which writes the file, its test and its CI step, so the contract is kept from the first line.

    The brains talk to each other, too. A session can open another brain’s session in its own tab with a brief, or send it a question; parts of this post came from asking the claude-computer brain how we do things. What they do not share is a pen. In a repo that several sessions touch, one session commits and the others edit and tell it, and parallel work on one repo gets a worktree for each session, because two writers produce conflicts and, worse, silent overwrites.

    The New 640K

    The rules are written as if memory were short, because it is. The global file has a section on keeping output small, and its first line is the whole doctrine: “Everything a command prints stays in the context for the rest of the session.” So a brain asks for git status -sb rather than the full status, for git diff --stat before the diff, and for one field of a JSON file through jq rather than the file. Search results are cut at 200 bytes a line, so a minified bundle cannot flood the context.

    The disk has its equivalent. A program in the 90s left on disk whatever it did not need at that moment, and a skill works the same way: Anthropic’s documentation says Claude “loads information in stages as needed, rather than consuming context upfront”, so a brain carries a line about each skill and reads the rest only when the task calls for it. The tools on the PATH are preferred over MCP servers for the same reason; in the rules’ own words, they “cost no context until used”. The same arithmetic keeps the template small. Every capability I do not use is a cost, a skill description in Claude’s context among them, so the core is what one Mac needs in its first hour, and everything else is a pack: off until it is turned on, and removable the same way. And a brain’s state lives in its files, TASKS.md and DECISIONS.md, so a new session reads where the last one stopped rather than being told.

    Memory that short is also volatile. Sessions are killed far more often than they are exited, and a long conversation is summarised and loses detail, so everything the next session needs is written down before this one ends. The first line under ## Now in every TASKS.md is a Resume line, the next concrete step with its file paths, and after a compaction a hook prints that line and the open questions back into the fresh context.

    The clock cycles are the tokens. Work that can be handed off goes to a cheaper model, Sonnet for building, editing and research and Haiku for mechanical lookups and searches, while the main session keeps the conversation, the decisions and the review of what comes back. A subagent works in a context window of its own and returns a result, not everything it read. The fleet view, a page of every Claude session on a Mac, shows each session’s API-equivalent cost and tokens for the day and the five-hour block it falls in: the nearest thing the system has to a free-memory gauge.

    The fleet view: every Claude session on the mini as a card, clustered by space around a hub, with the Studio and the Pi below and the day's cost and tokens at the top right
    The fleet view on the mini, 30 November 2026: each session's cost and tokens, its subagents, and the machines on the tailnet. Device names and the Pi's services blurred.

    The other finite tank is mine. A prompt that is nearly always “yes” trains me to approve without reading, so Claude asks by consequence: before anything destructive, anything that touches credentials, anything that spends money or publishes, and about nothing else. Nor does a question stop the work. Claude writes it down with a proposed default and carries on with whatever does not depend on it, and I end each one by answering it, accepting the default, parking it or dropping it. Time passing is never an answer.

    The Tailnet

    Tailscale was a huge unlock, and it goes back to the Jeeves days. My Mac Studio, laptop and phone were on the tailnet by April, and the Jeeves front end let in any request that arrived on a tailnet address because, in the words of its own code, “only devices on the tailnet can reach this address”. Every device gets an address from the range set aside for carrier-grade NAT, and wherever it is, it can reach the others.

    That is what lets the laptop be a thin client, the oldest answer to a machine too small for the job: a terminal on a bigger one. The work runs on the desktop, which never sleeps; the laptop holds no repos, no vault and no credentials, so a lost laptop costs a laptop, not client data or keys. The homepage, the dashboards and the library of explorations are served from the desktop to the tailnet and to nothing else. A Pi runs Pi-hole as the DNS for every device on it, because my ISP-provided router is locked and Tailscale was the only way to point every device at it. The printer works from anywhere through one queue, and the phone reaches the fleet through a small web app on the tailnet.

    A fleet needs a map. A coding assistant that sees one repo guesses at the machine around it, so each Mac has one file that says what is installed, running, listening and scheduled on it, and map-check fails when the file and the machine drift apart. A rule that says “keep the map current” is a hope; a check that fails is a fact.

    The Homepage and After

    The last piece of the jigsaw was the browser’s homepage, as a dashboard. It started simple and has evolved a great deal; its views are a post of their own.

    The homepage: world clocks, a Waiting on you card of questions, mail and commitments, the calendar, people, explorations and a grid of every brain
    The homepage, 30 November 2026. Questions, mail, commitments, calendar entries, people, and the Work and Family brains blurred.

    How it is built is the rule of files over databases made visible. The page is static, and a job on the mini rebuilds it every ten minutes from one config file, an ordered list of blocks. Many of the blocks hold nothing of their own. The mail brain writes a small HTML fragment of its counts into its own repo each time it triages; the blog’s watcher writes another every minute; the explore brain writes one when it builds its cards. The config only points at each file, and a block whose file has not been written yet says “Not built yet” rather than breaking the build. The rest are read from what is already on disk: a row for every brain, with buttons for its dashboard, its tasks, Finder, VS Code and Claude; the calendar; open commitments and every brain’s tasks under ## Now; and every question a brain is waiting on me to answer, with the four ways to end it. No one keeps the page current. Each brain keeps its own file current, and the page is a view over them.

    After it came interfaces of my own, and each of them is a brain in its own repo.

    Project management is Marain Portal, a workspace in the manner of Linear that my partners and clients log into and my brains write to: projects, issues, checklists and milestones. A brain does not open a browser to use it. It has a portal command on the PATH, so asking a partner for a domain or reporting progress costs a command and its output. Nothing internal goes into it, and whatever a partner sends back is treated as untrusted data, by people and brains alike.

    The CMS for this blog is the Study, a private writing desk on a Cloudflare Worker behind Cloudflare Access, with one email address allowed in. It holds the queue, the editor with each piece’s margin beside it, and the Google Analytics numbers. It cannot run Claude, and does not try. Every minute a watcher on the mini reads the Study’s requests and opens a Claude session in the blog’s repo with a brief; this section was written in one of those sessions, and what it wrote went back as a commit.

    The library of explorations belongs to the explore brain. When I want to know whether a repo, a tool or a plan deserves my time, an exploration writes a note into the vault, and the library is a set of cards built from those notes. Explore never acts on what it finds: the card names the brain that would, and I decide.

    crashyard is the fleet’s error tracker: an open-source, Sentry-compatible tracker on one Worker, with D1 for its data, R2 for its files and a cron, which replaced Bugsink on one of my servers. Its upstream is pinned to a tag rather than forked, and an upgrade waits until its changelog has been read. Brains get a read-only token to look at their issues; the token that changes anything stays with the crashyard brain.

    All of them rest on the same rules: GitHub, Cloudflare, CLI tools and interfaces in the browser. Each gives the brains a command or a file, and gives me a page.

    Context windows will grow, as memory did. Gates’s denial is the better guide to what follows: no amount is enough for all time, because the work grows to fill whatever there is. So claude-computer treats the window as short whatever its size, and the habits of the 90s are written into its rules.

    The template is public, on GitHub and at claude-computer.com. Version 1.0 is live.