I turned my old iPhone into a desk pet that babysits my AI agents
The problem: the AI waits for me, I wait for the AI A lot of my coding now is letting Claude Code or Codex run on their own. The catch is that once they start, I wander off: reply to a message, refill my coffee, look a
The problem: the AI waits for me, I wait for the AI
A lot of my coding now is letting Claude Code or Codex run on their own. The catch is that once they start, I wander off: reply to a message, refill my coffee, look at another project. When I finally check the terminal, the agent has often been sitting on "Run this command?" for the last five minutes.
The other problem is quota. Claude has a 5-hour limit and a weekly one; Codex does too. You don't know how much is left unless you go and look, so you usually find out by getting rate-limited halfway through something.
I had an old iPhone in a drawer. What if it stood next to my monitor and kept an eye on the agents for me?
That's Tokling.
What it looks like
The phone sits in landscape, always on. A pair of glowing eyes on the left, a quota panel on the right:
- Quota for Claude Code, Codex, Antigravity, Grok and Cursor: 5-hour and weekly limits, what's left, when it resets. A white tick on each ring shows where an even pace would put you; if you're on track to run out before the reset, it tells you what time.
- Savings: your token usage priced at each provider's public API rates, compared with what you actually pay. For heavy users it often comes out at several times the subscription price. It is an estimate, not a bill.
- Live: how many sessions are running, how many are waiting for you, how many turns finished today.
When the agent on your computer finishes, gets stuck or needs approval, your phone, Apple Watch and Dynamic Island light up. Tap to allow or deny. You can also start a new chat from the phone, or pick up a session that's already open on your computer.
The pet isn't decoration
I started with a plain dashboard and noticed I stopped looking at it within a day. Once there was a face on it, a glance out of the corner of my eye told me what was going on, faster than reading numbers.
Its mood comes straight from the data:
- the AI is thinking, so it squints and thinks too;
- quota above 85%, it starts sweating;
- savings go up, it looks smug and coins fly out;
- the computer disconnects, it dims, looks around and glitches now and then;
- nobody touches it for 10 minutes, it falls asleep.
And you can play with it: tap to make it blink, double-tap for a happy squint, tap five times and it gets angry, press and hold and it purrs, stroke it for heart eyes, shake the phone and it gets dizzy, tilt the phone and it looks downhill. Every touch has its own haptic pattern, hand-tuned with Core Haptics. That's the part I spent the most time on.
It also levels up with the tokens it "eats", and achievements unlock new eyes, themes and accessories. Those can only be earned, not bought.
A few engineering choices
1. A dependency-free helper on the computer. Written in Bun + TypeScript and compiled to a single binary with bun build --compile; one codebase for Mac and Windows. It reads local data: Claude Code session logs (~/.claude/projects/**/*.jsonl), Codex's app-server and session files, Antigravity's own /usage command. My Claude logs alone are 8.6 GB, so it only scans files touched in the last 35 days, caches parsed results by size and mtime, and reads only what was appended.
2. Phone and computer talk directly, no account. The helper advertises itself over Bonjour; the phone finds it, you tap it, click Allow on the computer, done. Version 1.1 adds a relay so the phone can reach your computer over mobile data; approvals and chats are end-to-end encrypted, so the relay can't read them.
3. Each agent through its own interface. Chats started on the phone drive Codex through its app-server, Antigravity, Grok and Cursor through ACP (Agent Client Protocol), and Claude Code through its CLI. Sessions you start yourself on the computer send their approval prompts to the phone through hooks installed into each tool. Which tools can be controlled, their commands and quirks all live in one registry, so adding a tool is a one-file change.
4. Battery on an always-on screen. A screen that's on all day gets warm fast if the animation code is careless. SwiftUI's repeatForever makes the whole window re-evaluate at display refresh rate, so the pet and the HUD each live in their own isolated host, and small looping animations go to Core Animation. I compare CPU on a real device before and after each change with a built-in meter. The whole screen also shifts a few pixels every 3 minutes against burn-in, and dims from 11 pm to 7 am.
5. Native everywhere. SwiftUI for iPhone, Apple Watch and widgets; Kotlin + Jetpack Compose for Android; SwiftUI for the Mac menu bar; a WebView2 tray panel on Windows. No cross-platform framework, mainly so haptics, motion and battery could be done properly.
Free and open source
The app is free, with no sign-up, ads or analytics. The code is MIT on GitHub. Read it, fork it, file issues.
- GitHub: https://github.com/chopper711/tokling
- iPhone + Apple Watch: search "Tokling" on the App Store
- Android, Mac, Windows: https://github.com/chopper711/tokling/releases/latest
- Website: https://chopper711.github.io/tokling/
If you let AI agents run on their own a lot, give it a try, especially if there's an old phone in your drawer. And if you like it, a star on GitHub helps a lot.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.
