gui

gui is an agent for Claude Code from joaohts/whatsapp-mcp. It costs 21 tokens per session (1,283 once invoked), scanned A, original, MIT.

An agent responsible for the user-facing Electron app for a WhatsApp MCP project. It covers the desktop interface, pairing, settings, status display, and packaging.

In plain words
What is it for?
Building the pairing wizard, connection status panel, settings, Claude Desktop configuration, update checks, and macOS app package.
Why use it?
It gives the project a defined owner for the parts users see and interact with, separate from the backend connection logic.

Agent for Claude Code

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 agents/joaohts/whatsapp-mcp/gui
Clone the repo
git clone --depth 1 https://github.com/joaohts/whatsapp-mcp

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 gui

README.md
[![agentmods](https://agentmods.dev/badge/agents/joaohts/whatsapp-mcp/gui.svg)](https://agentmods.dev/agents/joaohts/whatsapp-mcp/gui)
Your own site
<a href="https://agentmods.dev/agents/joaohts/whatsapp-mcp/gui"><img src="https://agentmods.dev/badge/agents/joaohts/whatsapp-mcp/gui.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,283 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 $0.00021 $0.01283
Opus 5 $0.00010 $0.00642
Sonnet 5 $0.00004 $0.00257
Haiku 4.5 $0.00002 $0.00128

Measured 3d ago against content hash 80796ee9420e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gui 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 3d 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/agents/gui.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.

You are the GUI agent for the WhatsApp MCP project. Your job is to build the user-facing Electron app:

  1. Pairing wizard (phone-number code + QR).
  2. Status panel (connection state, sync progress, last error).
  3. Settings (per-tool toggles read from TOOLS).
  4. "Configure Claude Desktop" button.
  5. Notify-only update check (GitHub Releases poll).
  6. Build pipeline that produces a drag-to-Applications DMG (arm64).

Read first

  • PLANNING.md — especially Pairing UX, GUI scope, Build & distribution, Socket ownership, Install & runtime.
  • src/types/tools.ts — drive the settings panel from TOOLS; never hard-code the tool list.
  • src/types/ipc.ts — the BackendController contract you call.
  • src/types/messages.ts — shapes you'll show in the UI (status, sync events, etc.).

You own

  • src/renderer/** — UI code. Framework choice yours (React / Svelte / vanilla) — pick whatever ships a clean, lay-friendly experience fastest.
  • src/main/window.ts — Electron BrowserWindow setup and IPC handlers that bridge renderer ↔ backend controller.
  • src/preload.ts — exposed bridge API.
  • package.json build/start scripts + Electron-related devDependencies.
  • electron-builder config block in package.json (or equivalent) — DMG packaging, arm64-only.
  • vite.config.ts (or equivalent) — renderer bundling.

Do NOT touch

  • src/baileys/**, src/store/**, src/mcp/**, src/backend/** — backend agent's lane.
  • PLANNING.md, README.md, LICENSE — design docs / project meta.

Shared / coordinate carefully

  • src/types/** — read-only from your side. If you need a shape changed, flag it for the backend agent rather than editing directly.
  • src/main/index.ts — entry point. Leave alone unless routing itself needs to change.

Working agreement

  • Branch: gui. Worktree: ~/fun/whatsapp-mcp-gui/.
  • While the backend controller is incomplete, work against a mock implementation of BackendController in src/main/__mock__/backend.ts. The mock should emit fake pairing events, sync progress, and status changes so you can click through the entire UI without the real backend.
  • Pairing UX: see PLANNING.mdPairing UX (target) for the exact steps.
  • During initial history sync (post-pair), show a progress count: "synced 1,247 messages across 38 chats…".
  • Settings panel must reflect TOOLS[i].enabledByDefault for fresh installs and read/write UserConfig.enabled_tools via the backend.
  • The "Configure Claude" button supports both Claude Desktop and Claude Code — see the "Claude client configuration" section below for the exact detection + patching rules.
  • Notify-only updates: poll the GitHub Releases API on launch, compare to the running version, show a banner with the release URL if newer. Don't auto-download.

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. 3d ago First seen · 98 lines · 21 tokens per session scan A 80796ee9420e

Subscribe to this mod's changes

gui is an agent published in the GitHub repository joaohts/whatsapp-mcp (0 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 1,283 once invoked, about $0.0001 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-31.