imsg

imsg is a skill for Claude Code, Codex from elizaOS/eliza. It costs 87 tokens per session (467 once invoked), scanned A, original, MIT.

A command-line connection to Messages on macOS for iMessage and SMS text conversations. It can read chats and send messages or files.

In plain words
What is it for?
Use it to list chats, read or watch conversation history, send texts, and attach a file to a message.
Why use it?
It lets an agent access and manage text conversations from the terminal when Messages.app is configured with the required permissions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list chats, read or watch conversation history, send texts, and attach a file to a message.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/elizaos/eliza/imsg
About the project

elizaOS is an open-source TypeScript framework and product stack for building and running autonomous AI agents. Developers use its runtime, application, command-line tool, cloud services, native bridges, and plugins to create agent-based software. The catalogue entries provide skills, commands, instructions, and rules for working with this monorepo and its agent ecosystem.

elizaOS/eliza · 19,313 stars · on GitHub · elizaresearch.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add elizaOS/eliza --skill imsg
Clone the repo
git clone --depth 1 https://github.com/elizaOS/eliza

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for imsg

README.md
[![agentmods](https://agentmods.dev/badge/skills/elizaos/eliza/imsg/github.svg)](https://agentmods.dev/skills/elizaos/eliza/imsg)
Your own site
<a href="https://agentmods.dev/skills/elizaos/eliza/imsg"><img src="https://agentmods.dev/badge/skills/elizaos/eliza/imsg/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for imsg

Your own site · 80×15
<a href="https://agentmods.dev/skills/elizaos/eliza/imsg"><img src="https://agentmods.dev/badge/skills/elizaos/eliza/imsg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 467 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.00467
Opus 5 $0.00044 $0.00234
Sonnet 5 $0.00017 $0.00093
Haiku 4.5 $0.00009 $0.00047

Measured 11d ago against content hash ba9eb16688e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

imsg scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/skills/imsg/SKILL.md · 75 lines

What it actually says

imsg Actions

Overview

Use imsg to read and send Messages.app iMessage/SMS on macOS.

Requirements: Messages.app signed in, Full Disk Access for your terminal, and Automation permission to control Messages.app for sending.

Inputs to collect

  • Recipient handle (phone/email) for send
  • chatId for history/watch (from imsg chats --limit 10 --json)
  • text and optional file path for sends

Actions

List chats

imsg chats --limit 10 --json

Fetch chat history

imsg history --chat-id 1 --limit 20 --attachments --json

Watch a chat

imsg watch --chat-id 1 --attachments

Send a message

imsg send --to "+14155551212" --text "hi" --file /path/pic.jpg

Notes

  • --service imessage|sms|auto controls delivery.
  • Confirm recipient + message before sending.

Ideas to try

  • Use imsg chats --limit 10 --json to discover chat ids.
  • Watch a high-signal chat to stream incoming messages.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 75 lines · 87 tokens per session scan A ba9eb16688e0

Subscribe to this mod's changes

imsg is a skill published in the GitHub repository elizaOS/eliza (19,313 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 467 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

music-catalog

A lookup tool for a built-in, fixed catalogue of singers and songs. It can answer only from the catalogue included with the skill.

Vinist123/zhuling · 16 tokens

cardzero

CardZero — the first payment wallet built for AI agents. Create USDC wallets on Base L2, make payments, pay x402 paywalls, pay other agents, check balance, view transactions, and run A2A jobs with on-chain escrow (ERC-8183). Human owner sets spending rules via Dashboard; agent pays autonomously within limits. Use when…

mrocker/CardZero · 163 tokens

podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/deer-flow · 38 tokens

vercel-deploy

Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.

bytedance/deer-flow · 69 tokens

skill-reviewer

Reviews DeerFlow skill packages for readiness, triggers, safety boundaries, resources, and evidence. Invoke when users ask to audit, grade, or production-check an existing skill.

bytedance/deer-flow · 38 tokens

surprise-me

Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for…

bytedance/deer-flow · 67 tokens