Skip to content
esc

Jump to

↵ searchctrlK or / open

AI 9 min read ·

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.

I Manage 22 Projects From One Browser Tab: Inside My Local AI Agent Office

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.

22projects, one desk eachone tab on localhost
0Claude tokens to route a taska 4B model on my laptop does it
$0.017for a real task, plan to commitAPI-equivalent, on my subscription

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.

The Mothership dashboard in the white theme: robot cards on the left, the isometric office in the middle, the Needs you column on the right, the live terminal and the resource guard below
The white theme. Fleet on the left, the office in the middle, "Needs you" on the right, and the live terminal and the guard below.

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.

The Classic office view in the dark theme, with all desks arranged in districts like a night-time city
Classic view, dark theme. All 22 desks, grouped into districts: lab, private, clients and live, and my own desk.

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.

  1. 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.

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

  3. 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.

  4. 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.

  5. 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.

The Tell Navigator command bar with a drafted task card showing project, plan, model, effort and a budget cap
Step 1. Navigator's draft: project, plan, model, effort and a budget cap. Nothing runs until I press Create.
The Workflow view with the pipeline stopped at the plan approval step, and the plan card waiting in the Needs you column
Step 3. The pipeline stops at "You: plan". The plan waits on the right with Approve, Edit and Reject.

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.

StepWhoTimeCost
Draft the task cardNavigator (local)9 s0 Claude tokens
Write the planplanner, Haiku10.5 s$0.0082
Approve the planmeone click-
Make the changebuilder, Haiku14.1 s$0.0052
Review and run the testsreviewer, Haiku12.1 s$0.0039
Commitmeone click-
The commit approval card showing the changed files, diff stats and the reviewer's verdict, with a Commit button
Step 5. The commit request: two files, the diff stats and the reviewer's "the change matches the approved plan and the new test passes".

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:

one robot run, roughly
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>
YOU one line or a click NAVIGATOR qwen3:4b · local · 0 tokens TASK CARD project · plan · model · cap 4 GB scope · nice 15 · 1 at a time ROBOT · claude -p inside the project folder APPROVAL DESK hook: "may I run this?" ◆ YOU APPROVE plan · commit · installs · push every action not covered by policy RESOURCE GUARD · every 3 s · CPU · RAM · swap · disk · heat → launch / wait / freeze / stop
FIGURE 1 · HOW A TASK FLOWS · Navigator only writes text. Robots do the work inside a capped scope. Anything policy does not allow comes to me.

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 levelWhenWhat happens
Greenresources are finerobots may launch, one at a time
YellowCPU busy above 90%, or RAM under 3 GB, swap under 0.5 GB, disk under 10 GBno new launches; heavy commands wait for green
Orange93 °C held for 9 s, or RAM under 2 GB, swap under 0.25 GBrunning robots are frozen until it cools below 85 °C
Red97 °C held, or RAM under 1 GBevery 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.

The Workflow view with the builder step active, and the live terminal below streaming the robot's commands next to two guard lines
The builder at work. Every command streams into the live terminal, and the guard shows the robot's own memory: 0.14 of its 4 GB.

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.

The agents were never the danger. What they run is. So the guard watches the machine, not the model.

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:

Level 0 · Watch

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.

Level 1 · Plan first

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.

#AI Tools #LLM #Agents #Product Building #Agentic AI #AI Automation

Comments (0)

No comments yet

Be the first to share a thought on this article.

Join the conversation

Comments are moderated before they appear.

Keep reading

Related articles

AI 13 min

Connecting OpenAI to a Real Backend: Lessons From SEO Automation

The naive version worked perfectly on fifty pages and failed four ways on twelve thousand — none of them about prompt quality. Wiring a model into a real backend is a batch-processing problem with an expensive, rate-limited, non-deterministic function in the middle, and it needs everything batch processing always needed.

Jul 14, 2026
AI 15 min

The 940ms Voice Agent: Where Every Millisecond Goes

A conversation has a social latency budget, not a technical one — go past a second and people think the thing is broken. How a voice agent went from 1,530ms to 940ms to first audio, why every millisecond came from overlapping stages rather than speeding them up, the speculative optimisation that cost 38% more tokens for 60ms, and what a user hears when a dependency vanishes mid-sentence.

May 29, 2026
AI 14 min

Your AI System Is Failing Right Now and Nothing Is Alerting

On a Tuesday my RAG system got quietly worse. Every request returned 200, no alert fired, and the answers stayed fluent and confident while being subtly about the wrong thing. Why AI systems fail silently, what a trace must actually record, why the mean is a lie, and the forty-minute root cause that would have taken days.

May 13, 2026