How to Make Personal AI Agents?
Originally published on Substack.
This is all everyone’s talking about these days. AI agents. I heard about Instinct’s Noah Shinn for the first time on a comedy podcast. I kind of dismissed it? Probably because of how much data you give over to the company for the application to work. But then, as part of one of my courses, I read a research paper called “Reflexion,” and the author’s name sounded familiar: Noah Shinn.
The paper is a great idea, similar to the ReAct loop but with a reflection step. On a separate occasion, I discovered local LLMs. That unlocked using LLMs for free for me, and I was eager to put LLMs in everything. Then one day I was sitting in a cafe trying to come up with an application I could use my newfound LLMs in and thought, why not just try to build an application that has access to my emails, messages, calendar, basically anything digital, creates a copy of my world, and acts as an all-knowing assistant? Yes, this is exactly what you’re thinking of: Instinct.
Well, I built it.
It was challenging, since the best model I could run on my M4 Pro with 24 GB was a tiny 20B model. The harness around it was a fun challenge to build, especially the date parsing tools. When people text, they don’t use dates. They use relative phrases like “this week…” or “that day…” (in relation to some event), and making my LLM figure out time (and timezones) based on context clues was tough.
I added tools to search inboxes (yes, plural), calendar, reminders, web search, maps search, and so many more. So if you ask it to find Bird Rock Cafe, and you had mentioned at any time in the conversation that you lived in San Diego, the agent might use the places tool to find Bird Rock Cafe in San Diego, use web search to check the open hours, and get you directions, all in that single prompt.
I was pretty proud of my application, since this was my first agentic project and it was something I was actually using and getting my friends to use (yes, I spent more time and tokens to make it multi-tenant!). But then Muse came along and immediately dominated the market :/
I tried using Muse (without giving it access to my stuff, duh), and it was a relatively similar experience, albeit with faster output, since they have dedicated servers for this.
I still wanted to tell people about my project, so I decided to post it on LinkedIn, hoping that would help me score some recruiter brownie points. Like, hey, hire me!
In the end, I decided to make it open source so people can just add their own LLM API key and set up their own personal AI agent. Did the LinkedIn post get me hired? Not really, but at least I made my own Instinct, and now you can too!
Github: https://github.com/sushmey/proxy
Demo: