whatsapp-automation: Command for Claude Code

.claude/commands/plantao.md

plantao is a command for Claude Code from sumioshi/whatsapp-automation. It costs 27 tokens per session (391 once invoked), scanned A, original, Apache-2.0.

Um comando que mantém um monitor ativo para avisar o agente quando chega uma nova mensagem em um grupo de WhatsApp.

In plain words
What is it for?
Serve para identificar o grupo correto, ativar sua observação na nuvem, encerrar monitores antigos e iniciar um fluxo contínuo de mensagens.
Why use it?
Evita depender de verificações manuais ou de um coletor instalado no computador local.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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/commands/plantao.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 plantao

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/sumioshi/whatsapp-automation/plantao"><img src="https://agentmods.dev/badge/commands/sumioshi/whatsapp-automation/plantao.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 391 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00027 $0.00391
Opus 5.5 $0.00011 $0.00156
Sonnet 5.5 $0.00005 $0.00078
Haiku 4.5 $0.00003 $0.00039

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

Security

Grade A, and why

plantao scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Senão, se um chat for informado pelo usuário, resolva o slug via API do painel (`$REPO/scripts/plantao-candidatos.sh` ou `curl $WAC_CLOUD_URL/api/groups/summary`).
.claude/commands/plantao.md · 25 lines

What it actually says

Arma um Monitor SSE da nuvem que acorda o agente a cada mensagem nova em um chat do WhatsApp, sem depender de coletor local.

Siga os passos exatamente como especificados na skill plantao:

  1. Identificar o chat/slug:

    • Se o projeto atual tiver .claude/whatsapp.json, use o grupo (slug) cadastrado lá.
    • Senão, se um chat for informado pelo usuário, resolva o slug via API do painel ($REPO/scripts/plantao-candidatos.sh ou curl $WAC_CLOUD_URL/api/groups/summary).
    • Se houver dúvida ou múltiplos candidatos, pergunte ao usuário antes de armar.
  2. Checar se o grupo está com watch: true na nuvem:

    • Se "watch": false, ative via POST $WAC_CLOUD_URL/api/groups {"id": "<jid>", "watch": true}.
  3. Matar monitores zumbis antigos do mesmo chat.

  4. Armar o Monitor SSE:

    • Execute o script plantao-stream.sh <slug> [slug...] (ou --alertar) com Monitor(persistent: true) — vários chats cabem num Monitor só.
    • Saída imediata com código 3 = já existe plantão desse conjunto; mate o antigo em vez de armar outro.
  5. Confirmar ao usuário que o plantão está ativo: mensagens recebidas e respostas manuais dele (Você (celular)) acordam o agente; o que o MCP mandou não.

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 · +1 lines 5192c21e2068
  2. 2mo ago First seen · 24 lines · 27 tokens per session scan A 40e66374b05b

Subscribe to this mod's changes

plantao is a command published in the GitHub repository sumioshi/whatsapp-automation (2 stars, last pushed 7d ago), licensed Apache-2.0. It adds 27 tokens to every session and 391 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

plantao compared with commands from other repositories

plantao next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plantaosumioshi/whatsapp-automationCommand27d agoApache-2.0A27Claude Code
vs-stopmtarcure/claude-vibe-squadCommand22816d agoMITA0Claude Code
recapfirst-fluke/fullstack-starterCommand2264d agoMITA47GitHub Copilot
resumeKastalien-Research/thoughtboxCommand663d agoMITA0Claude Code
weekly-reviewskeletonarmytech/marrow-mcpCommand323d agoMITA19Claude Code
configruvnet/sublinear-time-solverCommand932d agoMITA0Claude Code
sessionruvnet/sublinear-time-solverCommand932d agoMITA0Claude Code