Ayumi: A Personal Context Layer Any Agent Can Ask
A plain-Markdown vault of my writing, books, diaries and history, curated by agents and exposed over MCP so Claude and other agents can ask about me, write in my voice, and decide the way I would.
2026-10-17
Executive Summary
Every AI conversation starts from zero. The model may be brilliant, but it does not know what I have written, decided, or cared about over twenty years.
Ayumi is my answer to that gap. It keeps my personal context as plain Markdown in a git repository, has agents curate it, and exposes it to any MCP client through three verbs: ask about me, write as me, and decide as me.
From Claude, Claude Code, Cursor, Codex, Gemini CLI or ChatGPT desktop, I can ask a question and get an answer grounded in my own note articles, blog posts, books and diaries, without pasting any of it into the chat.
Ayumi is not an agent. It is the context an agent is handed.
The Problem
Personal context is the bottleneck no one talks about. Agents keep getting better at acting. They still know very little about the person they act for.
The memory features AI products now ship are mostly logs of behavior: what the agent did, what I asked, which files it touched. What I actually want carried is different: how I write, what I have decided before, and how I weigh trade-offs.
That context also lives inside each vendor's product, in each vendor's format. Moving between Claude, ChatGPT and Gemini means starting over each time.
Ayumi tests a simple position: I should own that layer myself, in a format any agent can read.
Design Principles
- Plain Markdown in git. No proprietary format. Every file opens in Obsidian, grep, or any agent. Depending more on AI should not mean depending more on one AI vendor.
- Three verbs, fidelity over breadth. No topic-specific tools like
ask_about_health, no server-side specialist routing. Three verbs that carry me accurately beat twenty that carry me thinly. - Answers, not files. The MCP server never returns raw vault files. It returns answer text, so a client sees what it needs and nothing more.
- Sensitivity as structure, not instruction. Finance and health live in a separate tier that is never exposed over MCP. Boundaries are enforced by what the model can see, not by asking it to be careful.
- Every call is audited. Each tool call is logged, so I can see who asked what.
Architecture
The system has four layers: collection, curation, storage, and distribution. Each layer has one job.
The vault
Every file carries YAML frontmatter (tier, topic, type, last_updated, source_count, date_range), and entities are cross-linked with [[wikilinks]].
| Folder | What it holds |
|---|---|
_identity/ | Writing style, preferences, interests, and an index of every authored source ingested |
topics/{work,travel,social,hobbies}/ | A summary, timeline and entities file per topic, plus summaries of published writing |
entities/ | People (family, colleagues, sports, social) and projects, linked to topics |
topics/_sensitive/ | Finance and health, kept abstract (no raw numbers, no medical detail) and never exposed over MCP |
_meta/ | Audit log, sync state, the review queue for sensitive items, the MCP call log, and facet manifests |
inquiries/, digests/ | Standing research topics and the weekly digests generated against them |
Collection and curation
Two kinds of input feed the vault.
My own authored writing, ingested once and summarized by the life-curator agent:
- yamakei.info pages
- note.com articles, under both my real name and my pseudonymous series
- two archived cycling blogs, roughly 300 posts
- a Kindle book I published in 2013, and a mountaineering manuscript
- diary entries going back to 2004
Ongoing history, from a daily curator run. It takes a lock, pulls Gmail since the last sync, cross-checks it against Calendar, and sorts what it finds into topics. Sensitive items go to a review queue instead of being merged. The run logs itself, commits to the vault, and publishes facets: filtered slices of the vault for specific audiences.
Only derived summaries enter the vault. Original emails are not stored.
Distribution: the MCP server
The server exposes three tools:
| Tool | Input | Returns |
|---|---|---|
ask_about_me | a question | an answer from _identity and the four main topics |
draft_as_keisuke | a prompt, optional audience | a draft in my voice, text only |
decide_as_keisuke | a question and options | { choice, rationale } |
Each tool hands the work to an LLM backend, chosen by configuration. The default runs Claude Code in print mode, restricted to the allowed vault folders, with a two-minute timeout. An alternative backend loads the allowed Markdown files directly into an OpenAI prompt.
Clients connect two ways: over stdio for local tools, or over HTTP reachable only through my Tailscale network, behind a bearer token.
How I Use It
The call log shows what I actually reach for.
- Recall from my own record. "When did I last climb Tsurugi?" "Where did I place in that cycling race?" Questions I would otherwise answer by digging through old blogs and diaries now take one sentence, often in Japanese.
- Writing in my voice. Drafting note articles, and Japanese versions of English essays, from a style profile built from everything I have published. The draft is a starting point I edit, not a replacement for writing.
- Thinking with my past self. Asking how I have reasoned about AI agents before, so a new essay builds on old positions instead of reinventing them.
- Direct reads from coding sessions. Local Claude Code sessions often skip MCP and read the vault folders directly. For an agent already on my machine, that is faster.
The same pattern now shapes how I work at my job: a preserved context store that agents curate, so new sessions resume instead of restart. I wrote about that in What I Tell Teammates When They Ask How I Use AI.
Lessons and Trade-offs
Answers-not-files costs latency. Because every tool call is a full LLM run, calls take seconds, not milliseconds. Long drafts hit the two-minute timeout. Asking for one section at a time works better than asking for a whole article.
The backend is a dependency, not a detail. When the Claude CLI session behind the server failed, every tool call failed, even though the server itself was up. A health check on the HTTP process is not enough. It has to exercise the backend.
Boundaries belong in structure. The sensitive tier sits in its own folder that no MCP tool can read. Writing "be careful with health data" into a prompt would make the boundary only as reliable as the model's compliance. Keeping it out of view makes it a property of the system.
Breadth of input matters less than curation. The most useful part of the vault is not the volume of email. It is _identity: a compact, curated description of how I write and decide, distilled from twenty years of my own words.
There is no killer surface yet. Beyond a morning brief and one-off questions, there is no daily moment where Ayumi is the obvious thing to reach for. Distribution into chat apps, mobile, and family-facing facets is still mostly design.
What's Next
- Turn
draft_as_keisukefrom a ghostwriter into a reviewer: given something I am writing, tell me where it does not sound like me. - Put facets into real use, starting with a family-facing slice.
- Stay a neutral MCP component as more agents adopt MCP, and keep testing whether a mediated answer beats letting an agent read the vault directly.