Writing / What I’m building

Give AI the answer, not your inbox

When an assistant needs one line from my email, it reads a lot more than one line. Sieve lets Gemini Nano on my own computer find the item, and only what I approve leaves.

By Manideep Pendyala · November 29, 2026 · 9 min read

When I connect Gmail to an AI assistant and ask about one email, it doesn’t open one email. It searches broadly and reads whatever comes back, including mail I never asked about, because it has no other way to find the one I mean.

That’s the least-privilege problem again. With Ratchet it was tools: an agent should only get the authority the task needs. Sieve is the same idea for personal data. An assistant should get the answer, not the inbox.

I’m building it for #BuildHybridAI, Google’s Firebase hackathon on hybrid AI, where part of the work runs on your device and part in the cloud. It’s a work in progress, and this post is what it does today.

My inbox streams into Gemini Nano on my computer and stops there. One line comes out, I approve it, and the AI gets 41 characters.
My inbox streams into Gemini Nano on my computer and stops there. One line comes out, I approve it, and the AI gets 41 characters.

What it does

Sieve sits between your data (Gmail, folders of files, photos) and the AI you’re talking to. Gemini Nano, running inside Chrome on your own computer, finds the one item a question needs and writes the answer. Sieve shows you the exact text that would leave, and nothing goes anywhere until you approve it.

There are two ways to use it:

  1. Ask inside the app. Nano finds the item and answers on your device. For a second opinion, I can ask Gemini: Gemini in the cloud answers from only the lines I approved, and follow-ups stay in that chat without sending anything new from my data.
  2. Ask from another assistant. Claude, ChatGPT, Cursor, Gemini CLI, GitHub Copilot, or anything else that can add an MCP server by URL, calls Sieve’s connector. The request reaches your open Sieve tab, which does the private work on your computer. You approve in the app or in the Chrome extension’s side panel, and only the approved text goes back. No Gemini Nano on your computer yet? You can take one of two seats on my Mac mini, streamed into the page, with Nano ready, a demo inbox, files and photos, and Claude connected to Sieve.

How a request travels

  1. The assistant calls a Sieve tool, for example sieve_answer. The tools live on a small MCP server in Cloud Functions.
  2. The server drops the request into Firestore.
  3. My open Sieve tab, the “home base”, picks it up. It holds the index and the model.
  4. Nano finds the item and writes the answer on my computer. I see exactly what would go back.
  5. I approve, and only that text returns through the server to the assistant.

The server never sees my inbox, only the approved text on its way back. Gmail is read by the browser itself, so mail goes from Google to my computer and never through Sieve’s server.

The need-to-know ladder

Every share is one of three steps:

Step What leaves
Answer (the default) One sentence written on my device from one item, 300 characters at most
Excerpt The lines that hold the answer, with personal details masked
Full item The whole item, with personal details redacted

Each step is its own MCP tool, so a grant caps how far up the ladder an assistant can go. When I approve, I can lower the step but never raise it.

Rules by category

Every item gets one category on the device: Home, Work, Money, Health, Travel, Shopping, Personal, Newsletters or Photos. Each category has a rule. Most share with approval. Money asks first, with a warning. Health is never shared, and it’s blocked before any model reads the item.

An outside assistant gets the same reply, “Nothing to share for that.”, after the same delay, whether the item was blocked or never existed. So it can’t find out that a Health email exists just by asking.

Emails that try to talk to the AI

Some emails carry instructions aimed at an AI, often hidden as white text or tiny type. Sieve handles them in three layers:

  • Plain code removes hidden text before any model reads the item.
  • Nano flags instructions in what’s left and shows a warning.
  • The structure is the real boundary. Sieve has no send, reply or delete, so nothing in an email can trigger an action, and I see the exact outgoing text before it leaves.

What runs where

This split is what the hackathon is about, and it’s the whole point of Sieve: the private reading has to happen on the device.

On my computer (Gemini Nano) In the cloud (Gemini)
Finding the item and writing the answer A second answer and follow-ups (Ask Gemini), from approved text only
Checking the answer against the item
Categories and search keywords
Finding personal details to mask
Photo captions and the injection check

Both go through Firebase AI Logic. Under every answer, a trace shows where each step ran, as the Firebase SDK reported it. If a step that must stay on the device ever comes back from the cloud, the call fails. My own data reaches the cloud only if I turn on cloud fallback in Settings, and then each request asks first.

Outside assistants get access through Ratchet, my open-source authorization library: one grant per assistant, limited to certain ladder steps, categories and sources, with an expiry.

How fast it is

On an M2 Mac with 16 GB, measured on Nov 16: setting up the on-device model the first time took 199 seconds. Picking the right item from 4 candidates and writing the answer took 9 to 11 seconds. A photo caption took about 4.6 seconds once the model was warm. That’s slower than a cloud model, but nothing left the machine to get there.

Making a small model careful

Nano is small, and a small model is a careless reader. Most of the work went into finding where it went wrong and moving that decision out of the model and into plain code. I ran Sieve’s real prompts against Nano from a script, so every change was measured instead of guessed.

  • Fewer choices pick better. Given five similar emails, Nano picked the right one 19 times in 20. Given seven, 16 in 20. So Sieve reads five.
  • Plain code finds “the latest”. Given several emails from one sender, newest first, Nano answered from the newest 4 times in 5. Given only the newest, 5 in 5. Now code finds the newest email and Nano only reads it.
  • Examples in a prompt leak. My answer prompt once had the example “Your deposit was $1,200, paid on March 3.” On a real deposit question, Nano wrote “paid on” plus the email’s date in 4 of 5 runs, copying the example’s shape. Examples now hold one fact and no date.
  • Long numbers lose digits. Nano dropped a digit from a nine-digit number in 9 of 9 answers. Code now writes back any long number that is one edit away from a number in the email or the question.
  • “No” comes back as a sentence. For about half of “no” answers, Nano writes a sentence instead. A second, tiny call that reads its own sentence as yes, no or unclear got 112 of 112 right in about half a second.
  • Prompt length is the real cost. A 6,000-character prompt took 4 seconds; a 9,000-character one took 23. Sieve keeps its prompt near 6,000, which is the other reason it reads five items and not seven.
One Gemini Nano prompt, in real time. The bars fill at the measured speed.
One Gemini Nano prompt, in real time. The bars fill at the measured speed.

Search first, then read five

Nano only ever reads the top five items, so search has to put the right one there. Sieve searches by meaning (a small embedding model in the browser) and by exact words at the same time, and a small reranker orders the results. Nano also suggests other words to search for, because people rarely ask in the email’s own words: “Did my paycheck come in?” doesn’t share a word with “Direct deposit received”.

I built a benchmark of 68 questions, each with one right item hidden among 2,020: Sieve’s made-up sample data plus 1,974 unrelated public emails. With everything on, the right item was in the top five for 65 of them. I tuned on these same questions, so new questions will score lower. The benchmark is in the repository and runs with npm run eval:search.

68 benchmark questions. For 65, the right item was in the five Gemini Nano reads.
68 benchmark questions. For 65, the right item was in the five Gemini Nano reads.

Testing it on my own mailbox

The real test was my own Gmail. An assistant connected through Sieve’s connector asked questions about my mailbox, with approval set to automatic for the test, and I checked every answer against the mailbox itself. A round was 37 runs: 27 questions the mailbox can answer and 10 about things that aren’t in it. Before the first round I wrote down the bar: at least 85% right, at most 10% missed, at most 5% of answers wrong, and nothing made up.

Ten live rounds on my mailbox. Every square is one question.
Ten live rounds on my mailbox. Every square is one question.

Round 1 got 5 of 27 right; most of the rest were misses. Round 10 got 24 right, 1 missed and 1 wrong, made nothing up, and met all four parts of the bar. The fixes between rounds were general ones: Nano suggesting other search words, code finding the newest email, a sender’s name matched inside an address with no display name. In round 9, two questions about things that aren’t in my mailbox got answers from unrelated emails; both causes were fixed before round 10.

Asking the same questions after every fix partly measures how well Sieve fits those questions. So from round 6 I also asked two sets of 15 questions written before I saw any result. In round 10 each set got 11 of 12 answerable questions right, with nothing wrong and nothing made up. Only counts are published: every name, number and example in the code, its tests and this post is invented.

What an outside AI actually receives

To put a number on all of this, I built a bench. The same assistant (Gemini 3.8 Flash through the Gemini API) does the same 10 tasks on the same made-up data twice: once through a typical direct-access connector that searches and then reads whole items, and once through Sieve at its defaults, with me approving each request at the step Sieve proposed. The runner counts every tool result handed to the model.

What crossed into the outside model Direct access Sieve
Characters 24,604 5,021
Whole items 12 0
Item summaries from search 36 0
Answer-only replies 0 10
Health or Money items whose content reached the model 6 1
Tasks where the hidden instruction reached the model 1 of 10 0 of 10
Tasks answered correctly 8 of 10 10 of 10

Sieve’s one Health or Money item is the loan payment: Money asks first, and I approved its one-sentence answer. The health question got nothing. This is one run per arm on 10 tasks with 46 made-up items, so it shows the mechanism and its size on this data, not a general rate. The full report, the raw logs and my notes on the run are in the repository.

What’s not done yet

  • Gemini Nano needs Chrome 139 or later on a desktop. Without it, your own mail isn’t processed unless you turn on cloud fallback and allow each request; the Mac mini seats are there to try it in the meantime.
  • Reading Gmail is a restricted Google permission. For now Sieve’s Gmail access is in Google’s testing mode, which limits who can connect their own inbox.
  • The bench above is one run per arm. Three runs per arm, more tasks and real pictures in the sample photos come next.
  • The Chrome Web Store listing is on its way; until then the extension loads unpacked.

Try it

  • The app: sieve.manideep.info.
  • No Nano on your machine? Until Dec 16, try it on my Mac mini: two seats with Nano ready, a demo inbox, files and photos, and Claude connected to Sieve.
  • The Chrome extension: download it from the app’s Settings, or from the GitHub release, and load it unpacked.
  • The code: github.com/1manideep/Sieve, Apache 2.0. If you’d like AI to see less of your inbox, a star helps other people find it.