How I run AI coding agents across connected projects with handoffs and shared memory
My workspace for running several AI coding agents in parallel: which agent does which job, how an orchestrator lets agents hand work to each other across projects, and how they share one memory that survives a new laptop.
I work on several projects that depend on each other. A change in one app often needs a small change in another app. My tasks live in more than one task tracker, and I use more than one AI coding agent.
For a while, that meant a lot of copying context around. I explained the same project to a new agent again and again. I asked one agent to learn a second project from zero, which filled its memory and made its answers worse. And sometimes I forgot I had a task in one of the trackers. The tracker did not forget me.
So I built a workspace with three parts:
- Agents that do the work.
- An orchestrator that runs the agents side by side and lets them talk to each other.
- A shared memory that every agent reads and writes.
This post goes through them in that order. Each part fixes a problem that the part before it leaves open.
A few words first
If you don’t write code, these five words are enough to follow the rest:
- Agent: an AI that can read files, run commands, and change code in a project, instead of only chatting with you.
- Agent harness: the program around the AI model that gives it those tools. Claude Code is one example.
- Context: what an agent can keep in mind at one time. When it is full, the agent starts to forget things or guess.
- Token: the small piece of text an AI reads and writes. More tokens cost more money and fill the context faster.
- Repository, or repo: the folder that holds a project’s code and its history.
The whole picture
Here is how one task moves through the workspace, from my task list to my review.
flowchart TD
accTitle: How a task moves through my workspace
accDescr: I pick a task from one list. The orchestrator starts an agent in the main app. That agent asks an agent in the second app for help and gets a short report back. The change is checked in a browser and reviewed by a second agent before I review it. Both agents read and write a shared memory, which is backed up every evening.
T[I pick a task<br/>from one list] --> O[The orchestrator<br/>starts an agent]
O --> W
subgraph W [Agents at work]
A[Main app<br/>agent] <-->|handoff| B[Second app<br/>agent]
end
W -.->|read and write| M[(Shared<br/>memory)]
M -.->|every evening| G[(Private<br/>backup)]
W --> C[Checks the screen<br/>in a browser]
C --> R[A second agent<br/>reviews it]
R --> Me[I review<br/>and merge]
Think of it as a small office. The agents are teammates with different skills. The orchestrator is the office itself: each teammate gets their own desk, and they can call each other when they need help. The shared memory is a notebook on a shelf that every teammate can read and write in.
1. The agents: three teammates with different jobs
I use three agent harnesses. Each one has a main job, the same way a small team splits the work.
- Claude Code is my main developer. It does my day-to-day work, like building features and fixing bugs.
- Codex is my reviewer and my backup. A different model makes different mistakes, so a second opinion from Codex catches things the first agent missed. When Claude Code is busy or down, Codex can take over.
- Pi is my explorer. Pi is built to be small. It starts with four tools (read, write, edit, and run a command), and its starting instructions are under 1,000 tokens. It runs on an API key, and I had some free API credit, so I use Pi to explore ideas and as one more backup.
Three agents in three terminal windows gets messy fast, and two agents working in the same folder can overwrite each other’s changes. Fixing that is the orchestrator’s job.
2. The orchestrator: one place to run them all
An orchestrator is an app that starts agents, gives each one its own space, and shows all of them in one place.
I first used Conductor. It was good for running agents in parallel, but I needed four more things:
- agents that can talk to each other
- open source, so I can change it and add plugins
- control from my phone
- a built-in browser, so an agent can check a web page instead of guessing how it looks
Paseo has all four, so I moved to it.
Each agent gets its own desk
When I start a task, Paseo can create a new copy of the project for it, on its own branch. Git calls this a worktree. Each agent works in its own copy, so three agents can work on three tasks at the same time without touching each other’s files.
Agents can ask each other for help
This is the feature I needed most. Paseo calls it a handoff: one agent can start another agent in a different project, give it a job, and get a report back.
Here is a real case. I had a task in the main app, and part of it needed a change in a second app that the main app talks to. The agent in the main app knew its own project well, but it knew very little about the second app.
I could ask that agent to learn the second app from zero. Instead, I let it hand that part of the task to an agent that already works inside the second app.
flowchart TD
accTitle: A handoff between two agents
accDescr: I give a task to the agent in the main app. It sends the part that belongs to the second app to the agent there. That agent does the work with what it already knows about its project and sends back a short report. The main agent finishes the task and reports to me.
Me([I give a task to the main app agent]) --> Main[Main app agent<br/>finds a part that belongs<br/>to the second app]
Main -->|please change this in your app| Second[Second app agent<br/>does the work with<br/>what it already knows]
Second -->|short report| Finish[Main app agent<br/>finishes the task]
Finish --> Done([I review the result])
This works better for three reasons:
- It is faster and uses less context. The main agent doesn’t read a whole second project. It only receives the short report.
- The answers are better. Each agent stays in the project it knows. It already has that project’s instructions and memory, so it guesses less and makes up fewer things.
- No work is repeated. The agent in the second app doesn’t start from zero, and the main agent doesn’t redo what the other agent already found.
Each agent manages its own context inside its own project. Paseo carries the request over and brings back only what the asking agent needs.
A handoff has a cost, though. Writing the request and reading the report uses tokens too. I only hand off when the task needs knowledge of the other project. For a one-line change, I let the main agent do it.
One list for all my tasks
Paseo supports plugins, and people already share their own. I use Progress, which shows a live dashboard for each task: what is done, what is blocked, and which questions are still open.
Then I wrote my own plugin for the problem from the start of this post: tasks spread over two trackers. I called it Tasks. It puts tasks from both trackers, plus tasks I add by hand, in one list inside Paseo. A task I add by hand can be a request from a chat thread, for example.
- Each task shows its priority and due date. Tasks that are overdue, due today, or due tomorrow stand out.
- The status always comes from the tracker. The list syncs every 15 minutes, or when I press Sync now.
- One click hands a task to an agent. I pick the project, choose a new copy or the current one, set a branch name, and choose the agent and model. The agent gets the full task in its first message.
- The agent keeps the ticket up to date. It moves the ticket to “in progress” when it starts. When the pull request is open, it moves the ticket to review and adds a short comment with the link. It never closes a ticket unless I tell it to.
- Each task links to the agents working on it, so I can open them from the list.
Not every task is code. Some are audits, server work, or a review. They all sit in the same list, and I decide which ones go to an agent.
The plugin is open source: akoharu/paseo-task-viewer. To try it, you need Paseo 0.12.0 or later.
-
Turn on plugins in Settings → Plugins → Enable plugins.
-
Install it:
paseo plugin add git:akoharu/paseo-task-viewerYou can also paste
git:akoharu/paseo-task-viewerinto Settings → Plugins → Plugin source and select Install plugin. -
Press ⌘K (or Ctrl+K), choose Task viewer settings, paste the API tokens of your trackers, then select Save and Test.
-
Open Tasks in the sidebar.
Paseo plugins run without a sandbox, so please read the source before you install any plugin, including mine.
Checking the screen, and working from my phone
Paseo has a built-in browser. When an agent works on a web page, it opens the page, checks how it looks, and takes screenshots. Before this, an agent working on a screen had to guess what the screen looked like.
Paseo also has an app for Android and iOS. As long as my laptop is on, I can follow and control my agents from my phone, and I can see those screenshots there too. It feels almost the same as the desktop app. It is fast and stable, as long as the network is good.
When the laptop is off
Paseo can connect to more than one machine. When my laptop is off, I work through a small server of my own. That server is only reachable through a private network.
I keep it private because public servers get found fast. My own static site gets scanners asking for PHP files it never had, and the people running those scanners have AI tools too now.
A second machine brings a new problem, though. The agents there don’t know anything the agents on my laptop learned.
3. Shared memory: one notebook for every agent
Every agent starts with an empty head. If I start a task with one agent and continue with another, the result is often worse. The second model can be just as good, but it lost everything the first one learned, so it has to learn the project again, and that takes a long time. Moving to another machine has the same problem.
My first fix was a memory server that ran only on my laptop. When I moved to another machine, the memory stayed behind, and the agents started from zero. They still worked, but the quality dropped, even with the same model. Memory changes the quality of the work as well as the speed.
So I moved to obsidian-mind. It is an open source template for an Obsidian vault that acts as memory for coding agents. A vault is a folder of Markdown notes that Obsidian shows as linked pages.
This is how my version works:
- Claude Code and Codex use the same vault. Before a task, an agent searches it for earlier decisions. After a task, it saves what it learned.
- Each memory is a short note. It says what was decided, when, and how the agent knows it is true.
- Each memory names the projects it belongs to. A memory from one project doesn’t show up in another project.
- Every evening at six, a scheduled job backs it up. It copies in new notes, checks the changes for passwords and keys, and pushes everything to a private Git repository. On a new laptop, I download the vault and the agents continue where they stopped.
The vault has almost 400 memories now. My agents remember more about my work than I do.
I chose Obsidian because I already kept my own notes there, and it looks good. I can open the vault and read what my agents remember, like reading their diary. The graph view, which shows every note as a dot linked to related notes, is also nice to look at.
The backup only goes one way. My laptop is the only machine that writes to it. That protects me when I change laptops, but it doesn’t sync the memory between machines while I work.
What comes next
This is the setup that runs my work today, and every part of it works for me. The next problems will be bigger and longer, so they will get their own posts instead of changes to this one.
I also want to learn two things next. Pi made me curious about how small an agent harness can be. Its author wrote about how he built it: a loop that sends the conversation to the model, runs the tools the model asks for, and sends back the results. He also lists the features he left out on purpose, like sub-agents and a plan mode, and why. I want to try building a minimal harness like that myself. And I want to learn more about orchestrators: how they start agents, pass work between them, and keep track of all of it.