kapso-whatsapp

kapso-whatsapp is a skill for Claude Code from desplega-ai/agent-swarm. It costs 156 tokens per session (5,543 once invoked), scanned A, original, MIT.

A connection for working with WhatsApp messages through Kapso, a service built on Meta’s WhatsApp platform. It covers incoming text and media, message history, replies, and message status actions.

In plain words
What is it for?
Use it to receive and verify webhook messages, fetch history, send text or template messages, handle media, mark messages as read, show typing status, and add reactions.
Why use it?
It removes the need to build and remember separate requests for common WhatsApp operations, including the rules for replying within or outside WhatsApp’s 24-hour conversation window.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument.

Part of the agent-swarm plugin — 31 skills, 11 commands, 5 agents, 6 hooks, 1 MCP server shipped together

Good fit Use it to receive and verify webhook messages, fetch history, send text or template messages, handle media, mark messages as read, show typing status, and add reactions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desplega-ai/agent-swarm/kapso-whatsapp
About the project

Agent Swarm is a self-hosted operating system for coordinating AI agents as a company-wide workforce. A lead agent assigns work to workers running in isolated containers, while shared memory, tools, schedules, workflows, and review gates preserve and manage that work. The catalogue entries provide agents, commands, skills, hooks, and other extensions for operating the system.

desplega-ai/agent-swarm · 1,012 stars · on GitHub · agent-swarm.dev

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.

Any agent
npx skills add desplega-ai/agent-swarm --skill kapso-whatsapp
Clone the repo
git clone --depth 1 https://github.com/desplega-ai/agent-swarm

Made for: Claude Code.

Or install agent-swarm, the plugin that ships this one along with the rest of its 31 skills, 11 commands, 5 agents, 6 hooks, 1 MCP server.

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 kapso-whatsapp

README.md
[![agentmods](https://agentmods.dev/badge/skills/desplega-ai/agent-swarm/kapso-whatsapp/github.svg)](https://agentmods.dev/skills/desplega-ai/agent-swarm/kapso-whatsapp)
Your own site
<a href="https://agentmods.dev/skills/desplega-ai/agent-swarm/kapso-whatsapp"><img src="https://agentmods.dev/badge/skills/desplega-ai/agent-swarm/kapso-whatsapp/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 kapso-whatsapp

Your own site · 80×15
<a href="https://agentmods.dev/skills/desplega-ai/agent-swarm/kapso-whatsapp"><img src="https://agentmods.dev/badge/skills/desplega-ai/agent-swarm/kapso-whatsapp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,543 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 204
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 241
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00156 $0.05543
Opus 5.5 $0.00062 $0.02217
Sonnet 5.5 $0.00031 $0.01109
Haiku 4.5 $0.00016 $0.00554

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

Security

Grade A, and why

kapso-whatsapp 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 2mo 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.

The curl recipes below assume `$API_BASE`, `$API_KEY`, and `$PHONE_NUMBER_ID` are set in your shell. `get-config` is an MCP tool, not a shell command — call it as a tool first, then export the values it returns:
templates/skills/kapso-whatsapp/SKILL.md · 384 lines

How it starts

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

Kapso WhatsApp

Kapso (https://kapso.ai) is a WhatsApp platform vendor that fronts the Meta Cloud API. A swarm provisions one or more WhatsApp phone numbers and wires each one to either the native inbound handler or a workflow that dispatches a task per inbound message.

When to use MCP tools vs this skill's REST recipes

The integration ships thin MCP-tool wrappers for the common case only:

Tool Use for
send-whatsapp-message Free-form text within the 24h session window.
reply-whatsapp-message Same as above but quote-threads to an inbound WAMID.
register-kapso-number / unregister-kapso-number Provisioning a phone number's webhook + KV mapping.

For ANYTHING else, drop to the REST recipes in this skill — these are the canonical reference, and the MCP tools deliberately do NOT duplicate them:

  • Template messages (outside 24h window) → §"Send a template" below.
  • Media (image / document / audio / video, including wide-image padding and PTT voice notes) → §"Sending media".
  • Reactions (👀 / ✅ / clear) → §"Send a reaction".
  • Typing indicator + mark-as-read → §"Mark as read + typing indicator".
  • Signature verify (manual) → §"Webhook signature verification".
  • Contact resolution → swarm user → §"Resolve a contact to a swarm user".
  • Conversation history / message detail / templates list → §"Read conversation context".

If the MCP-tool send returns a 24h-window error (sessionWindowExpired: true), fall through to the template path in §"Send a template" — this is exactly what the tool's structured-error points at.

Setup

Swarm config keys (resolve with get-config key:<NAME> includeSecrets:true — Lead-only for secrets; workers should ask Lead if they need a value injected):

Key Value
KAPSO_API_BASE_URL https://api.kapso.ai (host only, no /platform/v1)
KAPSO_API_KEY API key (X-API-Key header)
KAPSO_PHONE_NUMBER_ID The swarm's provisioned number's Meta phone-number ID
KAPSO_WEBHOOK_HMAC_SECRET Shared HMAC secret. Kapso signs every webhook request with X-Webhook-Signature: <hex>

Read the full file on GitHub · 384 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 384 lines · 156 tokens per session scan A 609e7553becc

Subscribe to this mod's changes

kapso-whatsapp is a skill published in the GitHub repository desplega-ai/agent-swarm (1,012 stars, last pushed today), licensed MIT. It adds 156 tokens to every session and 5,543 once invoked, about $0.0006 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-30.

Related

kapso-whatsapp compared with skills from other repositories

kapso-whatsapp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kapso-whatsappdesplega-ai/agent-swarmSkill1.0ktodayMITA156Claude Code
add-backendalibaba/anolisaSkill6031mo agoApache-2.0A46Claude Code
security-observabilityalibaba/anolisaSkill6031mo agoApache-2.0A145Claude Code, Codex
skill-ledgeralibaba/anolisaSkill6031mo agoApache-2.0A67Claude Code, Codex
regex-masteryalibaba/anolisaSkill6031mo agoApache-2.0A60Claude Code, Codex
pr-bodyalibaba/anolisaSkill6031mo agoApache-2.0A68Claude Code, Codex
prompt-scanneralibaba/anolisaSkill6031mo agoApache-2.0A103Claude Code, Codex