whatsapp-claude-plugin AGENTS.md

whatsapp-claude-plugin AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from Rich627/whatsapp-claude-plugin. It costs 1,346 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for a TypeScript server that connects WhatsApp to Claude Code through the linked-device protocol, allowing messages and media to pass between them.

In plain words
What is it for?
Use them when developing or maintaining WhatsApp messaging, media and voice handling, access control, group-specific AI behavior, scheduled tasks, or the server itself.
Why use it?
They give an AI assistant the project's architecture, allowed dependencies, commands, and operational constraints before it changes the code.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

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 instructions/rich627/whatsapp-claude-plugin/agents-md
Clone the repo
git clone --depth 1 https://github.com/Rich627/whatsapp-claude-plugin

Made for: Claude Code, Codex, OpenCode.

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-claude-plugin AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rich627/whatsapp-claude-plugin/agents-md.svg)](https://agentmods.dev/instructions/rich627/whatsapp-claude-plugin/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rich627/whatsapp-claude-plugin/agents-md"><img src="https://agentmods.dev/badge/instructions/rich627/whatsapp-claude-plugin/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,346 This file is loaded in full into every session.
When invoked 1,346 The same file — it is already loaded in full.
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.1 $0.01346 $0.01346
Opus 5 $0.00673 $0.00673
Sonnet 5 $0.00269 $0.00269
Haiku 4.5 $0.00135 $0.00135

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

Security

Grade A, and why

whatsapp-claude-plugin AGENTS.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.

AGENTS.md · 98 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in this repository. Read this file fully, then use the routing table at the bottom before starting any non-trivial task.

Project Overview

WhatsApp MCP Server plugin for Claude Code — connects WhatsApp as a messaging channel via the linked-device protocol (Baileys). Bidirectional messaging, media, voice transcription, access control, per-group AI personalities, cron tasks. Published on claude.com/plugins.

Tech Stack & Commands

  • Runtime: Bun — TypeScript runs directly. No build step. No test suite.
  • Deps (only 2 — no new dependencies without the user's explicit approval): @modelcontextprotocol/sdk, @whiskeysockets/[email protected] (4 known rc.9 bugs are patched by patch-baileys.mjs via postinstall).
  • Linting: Trunk (prettier, markdownlint, shellcheck, shfmt, checkov, trufflehog).
bun install     # install deps (postinstall runs patch-baileys.mjs)
bun server.ts   # run the MCP server
trunk check     # lint
trunk fmt       # format

Architecture

WhatsApp (phone) ←─ Baileys ─→ MCP Server (server.ts) ←─ stdio ─→ Claude Code
                                      ↓
                       ~/.whatsapp-channel/ (runtime state, never in repo)
                            ├─ access.json
                            ├─ .baileys_auth/
                            ├─ groups/<groupJid>/   (config.md = personality + cron,
                            │                        memory.md = conversation memory)
                            ├─ tasks.md   (agent-maintained open-task list, read by catch_up)
                            └─ inbox/
  • server.ts — the entire MCP server in one file (~1900 lines; re-check with wc -l rather than trusting this number). MCP tools exposed to Claude: reply, react, download_attachment, edit_message, status, unreplied, catch_up, list_groups. Also contains: access-control engine (DM policies pairing/allowlist/disabled, group policies, pairing codes with 1-hour TTL, LID↔phone mapping), message pipeline (access gate → routing → mention detection → text/media extraction → optional transcription → 4096-char chunking in length or newline mode per access.json's chunkMode), per-group personality loading, cron parser (reads the ## Cron Jobs section — exactly that heading — in each group's config.md).
  • skills/ — user-facing commands: /whatsapp-channel:setup, :configure, :access.
  • hooks/hooks.jsonhooks-handlers/session-start.sh — onboarding detection at session start.
  • scripts/watchdog.sh, scripts/whisper-transcribe.sh — reference scripts users copy out of the repo (watchdog to ~/.whatsapp-channel/watchdog.sh; the whisper script to ~/whisper-transcribe.sh — server.ts hardcodes that home-dir path). Editing them in the repo does NOT affect running deployments until re-copied.

Read the full file on GitHub · 98 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 · +9 tokens per session bd5b3d35e615
  2. 6d ago First seen · 98 lines · 1,337 tokens per session scan A 14fe6f5abfac

Subscribe to this mod's changes

whatsapp-claude-plugin AGENTS.md is an instructions file published in the GitHub repository Rich627/whatsapp-claude-plugin (79 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,346 tokens to every session, about $0.0067 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-30.