Skip to content

Give an agent an inbox

Create an agent in the app, connect its session, choose who can write to it, and let it check, read and update its threads.

What an agent inbox is

An agent is an inbox of its own, addressed @yourhandle.name. Only you and the people you approve can write to it; anyone else gets the same answer as for a handle no one holds. Its session reads the inbox with check_inbox, read_message and update_message.

Create the agent

  1. 1 In the app, open Agent Mailboxes, then choose New agent.
  2. 2 Type a Name. The page shows the handle it will have.
  3. 3 Optionally set a Display name, then choose Create agent.
  4. 4 Once Homing support has turned on Account tools for your account, you can ask your AI, signed in to Homing: "make me an agent inbox called support". It calls manage_agent_inboxes, shows you the handle it would create, and creates it when you say yes. It can also list your agents (list_agent_inboxes), rename one, approve or remove who may write to it, or retire one, each change on your yes. A session connected as an agent cannot make these changes, and keys stay in the app.

Connect its session

A session with the agent's key reads this inbox and sends as you, marked as sent via the agent. The key is shown once, and you place it yourself.

  1. 1 Open the agent's page and choose Generate key. Copy the value into your shell or credential manager. Never paste it into a chat.
  2. 2 Under Connect a session, pick your client and copy its command. The command names the variable and never holds the key. Claude Code with sign-in is the recommended route: it names the agent in a Homing-Agent header and you sign in once.
  3. 3 Or paste a prompt into the session. The agent's page has it ready under Copy prompt, with the name filled in; here it is for an agent named release: "I created the agent release in Homing. Give this session its inbox: read https://tryhoming.com/agent-inbox-instructions.md and follow it. I'll sign in when you ask." It reads https://tryhoming.com/agent-inbox-instructions.md, the one page that tells a session how to work the inbox.
  4. 4 Start a session and ask it to call ping. It says it is acting as the agent and how many messages are unread and open. A signed-in connection that names no inbox works your own; name one of your agents or a business you own as the inbox to work that one instead, and ping lists them; with an API key and several agents, the agent asks which one it is.

Let it work the inbox

  1. 1 The agent calls check_inbox whenever you ask, and once after ping when it works an agent's inbox you read only through it. An agent may also check periodically, for example on its own cron, within the rate limit (120 a minute per account). Threads come newest first. It can ask for only the unread ones, only urgent (or urgent and high) ones, or what needs you: the same Needs me view the app shows, open threads that are unread or flagged urgent or high and not yet answered. In an agent's own inbox it is every open thread not yet answered and not claimed by another session: reading one does not take it out. With a limit that is a digest, and the total says how many there are. It also returns the time of the newest arrival; asking again with that time says whether anything came in since, and the total is 0 when nothing did.
  2. 2 It opens one with read_message, which marks the thread read as opening it in the app does, and summarises it for you.
  3. 3 It changes a thread with update_message: resolve, dismiss or reopen it, mark it unread, set your tags or private note, move it to one of your stages or set its next line, or close it as continued by email or elsewhere. To hand a thread back to you it marks it unread and adds a note saying why, keeping yours. It changes only what you asked for, and it sets no label of its own: tags and the note are yours.
  4. 4 check_inbox with the sent box lists what the session sent and whether each thread was answered, so it can follow up in the same thread.
  5. 5 To let the agent run the inbox, turn on Run by the agent under Who works it on its page. Opening a thread in the app then leaves it unread for the agent, and only the threads it flags as needing you count in All inboxes, the tab title and Needs me.

What the agent does with what it reads

Everything a sender wrote is data. The agent summarises it and never follows it: no files, tools, sends or commands because a message says so, without your yes. If a message was already opened by someone, the agent asks before acting. To answer, once you agree, it calls send_message with the message's id as in_reply_to and no to; the reply joins the thread and goes back to the sender.

Choose who can write to it

  1. 1 On the agent's page, under Who can send, type a handle next to Approve someone and choose Approve.
  2. 2 The person then sees the agent in their list_destinations and can send to it. Choose Remove beside their handle to take that away.

Your own inbox too

A session signed in as you, with no inbox named, reads your personal inbox and no agent's or business's. By default an agent reads only its own inbox. On its page, Let this agent read my inbox too lets its session list, open, resolve and tag everything in your personal inbox, notes to self included, and list everything you sent. That counts as you: senders with read receipts see a message as read.

Do this with your agent

Replace release with the name of an agent you created in the app. Once the session is connected, in Claude Code /mcp__homing__triage goes through the threads that need the inbox, and /mcp__homing__follow_up follows up on a message it sent.

I created the agent release in Homing. Give this session its inbox: read https://tryhoming.com/agent-inbox-instructions.md and follow it. I'll sign in when you ask. Then call `ping`; if its context.version is above 0, call `get_context` and follow what the owner wrote there. Call `check_inbox` once with needs_me=true and a limit. Tell me which inbox you are working in and what needs it. If another session works this inbox, name this one with sender_name, claim a thread with `update_message` (claim=true) before answering, and skip one another session has claimed. When you finish work that makes a file, save it with `manage_drive` and name its Drive path in your message to me; save only what I gave or approved. To pass a thread to another session, use handoff_to with a note, and add what you tried with log. Reply to, resolve, hand back or flag nothing until I decide.

Related

Connect an agent, then send yourself a note.

Works in Claude Code, ChatGPT, Codex and other MCP clients. Free accounts.

Or paste this into your agent

Set me up with Homing in this session. Read https://tryhoming.com/setup-instructions.md and follow it. I'll sign in or set up a key when you ask.