Syntax Video
I made the personal assistant of my dreams
Transcript
I'm on my phone too much. I'm always just kind of mindlessly picking it up and I'm always just kind of looking at stuff and often times it's to get something done. I want to look this up. I want to remind myself to do this later. I'm kind of talking at it and sometimes I wanted to even start work on stuff like hey do this research for me so that way when I am back to somewhere where I can actually do the thing later the research is already done. But what I don't want is I don't want a terminal on my phone or an app on my phone to start remote coding with. Why? Because that's a slippery slope for me. So that's why I built this
This is the Prompt Boy. This isn't your grandma's little pocket recorder because this thing, while it does record audio, when it records that audio, it's sending it to a server for transcription, which then parses it into real actions that can happen automatically without my intervention. You could almost think of it as like an Async Siri that has access to my full system as a coding agent as well as any of the projects I'm working on. And take a look at this thing. It's it's tiny. It's actually just barely thicker than my phone. It even has a fully working touchreen. Now, this thing is absolutely sick.
Okay, so how did I build this thing? Well, it was done in four major parts. There's obviously the handheld device that I have here. So that has a number of things whether that's the hardware, the soldering, the 3D printing and preparation of that as well as the firmware and testing. There's also the Cloudflare piece. Now Cloudflare uh maintains a couple of things. One, we have a R2 bucket that hosts the audio files that come from the device. And then we have durable objects that are being used to store the data for the to-dos. And then we also have the third major part which is the web app. The web app is also being run on Cloudflare workers. It's built in speltkit and then connects directly with those durable objects. And the last piece is one of the most important which is the actual agent runner itself. But it's actually more than just the agent runner. It's the MacRunner. The Macr runner handles transcribing as well as the AI and agent
calls and what the agent is capable of doing. So I'm going to dive into each of these in a little bit more depth. So the hardware is made out of four major parts. There's the battery, there's the microphone, there is the 3D printed case, as well as the ESP board. So, this board in particular is an ESP32S3.
It's 1.64 in in the touchscreen. What's cool about this board is that even though it looks like it might be a full-on device, it's it's not really. There are a number of really great things inside of here, though, that make it easy to work with. There's built-in Wi-Fi. There's a built-in gyroscope, a built-in accelerometer, a built-in SD card, so uh slot so that I can have actual storage inside of here, and then USB typeC. The specs are nothing crazy, but good enough for what I need because this isn't going to be some kind of crazy processing unit. I'm not doing the transcription on the unit itself. What I'm just doing is recording the transcription in small chunks, saving it directly to the SD card, and then when the recording is finished, it uploads that to the R2 bucket. Now, for testing this, it was really a pain to go back and forth with the AI and use this thing and and prompted. So, eventually I had
my computer talking directly to the device, recording the transcripts, and then going in a bit of a self-looping thing. Uh, a lot of issues were around the memory management and stuff like that. Getting nice swipeable highf animations on this thing as I went. Now, the design was super important and I went through a ton of dummy case options which I'd been printing for the first two days of hack week. And it wasn't until I actually started to give the AI real components that uh well the cases started to come together in terms of being able to fit all of the components in but the structure felt really weak.
So I posted on Twitter asking about this and I was given NERB nurb.dev dev describe the part, print the part, and then NERB was able to, using my normal AI subscription, I used a GPT models for this, it was able to not only design a case that was more full, cuz the other ones were very hollow and didn't fit together super well. It designed a case that was uh based on what I had already had, but actually fit together. And then it even perfectly defined little holes for magnets so the back of my case could be held in with magnets as well as screw ports for my screwing in. And by the time it was all said and done, every single component worked perfectly inside of this case. Since I had all of the individual component schematics and everything like that, well, Nerb was able to just take those dimensions. I didn't really even have to measure much.
And once all said and done, I had a very 3D printed looking case. And that's where the sandpaper came in because I sanded the absolute life out of this thing with nine different grits. I probably spent an hour sanding this thing. Starting with the most gritty going to the most fine. And then I got a really nice smooth texture off of this.
Now, if you do look closely, it obviously does look 3D printed at parts. And because I sanded so much, I was worried about sanding straight through the case. So, I maybe want to beef up some of that if I was going to be doing this again. Um, but for the most part, I was so impressed with the amount of quality and texture you could get out of sandpaper and the PLA. Okay, let's talk about the software components because they're they're big and I made some interesting choices. So, first and foremost, we have the Cloudflare part of this. Now, people might be wondering why I'm using Cloudflare for so much when so much is happening on my local hardware as well. Well, the app should entirely function like a normal to-do app. Um, the idea here is that this thing is a to-do app that can start work on my other things. It just so happens to have a nice little control interface that I can then use to leave quick to-dos or get started on things or follow up with
feedback. And then if I want to send things to the AI, I can just send them directly from here or again uh it's going to infer that by my kicking it off. Now I mentioned that when I do the transcribing, what it does is it it chunks it and then uh keeps that in the SD card and then sends it to R2. It's always going to work because R2 is always online as long as this thing has Wi-Fi. It does save things and store things locally and will try once it regains connection, but it connects to that Cloudflare bucket. And that way we have this the data for the the audio. We have the data for the app and we have the web app which is a speltkit app built on Cloudflare workers. We have all of that in the cloud that will just work and function. And then if at any given point this computer goes down, the only thing that we're losing here is the AI agent running things. [music] So that's why I made those choices. And the durable objects was a great call because I can see things happening in real time really smoothly. It's a nice way to have
this run. Now, to see this in action, I'll show you this live. I have my little machine here. We're going to say I'm recording a to-do for [music] the syntax runth through of the prompt boy. So, I just want to make sure that this [music] works so that we can see it happening live. And so while this is done recording here, what it does is it goes into a cued state where it then gets sent in the chunks. It takes those from the R2 bucket actually and sends it directly to my Mac Mini. I didn't want to pay for compute for transcribing things, even though I'm sure you could probably get that cheap enough. Uh but I already have uh good transcription uh local models running on that computer.
So it sends the audio to the Mac Mini that computes it. It sends the transcript back into the app. And you can see even as I'm talking here, it shows up uh [music] test uh test prompt boy syntax run through. And it showed up under today. So when I have these things again, they work as really nice little to-dos. And you can archive them, you can increase their priority, you can give them a reminder. So some tasks will understand that they should just be a to-do. Other tasks will understand that they need to go off and do some coding work. and some understand that they need to go off and do some research and come back with [music] some information or perhaps go off and do controlled things.
If you're wondering how this works, this is actually happening on the Mac [music] Runner side of things. The Macr runner handles uh information coming in, sends it to transcribe that then goes to a deterministic routing system. Like if I say the word research or I say the word to-do, it's going to put it in certain lanes. Or I can say uh if I if I mention the names of one of the websites that projects that exists on one of my computer, it knows that that's probably coding work. Now these things can change. It can actually be reclassified, but it initially classifies that and then sends it back up to Cloudflare. In that same time, if there's work to be done, it also sends it to Pi where it basically just calls the Pi installation that I have on this computer. Now, that does kind of feel like kind of inherently insecure considering there's like no sandboxing or anything like that. It sandboxed that computer. That computer is not airgapped or anything, but it also doesn't have access to a ton of stuff, right? It has access to the internet, but it doesn't have access to most of my accounts or anything like that. So, it can work on dev processes
and stuff like that. Now, some of the key here is even though this is AI, I'm using something called Swamp Club. And Swamp Club is deterministic automations. And I have a bunch of automations set up on that machine. So if I say investigate this bug on this app, the very first thing that it's going to do is run an automation to look for a bug on Sentry because it knows that I do all of my error handling inception stuff on Sentry. So it's going to go off and do that. Or if I were to say, hey, why is my kid's Minecraft server down? There's actually an automation that knows how to exactly check that Minecraft server. And what it's not doing is it's not the AI making decisions about what tools to call uh besides just first routing to that swamp, running [music] that deterministic script. That script gives it a result and then it can actually repair things like that Minecraft uh server directly from deterministic real scripts rather than the AI doing tool
calling or writing its own scripts on the fly. I have a lot of different automations that run for either uh creating properties on this or doing all kinds of stuff. So while this thing isn't sandboxed, it's actually uh given uh many [music] different lanes it can go down to and it will actually deny if it's not in one of those lanes or if I say to like code this or work on this and that project isn't registered in our projects, then of course it's not going to show up. Now I can I can say hey create a project like this and it's going to know how to do that. But again it's running deterministic [music] scripts to do all that stuff rather than the AI uh creating its own things.
[music] So with a combination of Swamp Club and Pi I'm able to uh [music] have AI work on code AI work on projects but I'm also able to run repairs uh figure out why my system isn't working well and do all kinds of stuff. People are inevitably going to ask like why didn't you if you have your whole setup in something like Hermes already um maybe why didn't you connect this to Hermes and that's fair. I wanted more control over the individual process here and Hermes is great but my Hermes has access to a lot of things and that was actually a struggle for me making that decision.
I ended up just going with Pi because that's how I do most of my coding work rather than Hermes. And if this thing is going to be used to do coding work for me, I'd rather have it just work with my existing setup and all that stuff. And besides, Pi's a great agent to just have as a generalized agent. Anyways, so what would I do differently or better if I made another one of these? I think I might want to spend a little bit more time on the case. The case is held together by magnets, like I said, but these magnets are, even though I have five of them, they're not shockingly tight. Like if this thing was on here super tight, I would feel really comfortable. But if I shake this hard enough, the back will come off. Um, two, I think the interface on this thing still needs quite a bit of work. It has even settings and brightness. It has wake to sleep. It has all that stuff or wake to uh or lift to wake, that kind of stuff. There's a lot of really great stuff in here, but I think that firmware on this bad boy is going to need some work for sure. Um, but it's pretty dang
cool. I'm actually very proud of the work it's been able to be done on this thing. The battery lasts a good amount of time, too. I mean, I plug this thing in, I get a couple days of battery out of this thing with lift towake on this, so the screen isn't on most of the time. And I I think there's probably more battery savings I can get out of it. For the most part, I'm not finding myself need to charge that much. And and honestly, I've just been leaving the screen brightness at 100%. And there's one more thing that I'm curious about.
So, if you have any expertise in this area, please let me know. But I'm wondering if the Wi-Fi situation on this thing could be improved by having a companion app that connects to this with Bluetooth. Sort of like how your Apple Watch connects to your Apple phone with Bluetooth. Reason being is that the Wi-Fi on this is still a pain in the butt. You can do the whole scan a QR code to join the network thing, but if I'm tethering it to my phone or something or I'm on some um you know random Wi-Fi network or something and I'm out and about, like ideally this device is something I could be anywhere, pull out of my pocket and just do this without having to go to my phone, swipe up, type in whatever. Um like that type of thing. People might not understand why I wouldn't want to do that. Like I got a lot of comments on this thing on Twitter that was like, "Why not just use your phone? Like just use your phone.
That's cool." Um, I agree, but I'm on my phone way too much. And the the inspiration came out of this when I was at uh I was at dinner and my wife had asked me something and I was just like, "Ooh, let me just jot that down really quick." And I pulled out my phone and it's like, "Do I really need to be on my phone then?" And like my phone is always kind of inherently, it's not like I'm going to get distracted, but I'm going to be pulling it up open.
Kids see that, right? But with this, it's like you just pull it out, you say the thing, you put it down, right? The the difference in how you're using that device is different. And and CJ and I have been talking a lot about like singlepurpose devices to get us off our phones. And I just think that this is a really cool thing like that for me. So, it also gave me an excuse to build something cool with hardware and software and get really deep into some stuff that I've never been into. So, check it out. Let me know what you think about this project. I got a ton of feedback on Twitter about it. Man, people went nuts for this thing. I'm going to keep working on it. I'm going to keep using it. And the goal is for this to become my main source of doing to-dos and interacting with my agents. I do not want a terminal app on my phone that I'm prompting Claude Code with or something. I just cannot I cannot do that. I cannot do that to myself or my family. Check it out.
Quote it with credit and a link. Quoting Syntax