Skip to main content

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.

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.

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​

  1. Get alerts. Every alert Taji raises arrives as a text in your chat with yourself, starting with Taji:. Your agent sends nothing for it.
  2. 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.
  3. 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.
  4. 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 yes or no followed by the card's five-letter code. Text yourself that reply.
  5. Start a new thread or switch agent. Text yourself taji new to start a new thread, taji agent to list your agents and taji 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 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​

SymptomCauseFix
The sheet refuses with accessmacOS refuses the read of the Messages databaseGrant Full Disk Access as the step says, then try again
The sheet refuses with no_chatNone of your chats is a one-to-one iMessage chat with an address this Mac sent fromSend yourself one iMessage in Messages, then try again
The sheet or a send fails with automationmacOS has not allowed Taji to control MessagesTurn on Messages for Taji under Automation in System Settings
The sheet or a send fails with no_answerMessages did not answer Taji's scriptAnswer 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 errorRead that line for the reason
Your text gets no replyIt started with Taji:, went by SMS, arrived while Taji was not running, or is not in your chat with yourselfText yourself an iMessage that starts with another word, with Taji running

References​