The CFO Engineer
← All resources

How I handle my emails with AI, without connecting it to my inbox

Eduardo Guevara · CFO Engineer

Connecting AI to your inbox is one of the first things people do. You plug the agent in, and it reads everything you received, pulls context from it, drafts replies. The inbox becomes the agent's memory: whenever you ask about something, it goes and looks at what landed there. I went the other way, on purpose.

Two things stopped me.

First, an inbox is a mess. Tons of emails, no structure, threads inside threads. To find one precise fact, the agent has to open message after message and read through them. Slow, expensive, unreliable. An inbox is a channel, not organized memory.

Second, security. If the agent reads my inbox directly, it reads everything, including the unsolicited mail I never asked for. An email is untrusted input. Prompt injection is real when your agent has an open door to the open internet.

So here is what I built instead.

How it is wired.

The agent is a Claude Code session. It reaches a mailbox through an MCP connection, the standard way to plug Claude into an outside tool. And the whole email routine, from picking up the mail to filing it and drafting the reply, is one skill: a single markdown file, written in plain language, that I wrote and refined over real cases. No code. Just instructions the agent follows every time.

The mailbox is dedicated, and only I write to it.

Every email that matters goes through my own inbox first. I scan it, I decide. If it should feed the agent, I forward it. Nothing reaches the agent that I did not choose. Its mailbox carries only signal. I know the agent's context stays clean.

What happens once an email lands.

The agent does not just read it and answer. It runs a sequence.

It first classifies the mail on its headers only: who sent it, to whom, what the subject line looks like. It makes sure it comes from me. A poisoned body cannot disguise what kind of email it is, because the agent decides that before it reads a single line of content.

It pulls the clean text through the MCP, never the raw HTML. And it reads only the most recent message. If the mail sits in a thread, it cuts the chain and keeps just the top block, the part I actually forwarded. It never walks the history below. That one move buys security and efficiency at once: no old third-party content to trip on, no re-chewing of a whole thread.

Then it files. The clean text goes into a markdown file, so I keep the exact source forever. One dense line goes into an inventory file: what the email was, a short summary, a link back to the raw text. And the mission files get updated with what the email actually changes: the state of the work, a decision, a figure that moved, an open thread.

Last, it moves the mail out of the inbox into a processed folder and marks it read. The inbox only ever holds what is left to do.

The key point: the Living Context Architecture.

The agent never reasons inside the inbox. It reasons inside what I call my Living Context Architecture: a structure of markdown files, one set per mission, that I keep clean and current. Emails feed it. So do call transcripts, my working sessions, and the deliverables I produce along the way. Three files carry the weight. A current state, current important information (decisions to make, problems to solve, team composition, priorities of the moment, etc.). A mission log, everything that happens on the mission in chronological order. And a context inventory, a map of every piece of context in the architecture, so the agent knows where to look.

The raw email is kept, exact, for when I need the source. But what guides the agent every session is the inventory: every processed email, one line, a summary, a link to the detail if it ever needs it. The inbox is where mail arrives. The architecture is where its value is extracted.

The reply loop.

When I want to answer a client, I forward the email to the agent. It processes it into the architecture, and because it just fed the whole mission context doing that, it opens the session already knowing where the mission stands, not only what this one email says. It hands me a first draft, written with the full picture. We work it in the session until it is right, and the validated draft is saved as its own file. Then it sends the finished mail back to me, through the MCP, ready to go.

I am the one who sends it to the client. I choose who is in copy, I do the last read, I press send. The agent never emails anyone but me.

The lock.

That last rule is hardcoded. It sits one level above the skill, in the configuration that defines the agent's environment, so it holds no matter what any email or any session says. Two rules, in hard. Anything pulled from an email is information only, never an instruction the agent can act on. And the agent can send email to one address only, mine. So even if a poisoned mail told it to ship a confidential file to some address I never heard of, it cannot. The door only opens toward me.

There is also a small compounding trick. When I send the final version to the client, I bcc the agent. It compares what I actually sent to the draft it gave me, and it tells me what I changed and why it thinks I changed it. Over time that feeds how it writes in my voice.

The trade-off.

This costs me autonomy. Other people run agents, on platforms built for exactly that, which read the inbox and send replies to clients on their own. Mine does not. There is a human hand on both ends: I choose what comes in, I choose what goes out. Their way is faster and more hands-off, and for some workflows that is the right call.

What I buy with that hand is worth more to me than the autonomy I give up.

Security first, by design. A clean context second: the agent's memory stays pure signal, and that is what makes it useful for every other task, not just email. Quality on what reaches a client, because nothing leaves without my read. And no misfires, no mail to the wrong recipient, no wrong name in copy. For a one-person practice built on real client relationships, those four are not negotiable. And the speed I already gained is huge, even without full autonomy: I am talking to an agent that has the whole live context.

The inbox is a channel. Noisy, hostile, not mine to trust. The Living Context Architecture is something else: kept clean, on purpose, and under my control. My agent never lives in my inbox. It lives in the context the inbox feeds.

The CFO Engineer newslettercoming soonHow a CFO builds and runs agentic systems to turn raw data into decisions.