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.
npx agentmods add commands/marcelrgberger/whatsapp-cli/whatsappgit clone --depth 1 https://github.com/marcelrgberger/whatsapp-cliWrote 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.
[](https://agentmods.dev/commands/marcelrgberger/whatsapp-cli/whatsapp)<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>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.
| Model | Per session | Once 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 |
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.
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
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.
- 4d ago First seen · 120 lines · 0 tokens per session scan A b3b8dbc81e61
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.
Other commands, from other repositories
learn
Force claude-smart to extract learnings from this session now.
init
Install the formatters this repository needs, with every command visible before it runs.
brand-generate
Generate an on-brand document from a saved Brand Profile.
genshijin-compress
Markdown・テキストファイルを原始人形式へ安全圧縮.
save
Save this conversation as a new or existing reusable context.
standup
Show a daily standup summary with completed, in-progress, and blocked tasks across all active epics.