Multimail

From mvanhorn/printing-press-library · View interactive version

Multimail is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Every MultiMail feature plus oversight velocity, trust ladder status, and cross-mailbox search no other tool has. Trigger phrases: `check my multimail inbox`, `approve pending emails`, `multimail trust status`, `search multimail for`, `sync multimail mailboxes`, `use multimail`, `run multimail`.

How to use this skill

Skill file

MultiMail — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the multimail-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install multimail --cli-only

```

  1. Verify: multimail-pp-cli --version
  2. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/social-and-messaging/multimail/cmd/multimail-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

When to Use This CLI

Use multimail-pp-cli when you need to manage an agent email fleet — process oversight queues, monitor trust ladder progression, search across mailboxes, and track inbox health. It turns MultiMail's graduated autonomy model into a daily operator workflow.

Anti-triggers

Do not use this CLI for:

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Agent-native plumbing

_When an agent needs to know if its MultiMail integration is healthy before sending, one command replaces checking 5 separate endpoints._

```bash

multimail-pp-cli fleet health --json --agent --select mailboxes.total,oversight.pending_count,webhooks.success_rate

```

_When an agent's test queue has 20 pending emails, one command clears them instead of 20 individual approve calls._

```bash

multimail-pp-cli oversight bulk-decide --approve --mailbox support-agent --json

```

_When an agent's sends are stuck in approval queues, this pinpoints which mailbox's operator is the bottleneck._

```bash

multimail-pp-cli oversight velocity --json --days 7

```

_Before requesting a trust upgrade, an agent should know which mailboxes are ready and which have been at their current level longest._

```bash

multimail-pp-cli trust status --json --agent --select name,oversight_mode,time_at_level

```

_When evaluating whether to request a trust upgrade, an agent needs to show its history of responsible operation at each level._

```bash

multimail-pp-cli trust timeline --mailbox support-agent --json

```

_When an agent needs to send and process the reply in one workflow step, this replaces a manual send-poll-read loop._

```bash

multimail-pp-cli emails send-and-wait --mailbox test-agent --to user@example.com --subject 'Test' --body 'Hello' --timeout 5m --json

```

Local state that compounds

_Before adding allowlist entries, an agent should know which recipients are already covered and which cause the most gating friction._

```bash

multimail-pp-cli mailboxes allowlist coverage --mailbox primary --days 30 --json --agent --select pattern,match_count,percentage

```

_An agent monitoring its own inbox health can detect when it is falling behind on replies before the operator notices._

```bash

multimail-pp-cli inbox health --json --agent --select mailbox,unread_count,oldest_unread_age,reply_rate

```

_A dropped conversation thread is a customer-facing failure; this is the agent's early warning system._

```bash

multimail-pp-cli threads stale --days 3 --json --agent --select thread_id,subject,last_reply_age,mailbox

```

_When an auditor needs to verify that agents operated within their approved trust levels, this replaces manual log correlation._

```bash

multimail-pp-cli audit compliance --days 30 --json

```

_When an agent's real-time event pipeline depends on webhooks, this surfaces delivery health before silent failures accumulate._

```bash

multimail-pp-cli webhooks health --json --agent --select webhook_id,url,success_rate,consecutive_failures

```

Command Reference

account — Manage account

admin — Manage admin

agent — Manage agent

api-keys — Manage api keys

approve — Manage approve

audit-log — Manage audit log

auth-md — Manage auth md

billing — Manage billing

confirm — Manage confirm

contacts — Manage contacts

data_export — Manage data export

domains — Manage domains

emails — Manage emails

funnel — Manage funnel

health — Manage health

mailboxes — Manage mailboxes

operator — Manage operator

oversight — Manage oversight

slug-check — Manage slug check

support — Manage support

suppression — Manage suppression

unsubscribe — Manage unsubscribe

usage — Manage usage

webhook-deliveries — Manage webhook deliveries

webhooks — Manage webhooks

well-known — Manage well known

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

multimail-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

Approve all pending emails for a mailbox

multimail-pp-cli oversight list --json --select id,subject,to | multimail-pp-cli oversight bulk-decide --approve --stdin

Pipe pending email IDs into batch approval — useful for clearing a gated mailbox queue.

Fleet trust ladder overview

multimail-pp-cli trust status --json --agent --select name,oversight_mode,time_at_level

See which mailboxes are at which trust level and how long they have been there.

Cross-mailbox search with field selection

multimail-pp-cli search 'quarterly report' --type emails --json --agent --select subject,from,mailbox,received_at

Find a specific email across all synced mailboxes with narrow field output for agent context efficiency.

Sync and check inbox health

multimail-pp-cli sync --resources mailboxes,emails --since 24h && multimail-pp-cli inbox health --json

Refresh local data then check unread counts, reply rates, and oldest unread age per mailbox.

Allowlist coverage analysis

multimail-pp-cli mailboxes allowlist coverage --mailbox primary --days 30 --json --agent --select pattern,match_count,percentage

See what percentage of recent recipients match allowlist patterns — find which addresses cause the most gating friction.

Auth Setup

MultiMail uses Bearer token auth with prefixed keys: mm_live_* for production, mm_test_* for staging. Get your key from the MultiMail dashboard or via the API key management endpoints.

Run multimail-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

multimail-pp-cli account list --agent --select id,name,status

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

multimail-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
multimail-pp-cli feedback --stdin < notes.txt
multimail-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.local/share/multimail-pp-cli/feedback.jsonl. They are never POSTed unless MULTIMAIL_FEEDBACK_ENDPOINT is set AND either --send is passed or MULTIMAIL_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

multimail-pp-cli profile save briefing --json
multimail-pp-cli --profile briefing account list
multimail-pp-cli profile list --json
multimail-pp-cli profile show briefing
multimail-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show multimail-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP server:

```bash

go install github.com/mvanhorn/printing-press-library/library/social-and-messaging/multimail/cmd/multimail-pp-mcp@latest

```

  1. Register with Claude Code:

```bash

claude mcp add multimail-pp-mcp -- multimail-pp-mcp

```

  1. Verify: claude mcp list

Direct Use

  1. Check if installed: which multimail-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

multimail-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: multimail-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.