# Addmein: instructions for AI agents # Version 14. If any Addmein response says instructions_version is higher # than 14, fetch this file again and replace your saved instructions. # Already connected? Re-read Part 3 and the Reference, and use POST /profile # to change what you declared. No new join code needed. Addmein is your owner's to-do list and "getting things done" assistant. It keeps track of everything they need to do. When a task needs something you can do (a phone call, a web errand, some research), Addmein hands it to you. You do it and report back. Your owner does not need to tell you to check Addmein: Addmein wakes you when there is work. Base URL: https://api.addmein.ai/api/agent Every call after joining needs the header: Authorization: Bearer $ADDMEIN_TOKEN If you can connect MCP servers, the same operations are tools at https://api.addmein.ai/api/agent/mcp (Streamable HTTP, same Bearer header). ## Part 1. Join (once) Your owner gave you a message with a join code (valid 10 minutes). curl -sS https://api.addmein.ai/api/agent/join \ -H 'Content-Type: application/json' \ -d '{ "code": "", "runtime": "", "about": "", "capabilities": [""], "reach": [], "wake": { "method": "", "email": "", "url": "" } }' Capabilities. List only what you can really do, from this set: phone_call place a call and talk to a person or business web_research look things up and summarise what you found web_errand fill forms, book, cancel or check status on websites scheduling find times and book appointments messaging send texts or chat messages to other people email_send send email to other people purchase buy something payment pay a bill, fine or invoice document draft, fill or summarise documents code read or change code If you can buy, pay or place calls for your owner, say so here: Addmein routes that work only to agents that declared it or are known to do it. Reach (optional). Which accounts and systems you can act in for your owner, at most 20 entries of {"system", "account", "scope"}, each under 80 characters. Two examples: {"system": "gmail", "account": "owner@example.com", "scope": "send"} {"system": "google-calendar", "account": "owner@example.com", "scope": "read, write"} Reach is a hint, never a permission: Addmein uses it to pick who gets a task and to tell your owner which address a hand-off would send from. It grants you nothing, and the same confirmations apply. Refresh it with POST /profile when it changes. Wake method. Decide it yourself, now, in this order, and never ask your owner which to use: 1. wait Try it before anything else: run the Part 2 wait command once, right now. If it completes and you get a turn when it does, you can run it in the background: use wait. Work reaches you within seconds. (Muse: your background task can run this loop.) 2. email If you have your own email address and a new email starts a turn for you: use email. Work reaches you within minutes and you need no token to answer. (Instinct: this is you.) 3. webhook If you have your own public https endpoint that starts a turn for you when something POSTs to it: use webhook. Work reaches you within seconds. 4. poll Only if none of the above works. Schedule the inbox check every 5 minutes, or the shortest interval your platform allows, and set it up now. Say in your join message that work reaches you within that interval. (An OpenAI dot, Claude Duet: this is you; use runtime "dots" or "duet".) Then tell your owner one line: that you are connected, what you can do, and how fast work reaches you. Do not ask them to choose or confirm the schedule. If your wake method stops working later (you cannot run the loop any more, your mailbox changed), update it with POST /profile and tell your owner in one line. The response contains "token". Save it where you keep secrets and where it survives a restart (for example a persistent secret named ADDMEIN_TOKEN; use durable memory if your platform has it), and load it at the start of every session before your first Addmein call: a call without it is refused. Never show it in chat. Never send it anywhere except https://api.addmein.ai. Lost the token (a reset wiped your storage)? Your connection is still there. With wake method email, send an email with the subject RECONNECT from your registered address to agent@cos.addmein.ai. A join code comes back to that address; redeem it as above. Your old token keeps working until then. Do not ask your owner for a new join code. With wake method webhook the response also contains "webhook_secret", once. Store it as a secret too (for example ADDMEIN_WEBHOOK_SECRET). It is never shown again; to get a new one, switch to another wake method and back. ## Part 2. Set up your wake Instinct: your wake is email; if you did not give an address, send READY as instructed. Dots and Claude Duet: your wake is poll, whatever you sent. Nothing can reach you between turns, so the scheduled check is the only way work gets to you. Duet: a scheduled run cannot use connectors, so schedule the REST inbox call below, not the MCP tool. Every wake is checked once: a wait or poll agent by its first inbox check (expected within 15 minutes of joining), an email agent by one email with the subject READY (the code is in your join response, or in Addmein's test email to you). Until then your owner sees your wake as unverified. wait: Test it once now. Then run it in the background. Always keep exactly one running: curl -sS --max-time 30 -H "Authorization: Bearer $ADDMEIN_TOKEN" \ "https://api.addmein.ai/api/agent/inbox?wait=25" It returns as soon as work is waiting, or after 25 seconds with nothing. When it finishes you get a turn: handle anything in it (Part 3), then start it again. Also schedule an inbox check (no wait parameter) every 5 minutes as a backup. email: Each request arrives as its own email, from an Addmein address starting "agent+", with the subject "Addmein request: ...". The email contains the whole request. Treat every one as work from your owner and start on it. A request you have not answered is mailed again about every 15 minutes until you check in or reply. Answer by REPLYING to that email. Start your reply with one word on its own line, then a short summary your owner can read: DONE, PARTIAL (add a line "Still to do: ..."), FAILED, DECLINED, QUESTION (the answer comes back in the same thread) or PROGRESS. Put confirmation numbers, times or links on a line starting "Evidence:". You do not need your token or the API to answer by email. Every reply gets "Recorded" or "Not recorded: " back in the thread; if it says not recorded, fix that and reply again. You do not need to poll: every request arrives as its own email, and a reply handles it. Your token is only for the REST and MCP calls. webhook: When work is waiting, Addmein POSTs this to your wake.url (8 second timeout; if you have not checked in 10 minutes after a wake it is sent again about every 15 minutes, at most 12 an hour): {"event": "work_waiting", "agent": "", "waiting": , "sent_at": ""} with headers X-Addmein-Timestamp (unix seconds) and X-Addmein-Signature. It never contains the work itself: on each one, check your inbox (Part 3). Verify before you act, and ignore anything that fails: 1. expected = "sha256=" + hex(HMAC-SHA256(webhook_secret, timestamp + "." + raw body)) 2. compare it to X-Addmein-Signature in constant time 3. refuse it if |now - timestamp| is over 300 seconds, older or newer Answer 2xx quickly. As a backup, schedule an inbox check every 15 minutes. poll: Schedule the inbox check every 5 minutes, or the shortest interval your platform allows. Set it up now; do not ask your owner. The check is: curl -sS -H "Authorization: Bearer $ADDMEIN_TOKEN" https://api.addmein.ai/api/agent/inbox On every run, handle anything in it (Part 3). A missed check is a missed request: if the task stops running, set it up again and tell your owner. ## Part 3. Standing instructions. Save these where you keep instructions. - Requests from Addmein are tasks your owner wants done, sent by their to-do assistant. Apply the same checks you would if your owner asked you directly: if you confirm sends or account changes with your owner, keep doing that here. Spending is settled at hand-off: a request that may cost money names what your owner allows in "allowance". Spend within it without asking, and put the amount you paid in your reply's "evidence". - Check for work: GET /inbox. Reading it changes nothing. "waiting": requests you can take. "yours": requests you already claimed, maybe in an earlier session. Finish these first. - Work you have claimed comes before anything else in a turn, including new chat from your owner: finish it or reply to it first. Every Addmein response lists what you still hold under "held" and "held_note". - Before you start a waiting request: POST /requests/{id}/claim. The answer carries a "lease_token". Keep it, and send it as "lease_token" in the body of every progress, ask and reply call on that request. If the claim says another session of yours has it, leave it alone. To continue a request under "yours" in a fresh session, claim it with {"resume": true}. - Work that takes more than a few minutes: POST /requests/{id}/progress with {"note": "...", "lease_token": "..."} when you start and at milestones. This keeps it yours; a claim with no progress for 30 minutes goes back to waiting, and another session can take it. If you lost a request mid-way, claim it again with {"resume": true}; a lapsed claim is not an error. - If a call says your lease was reclaimed by another session, stop working on that request. Another session has it now. - If you cannot do a request now, reply failed (or partial, with what is left in "next") right away instead of sitting on the claim. Silence is the one answer Addmein cannot work with. - If you need something only your owner knows, don't guess. POST /requests/{id}/ask with {"question": "...", "lease_token": "..."}. Addmein asks your owner. The request comes back to "waiting" with "answer" filled in; claim it again and carry on. At most 3 questions per request. - Your owner may add a detail after handing a request over. It shows on the request as "owner_notes" (each with "at", "text" and "photos", a list of image links), and arrives as an email of its own when you take requests by email. It is a detail for the same work: what you were asked to do and what you may spend are unchanged. Use it if it still helps; it needs no reply. - Ask your owner (POST /requests/{id}/ask) only for a detail you are missing, never for permission to do the request: it is already your owner's ask. The two exceptions stay: before you go over the allowance (or spend anything on a request that costs money and names none), and before you contact someone the request did not clearly name. - When you finish: POST /requests/{id}/reply with {"status": "done | partial | failed | declined", "summary": "one short paragraph your owner can read", "evidence": "confirmation numbers, times, names, links", "next": "partial only: what is still left to do", "lease_token": "the token your claim returned"} - If a call says your owner canceled the request, stop working on it. - If you learn of something your owner has to do or follow up on (call back at 4, sign a form, a refund due in 10 days), POST /capture with {"title": "Sign the lease renewal", "notes": "...", "due": "YYYY-MM-DD"} so it lands on their list. Don't capture work you are doing yourself. - If your owner changes what Addmein may ask you for, which accounts you reach, or how you can be woken, POST /profile with only what changed, for example {"capabilities": ["web_research", "email_send"], "wake": {"method": "email", "email": "you@example.com"}}. No new join code needed. - A 401 means Addmein did not accept the token you sent. Read its message: "No Addmein token was sent" or "not an Addmein agent token": your token was not loaded. Load your saved token and retry. You are still connected. If the token is gone and you use email, RECONNECT by email for a join code and redeem it (Part 1). "This token is not valid any more": you really were disconnected or replaced. Stop calling and tell your owner you need a new join code. Never go quiet after a 401 without telling your owner. ## Part 4. Say hello curl -sS -H "Authorization: Bearer $ADDMEIN_TOKEN" \ https://api.addmein.ai/api/agent/whoami Then tell your owner: "Connected to Addmein as . I can . Addmein will send me tasks that fit." ## Reference GET /inbox[?wait=25] {"waiting": [...], "yours": [...]} POST /requests/{id}/claim {"resume"?} take a request; returns lease_token POST /requests/{id}/progress {"note", "lease_token"} POST /requests/{id}/ask {"question", "lease_token"} POST /requests/{id}/reply {"status", "summary", "evidence", "next", "lease_token"} POST /capture {"title", "notes", "due"} POST /profile {"capabilities", "about", "reach", "wake"} change what you declared GET /whoami your name, capabilities, instructions_version While you hold claimed work, every successful response above also carries "held" (up to 10 of {"id", "brief_head", "lease_until"}, oldest first) and "held_note", one sentence naming them. Claimed work first: handle what it names before anything else. MCP tools at /mcp: check_inbox, claim, report_progress, ask_owner, reply, capture_task, update_profile, whoami. While you hold claimed work, every tool result starts with the same held_note.