pear-setup

A setup helper for Pear, a service that connects coding agents to iCloud Calendar, Reminders, Contacts, and possibly Mail.

In plain words
What is it for?
Use it to test Pear, check available calendars, verify Mail access, and find commands for calendar briefings and scheduling.
Why use it?
It helps identify whether the API key and iCloud connection work, and explains common authentication or network errors.

Command

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/ashtonau/pear-plugin/pear-setup
Clone the repo
git clone --depth 1 https://github.com/AshtonAU/pear-plugin
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 354 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.00014 $0.00354
Opus 5 $0.00007 $0.00177
Sonnet 5 $0.00003 $0.00071
Haiku 4.5 $0.00001 $0.00035

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

Security

Grade A, and why

pear-setup 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.

commands/pear-setup.md · 25 lines

What it actually says

Help the user verify their Pear setup by testing the connection:

  1. Call pear_list_calendars to test the core connection

    • On success: Show the list of calendars and confirm "Pear is connected to iCloud Calendar, Reminders, and Contacts"
    • On auth error (-32001): The API key is missing or invalid. Tell the user:
    • On connection error: The MCP endpoint may be unreachable. Suggest checking PEAR_MCP_URL or network connectivity
  2. If the user expects Mail support, call pear_list_mail_folders

    • On success: Confirm Mail is connected too
    • On failure while calendars succeeded: Explain that Calendar, Reminders, and Contacts are connected, but Mail may require the mailbox's real @icloud.com address or iCloud Mail custom-domain address during Pear onboarding
  3. On success, summarize what's available:

    • Number of calendars found (list their names)
    • Mail status if checked
    • Available commands: /pear:briefing, /pear:schedule
    • Mention they can ask things like "What's on my calendar today?", "Remind me to...", or "Show me unread iCloud Mail from today"
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 · 25 lines · 14 tokens per session scan A e8aba17e1bfb

Subscribe to this mod's changes

pear-setup is a command published in the GitHub repository AshtonAU/pear-plugin (6 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 354 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.