I replaced Grokbot with my own bot. Now I actually use it.

November 25, 2026
7 min read
By Rahat Kabir

Contents

I used Grokbot for a while, and it worked. But I couldn’t control any of it. Which model answers, how memory gets saved, how the prompt and caching work, what it connects to: someone else decided all of that.

So I built my own. It’s called Rahat-PI (Rahat bot, for short), a personal AI agent that stays on all the time, remembers things, runs routines, reads my connected apps, and never sends, posts, or deletes anything without my approval. It’s new: I built it over the last month, and I’ve only just started using it for real.

This post covers what it does, the technical choices behind it, and the one big thing it still can’t do.

What it is today

The Rahat-PI desktop app: a sidebar of bots and the "Create new bot" dialog with a mascot picker, colours, and a model and persona field

Rahat-PI is written in TypeScript on top of Pi Durable, an agent framework that saves every step to SQLite. If the process crashes halfway through a task, it picks up where it stopped instead of starting over or doing the same thing twice. For a bot that’s supposed to run all day, that was the reason to pick it.

On top of that:

  • Bots. I make a bot for each kind of work in my life. Each one has its own chat, persona, model, routines, and mascot. They share memory and tools, and one bot can ask another a question.
  • Connected apps over MCP. Notion, Firecrawl, Google Calendar. Any MCP server works, and no app gets its own custom code.
  • Routines. Scheduled runs, plus routines that watch an app and only wake the bot when something changed. If there’s nothing new, it stays quiet.
  • Approvals. Anything that changes the outside world waits for me.

I reach it from a desktop app, the browser, and my phone.

How I actually use it

I use it the way I used Grokbot: taking notes, planning my coding work, and routines. It’s the same bot on my phone, computer, and laptop, with the same chat and the same memory.

It works, but it needs a lot of updating and polishing. I’m fixing things as I find them, and I plan to move more of my day into it.

I pick the model

This was half the reason I built it. Models come from a provider table in the config, so switching is a setting, not a rewrite. I’ve run it on Claude Sonnet and Haiku, OpenAI models, and GLM. Today it runs on GLM through Z.ai, because I have a subscription there.

Each bot stores a role, main or helper, instead of a model name. When I switch providers, every bot follows. The helper role gets the smaller model and handles subagents and chat summaries.

So when I want to try a model, I try it on my real work, not on a demo prompt.

Reading is free, acting asks me

This is the rule I care about most: Rahat bot can read whatever I’ve connected, but it can’t change anything on its own.

In code, write tools don’t write. They create an Action, a proposal with the exact payload: this message to this person, this Notion page with these fields. I see it in the app and approve it, and only then does an executor run it, once.

Every Action moves through the same states:

proposed → approved → executing → succeeded | failed | unknown

unknown is the interesting one. If the process dies mid-send, Rahat-PI can’t know whether the message went out. So it says so, and it never retries on its own. A duplicate email is worse than an honest “I’m not sure”.

For connected apps, a tool only counts as a read if the server marks it read-only and its name has no write word in it, like create, delete, or send. Everything else becomes an approval. I can also set any tool to read, ask, or off myself.

It runs on AWS, behind Tailscale

A bot that can read my Notion and my calendar should not have a public URL.

Rahat-PI runs on one small AWS server (a t3a.small), set up with Terraform. Its security group has no inbound rules at all, and there’s no SSH key. When I need a shell on it, I use AWS Session Manager.

The only way to reach my bot is Tailscale, a private network between my own devices. tailscale serve handles HTTPS and forwards to the agent on localhost. My phone, laptop, and PC are on that network. Nobody else is. The app still signs in with a token on top of that, so being on the network isn’t enough by itself.

A few choices make it safe to leave running:

  • The data lives on its own encrypted disk, separate from the server. If I rebuild the server, the disk stays. The server’s Tailscale identity is stored there too, so a rebuilt server comes back as the same machine with the same address.
  • Secrets live in AWS Parameter Store, not in files on the server.
  • Backups: daily snapshots of the data disk, plus Rahat-PI’s own backups copied to S3. If a backup copy fails, I get an email. I’ve tested a restore from S3.

That’s what makes “use it from my phone” safe instead of scary.

It knows what it can’t do

A real chat with one of my bots: it refuses to git clone because its sandbox has no network, offers a PowerShell command for my PC instead, then asks me for the meeting time before setting a reminder

This is a real chat with one of my bots. I asked it to clone a repo into its workspace. It said no: its shell runs in a sandbox with no network and no credentials, so git clone can’t work there. It offered two other routes instead: propose a PowerShell command that clones the repo on my PC, which I’d approve, or read the files it needs from GitHub’s web pages.

Then I asked for a reminder about a meeting with a professor and left out the time. It didn’t guess. It sent me a question with quick answers (“Tomorrow morning”, “Later this week”, or type it myself) and waited.

Both moments are small, but they’re the behaviour I built it for: say what you can’t do, offer a safe route, and ask instead of assuming.

The limit: it doesn’t have its own computer

The sandboxed shell is safe, and that’s also its problem. Real coding work needs a network, credentials, and a full machine.

Today my bot can borrow my Windows PC, one approved command at a time. The PC checks in with the server every few seconds, so it never opens a port, and every command waits for my yes.

The next step is giving it its own VPS, a separate server where it has full access. I think that’s when I’ll start using it much more, especially for coding.

What’s next

  • Its own VPS with full computer access
  • More routines, and more of my day running through it
  • A technical post on how to build an agent like this yourself, and maybe a deeper one on the AWS architecture later

The repo is private for now, so there’s no code link this time.