· 6 Min. Lesezeit · agents · context · MCP · Claude Code
What I learned building my own agent(s)
The biggest lesson from building my own personal and business agents wasn't about models or prompts. It was about context: an agent is only as useful as what it knows about you, and what it can reach.
Von Martin Joller
Dieser Artikel ist nur auf Englisch verfügbar.
Context is everything. I built multiple agents this year, for my private life and for my business. This article summarizes my biggest learnings along the way.
The setup
I started playing with personal agents back in January 2026 when ClawdBot / Moltbot / OpenClaw blew up. I quickly got frustrated by insane Anthropic API costs and that every OpenClaw upgrade broke my VPS. But it was enough to realize something was there, and so I decided to build my own agent harness, using Claude Code. It runs on a Mac mini at home, and I talk to it through Telegram and voice. I borrowed the key ideas from OpenClaw, such as the boot sequence that loads information about me and the agent (name, personality, soul), full access to its own computer and scheduled routines to let it work in the background without me asking.

(Today my private agent still runs on Claude Code; the business agent now runs on Grok Bot.)
Context is everything
Once my first agent "Claudio" was running, the real work became connecting it to my life. And this is where I had my first Wow-moment: it found its own way into Garmin, Eight Sleep, Speediance and Withings, sometimes through public APIs, sometimes by just hacking something together.
While that worked, it also showed the problem. Every connection was a one-off. Fragile, custom, rebuilt from scratch for each app.
Apple Health was the hardest: there's no API to reach it from outside the phone. That is why I built Health Export, so that my agent can leverage the sleep and exercise data collected via Apple Watch.
With every connection I added, Claudio got better. It discovered that my sleep is worse on days with high pollen exposure, when I eat dinner too late, or when I've had too much saturated fat.
None of these findings would be possible from a single app. They come from putting Eight Sleep, Garmin, Yolo and the weather next to each other, and from an agent that is honest about how much the data can carry. Here is an excerpt from one of its health reports:

It also keeps me honest. Every week it checks my training against the plan, and because it can see the Speediance data, it knows when a missed session is real and when I was just travelling.

This made me realize that the real value is not the clever routines or the scheduling. It's in connecting everything: sleep with training, training with what I eat, all next to my calendar. One agent that holds all of that context is far more helpful than separate assistants inside every app.
By now, I believe every app needs an MCP. You don't want to deal with a separate agent in every app. You want your own personal agent, one that already knows everything about you, to act on your behalf.
(More on how to do that safely when mistakes matter in Why every app needs an MCP.)
Memory: your context is the agent
I am convinced that the context layer is what you have to focus on, and what you should actively shape and maintain. The context is the agent. The models get better, faster, cheaper. Your context grows with them, but more importantly, it's what you own: you take it and move to another provider if one gets blocked or goes out of business.
Context has to persist. Inspired by Karpathy, I organized the agent's memory as nested index.md files: a top-level index pointing to topic folders, each with its own index. The agent navigates down to what it needs instead of loading everything.
Your agent will become so good that you will worry about losing it. Run an hourly backup of the whole folder.
Context means you, too
Context isn't just data from apps. It's who you are, your goals, and how you write. The more you engage and give feedback, the better it gets.
Start by letting it analyze your emails, documents, calendar and meeting notes. Let it interview you about your stakeholders or - even better - let it research your stakeholders on LinkedIn, and then adapt how you interact with them.
Also tell your agent where to find more context: which BigQuery tables contain which information, which APIs it can use and what they expose. A short map like that saves it from guessing or asking every time. Don't overcomplicate the storage: often a CSV or a Google Sheet is good enough.
As the context grew, I eventually became worried about the idea that the agent that answers my support emails also knows about my last night's sleep. Hence, I split my agents by role, so that contexts don't get mixed up. I moved the business agent away from Claude Code to a new platform (Grok Bot), which showed how easy it is to move them across providers.
My favorite technique is to self-improve its instructions: if I ask it to produce something, e.g. draft emails or documents, the agent saves it, then later compares it to what I actually sent. It learns from the differences and adjusts its style.
Skills & routines I find helpful
- Private
- CEO of my health: Track and analyze sleep, meals #yolo, workouts, bloodwork, training plans, preventive checkups.
- Relationships: Personal CRM with "keep in touch" reminders.
- Household admin: Organizing taxes, tires and small repairs.
- Media digest: Transcribes and summarizes podcasts and YouTube videos, and recommends which ones to watch or skip.
- Business
- Stakeholder management: Go through the emails, pings, calendar, meeting notes etc. to update and enrich stakeholder context.
- Email draft: Check the incoming emails, decide what is signal vs. noise, whether we need to reply and whether it has enough context to draft a reply.
- Recurring summaries: E.g. cost and revenue reporting, KPI checks, support requests, app reviews, open tasks.
- Promise check: Where did I promise something that I have not yet delivered?
- Gratitude check: Where did someone do something that we might not have appreciated enough?
- Both
- Memory consolidation: Go through the logs and keep one summary per day, week, month, etc.
- Context hygiene: Weekly consolidation of the memory folder: merge duplicates, drop outdated facts, update the index files so the agent still finds what it needs.
- Proactive suggestions: Based on what it learned this week, suggest 3 automations that could improve my life.
- Health checks: Are routines failing, do they consume too many tokens or require too many turns?
TL;DR
- An agent is only as good as its context. The more apps it can reach, the better it gets: Claudio found that pollen, late dinners and saturated fat hurt my sleep.
- Connecting apps is the real work, and today it's mostly one-off hacks. That's why every app needs an MCP.
- Your context is the agent. Models come and go; your context is what you own and can move. Back it up.
- Split agents by role so private and business context don't mix; mine now run on different platforms (Claude Code and Grok Bot).
- Let the agent learn your style from what you actually send.