imessage-search

imessage-search is a skill for Claude Code from benelser/imessage-tools. It costs 8 tokens per session (115 once invoked), scanned A, original, MIT.

A command-line search for finding iMessage conversations containing a chosen keyword. It returns a default set of recent matches, or a user-specified number.

In plain words
What is it for?
Use it to search iMessages by keyword and limit how many matching results are shown.
Why use it?
It avoids manually scrolling through message history to locate conversations about a topic.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the imessage-tools plugin — 6 skills, 1 hook shipped together

Good fit Use it to search iMessages by keyword and limit how many matching…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benelser/imessage-tools/imessage-search
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 benelser/imessage-tools --skill imessage-search
Clone the repo
git clone --depth 1 https://github.com/benelser/imessage-tools

Made for: Claude Code.

Or install imessage-tools, the plugin that ships this one along with the rest of its 6 skills, 1 hook.

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 imessage-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/benelser/imessage-tools/imessage-search.svg)](https://agentmods.dev/skills/benelser/imessage-tools/imessage-search)
Your own site
<a href="https://agentmods.dev/skills/benelser/imessage-tools/imessage-search"><img src="https://agentmods.dev/badge/skills/benelser/imessage-tools/imessage-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 115 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.
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.00008 $0.00115
Opus 5 $0.00004 $0.00057
Sonnet 5 $0.00002 $0.00023
Haiku 4.5 $0.00001 $0.00012

Measured 6d ago against content hash 08820b289b42, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

imessage-search 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 6d 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.

skills/imessage-search/SKILL.md · 21 lines

What it actually says

Search messages using imessage-tools.

imessage-tools search $ARGUMENTS

The CLI accepts:

  • search <keyword> — search for keyword, last 25 matches
  • search <keyword> <limit> — search with custom limit

Examples:

  • /imessage-search "lunch" — find messages containing "lunch"
  • /imessage-search "lunch" 50 — find last 50 matches

Show the output to the user.

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. 6d ago First seen · 21 lines · 8 tokens per session scan A 08820b289b42

Subscribe to this mod's changes

imessage-search is a skill published in the GitHub repository benelser/imessage-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 8 tokens to every session and 115 once invoked, about $0.0000 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-31.

Related

Other skills, from other repositories

apple-notes

Use this skill when the user wants to interact with Apple Notes on macOS - creating, searching, reading, updating, deleting, organizing, or formatting notes and folders. This skill provides access to Apple Notes through MCP tools and includes safe formatting guidance.

sweetrb/apple-notes-mcp · 54 tokens

douyin-creator-scraping

Scrape video stats from the Douyin creator center (creator.douyin.com) using AppleScript to automate the user's logged-in Chrome. Covers the data-center/content page. Use when setting up periodic data collection, building a Douyin stats tracker, or automating export of video performance data.

TradingAi666/TzFilm-Douyin-Tool · 68 tokens

munkel

Send ephemeral end-to-end-encrypted messages that appear in friends' MacBook notches, via the munkel CLI (macOS). Use when the user wants to message, ping, or notify someone in a Munkel channel, broadcast to a channel, or list Munkel channels and members.

limehq/munkel · 65 tokens

email-search-disambiguation

A clarification step for email searches when a person, time period, direction, or scope is unclear. It presents specific possible meanings so the user can choose one.

PsychQuant/che-apple-mail-mcp · 91 tokens

release

Cut a release of the msteams channel plugin — validate, bump the version in all four manifests, write a CHANGELOG entry, commit, push, tag, and publish a GitHub release. Use whenever the user says "release", "cut a release", "version bump", "ship it", "publish", "tag a release", "changelog and push", or finishes a…

gtapps/msteams-channel · 89 tokens

stats

Show Captain Memo's corpus statistics (chunks per channel, observation counts, indexing progress, embedder info). Use when the user types /captain-memo:stats.

kalinbogatzevski/captain-memo · 36 tokens