whatsapp

whatsapp is a command for coding agents from marcelrgberger/whatsapp-cli. It costs 0 tokens per session (770 once invoked), scanned A, original, MIT.

A command interface for reading, searching, exporting, monitoring, and sending messages through WhatsApp chats.

In plain words
What is it for?
Use it to list or read chats, search messages, send messages, manage groups, export histories, monitor chats, and set auto-replies.
Why use it?
It puts common chat-management actions into one set of commands, including unread-message checks and automatic replies.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the whatsapp-cli plugin — 1 skill, 1 command shipped together

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.

agentmods
npx agentmods add commands/marcelrgberger/whatsapp-cli/whatsapp
Clone the repo
git clone --depth 1 https://github.com/marcelrgberger/whatsapp-cli

Or install whatsapp-cli, the plugin that ships this one along with the rest of its 1 skill, 1 command.

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/commands/marcelrgberger/whatsapp-cli/whatsapp.svg)](https://agentmods.dev/commands/marcelrgberger/whatsapp-cli/whatsapp)
Your own site
<a href="https://agentmods.dev/commands/marcelrgberger/whatsapp-cli/whatsapp"><img src="https://agentmods.dev/badge/commands/marcelrgberger/whatsapp-cli/whatsapp.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00770
Opus 5 $0.00000 $0.00385
Sonnet 5 $0.00000 $0.00154
Haiku 4.5 $0.00000 $0.00077

Measured 4d ago against content hash b3b8dbc81e61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

commands/whatsapp.md · 120 lines

How it starts

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

/whatsapp — WhatsApp CLI Slash Command

Description

Control WhatsApp directly from Claude Code. Read chats, send messages, search conversations, monitor for new messages, set up auto-replies, and export chat history.

Triggers

  • /whatsapp

Arguments

Parse the user's input after /whatsapp to determine the subcommand:

Input Subcommand
/whatsapp or /whatsapp chats List recent chats
/whatsapp unread Show unread chats with message counts
/whatsapp read <name> Show last messages from a chat
/whatsapp send <name> <message> Send a message to a contact or group
/whatsapp search <query> Search messages across all chats
/whatsapp groups List all groups
/whatsapp export <name> <path> Export chat history to a file
/whatsapp monitor <name> Watch a chat for new messages
/whatsapp auto-reply <name> Set up an auto-reply for a contact

Auto-Install

Ensure the CLI is installed before running any command:

which whatsapp-cli || (cd ${CLAUDE_PLUGIN_ROOT}/agent-harness && python3 -m venv .venv && source .venv/bin/activate && pip install -e . && echo "whatsapp-cli installed")

Execution

After parsing arguments, activate the virtual environment and run the appropriate CLI command:

source ${CLAUDE_PLUGIN_ROOT}/agent-harness/.venv/bin/activate 2>/dev/null || true

List recent chats

whatsapp-cli chats

Show unread chats

whatsapp-cli unread

Read messages from a chat

whatsapp-cli read "<name>" --limit 50

The <name> argument is the contact name or group name. Use fuzzy matching if an exact match is not found.

Send a message

whatsapp-cli send "<name>" "<message>"

Sends a message via WhatsApp's URL scheme, which opens the WhatsApp desktop app and pre-fills the message. The user may need to confirm sending.

Search messages

whatsapp-cli search "<query>" --limit 20

List groups

Read the full file on GitHub · 120 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. 4d ago First seen · 120 lines · 0 tokens per session scan A b3b8dbc81e61

Subscribe to this mod's changes

whatsapp is a command published in the GitHub repository marcelrgberger/whatsapp-cli (3 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 770 tokens. 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.