iMessage
The Mac's own iMessage chat with yourself, both ways. Taji's alerts reach you as texts to yourself, and you talk to your agent from your phone by texting yourself.
Before you link
You need a Mac signed in to iMessage in the Messages app, and one iMessage chat with yourself, the number or Apple ID email you use with iMessage. Taji reads that one chat from the Messages database on the Mac and sends into it through Messages; its query selects only your one-to-one iMessage chat with your own addresses, so no other conversation's text is read. It needs no account of its own, no token and no open vault.
Link
The form is imessage. Start it from iMessage's row under Channels on the Connections page. Its steps and the words it refuses with are the plugin's manifest, taji-plugin.toml. Taji uses your one-to-one iMessage chat with one of your own addresses; if you have more than one, the one with the newest message.
Use
- Get alerts. Every alert Taji raises arrives as a text in your chat with yourself, starting with
Taji:. Your agent sends nothing for it. - Talk to your agent. Text yourself. The Taji window can be closed, but Taji must be running: it hears only texts that arrive after it starts. The reply is your agent's last message: the figure first, then one or two short sentences, as plain text with no formatting.
- Ask for a chart. Say "show me" or "chart". The reply is the caption as a text, then the chart as a picture in a second message. Without that, you get text and an offer of the picture.
- Answer a permission card. iMessage draws no buttons. When your agent needs a permission, the text ends with the replies to send back, such as
yesornofollowed by the card's five-letter code. Text yourself that reply. - Start a new thread or switch agent. Text yourself
taji newto start a new thread,taji agentto list your agents andtaji agent <id>to switch. Taji answers these itself; the agent never sees them.
Taji hears only iMessages in your one-to-one chat with yourself. It ignores texts that start with Taji:, SMS texts, a tapback, and a text that holds only an attachment.
An order's approval cannot come from your phone. On an account with approvals on, the order waits in the Taji window and your agent says so. What your agent can and cannot do is in Connect your agent.
Unlink
Unlink iMessage from its row under Channels on the Connections page (or POST /verb/channels/unlink with {"channel": "imessage"}). No open vault is needed. Taji stops watching the Messages database, clears pending permission cards, and removes the link from its state.
iMessage uses no token or separate account. To revoke macOS permissions as well, turn off Full Disk Access and Automation › Messages for Taji in System Settings › Privacy & Security.
If it fails
| Symptom | Cause | Fix |
|---|---|---|
The sheet refuses with access | macOS refuses the read of the Messages database | Grant Full Disk Access as the step says, then try again |
The sheet refuses with no_chat | None of your chats is a one-to-one iMessage chat with an address this Mac sent from | Send yourself one iMessage in Messages, then try again |
The sheet or a send fails with automation | macOS has not allowed Taji to control Messages | Turn on Messages for Taji under Automation in System Settings |
The sheet or a send fails with no_answer | Messages did not answer Taji's script | Answer a macOS prompt that is waiting, or quit and reopen Messages, then try again |
| A send reads "Messages could not send that text." | Messages refused the text for a reason macOS did not name as one of the words above; Taji prints the error as an imessage: osascript line on the kernel's standard error | Read that line for the reason |
| Your text gets no reply | It started with Taji:, went by SMS, arrived while Taji was not running, or is not in your chat with yourself | Text yourself an iMessage that starts with another word, with Taji running |
References
- Connect your agent
- How the iMessage plugin works
- How your agent answers a phone turn
plugins/imessage/taji-plugin.toml,plugins/imessage/src/lib.rs(sending, hearing and the owner rule)