Carry on and share
Hand off work
Continue in another agent, or another session, that reads the first one before it starts.
An agent runs out of context, or you want a different one to finish the job. Wisdom gives you three ways to carry the work on:
| You want to… | Use | What you get |
|---|---|---|
| Continue in another agent, or another session | wisdom handoff |
A new session that reads the old one first |
| Continue the same session | wisdom resume |
The same session, still recording |
| Continue a copy of a session | wisdom clone |
A new session of the same agent, holding the old conversation |
Handoff
Section titled “Handoff”wisdom handoff codexThis starts a new Codex session whose first prompt names the newest session from another agent
(or else Codex’s own) and tells Codex to read it with glance and open before changing
anything.
glance, then open the turns it needsNothing is summarized or pasted in. The first prompt is written from facts: your words, the
session’s ID and how many turns it has, the files it changed, and the branch, commit and files
not yet committed. Handing into an existing session, it also names its own files that changed
on disk since it last worked. The agent reads the record itself, as much as it needs. Claude Code
may run Wisdom’s reading commands without asking you; anything else asks as usual. To add the same
words to every handoff, set handoff.extra in
wisdom.yaml.
# name the session to read (full ID)wisdom handoff pi --from 0f3c8a1e-…
# add what it should know to the first promptwisdom handoff codex "the tests fail on CI"
# an existing session reads another onewisdom handoff 0f3c8a1e-… --from 01a1aca0-…What the other agent is told
Section titled “What the other agent is told”This is the whole first prompt for wisdom handoff codex "the tests fail on CI", with the session
from the home page:
Wisdom session 3f9c2a71-8d4e-4b1a-9c55-2e7f0b6d1a90 (claude-code) hands its work to you.
From the person handing it off: the tests fail on CI
Read it, and check its claims against its own evidence: run `wisdom glance 3f9c2a71-8d4e-4b1a-9c55-2e7f0b6d1a90`, then `wisdom open <turn> --capture 3f9c2a71-8d4e-4b1a-9c55-2e7f0b6d1a90` for the turns you need. It has 3 turns; start with t3, the newest. It changed src/totals.ts, test/totals.test.ts.The work is on branch main at a4c91e2, with 0 files not committed.
Before changing anything, read it. Then say in a few lines what you understood and what you will do first.When an agent runs the handoff from inside its own session, its words are labelled
From that session instead.
Good words are short: the goal, what you found (with positions such as t3/c2), what you ruled out,
and what you want back. Wisdom adds the facts itself.
How the sessions are linked
Section titled “How the sessions are linked”A glance of the session that took the work shows the link: continues <id> (<harness>) for a new
one, continued after <id> (<harness>) · at t5 for an existing one. Usage shows it from both ends.
One handoff links one session: a /clear or /new later in the same terminal isn’t a continuation.
In the background
Section titled “In the background”Add --emit to hand off without opening anything. The other session reads in the background
and changes nothing, so you, or the agent that ran the command, keep working:
wisdom handoff 0f3c8a1e-… --emit "the totals test fails on CI; check what t3 changed"When it’s done, the command prints Handoff complete: … with that session’s reply in four
parts: what happened, what is still open, conflicts with its own earlier work (or its questions,
for a new session), and what it would do next. If that agent fails, it prints
Handoff failed: … and where its log is. The work goes on there when you open it with
wisdom resume. Ctrl+C stops the waiting, not the handoff, and replies are kept in
.wisdom/handoffs/.
- Claude Code runs it with no editing tools: its shell can only run
wisdom glanceandwisdom open, and it can read the project’s files. Codex runs it in itsread-onlysandbox, once its hooks are trusted. Pi can’t take an emitted handoff, since it reads only through its shell, but it can send one. - Run from inside a Claude Code session, a handoff reads that session by default. From Codex or
Pi, name it with
--from. - Your agents can do this too: the reading skill teaches them to hand a bug or a follow-up to
another session with
--emit.
Not a handoff?
Section titled “Not a handoff?”To go on in the same session, see Resume a session. To go on in a copy that already remembers everything, see Clone a session.