Suppose I ask my AI agent to fix a typo. It spins up another agent. That agent spins up Mei, the worker I built for jobs like this.
The fix takes one line. The org chart takes three.
Obviously, I don’t need three agents to fix a typo. But there’s a reason I’d want three different agents on a real task: I don’t want all three of them reading the same stuff.
How much of my memory does a worker need?
I like talking things through with Gemini. If I give the agent I talk to regularly access to my notes, it can remember why I abandoned an idea last month, or why I keep saying no to a feature that sounds perfectly reasonable on paper. That’s useful when I’m deciding what to do. I’m less convinced it’s useful when I’m asking for a patch.
Say I’m rethinking the navigation in a document editor. My notes might explain why I care about using it one-handed. They might also contain six abandoned layouts, a debate about icons, and a plan for a feature that no longer exists. I want the first agent to know that history. I don’t want the agent exploring the new layout to have to sort through it again.
So I’d hand a fresh design agent the goal and the constraints we’ve agreed on. Let it explore a couple of layouts. Once we’ve picked one, it can hand Mei something much more specific: put file navigation within reach of the left thumb, keep the existing gestures, and show what changed at a phone-sized viewport. The design agent can check the result against that brief. Mei doesn’t need the original conversation to do the job.
The brief can still be long. The point is that someone chose what went into it.
What I left out of Mei
Mei is a headless agent harness. Its system prompt is 57 tokens, and the definition of its one tool, a persistent Python interpreter, adds another 365. That’s 422 tokens total with o200k_base. Variables carry over between tool calls. It’s quick to start, too, which matters when another agent spins up a fresh worker for a small job.
One tool isn’t the novelty. Prime Agent also gives the model a persistent Python REPL and uses it for things like calling subagents. I wanted to build for the worker end of that handoff. If another agent is already choosing the context and writing the acceptance criteria, why build a second system to make those decisions inside the worker?
As far as workspace documents go, Mei automatically reads the root AGENTS.md when a new session starts, if there is one. It doesn’t automatically load my notes, skills, or other project documents into the prompt. That’s a choice about what the model sees up front, not a restriction on what it can read. Mei has no built-in sandbox, so I’d try it in an isolated environment with a disposable workspace.
Mei’s source and quick start · Original video in Chinese
If you already hand work from one agent to another, what’s one thing you deliberately leave out of the handoff?
I’m comfortable reading English. Writing it is another story. I used GPT to help turn my Chinese script into English that reads more naturally.
Top comments (0)