Eric J Ma's Website

What persistent agents are, and why they work

written by Eric J. Ma on 2026-12-01 | tags: agents ai llm automation chat mcp hosting agentic persistent agents grok bot


In this post, I demystify persistent agents: LLMs in always-available chat harnesses, connected to services, acting on our behalf with our permission. I share how I use Grok Bot and a self-hosted T3 Code and pi setup for everything from restaurant bookings and calendar management to building entire apps from my phone, and how I combine managed and self-hosted setups via Tailscale. What could you offload to a persistent agent today?

Persistent agents are the rage nowadays, and I want to demystify what they are and why they work.

At its core,

a persistent agent is an LLM running in an always-available chat harness that is connected to services, affording the LLM the ability to take action on our behalf, with our permission.

Let's break this definition down

To start, a persistent agent needs an LLM; think Astra or Opus, two of the leading frontier models from the USA, or Kimi K3 or GLM 5.4, two of the leading open-source models from China.

The LLM operates within a chat harness, i.e. a place where you, the user, can talk with it. Now, unlike a coding harness such as pi and T3 Code, which put the model picker, thinking level, and other LLM settings in front of you, a typical persistent agent hides a lot of the complexity that might otherwise be exposed to a developer, because chat harnesses serve normies while coding harnesses serve coders.

Now, this is not to say that a persistent agent cannot code! It 100% can. The key difference I want to emphasize is the level of control you get as the user.

The always-available part comes from persistence: a computer that keeps running somewhere, usually hosted in the cloud. We are probably familiar with Claude and ChatGPT being hosted services, but persistent agents take this one step further: they allow for the agents to run a computer in the cloud, thus affording it the ability to, for example, browse the internet, or run code for you without needing to keep your laptop open.

A persistent agent can also take action by virtue of the connections that it maintains with other systems. ChatGPT Desktop calls these โ€œPluginsโ€, as does Grok Bot, the managed persistent agent I've been using, but really itโ€™s a combination of skills, MCP servers, and CLI tools that we install under the hood.

Finally, these agents are RL-tuned to have certain behaviours, such as asking for permission to take certain actions. This helps with trust building, but these are "soft controls", not "hard controls". In any case, a good agent will ask you for permission for the right sort of things, and whether its behaviour works for you or not depends a lot on how much you trust the company or organization that trained the model that powers the agent.

What can you do with persistent agents?

Once you have a chat, a computer that keeps running, and connections to other software that you use, the work that you can accomplish with a persistent agent ranges from mundane to technical... and most importantly, you can get them done on your phone. You say what you want, the agent acts within a connected system, and you check the result later.

On the mundane end, you can do things like managing your calendar(s), triaging and drafting emails, and more. If you want inspiration for things you can try with your persistent agent, here are things I've done with Grok Bot:

  • Find me a highly rated restaurant in San Diego that specializes in San Diego-specialty cuisine and book a table using OpenTable, even moving the reservation earlier by 1/2 hr once we knew our schedule better.
  • My Chief of Staff bot manages my calendar for me, and has daily checks on my calendar to ensure that any Learn Anything Calendly bookings automatically have my collaborator Daniel Chen added to it.
  • Read credit card terms to check for car rental insurance coverage just as we are hitting the question by our car rental service provider.

You probably can tell that it's all very mundane and tedious stuff that I no longer have to handle, especially that last one.

One level up, I will create ephemeral bots to keep track of a thing that might otherwise occupy my mental bandwidth. One example is my bike repair. I had a wheel busted, and seeing as I thought this would be a multi-month affair, I decided to create a Bot that specifically would help me shepherd things through. It helped me draft the initial warranty request email, specifically suggesting a courtesy discount when the warranty request fell through (as we were well outside the warranty window) -- something it suggested after reading the warranty terms for me. Once my wheel was shipped, I asked it to book a mobile repair with Casa Bikes, and it handled the emails appropriately. It was proactive, checking my email daily for what was next. Knowing the end goal was a repaired bike, it drafted follow-up emails to Lectric, the maker of my e-bike, and Casa Bikes whenever I didn't get a reply within two business days.

I have also set up bots that are specialized for certain aspects of my life. One example is finances. A Grok Bot helps me keep track of my spending by maintaining my personal Expenses App, which is an agent-first application. After iterating with it, the app now has:

  • Email intake (via Resend)
  • AI OCR and parsing (hosted on Modal)
  • Real-time database (Convex) for storage
  • Web hosting (Vercel)
  • Social logins (through WorkOS) for information security
  • Expense reports

I host it on Vercel, and when building it out, I enabled deploy previews, automatic deploys via CI, and more. In addition, I also created an MCP server that enables my persistent agents to retrieve any information I ask of it.

I have been using Grok Bot to build out custom software for my life. The expenses app was one, but Iโ€™ve done others too.

One that I'm excited to share was a math game, named Meadow Math, that I hosted again using Vercel and Convex. It's a collection of math puzzles that I can give to my kids to help them pass time. This was an app that I prompted into existence using Grok Bot within 20 minutes on a plane on my phone. By having GitHub, Vercel, and Convex connections, Grok Bot had the necessary tools at hand to deploy this for me without me fiddling around on my laptop.

But because Grok Bot wasn't as systematically and explicitly steerable with skills the way I was used to as a developer, I later continued development on Meadow Math using T3 Code's mobile app to drive the pi coding agent and GLM 5.4 on my MacBook Air. I thus was able to use a bunch of skills (as prompts) to drive GLM 5.4 to rapidly burn down the issue and PR backlog.

And because my MacBook Air is persistently online and meshed with my phone and MacBook Pro, pi on Air via T3 Code effectively becomes the persistent agent that I can call on when I'm either:

  1. Out of Grok Bot usage credits, or
  2. Want additional control on my agents' behaviour.

How to decide between managed versus self-hosted agents

The key choices come down to where the computer lives, who controls the agent's behaviour, and what you pay for it.

A managed persistent agent, Grok Bot, gives you an isolated cloud computer, the one-click connectors, and a chat that works from your phone with your laptop off. The tradeoff is that you pay for the convenience.

On the other hand, self-hosting gives you back control: over agent behaviour and cost of operation. The tradeoff is that you have to manage your own setup, including MCP servers and CLIs, and not all of it is easily doable remotely.

When it comes to self-hosted agents, I've cycled through at least 5 different iterations of self-hosting, and each iteration was informative in telling me what I really needed and wanted in a persistent agent.

I started off with Blink (iOS terminal emulator) mosh-ing into my MacBook Air to drive OpenCode, but that always felt a bit clunky. Multiple iterations later, I'm now on T3 Code plus pi on a 2021 M1 MacBook Air, and T3 Code streamlines much of the experience. My MacBook Air stays persistently on, mounted on my wall using a pair of 3D printed wall mount brackets. MCP servers and CLIs are set up to connect it to my multitude of systems. Using cua, I can ship screenshots back to the T3 Code client; the ability to view screenshots in situ was incredibly helpful for speeding up verification, and that was a major driver for me to move away from just using the terminal as my interface.

Why not both?

One day, while using Grok Bot, I had a wacky idea: could I use Grok Bot to drive T3 Code? There was a task that I wanted to handle that was essentially running an agent over 80+ papers' worth of content, one agent session per paper, extracting study details for a literature review on generative AI and learning. I didn't want to burn Grok Bot credits doing it, but I also didn't want to switch context away from the existing chat session that I was already driving.

Because I set up Grok Bot's computer to be connected to my tailnet (using the Tailscale connector), and I approved Grok Bot's ability to SSH into my Air, I was able to use Grok Bot to drive T3 Code with a standard prompt, one pi agent session per paper, until it was done. It barely nudged my Grok Bot usage, and instead leveraged the massive GLM Coding Plan that I purchased at the beginning of 2026.

In a similar vein, thanks to Tailscale, I'm able to use Grok Bot to manage a loaner GB10, NVIDIA's desktop AI machine. On it, I've used Grok Bot to install the Inkling 2 Mini model on it, and then use the Inkling model to power an automatically-expanding knowledge graph on building, evaluating, and securing LLM agents. (More on it in a future blog post!) Originally, it was running on Gemma 4 and driving a different knowledge wiki architecture, but later when I decided that I wanted it to mirror the Four Pillars of my Knowledge Wiki, I just pointed Grok Bot to my blog post, asked it to switch to Inkling 2 Mini, and 45 minutes later the self-expanding, self-researching knowledge wiki was launched, all for the constant running cost of a GB10 box.

In fact, in reading one of the notes, I noticed a bunch of upgrades to the wiki structure that I could implement, and asked the Grok Bot I created to manage the GB10 machine for its take on what could be upgraded!

And now I have an infinite token source available that Grok Bot can drive for me in perpetuity!

That's the definition at work: an LLM in an always-available chat harness, connected to my Air, my GB10, and the rest of my services, taking action on my behalf, with my permission.


Cite this blog post:
@article{
    ericmjl-2026-what-persistent-agents-are-and-why-they-work,
    author = {Eric J. Ma},
    title = {What persistent agents are, and why they work},
    year = {2026},
    month = {12},
    day = {01},
    howpublished = {\url{https://ericmjl.github.io}},
    journal = {Eric J. Ma's Blog},
    url = {https://ericmjl.github.io/blog/2026/12/1/what-persistent-agents-are-and-why-they-work},
}
  

I send out a newsletter with tips and tools for data scientists. Come check it out at Substack.

# TODO(eric): learn how to learn anything. feb 2027.

If you would like to sponsor the coffee that goes into making my posts, please consider GitHub Sponsors!

learn anything --with ai --feb 2027 → 5 days · in person · a small cohort → feb 14-20, 2027 · learn-anything.nonlinearlabs.ai