whatsapp

whatsapp is a command for Claude Code from datacore-one/datacore. It costs 6 tokens per session (785 once invoked), scanned A, original, MIT.

A command-line integration for importing WhatsApp chat exports, syncing contacts, managing a message gateway, sending messages, and viewing statistics.

In plain words
What is it for?
It helps import text chat files, create contacts, sync contacts through a WhatsApp gateway, send messages, and inspect export statistics.
Why use it?
It removes the need to handle exported chats and contact updates manually across separate steps.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.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 commands/datacore-one/datacore/whatsapp
Clone the repo
git clone --depth 1 https://github.com/datacore-one/datacore

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/datacore-one/datacore/whatsapp.svg)](https://agentmods.dev/commands/datacore-one/datacore/whatsapp)
Your own site
<a href="https://agentmods.dev/commands/datacore-one/datacore/whatsapp"><img src="https://agentmods.dev/badge/commands/datacore-one/datacore/whatsapp.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 785 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.1 $0.00006 $0.00785
Opus 5 $0.00003 $0.00392
Sonnet 5 $0.00001 $0.00157
Haiku 4.5 $0.00001 $0.00078

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

.datacore/modules/whatsapp/commands/whatsapp.md · 141 lines

How it starts

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

/whatsapp

WhatsApp integration menu for Datacore.

Usage

/whatsapp [subcommand]

Subcommands

Import

Process .txt chat exports from WhatsApp.

/whatsapp import [--preview] [--space SPACE]

Options:

  • --preview - Show what would be imported without creating files
  • --space - Target space (default: 0-personal)

Workflow:

  1. Export chats from WhatsApp mobile app
  2. Place .txt files in .datacore/state/whatsapp/exports/
  3. Run /whatsapp import
  4. Review created contacts in contacts/people/

Sync

Sync contacts from WAHA gateway (requires active session).

/whatsapp sync

Gateway

Manage WhatsApp message gateway.

/whatsapp gateway [start|stop|status]

Commands:

  • start - Start message listener
  • stop - Stop message listener
  • status - Show gateway status

Send

Send message to a contact.

/whatsapp send "<contact_name>" "<message>"

Example:

/whatsapp send "Ahmed Bin Sulayem" "Following up on our Davos conversation..."

Stats

Show WhatsApp export statistics.

/whatsapp stats

When run without subcommand, shows interactive menu:

  1. Import exports - Process .txt chat exports
  2. Sync contacts - Sync from WAHA gateway
  3. Start gateway - Start message listener
  4. Stop gateway - Stop message listener
  5. Send message - Send to contact
  6. Status - Show gateway and session status

Examples

# Preview what would be imported
/whatsapp import --preview

# Import to specific space
/whatsapp import --space 1-teamspace

# Check gateway status
/whatsapp gateway status

# Send follow-up message
/whatsapp send "Brett Krause" "Great meeting at Davos! Would love to connect about the gaming fund..."

Instructions

When user runs /whatsapp:

  1. Without subcommand: Show numbered menu and ask what they'd like to do
  2. With subcommand: Execute that action directly

For import operations:

  1. Check if exports exist in .datacore/state/whatsapp/exports/
  2. Parse exports using WhatsAppExportParser
  3. Create contacts using WhatsAppContactCreator
  4. Report created/matched/skipped counts

Read the full file on GitHub · 141 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 First seen · 141 lines · 6 tokens per session scan A 4cdfcb327d42

Subscribe to this mod's changes

whatsapp is a command published in the GitHub repository datacore-one/datacore (4 stars, last pushed today), licensed MIT. It adds 6 tokens to every session and 785 once invoked, about $0.0000 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-09-03.