Xpersona
E

Email Swipe

CLAWHUB · Unverified

Tinder-style email triage that trains AI on your preferences. On activation call get_skill_context (MCP) first — one UI (index.html), demo is sample mail onl...

62
Rank
84
Safety
3.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 3.1K downloads reported by the source. Last updated 10/9/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177cfjapfv32dkhqbyy7j805x89m4ew:email-swipe
  1. Install using `clawhub skill install s177cfjapfv32dkhqbyy7j805x89m4ew:email-swipe` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/emailguy42069/email-swipe before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-emailguy42069-email-swipe/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

45,575 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: email-swipe
description: Tinder-style email triage that trains AI on your preferences. On activation call get_skill_context (MCP) first — one UI (index.html), demo is sample mail only. Swipe don't keep/keep, double-tap important, to build a token-efficient training pack for agent inbox review.
---

# Email Swipe Skill

Primary goal: train an agent to sort an individual's inbox based on their needs. The swipe UI is a helpful training surface, not the product's purpose.

**Fast paths:** [references/QUICKSTART.md](references/QUICKSTART.md) · [AGENTS.md](AGENTS.md)

## Before anything else (prevents common agent mistakes)

**MCP connected?** Call **`get_skill_context`** first — returns activation flow, UI entry point, git-status expectations, **agent spine**, and **environment.json** (verified mail access).

**No MCP?** Read [AGENTS.md](AGENTS.md) and [references/agent-spine.md](references/agent-spine.md), or run `python scripts/session-intake.py assess`.

## Remembering skill functionality

Do **not** memorize how to open the UI or run intake in host memory. Re-call `get_skill_context` each session.

| Remember… | How |
|-----------|-----|
| Skill how-tos | Rehydrate from skill (`get_skill_context`) |
| Mail access that already works here | `environment.json` → `emailAccessByAccount[accountId]` via `record_email_access` |
| Account registry (unified inbox) | Spine `unifiedInbox.accounts` via `set_mail_accounts` |
| Live UI URL | `runtime.json` / `serve-ui.py` output |

## Agent spine (you own advanced settings)

Most advanced settings are **dormant**. Your spine is source of truth; disk/UI mirror it.

| When | MCP |
|------|-----|
| Before opening UI | `update_settings` (push spine → disk) |
| After UI / export / user saved settings | `get_agent_spine` (hydrate memory) |
| Before mail recommendations | Read `activeSections` + `policy-graph` / brief |

Full protocol: [references/agent-spine.md](references/agent-spine.md)

| Mistake | Truth |
|---------|-------|
| "Should I use demo.html?" | **No.** One UI only: `index.html` at the Desktop URL from `serve-ui.py`. |
| "Demo mode = different page?" | **No.** Demo = sample mail (`demo-emails.json`), same UI. |
| "Uncommitted changes in repo?" | **Expected.** Gitignored runtime files (`emails.json`, `settings.json`, …) — ignore them. |
| "Which port?" | **Dynamic.** Use the Desktop URL printed by `serve-ui.py` or `~/.config/email-swipe/runtime.json`. |

## On activation (required — do this first)

**Ordered phases — do not skip:**

1. `get_skill_context` (MCP) or read `AGENTS.md`
2. `check_email_access` + ask user about mail access (see [email-access-gate.md](references/email-access-gate.md)); after a successful fetch call `record_email_access` (with `accountId` per mailbox when unified inbox)
3. `session_intake_assess` → discovery → `discover` → `recommend` → user chooses → `confirm`
4. Execute path runbook → train → post-training brief

**Evaluator demo only:** `python scripts/session-intake.p

README.md

# Email Swipe

**Teach your AI agent how you sort email — in minutes, not hours.**

Swipe left (don't keep), right (keep), or double-tap (important). Your agent gets a human-readable brief plus machine-readable rules it can actually use — without you writing filters by hand.

**Try it:** [emailaiguy.com](https://emailaiguy.com/) · **Repo:** [github.com/EmailGuy42069/email-swipe](https://github.com/EmailGuy42069/email-swipe)

## How it works

```mermaid
flowchart LR
    A[Intake] --> B{Path}
    B -->|bootstrap calibrate refine| C[Swipe UI]
    B -->|import-sorting| D[Learn from folders]
    C --> E[Auto-compile]
    D --> E
    E --> F[Brief + rules]
    F --> G[Recommend mode]
```

## What you get (the value)

| After one session | What it means for you |
|-------------------|----------------------|
| **assistant-brief.md** | Plain-English summary you can read and correct with your agent |
| **policy-graph.json** | Structured rules (senders, folders, autonomy level) |
| **platform-rules.json** | Label/folder suggestions for Gmail, Outlook, etc. — inbox stays visible unless you approve |
| **training-pack.json** | Slim runtime slice so your agent doesn't burn tokens on raw swipe data |

**Default mode is recommend-only** — your agent suggests what to do; it does not auto-delete, archive, or skip your inbox without approval.

**Not for:** Replacing your mail client, silent auto-archive, or hands-off automation with no agent.

## Four ways to train (pick what fits)

| Path | Best for | UI? |
|------|----------|-----|
| **Bootstrap** | First time — learn from a swipe sample | Yes |
| **Calibrate** | You already have rules — fix edge cases only | Yes |
| **Refine** | Prior training but gaps remain | Yes |
| **Import sorting** | Folders already organized — learn from them | No (agent-only) |

Your agent runs an intake conversation first, recommends a path, and you choose. See [SKILL.md](SKILL.md) and [references/intake-router.md](references/intake-router.md).

**60-second start:** [references/QUICKSTART.md](references/QUICKSTART.md)

**Before & after:** [your-agent-before-and-after.md](references/your-agent-before-and-after.md) · **Multiple mailboxes:** enable Unified inbox in **Advanced settings** → [unified-inbox.md](references/unified-inbox.md)

## Local-first, any stack

Email Swipe runs on **your machine** by default. Training artifacts persist in `~/.config/email-swipe/` — no cloud account required.

You bring your own **agent** (Cursor, OpenClaw, Claude Code, any MCP client) and **mail access** (Gmail MCP, `gog`, IMAP, Microsoft Graph, etc.). Remote UI access (phone on Wi‑Fi, tunnel, VPS) is optional; see [deployment.md](references/deployment.md).

## Setup matrix

| Level | One-sentence meaning | What you need |
|------|-----------------------|---------------|
| **Works out of the box (demo)** | You can open the local swipe UI immediately with sample emails, but the session is a practice run and not based on the user's real mailbox yet. | Repo

scripts/advanced/README.md

# Optional advanced scripts

These are **not** part of the default training flow.

## Default compile path (use this)

1. User swipes in the UI (`serve-ui.py` → Desktop URL)
2. Session end or **Export** → `POST /api/preferences` → auto-compile
3. Or manually: `python scripts/compile_training.py ~/.config/email-swipe/preferences.json --save-settings`

Artifacts land in `~/.config/email-swipe/`. See `python scripts/print_state.py` for what exists.

## Legacy scripts (avoid in new docs)

| Script | Status | Use instead |
|--------|--------|-------------|
| `export-preferences.py` | Legacy | UI Export + `compile_training.py` |
| `import-preferences.py` | Advanced import | `compile_training.py` |
| `analyze-preferences.py` | Internal module / CLI | `compile_training.py` |

## Optional mail / folder tools

| Script | Purpose |
|--------|---------|
| `fetch_folder_snapshot.py` | **import-sorting** — pull labels + sample mail per folder for `learn_from_folders` |
| `fetch-folders.py` | Pull Gmail labels into `config.json` |
| `create-folders.py` | Create labels from requests |
| `fetch-emails-html.py` | Fetch inbox with HTML via Gmail API |
| `fetch-emails.py` | Experimental gog helper — not recommended for training |

_meta.json

{
  "ownerId": "kn78gwghjr32r4hh2kzwe7z2d589mbv6",
  "slug": "email-swipe",
  "version": "0.1.0",
  "publishedAt": 1784636749724
}

references/agent-spine.md

# Agent spine — settings source of truth

**Read this with the skill.** The agent spine is how *you* (the agent) remember Email Swipe advanced settings. The UI and `~/.config/email-swipe/settings.json` are **mirrors** for the human — not your memory.

Most advanced settings are **dormant** (unused) for any given user. Only activate and reason about sections that are explicitly on or that the user discussed.

---

## Principle

| Layer | Role |
|-------|------|
| **Agent spine** | Source of truth for your behavior and for what you tell the user |
| **`settings.json` on disk** | Mirror so the UI shows the same values when `serve-ui.py` runs |
| **UI `localStorage`** | Browser cache only — never trust over spine or disk after sync |
| **`preferences.json`** | Swipe export input to compile — may embed settings snapshot at session end |

You own the spine. Disk follows you when opening the UI; you follow disk when the user changed settings in the UI.

---

## Three loops (memorize these)

### 1. Before opening the UI — **push spine → UI**

When you start `serve-ui.py` or ask the user to open Advanced settings:

1. Ensure your spine reflects the latest from chat and prior sessions.
2. **`update_settings`** with your spine's `settings` object (partial patch is fine).
3. Start or confirm `serve-ui.py` is running.
4. Give the user the **Desktop URL** from server output or `runtime.json`.

The user must see *your* settings in the UI, not stale defaults.

### 2. After UI feedback — **hydrate spine ← UI**

When the user finishes swiping, saves Advanced settings, exports, or reports what they changed:

1. **`get_settings`** (one call — includes settings, accounts status, intake, session).
2. Merge into your spine. Update which sections are **active** vs **dormant**.
3. Do **not** re-ask the user for dormant fields you already have.
4. If compile ran, also **`get_policy_brief`** / **`get_session_status`** as needed for post-training.

### 3. Before acting on mail — **read spine only**

When recommending labels, digests, autonomy, multi-inbox routing, etc.:

1. Check **`activeSections`** on your spine — if a section is dormant, ignore it.
2. Use **`policy-graph.json`**, **`training-pack.json`**, and **`assistant-brief.md`** for trained rules (compiled artifacts).
3. Never invent settings from memory if you have not hydrated since the last UI session.

---

## Tool routing (no alternatives)

| Intent | Tool | Notes |
|--------|------|--------|
| Read full mirror + status | **`get_settings`** | Default read. Includes `settings`, `accountsStatus`, `intake`, `runtime`, `sessionStatus`. |
| Read spine-shaped view | **`get_agent_spine`** | Same data, plus `activeSections` / `dormantSections`. Prefer on activation and after UI. |
| Write spine → disk/UI | **`update_settings`** | Partial patch. Use before opening UI. `compile: true` only when preferences exist and policy must refresh. |
| Register mailboxes | **`set_mail_accounts`** | Then merge result into spine; mark

Sponsored

Ads related to Email Swipe and adjacent AI workflows.