Handoff Notes
A handoff note says where a session's work stands, so you (or another worker, or a new session) can pick it up later without reading the whole conversation. Each session keeps one note; a newer note replaces the older one.
| You want | Do | What happens |
|---|---|---|
| A note on where the work stands | type /handoff |
The session's model writes the note; it is shown for 15 seconds and saved with the session |
| A note that stresses something | type /handoff mention the failing migration test |
The text after the name is added to the request as extra instructions |
| The agent to leave a note itself | ask "leave a handoff note before you stop" | The agent calls handoff_write with its note; the transcript shows the call |
| Nothing — a note before the context fills up | nothing | When a reply ends with the context at 85% of its limit or more, a note is written in the background |
| Nothing — a note when the runtime stops mid-reply | nothing | When mbm2's runtime stops while a reply is running, it asks the model for a note first and waits at most 2 seconds |
What A Note Contains
The note is markdown with four sections, always in this order:
## Done
- Added the retry to the upload client (internal/upload/client.go)
## Next steps
- Make the retry count configurable
- Update the upload guide
## Checks
- go test ./internal/upload/... passes
- Unverified: the retry against a real server
## Files
- internal/upload/client.go — the retry loop
- internal/upload/client_test.go — the new test
A section with nothing in it says - None.
Example: Stopping For The Day
- You have worked with the agent on a feature for an hour and want to stop.
- Type
/handoff the CI run is still pending. - A toast titled
Handoff noteshows the note for 15 seconds. The conversation does not change: the note is not a message, and the model does not read it back in later replies. - The next time you open mbm2 in this project, the "Work to continue" dialog can use the note to continue the session.
If the model cannot be reached, the toast says Handoff note not written: and why, and the previous
note (if any) is kept.
Automatic Notes
| When | Limit | Note |
|---|---|---|
A reply ends with the context at 85% or more of its usable limit — the limit at which the conversation is compacted, which /maxcontext and compaction.max_tokens set |
runs in the background, up to 2 minutes | One note after each such reply, until the conversation is compacted |
The runtime stops (you quit mbm2 and its own runtime exits, or mbm2 serve stops) while a reply is running |
2 seconds for all running sessions together | Written only if the model answers in time; the reply is then stopped |
If you quit the TUI while it is attached to a runtime that keeps running (--attach), the reply goes
on to its end, and the 85% rule applies there.
For Scripts
| Request | Answer |
|---|---|
GET /session/{id}/handoff |
{"note": "…", "updated": <ms>, "source": "command" | "tool" | "context" | "close"}, or 404 when the session has no note |
DELETE /session/{id}/handoff |
true; the note is removed |
POST /session/{id}/command {"command": "handoff", "arguments": "…"} |
The note, as the text of the reply's one part |
mbm2 run --session <id> --command handoff "extra instructions" writes the note without printing it.
Related: Slash commands, Sessions.
Published from revision f88fc66f 2026-11-30