I Manage 22 Projects From One Browser Tab: Inside My Local AI Agent Office
My laptop crashed twice while AI agents were working, and I had no single place to see what each one was doing. So I built an office: one browser tab where every project has a desk, a small local model routes the work, Claude Code robots do it, and the plan and the commit are always my click.
My laptop crashed twice while AI agents were working on one of my projects. Not because of the agents themselves, but because of what they ran. The first time it ran out of memory. The second time the CPU sat at 95 °C for minutes until the machine simply switched off. And I had no single place to see what each agent was doing.
I have 22 projects on this laptop. Client work, live sites, my own products, a tax folder, a hackathon, this blog. Agents are genuinely good at the boring half of maintaining them. What I was bad at was supervising them: which terminal is waiting for me, which one is burning tokens, which one is about to cook the laptop.
So I built myself an office. It is called Mothership, it runs in one browser tab on my own machine, and every project has a desk in it.
Real screen recording
This is not a mockup. It is the dashboard recorded on my laptop, with a real task going from one typed line to a commit in a test project. Client names are blurred.
The cursor is a script, so I could retake the shot. On a normal morning the clicks are mine, and that is the whole point: agents do the work, I make the decisions.
The morning
Every project has a desk, and every robot has a face
The middle of the screen is an isometric office. Each project is a desk. A robot that is working sits at its desk. A robot that needs me walks over to my desk and waits in line. Robots with nothing to do rest at a charging dock. Client and live projects sit inside a glass room, because they play by stricter rules.
I can turn the office a quarter at a time, fly into a district, or tap a desk to open that project: its robot, its status, and its autonomy level, which I will come back to. There is a second "Classic" view that shows the whole lab at once, and a dark theme for late evenings.
Is a cartoon office necessary? No. But I check it every morning, and that is the bar. A list of 22 rows is something I would skim. An office where one robot is standing at my desk holding a plan is something I notice.
The office art was generated with Codex from a written art brief: desks, robot poses and floor tiles. If an image is missing, the office falls back to simple SVG shapes, so the art can change without touching the code.
How one task moves
One line in, one commit out, and two of the clicks are mine
Here is the exact task from the recording. I typed one sentence: add a sign(x) function to calc.py in the playground that returns -1, 0 or 1, with a unittest test. The playground is a small test repo that exists for exactly this.
-
Navigator drafts the task card, locally
A small model running on my laptop reads the sentence, picks the project, writes a short plan, and suggests a model and a budget. It took 9 seconds and spent zero Claude tokens. Nothing starts until I press Create.
-
A planner robot writes the plan
A real Claude Code process starts inside the project folder, reads only what it needs, and writes a numbered plan. Then it exits. No session is left open.
-
The plan comes to me
The robot walks to my desk and the plan appears in "Needs you". I read it and approve it, edit it, or reject it.
-
A builder makes the change, a reviewer checks it
The builder edits only what the plan says. A fresh reviewer reads the diff and runs the tests. They hand over through a short note, not a long shared conversation.
-
The commit is my click
The commit request shows the files, the diff stats and the reviewer's verdict. I press Commit. The robot goes back to the dock.
These are the real numbers for that run. Cost is the API-equivalent figure the Claude CLI reports. The robots run on my normal Claude subscription, so nothing was billed. The figure works as a brake, not a bill.
| Step | Who | Time | Cost |
|---|---|---|---|
| Draft the task card | Navigator (local) | 9 s | 0 Claude tokens |
| Write the plan | planner, Haiku | 10.5 s | $0.0082 |
| Approve the plan | me | one click | - |
| Make the change | builder, Haiku | 14.1 s | $0.0052 |
| Review and run the tests | reviewer, Haiku | 12.1 s | $0.0039 |
| Commit | me | one click | - |
The split brain
A small local model routes. Claude does the work.
Mothership has two kinds of intelligence, and keeping them apart is the design decision I am happiest with.
Navigator is the dispatcher. It is qwen3:4b-instruct running on my laptop through Ollama. It sorts new tasks, picks the project, writes briefs, turns raw events into one-line status ("PG-1 is running the tests"), and decides whether I am needed. It never edits a file or runs a command. Its answers are JSON, checked by code. When an answer is bad, a plain rule takes over, and the UI counts those fallbacks so I can see how often it happens.
A 4B model is good at sorting and summarising, and unreliable at following a long procedure: it skips steps. (More on what small models can carry in my local LLM benchmark.) So the order of steps lives in code. Every arrow in the task life cycle is decided by code. The model only fills in text.
The robots are real Claude Code processes. Each run is one command, started in that project's folder, so the project's own CLAUDE.md or AGENTS.md loads automatically:
claude -p "<15-line brief>" \
--output-format stream-json --verbose \
--session-id <uuid> --model haiku --effort medium \
--max-budget-usd 0.20 \
--settings <hooks + deny rules>
Every action a robot wants to take goes through a hook that asks Mothership first. Policy answers most of them instantly: reading a file is fine, editing inside an approved plan is fine, git push --force is never fine. Anything in between lands in "Needs you" and waits up to three minutes. If I do not answer, the robot writes a handoff note and stops cleanly. My later click resumes it.
If you want the theory behind this, the agent loop deep dive explains why irreversible actions belong behind a human. Mothership is that rule turned into a building.
Rule zero
It must never crash the laptop
This is the rule the whole project started from, and it is written at the top of the repo's agent instructions. Every process Mothership starts goes through a resource guard, and every robot runs in its own memory-capped system scope.
| Guard level | When | What happens |
|---|---|---|
| Green | resources are fine | robots may launch, one at a time |
| Yellow | CPU busy above 90%, or RAM under 3 GB, swap under 0.5 GB, disk under 10 GB | no new launches; heavy commands wait for green |
| Orange | 93 °C held for 9 s, or RAM under 2 GB, swap under 0.25 GB | running robots are frozen until it cools below 85 °C |
| Red | 97 °C held, or RAM under 1 GB | every robot is stopped, politely, then forcefully after 10 s |
Heat only counts when it is held. This is a gaming laptop and short spikes are normal; the crashes came from 94 to 96 °C held for minutes. Under the guard, the kernel does the hard limits: each robot gets 4 GB of memory for itself and everything it starts, no swap, at most 256 processes, and low CPU priority so my desktop always comes first. If a test suite explodes, the kernel kills it inside that scope only. VS Code, the browser and Mothership itself keep running.
Making the video for this post was the best stress test the guard has had. Rendering it frame by frame held the CPU at 93 to 96 °C several times. Each time the guard logged it, level green → orange · 96 °C for 9 s, ready to freeze any robot that was running, and then level orange → green · all clear once it cooled. The laptop never went down.
Trust levels
Every desk has a leash, and client desks have a short one
Not every project deserves the same freedom. Each desk has an autonomy level, and I raise it per project from the UI:
Read and run read-only commands. Everything else is blocked.
All client projects, live sites, my tax folder and the hackathon start here. Nothing reaches a client's repo without my click.
After I approve the plan, edit files in that project and run its tests.
Commit, push, deploy, installs and deletes still ask me. Most of my own lab projects live here.
A short list is blocked at every level, in Mothership and again in Claude's own deny rules: force-push, hard resets to a remote, deleting branches, sudo, deleting anything outside the project, reading or printing secret files, and skipping permissions. Robots never get an "I am confident, let me just do it" escape hatch.
Tokens
No robot sits idle with a session open
An idle Claude session costs nothing. What costs is continuing a long old session, because the whole conversation is sent again. So a robot is a record in a database, not a process. It becomes a process only while it works on one step, then writes a short handoff note (done, next, files touched) and exits. The next step starts fresh from that note: a few hundred tokens instead of the whole history.
Navigator does all the cheap thinking for free: routing, summaries, status lines, "does Ahsan need to see this". Robots get a brief of about fifteen lines plus the names of the project's start-here files. A daily cap and per-role budget caps stop any one run from eating my plan.
What I would tell you
If you run more than a couple of agents
- Supervise the machine, not just the model. Memory caps and a heat brake saved more work than any prompt.
- Let a small local model route, and let code own the steps. It is fast, free and good at sorting. It is not good at procedures.
- Put your decisions on a fixed path. Plan approval and commit approval are always mine, so I never wonder what happened while I was away.
- Exit after every step. Handoff notes are cheaper than long sessions and easier to read.
- Give risky projects less trust by default. Clients and live sites start at watch-only.
- Make it pleasant to look at. I check a dashboard I enjoy opening. I ignore a log file.
- Python + FastAPI
- SQLite
- React + TypeScript
- WebSocket
- Ollama · qwen3:4b
- Claude Code CLI
- systemd scopes
- 313 offline tests
Mothership is a personal tool and the repo is private for now, because it is wired to my own folders. It runs only on 127.0.0.1, behind a local token, and its 313 tests run fully offline with a fake Claude, a fake Ollama and fake temperature sensors. Every morning I open one tab, see who needs me, click twice, and get on with my day.
Comments (0)
No comments yet
Be the first to share a thought on this article.
Join the conversation