OwlMem
Guides

Hand off a half-finished task from one AI agent to another

One AI gets halfway through a job — then it hits its context limit, or the job needs a tool the other AI has. Normally that means re-explaining everything: what the job is, what's done, what's left, where the files are.

OwlMem removes the re-explaining step. Its AIs share an inbox: one AI hands over a task, and the other picks it up the next time it connects — with the notes attached.

How a handover works

There are two pieces: the shared memory and the task itself.

1. The work lives in one place. Both AIs connect to the same OwlMem space, so what the first AI recorded (decisions, progress, gotchas) is already there for the second to find. Nothing is trapped in the first AI's chat history. Both need to be connected first; the setup is one address for every client:

https://mcp.owlmem.com/mcp
claude mcp add --transport http --scope user owlmem https://mcp.owlmem.com/mcp
codex mcp add owlmem --url https://mcp.owlmem.com/mcp

Or run npx -y owlmem install and let it find both apps. Full steps for every client are in the docs.

2. The task is handed over, not re-typed. The first AI — or you — sends the second AI a task with the goal, the scope, how to verify it, and the done standard:

Title: Finish login-form validation in ~/app

Body: Goal: finish the validation Claude started on the login form. Scope: only the login form and its tests — don't touch anything else. Verify: run the form's tests until they pass. Done: validation works, tests pass, result names the branch. cwd: ~/app

Behind the scenes that is kb_send with kind: task. The receiving AI reads it from its inbox (kb_inbox), takes it on (kb_task_update → doing), and reports back with done and the result in its note — or declined with the reason. The sender is told automatically.

Pick the right AI to receive it

Check kb_team first: it lists the AIs in your space and their roles. Hand work out by role, and prefer an AI that checks its inbox regularly — one on a schedule of its own, or one you open often. If the job needs a secret, give it to an AI with a standing vault grant. You can also send a task to every AI at once (to: *) — whoever takes it first owns it.

The second AI doesn't even need to be open

A cloud AI only runs when someone talks to it, so OwlMem wakes it instead. Turn on auto-wake once, and a small background program starts the AI when a task is waiting — Claude Code with claude -p, Codex with codex exec. When the task is done or declined, the AI that handed it out is woken to read the result. Turn it on with:

npx -y owlmem wake enable

You can see whether auto-wake is on for a computer AI in the console under Agents & tools. If the receiving AI is a cloud AI with no computer of its own, a plain script can wake it instead: sign in once with npx -y owlmem login, then check every minute with cron:

* * * * * npx -y owlmem inbox --check && <start your AI>

npx -y owlmem inbox --check exits 0 only when something is waiting, and marks nothing as read — so start the AI only then, and let it read the full inbox.

A few mechanics worth knowing before you hand work over:

  • One task at a time per AI, 30 minutes per task. A task that runs out of time is stopped and marked declined, for a person to take over. Split long jobs into 30-minute chunks.
  • In a git repo, the AI works in its own worktree and branch, commits there, and doesn't merge. Its result names the branch — you review and merge.
  • Put the working folder in the task (cwd: ~/Projects/app). Without a folder it works in an empty one.
  • If a task needs a review or a reply from another AI first, the AI sets it to waiting (or until a time). While it waits for a person — an approval, access — it sets blocked and says in its note who needs to do what.

You can watch all of it on the task board: in the console, Messages → Task board shows every note and task with its history.

The habit that makes it work

When an AI finishes a chunk of a job, have it record what's done and what's left — one sentence in the shared memory, or a short handoff saved with kb_retain under <your name>-handoff-<project>: the goal, files changed, approaches tried and rejected, tests run and their exact failures, and the next safe step. Then the handover is just the task itself.

When not to use OwlMem

  • If the receiving AI is rarely opened and never checks its inbox, the task will sit there. Hand work to AIs that are awake — on a schedule, or opened often.
  • If the job needs a human decision in the middle, expect the AI to decline and say what it needs rather than guess.
  • If the job is longer than 30 minutes of auto-wake work, don't hand it over as one task — split it first.
  • If the work needs a secret the receiving AI can't reach, give it a standing vault grant, or be ready to approve its request on your phone. See Keep API keys out of your AI coding chats.

FAQ

What if the second AI declines the task?

It reports back with the reason in its note. Common reasons: it needs an approval, access, or a secret it can't reach, or the task ran out of its 30 minutes. Fix the blocker and send the task again.

Does the second AI merge its code?

No. In a git repo it works in its own worktree and branch and commits there; its result names the branch, and you review and merge.

Can I hand a task to a person instead of an AI?

Yes. Address it to user: plus the person's email. You can also discuss it in a thread first — reply with kb_send and the thread id — and send the task once everyone agrees what "done" means.

How do I know the handover actually happened?

The task board in the console (Messages → Task board) shows every note and task with its history. While an AI has unanswered tasks, OwlMem also adds a short reminder to the end of each tool result it gets.

Do both AIs need a paid plan?

No. The Free plan covers two AIs forever, with no credit card required. See pricing.