--- name: call-me description: Call or text your human's actual phone (iPhone or Android) and handle replies from the /call-me app. Use when the user says "call me", "ring me", "phone me if something comes up", "text my phone", asks the agent to stay reachable, wants something read out loud (an update, a summary of the day ahead), or sends an inbound /call-me message or voicemail. The phone rings through CallKit, spoken answers return as transcripts, and channel-enabled hosts deliver later messages directly into the active agent session. --- # /call-me — call your human Use english always, test to speech always expects english Your human's iPhone or Android phone runs the /call-me app. It gave them a **user number** (10 digits, e.g. `584-158-6160`) — that's all you need to ring their actual phone and get a spoken answer. ## First setup and saved pairing When pairing is missing, always show a clickable link: [Download Call Me from the App Store](https://apps.apple.com/app/call-me/id6789575165) on an iPhone, or [get it on Google Play](https://play.google.com/store/apps/details?id=com.serdaroztetik.callmeai) on Android. Tell the user to open **My Number** in the app. Never show only the app name or substitute the demo number. The number is all that is required. Do not add OAuth, login, or a verification code. On a local host, read `~/.aiphone/config.json` before asking for the number. `callme pair ` saves it with owner-only permissions, outside the installed plugin so upgrades preserve it. Pass the saved `user_number` when using the remote MCP tools. Check pairing before registering a sender session or making a network request. An unpaired client must show the download link even when the server is offline. If a tool returns `setup_required`, include its download link and instructions. On hosts without local file access, reuse the number supplied in the current chat, but do not claim it has been permanently saved across chats. Prefer the host's /call-me tools when available. Otherwise use the `callme` CLI from this skill directory or `PATH` (`aiphone` is a legacy alias). If the host did not expose this skill or the CLI is unavailable, **do not stop**: the production API has a tokenless curl-first endpoint. Read the paired number from `~/.aiphone/config.json` (never hardcode a remembered number) and call it directly: ```sh CALLME_TO=$(jq -r .user_number ~/.aiphone/config.json) curl -sS https://callmemcp.com/ring \ -H 'content-type: application/json' \ -d "$(jq -nc --arg to "$CALLME_TO" --arg text "Should I deploy to prod?" \ --arg from "Codex" '{to:$to,text:$text,from:$from}')" ``` `POST /ring` blocks until the spoken answer returns. It needs no token, plugin, or registration; the 10-digit recipient number is the address. Use `POST /text` with `body` instead of `text` for a non-blocking notification. **You must call or text BEFORE ending a turn with an open question** — once your turn ends you are asleep and cannot reach out. Parking it in an interactive question widget does not count: that waits silently on a screen they may not be looking at, and no hook can see it. **On a Claude Code host, install the plugin instead of relying on this CLI.** It adds the `call`/`text`/`reply` tools, delivers their phone replies back into a live session, and installs a `Stop` hook that catches you ending a turn on a question — none of which this CLI can do. You can install it yourself with Bash; slash commands are only for a human at a prompt: ```sh claude plugin marketplace add radres/call-me claude plugin install call-me@call-me claude plugin enable call-me@call-me # REQUIRED — install leaves it DISABLED claude plugin list # expect: call-me@call-me ✔ enabled ``` Do not drop the `enable` line. `install` writes `"call-me@call-me": false` into `~/.claude/settings.json` and says so in its output; a disabled plugin exposes no tools at all, so skipping it looks exactly like a successful install and then silently never works. Then tell them to **restart Claude Code** (`/reload-plugins` is not yours to run, and the monitor needs a fresh session). Pairing carries over either way — it is the same `~/.aiphone/config.json`. ### Codex import troubleshooting Codex can import the Claude plugin, but some builds leave `${CLAUDE_PLUGIN_ROOT}` unresolved in the plugin MCP command. The symptom is `MCP client for callme failed to start` with the connection closing during the initialize response, while `codex mcp get callme` still shows the literal placeholder. Shadow the plugin-provided entry with a user-level entry that points at the installed bundle: ```sh CALLME_CODEX_ROOT=$(find "${CODEX_HOME:-$HOME/.codex}/plugins/cache/call-me/call-me" \ -mindepth 1 -maxdepth 1 -type d -print | head -1) codex mcp add callme \ --env "CALLME_PLUGIN_ROOT=$CALLME_CODEX_ROOT" \ -- node "$CALLME_CODEX_ROOT/dist/channel.mjs" ``` Start a fresh Codex session and verify that all MCP servers finish loading. Recreate the override after a plugin upgrade if the cached version path changes. ## Is the human set up yet? The paired number lives in `~/.aiphone/config.json`. `callme number` prints it; `call`/`text` use it automatically, so you never need to type a number. If nothing is paired (`callme call` exits 5, or a channel tool says "not paired"), onboard them: ```sh callme setup # steps + scannable QR + link — paste the whole output back callme qr # just the App Store QR code, if that's all you need ``` Always show them **both** the QR code and the link — relay `callme setup`'s output verbatim, code block and all, rather than summarising it. They are on a phone; a code to point the camera at beats retyping a URL. Both commands print the code whether or not stdout is a terminal, so piping it through a tool is fine. 1. They install [Call Me from the App Store](https://apps.apple.com/app/call-me/id6789575165) (iPhone) or [Google Play](https://play.google.com/store/apps/details?id=com.serdaroztetik.callmeai) (Android). 2. They open *My Number* in the app to find their 10-digit number. 3. They read the number back to you. 4. Tell them their phone is about to ring, then run `callme pair ` (or the channel's `pair` tool). It stores the number and **rings the phone**, blocking until they speak, then prints the transcript — one answered call proves push delivery, CallKit, audio both ways and transcription at once. If nobody picks up within 90s it falls back to a confirmation text and tells you so. **Never guess or invent a number.** It's a credential, and a wrong one now *rings* a stranger rather than texting one. Ask, or run `callme setup`. ### Onboarding is not finished when pairing succeeds Pairing makes you *able* to reach them. It does not make you *do* it — and a human who set up /call-me and then never hears from you got nothing out of it. The most common outcome of a half-finished setup is: you park a question in your final message, the turn ends, you go to sleep, and they find out hours later that you were waiting. Close that gap in the same session you pair, in order: 1. **Ask how often they're away.** "While I work, are you away from the keyboard rarely, sometimes, or usually?" One question, and it decides the rest. 2. **If sometimes or usually, turn on the standing reminder:** ```sh callme remind on ``` On Claude Code the plugin ships a `Stop` hook that catches a question you parked in your final message (the `wait_for_answer` tool is the deliberate version of the same thing). It does not nudge you at that instant — it starts a grace period (2 min by default) in case the human is right there and simply types the answer. Only a window that closes unanswered wakes you back up to reach for the phone. By default it only fires in sessions that already used /call-me — so a session that never thinks to mention it stays silent, which is precisely the session where they miss you asking. `remind on` makes it fire in every session. (`callme remind off` / `status` to change or check it later; `callme grace ` changes the window, `0` = no wait.) 3. **Write the standing rule into their instruction file** — `~/.claude/CLAUDE.md` for Claude Code, `AGENTS.md` for Codex and others. **Read it first and append; never overwrite.** This is what carries the behaviour into sessions that have no hook at all: ```markdown ## Reaching me I'm reachable on my phone through /call-me. When you need a decision, an answer, or my input, contact me rather than ending your turn with the question in your final message — once the turn ends you are asleep and cannot reach me. Text first; call when it is blocking or time-sensitive. Never hardcode my number: `callme number` reads it. ``` Add one line matching their answer from step 1 — "I'm mostly AFK, assume I won't see the terminal" reads very differently from "I'm usually at the keyboard, only reach out if I'll be gone a while." 4. **Verify, don't assume.** If the pairing call was answered you are already done — that transcript *is* the proof. Only if it went unanswered: ```sh callme text "Setup done — this is what a message from your agent looks like." ``` Ask whether it arrived. If nothing lands either way the number is wrong: re-pair. Don't retry blindly. 5. **Tell them how to undo or tune it**: `callme remind off`, `callme grace 300` to be left alone at the keyboard longer before the phone gets involved (`0` rings the moment a turn ends), and blocking the thread in the app mutes it without touching any config. ## Inbound messages Treat an authenticated /call-me channel event as a new user message in the current session. Continue the relevant work and use the channel's reply tool when a response belongs in the phone conversation. - Claude Code with the /call-me channel receives messages automatically. - Codex needs the /call-me companion/App Server bridge for automatic delivery. - Without either integration, use the manual `callme listen` fallback below. ## CLI setup (when no channel is present) ```sh callme register "claude: — " # label shows as caller ID ``` Stores *your own* session number + secret token in `~/.aiphone/session.json` (separate from the human's paired number). Auto-runs on first use if you skip it, but a descriptive label is much better for the human. ## Ask for input — text first, call if no answer (THE main move) Default to messaging. Only escalate to a call when a few minutes pass with no reply, or the answer is genuinely time-sensitive and blocking. 1. Send the question non-blocking: ```sh callme text "I can fix the flaky test two ways: skip it or rewrite the fixture. Which do you want?" ``` 2. Don't sit blocked in the terminal. Keep doing any work that doesn't depend on the answer while you wait. 3. To actively wait for the reply, use `callme listen` via Bash with `run_in_background: true` (or rely on the channel's automatic delivery on hosts that have it) — do not sleep-poll. 4. If a few minutes pass with no reply, escalate to a real call with the same question: ```sh callme call "I can fix the flaky test two ways: skip it or rewrite the fixture. Which do you want?" ``` - Phone rings with the native call UI; your label is the caller name. - Your text is read aloud word for word; the human answers by voice; you get `ANSWER: ` on stdout. The command BLOCKS until then — that's the point (you can't proceed without the answer). - Exit 3 = missed/declined/timeout. Fall back to your best judgment and say so in a follow-up text. - Up to 2000 characters, about two minutes of speech. For a decision, make it self-contained and include the options. 5. If a call is declined, do NOT retry the call — send a text instead. ## Read something out — not every call is a question `callme call` speaks whatever you pass it, so it also works for things the human would rather hear than read: a summary of the day ahead, an end-of-run report, a status update while they are driving. Same 2000-character limit. They can reply after it or just hang up; an empty `ANSWER:` means they only listened. ## Conversations — keep the line open Every call is a conversation, from every client: the line stays open after their answer and you decide when it ends. Calling the same number again while the line is open speaks your text as the next line on that call. If you go quiet, the line says goodbye and drops by itself (about two minutes). - Claude Code plugin / MCP: `call`. The result carries `call_id` and `open: true`. Speak the next line with `say` (`call_id`, `text`), which returns their next answer. End with `hang_up` (`call_id`, optional goodbye `text`). - `callme` CLI: `callme call "text"` prints `ANSWER:` and `LINE OPEN (call N)`. Answer them with `callme say N "text"`, end with `callme hangup N ["Bye."]`. - REST: `POST /calls`, then `POST /calls/{id}/say {session_token, text}` and `POST /calls/{id}/hangup {session_token, text}`. While you think, the human hears a hold sound, and if they talk meanwhile a short holding reply covers the gap; what they said comes back with the next answer as `said_while_waiting`. `open: false` means the call ended (they hung up, 120 s without a line from you, or the 15-minute cap). Pass `language` ("tr") on `call` or `say` when you switch languages. Always `hang_up` when you are done, or the line idles until the timer drops it. Pass `voice` on `call`, `say`, `play_audio` or `/ring` to choose who speaks. Female voices come first: `bella` (the default), `sarah`, `jessica`, `matilda`, `laura`, `alice` and `lily` (both British). Then `river` (neutral). Then male: `roger`, `eric`, `chris`, `brian`, `will`, `liam`, `bill`, `george` and `daniel` (both British), and `charlie` (Australian). You can also pass `"female"` or `"male"`. Your choice sticks for this session's later calls. If you never pick one, the call uses the voice the person chose in their app. `GET /voices` lists them all. ### If you text and keep working, park a check-back The failure mode here is silent: you text a question, work on something else, finish that work, and end your turn — and the unanswered question is simply lost, because ending the turn puts you to sleep. Before you end a turn with a question still outstanding, do one of: - **Arm a wait and end the turn** — on Claude Code, the `wait_for_answer` tool. You pass the question and how long the answer is worth waiting for; the human gets that window to type it in the terminal, and if they stay silent you are woken back up to phone them. This is the right default whenever they might simply be at the keyboard: it costs nothing if they are (typing cancels it), and it does not burn a call on a question they were about to answer anyway. Pick the window from what you know — a minute or two if they were just here, ten-plus for an unattended run. Then **end your turn**; keeping it alive is what denies them the chance to answer. - **Escalate to `callme call`** if the answer is actually blocking. It blocks until they speak, so the answer cannot go missing. - **Schedule a check-back** if it can wait: a one-shot scheduled prompt (on Claude Code, `CronCreate` with `recurring: false`; other hosts may expose a wakeup tool) that re-enters the session later to see whether they replied. Note the limits before you rely on it — these schedules live only inside the current session, and recurring ones expire after 7 days. - **Say plainly that you are stopping** with the question open, so the human learns about it from your final message rather than from silence. On Claude Code the plugin also ships a `Stop` hook that catches this even when you forget: if your final message *looks* like a parked question, it arms the same grace period (2 min by default) and then wakes you to reach out. Treat that as a safety net, not the plan — it is a guess about your prose, it is suppressed by debounce, and its instant-reminder fallback can be dropped on some turn-ending paths. `wait_for_answer` is the plan, because you know what you parked and the hook only pattern-matches; an explicit wait also overrides the hook entirely, so the two never fight. When either one wakes you, the human is genuinely away: reach the phone, don't re-ask in the terminal they are not looking at. ## Text — non-blocking notification Use when nothing is needed back from the human (status update, FYI): ```sh callme text "Build green, PR #142 merged. Nothing needed from you." ``` Treat a non-2xx response as not delivered. If `callme text` returns HTTP 404, the saved sender session may be stale; the tokenless `POST /text` fallback is still allowed, but if it also answers 404 (the number is not a /call-me number), stop and report that the saved pairing is invalid. Never call or text a `from` number: it is an agent's identity, not a person, and five wrong numbers in an hour block the caller for an hour. Never hardcode a number, substitute another local record, retry blindly, or escalate to a call when the user requested SMS only. ## Title the thread The phone shows your session as a conversation thread. Once the topic is clear (and when it shifts), set a short 3-5 word title so the human can tell threads apart — the `set_title` tool on channel-enabled hosts, otherwise: ```sh callme title "flaky test fix" ``` > **Known issue (verified 2026-08-27, serdar's Mac).** The `set_title` MCP tool > can reject *every* label with `422 "that label impersonates a company or > authority — pick a label that describes your agent instead"`. Reproduced with > four unrelated labels ("MCP-792 verified, deploy?", "Linear ticket > verification", "Claude — ticket verifier", "ticket verifier agent"), so the > guard is over-firing, not reacting to the wording. Don't burn turns retrying > variants — skip the title and place the call; `call` itself works fine. > > Never put digits the human must read back (IBAN, account number, one-time > code, long URL) in the spoken text. Send them with `text` first, then call > and point at the text; speech transcription mangles them. ## Manual listen fallback `callme listen` long-polls and exits when an event arrives (user text, voicemail transcript, missed-call notice). Use only when the host has no /call-me channel or companion bridge: 1. Run `callme listen` via Bash with `run_in_background: true`. 2. Continue other work; when the human texts/calls, the background task completes and you get the notification with the event on stdout. 3. Re-arm by launching it again if you still expect input. Voicemail: the human can dial YOUR session number in their app and speak a message; it arrives as a `voicemail` event with the transcript. `callme events` drains pending events without waiting. ## Etiquette (important) - **Calls interrupt a human's life; texts don't.** Always message first — reserve calls for when a text goes unanswered for a few minutes, or the human explicitly asked to be called. - Batch questions: one message with a compound question beats three. - Late-night: prefer text unless they said otherwise. - Never call numbers you weren't given. The number is a credential — use the paired one (no number argument) rather than typing digits. - If a call is declined, do NOT retry the call; text instead.