whatsapp

whatsapp is a skill for Claude Code, Codex from OmerLapidot/whatsapp-connector. It costs 66 tokens per session (2,019 once invoked), scanned A, original, MIT.

A local connector for reading, searching, and sending WhatsApp messages. WhatsApp is a messaging service for one-to-one and group chats.

In plain words
What is it for?
Use it to list chats, read or search messages, inspect group members, resolve contacts, download media, or send a confirmed reply.
Why use it?
It lets an agent find and summarize conversations without opening the app, while limiting message sending to approved chats and requiring confirmation.

Skill for Claude CodeCodex

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

Good fit Use it to list chats, read or search messages, inspect group members, resolve contacts, download media, or send a confirmed reply.

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

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 whatsapp

README.md
[![agentmods](https://agentmods.dev/badge/skills/omerlapidot/whatsapp-connector/whatsapp/github.svg)](https://agentmods.dev/skills/omerlapidot/whatsapp-connector/whatsapp)
Your own site
<a href="https://agentmods.dev/skills/omerlapidot/whatsapp-connector/whatsapp"><img src="https://agentmods.dev/badge/skills/omerlapidot/whatsapp-connector/whatsapp/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 whatsapp

Your own site · 80×15
<a href="https://agentmods.dev/skills/omerlapidot/whatsapp-connector/whatsapp"><img src="https://agentmods.dev/badge/skills/omerlapidot/whatsapp-connector/whatsapp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,019 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.00066 $0.02019
Opus 5 $0.00033 $0.01009
Sonnet 5 $0.00013 $0.00404
Haiku 4.5 $0.00007 $0.00202

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

Security

Grade A, and why

whatsapp 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.

skills/whatsapp/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WhatsApp connector

Drive the user's WhatsApp via the wa CLI, which talks to an always-on local daemon.

Always call it by absolute path: {{WA_DIR}}/bin/wa

Reading (allowed freely)

  • wa chats — list chats/groups
  • wa read "<chat>" [--limit 30 | --all] — recent messages (each has an id for reactions). --all reads the WHOLE chat (every synced message), bypassing the 200 cap — use sparingly: a busy chat can be thousands of messages (large payload + heavy on your context)
  • wa search "<query>" [--chat "<chat>"] — find messages
  • wa members "<group>" — who is in a group
  • wa contacts "<query>" — resolve a name/number
  • wa media "<chat>" "<message-id>" — download an image/file; prints a path you can then open

Chats are addressed by name (fuzzy) or exact id. If wa reports the name is ambiguous, show the candidates and ask which one.

Response shapes (verified against a live account)

Everything prints as JSON (or a plain string). Shapes you can rely on:

  • wa chats → array of { id, name, unread }, ordered most-recently-active first. The id suffix is the chat type:
    • …@g.us — a group
    • …@lid — an individual person (WhatsApp's current per-contact id). The older …@c.us form can also appear; treat BOTH as 1:1 people. To filter to real people, exclude @g.us — do NOT match on @c.us alone (modern accounts return @lid and you'll get zero results).
  • wa read{ chat, id, messages: [ … ] }, oldest→newest. Each message is { id, sender, ts, text, hasMedia }:
    • sender is the literal string "me" for the user's own messages, otherwise the counterparty's chat id — so message direction is just sender === "me".
    • ts is a UNIX timestamp in seconds (multiply by 1000 for a JS Date).
    • --limit is capped at 200 (MAX_LIMIT); a busier chat returns only its most recent 200, so a chat sitting at exactly 200 means "≥200", not exactly 200. Pass --all to bypass the cap and fetch every message — but "every" means every message currently synced into the Web session, NOT the full lifetime history. Depth is volatile: a freshly linked device backfills older messages over time, and a daemon restart flushes the loaded depth — right after a (re)start most chats read only their newest message or two and re-deepen as the session re-syncs. So a low --all count can mean "not synced yet," not "that's the whole chat." A big, warmed chat can return thousands of messages at once.
  • wa status{ state, ready, syncPercent } (plus recovery: {attempt, max} while self-recovering); statestarting | needs-login | syncing | ready | recovering | relinking | auth-failure | disconnected.
  • Errors come back as { ok:false, error, code } with codes like NOT_ALLOWED (chat not on the allow-list), NOT_APPROVED (human denied or the dialog timed out), AMBIGUOUS (name matched >1 chat), NOT_FOUND.

Read the full file on GitHub · 131 lines

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 · 131 lines · 66 tokens per session scan A f0acb15393d2

Subscribe to this mod's changes

whatsapp is a skill published in the GitHub repository OmerLapidot/whatsapp-connector (6 stars, last pushed 1mo ago), licensed MIT. It adds 66 tokens to every session and 2,019 once invoked, about $0.0003 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.