# My inbox was a shit show, so I fixed it with Jev

A free skill for Claude Code or any agent: it designs folders from your real mail, sorts your inbox with Jev, and keeps it sorted for a fraction of a cent per email.

By Tyler Malone · Published Oct 9, 2026 · Updated Oct 9, 2026

## How it got this bad

I'll be honest, I let my email get bad. 3,204 threads sitting in the inbox, 1,626 of them unread.

I'd fixed it once before. I had an OpenClaw agent sorting my mail for a while, and it worked, but it cost too much. It talks too much, and you pay for every word when all you needed was a label. So I turned it off, and the inbox slid right back.

And yeah, I know Gmail has filters. They're not that good, and I'm not sitting there writing a rule for every sender who's ever emailed me.

There's a new way to do it now. Jev, baby.

Jev is a cheap model from TypeSafe built to make decisions instead of writing text. Give it an email and a list of folders, and it picks one and tells you how confident it is. No essays.

It sorted every thread, archived about two-thirds of them, and left me with 1,136. Every email got exactly one label: client email, bills, receipts, tool notifications, newsletters, account security, personal, plus a Review label for anything unclear. Jev's part of the bill was about 21 cents, at TypeSafe's listed price.[1] I checked 200 of them against Claude Code, and on everything Jev filed, they agreed 96% of the time. That's pretty good for the price. A job now sorts new mail every 15 minutes, so it stays that way.

I packaged the whole process as a skill. Give it to your AI agent and it walks you through the setup on your email provider and your machine.

Not into terminals? [We'll set it up for you](/contact). Just mention the inbox skill.

## What your agent will do

1. **Ask about your setup:** your email provider, where a scheduled job can run, and whether other tools read your inbox.
2. **Back up your current labels**, so everything can be undone.
3. **Read about 300 of your real emails** and propose buckets built around what each email needs from you. You approve them.
4. **Dry run 200 emails** without touching your mailbox, then fix the misses by rewording the folder descriptions.
5. **Sort the whole inbox.** It archives only what it's confident about. Anything uncertain gets a label but stays in your inbox.
6. **Install a job that sorts new mail** every 15 minutes.

It stops for your OK at every step that matters. The skill includes our working Gmail code as a reference, and the same steps carry over to Outlook, Fastmail, and IMAP.

## What you'll need

- An AI agent that can run commands, like Claude Code
- A Jev API key from [TypeSafe's console](https://console.typesafe.ai/)
- A machine that's on most of the time, for the scheduled job
- For Gmail: about 10 minutes in Google Cloud to create a sign-in client for your inbox. Your agent tells you exactly what to click.

## Get the skill

For Claude Code on Mac or Linux:

```bash
mkdir -p ~/.claude/skills/inbox-triage && cd ~/.claude/skills/inbox-triage && \
curl -fsSLO https://contraptionsoft.com/skills/inbox-triage/SKILL.md && \
curl -fsSLO https://contraptionsoft.com/skills/inbox-triage/gmail_example.py
```

Then say: **"set up inbox triage."**

On Windows, or with any other agent, point it at `https://contraptionsoft.com/skills/inbox-triage/SKILL.md` and ask it to install the skill and follow the steps.

Here's exactly what you're installing:

- [SKILL.md](https://contraptionsoft.com/skills/inbox-triage/SKILL.md)
- [gmail_example.py](https://contraptionsoft.com/skills/inbox-triage/gmail_example.py)

## What leaves your machine

To sort an email, the sender, subject, date, and first ~1,500 characters of the body go to TypeSafe's API to be classified. During setup, your agent also reads the 300-email sample, so that sample goes to whichever AI provider runs your agent. Your API keys, your label backup, and everything else stay on your machine. If that's a concern for your inbox, read TypeSafe's privacy policy first.[2]

## How it works

Each folder gets a short description, like "a receipt for something already paid, not a bill that's still due," and Jev picks the one that fits each email, or "none of these" when nothing does. It can't invent a folder.

The confidence number is what makes automatic archiving reasonable. Anything Jev is unsure about goes to a Review label, and the skill only archives when Jev is very confident. Everything else keeps its label and stays in your inbox, and the backup means any mistake can be undone.

Your agent does the expensive thinking once, during setup, as a normal session. After that, every new email costs a fraction of a cent.

The slow part is your email provider's speed limit. Gmail lets an app read and relabel about 120 threads a minute,[3] and in practice it runs slower, so a few thousand threads takes an hour or so.

---

*Want this set up on a shared team inbox, or wired into your CRM or helpdesk? That's what we do. See [what we build](/custom-software-little-rock) or [get in touch](/contact).*

## Sources

1. [TypeSafe AI, Jev](https://typesafe.ai)
2. [TypeSafe AI, Privacy Policy](https://typesafe.ai/legal/privacy-policy)
3. [Google, Gmail API usage limits](https://developers.google.com/workspace/gmail/api/reference/quota)
