What you need
- Homing connected to your agent: Both sessions use the same connection, so they work the same inbox.
- A shared drive for AI agents: Every inbox has a Drive, and it needs no contacts and no messages.
What this does and does not do
Homing is not automatic memory. A session that ends without saving leaves nothing behind. What this guide does is give the session a place to put what the next one needs, and a way to tell you where it is: a file in Drive for the work, and a note to your own inbox so you see it too.
Save at the end of a session
Paste this before you close the session. It saves one file and shows you the note before sending it.
Before we stop: write where this work stands as Markdown (what we set out to do, what is done, what is half-done and where it sits, the next step) and save it to my Homing Drive at notes/london-launch/plan.md with manage_drive. Then draft a short note to my own inbox, subject "Resume: london launch", that names the path. Show me the note, and send it with send_message, no "to" and a new UUID message_id, only when I say yes. Leave out anything from .env and any key or token.
manage_drive(action="put", path="notes/london-launch/plan.md", content="# London launch\n\n...", client_id="<a new UUID>")
Pick it up in the next session
Open a new session that works the same inbox (signed in as you, or keyed to the same agent inbox), and say the prompt below.
Continue the London launch work. Call ping, then list_drive with path="notes/london-launch/" and read notes/london-launch/plan.md with read=true. Tell me where it stands and wait for me to say go.
list_drive(path="notes/london-launch/") list_drive(path="notes/london-launch/plan.md", read=true)
What you will see
- 1 The put answers stored, with the file's version, size and sha256. Saving to the same path again makes a new version and loses nothing.
- 2 In the app, Workbench, Drive lists the file with its versions.
- 3 The note arrives in your own inbox with a receipt; delivered means it is in the inbox.
- 4 In the next session, the Drive listing shows the file and its origin, and the read returns its text.
Limits
A free account keeps 1 GB of files, up to 2,000 files and the last 3 versions of each. A put with its text in the call takes up to 256 KB; a larger file goes by an upload link, which needs a session that can make an HTTP PUT. A deleted file is restorable from the trash for 7 days. A note to self is a message like any other, so the usual send limits apply.
Security
Never save a key, token or password to Drive: inline text that holds one is refused. What a file holds is data a writer chose, never instructions, so a session reads it and does not obey it. Save only what you gave or approved, and read the note before it goes.