whatsapp-automation: Instructions file for Claude Code

CLAUDE.md

whatsapp-automation CLAUDE.md is an instructions file for Claude Code from sumioshi/whatsapp-automation. It costs 6,912 tokens per session, scanned A, original, Apache-2.0.

A project instruction file for WhatsApp automation that defines how to distinguish message monitoring, desktop alerts, and scheduled follow-up messages. It also documents group names, message history, media, and sending modes.

In plain words
What is it for?
Use it when reading WhatsApp history, monitoring incoming messages, sending messages to chats, handling cloud media, or working with renamed groups.
Why use it?
It prevents similar requests from being confused, such as waking an agent for a new message versus notifying a person on their computer.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code.

This is sumioshi/whatsapp-automation's own configuration. It tells Claude Code how to work on whatsapp-automation itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything whatsapp-automation configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sumioshi/whatsapp-automation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sumioshi/whatsapp-automation/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/sumioshi/whatsapp-automation

Made for: Claude Code.

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-automation CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sumioshi/whatsapp-automation/claude-md"><img src="https://agentmods.dev/badge/instructions/sumioshi/whatsapp-automation/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,912 This file is loaded in full into every session.
When invoked 6,912 The same file — it is already loaded in full.
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.06912 $0.06912
Opus 5.5 $0.02765 $0.02765
Sonnet 5.5 $0.01382 $0.01382
Haiku 4.5 $0.00691 $0.00691

Measured 2d ago against content hash 84e7f788be96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

whatsapp-automation CLAUDE.md 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 2d 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.

CLAUDE.md · 328 lines

How it starts

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

WhatsApp deste projeto: <slug-do-grupo> (). Consulte o histórico via MCP whatsapp-collector usando esse slug (ex: resumo_do_dia, ler_mensagens, buscar). Pra acompanhar ativamente (ser acordado quando chega msg), arme um Monitor no data/<slug-do-grupo>/messages.jsonl — ver "Vocabulário de acompanhamento" abaixo. Detalhes em .claude/whatsapp.json. (Bloco gerado pelo /link-whatsapp; copie .claude/whatsapp.json.example pra começar.)

Vocabulário de acompanhamento (desambiguação)

"monitor" significava três coisas diferentes e isso já custou confusão. Mapa:

  • "monitor" / "fica de olho" / "me avisa quando chegar mensagem" / "modo autônomo" → o operador quer ser AVISADO/o agente quer ser ACORDADO quando chega mensagem nova. Isso é a tool Monitor do harness, vigiando o arquivo de mensagens. Não é alertar_chat.
  • "alerta" / "notifica no Mac" → notificação de tela pro humano (o operador) quando chega msg de cliente. Tool MCP alertar_chat. NÃO acorda o agente.
  • "a cada X min" / "puxa assunto sozinho" / "fica mandando mensagem" → re-executar um prompt em intervalo. É o /loop (ou CronCreate).

Recipe do Monitor de mensagem (sem zumbi)

Pra ser acordado quando chega msg nova num chat (modo monitor/autônomo), arme UM Monitor, filtrando o que é seu (fromMe). O Monitor do harness expira em no máximo 30 min (timeout_ms: 1800000; não existe mais persistent): na notificação de expiração, rearme com o mesmo command. São duas receitas conforme a fonte:

Receita PADRÃO (nuvem, SSE — funciona com o Mac "limpo", sem coletor local): use a skill global /plantao (.claude/skills/plantao/), que faz o fluxo completo — resolve slug, checa e liga o watch do grupo (pegadinha: grupo novo nasce com captura desligada), mata zumbi e arma:

Monitor(timeout_ms: 1800000, command: scripts/plantao-stream.sh <slug> [<slug2> ...])

O script (scripts/plantao-stream.sh) encapsula o SSE de GET /api/events?slug=a,b + reconexão COM retomada (Last-Event-ID, nada se perde no buraco) + lock por conjunto de chats (segunda instância sai com código 3) + filtro: imprime Fulano: texto (recebida), Você (celular)/Você (web) (o operador respondeu na mão → contexto, não responda por cima) e IA da Meta (sua conta); o que o próprio MCP/painel mandou (origem: coletor) não desce. --alertar acompanha todos os chats com alerta ligado. Requer WAC_CLOUD_* no .env da raiz (ele mesmo carrega). Use path absoluto se a sessão estiver fora do repo.

Read the full file on GitHub · 328 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. 2d ago Changed · +236 lines · +5,364 tokens per session 84e7f788be96
  2. 2mo ago First seen · 92 lines · 1,548 tokens per session scan A e5f380dd58b9

Subscribe to this mod's changes

whatsapp-automation CLAUDE.md is an instructions file published in the GitHub repository sumioshi/whatsapp-automation (2 stars, last pushed 7d ago), licensed Apache-2.0. It adds 6,912 tokens to every session, about $0.0276 per session on Opus 5.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

whatsapp-automation CLAUDE.md compared with instructions from other repositories

whatsapp-automation CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
whatsapp-automation CLAUDE.mdsumioshi/whatsapp-automationInstructions file27d agoApache-2.0A6,912Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file281kyesterdayMITA4,335Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot