This picks up where my CleanYourTV post left off, where I cleaned up the Android TV home screen at home (the cleanup post). Once the TV was clean, the next question came by itself: how do I make sure my kid only watches what they should, without a parent standing guard by the TV? So I opened one long chat with an AI coding agent, between 23 and 25 October, and asked for one thing at a time until I had Peach TV, an app that controls the TV from my iPhone.
This post is only the building story and the prompts I really typed. For what kids mode looks like and how to set it up at home, read the kids mode and TV time post.
Code and prompts on GitHubApp website



Before I started: a clean TV that was not ours yet
I had the AI follow Gathin's CleanYourTV: ads off, junk apps off, and an Apple TV style home screen in our family's peach theme ("Look Peach Family"). Then I complained:
why it show ads as screen server to my TV i don't need it ,, it look like it nothing change
It was Google's screensaver, which carries ads, so it was swapped for the launcher's clock. The old home screen also kept coming back. That turned out to be because the setup app had saved the Wi-Fi. Once the TV re-joined Wi-Fi, the new home screen stuck.
Step 1: I wanted to control it from outside the house
The first problem I thought of: the TV sits on the home network, so I could not reach it from outside. I asked whether a VPN like Tailscale could work, then told the AI to install it.
can i remote from my phone to lock this tv or close tv via internet if only lan can tv install vpn like tailscale
install tailscale for me , and already have pin lock
It installed Tailscale on the TV as an always-on VPN, so the TV could be reached from anywhere on the family's private network.
Step 2: the iPhone app, from one prompt
make tv remote app for my ip17pro which auto check is tv is online and close or lock it or snap screen
That one prompt produced two pieces. The first is tv-agent, a small service on the TV (an Android accessibility service with a token-protected HTTP API). The second is a SwiftUI iPhone app that checks the TV every few seconds and can lock it, turn it off, send a message or grab a screenshot.
The weak spot showed up quickly: the first lock could be bypassed with the remote. The AI rebuilt the lock screen so that it catches every key.
Step 3: putting our house rules in
After that I asked for features one at a time: a daily activity history, allowed hours, and daily screen time.
can set config schedule allow time each day like 7:00 am to 20:30 pm , and screen time each day 45 min, 1 hour ,2 hour, like this can qulick enable , disable it, is anything is recomend please tell me
I ended by asking for recommendations, and the AI added some on its own: separate weekday and weekend hours, warnings 5 and 1 minutes before time runs out, bonus time from the phone, and a parent override until midnight. The rules run on the TV itself, so they still work when the phone is offline.
if tv lock more than 10 minute. turn off it, in tv log each app when app open every 10 minute snap shot screen and link with history can view on app, and it can auto delete in 7 day,
That gave me a TV that turns itself off after 10 minutes locked, plus small screenshots when an app opens and every 10 minutes after, which the app deletes after 7 days.
Step 4: kids mode
I wanted the Google TV kids profile to be the default, but its profile switcher lives in the stock launcher, which I had disabled. The AI tried a few workarounds, none was clean, and it said so and stopped. So I changed the idea:
ok default mode is kid mode show only, AIS plas app , other app hide, in iphone app add feature change mode if enable kids mode show only AIS plan,
Now the TV starts in Kids mode, the home screen shows only the allowed apps, and anything else is sent back Home. The iPhone app has a Kids/Parent switch and an editor for the allowed apps, and the TV returns to Kids mode when the screen turns off.
Step 5: so the rest of the family can use it without setting up a VPN
next i want to consult when we outside home without same wifi it need to use tailscale , but non technical from my wife it hard to config it it many step, can we do something one stop service build it of this project
The AI offered three options: A, share the TV with her own Tailscale account; B, build Tailscale into the app; C, a cloud relay. I picked B, with the key sent as an invite link rather than baked into the app. libtailscale is now inside the iPhone app, so there is no separate VPN app. A parent taps "Invite family", sends the link over LINE, and the other person taps it once. The phones are allowed to reach only the TV's one port.
My part was clicking through the Tailscale admin console step by step as the AI wrote it out, then having it check that the TV and phones carried the right tags and could reach each other.
Step 6: sharing it with my wife through TestFlight
how can i share this app to my wife
The AI set the app up in App Store Connect, uploaded a build and invited her as a TestFlight tester. The scripts are in the repo's ios/scripts folder (I keep every email address out of the published prompts).
Step 7: the unfinished problem, waking the TV
why google tv can use remote to open tv from standby mode but our app cannot wake screen on
I had the AI analyse the packets from the Google TV remote. The conclusion in the repo docs: a power key press does wake the TV, but the app's own time-limit rule was putting the TV straight back to sleep. From deep standby nothing on the network wakes this TV, not even Wake-on-LAN. A commit called "agent 1.8: wake from sleep" followed on 26 October, but I am not claiming it fixed everything.
Afterwards: using it kept producing requests
- 26 Oct: made it work with other TVs too (agent 2.0 with pairing, an installer for ADB inside the app, and multi-TV support), then prepared the docs for a public release.
- 3 Nov: asked for +5 and +10 minute buttons, because the allowance could only be 15, 30, 45 or 60.
- 14-15 Nov: a parent-picked YouTube playlist, so a kid can only watch what is on the list. My prompt said "goal is don't want kid to playand clip on you tube without list from parent", and the result was a Playlist app on the TV.
- 15 Nov: asked to customise AIS PLAY, which loaded slowly, so kids mode shows only channels 201-206.
The prompts (as typed, typos and all)
The full list is in docs/PROMPTS.en.md in the repo. The ones that matter for building the app are below. Any AI coding agent that can run commands on your computer will do.
can i remote from my phone to lock this tv or close tv via internet if only lan can tv install vpn like tailscale install tailscale for me , and already have pin lock make tv remote app for my ip17pro which auto check is tv is online and close or lock it or snap screen in iphone app can we see tv log activity each day, open, close, which app start from : to , can set config schedule allow time each day like 7:00 am to 20:30 pm , and screen time each day 45 min, 1 hour ,2 hour, like this can qulick enable , disable it, is anything is recomend please tell me if tv lock more than 10 minute. turn off it, in tv log each app when app open every 10 minute snap shot screen and link with history can view on app, and it can auto delete in 7 day, อยากให้สามารถ ปรับ wording ตอน lock กับ tv time ได้ ใส่เป็น templete มาให้เลือก กับแก้ไขเองแล้วบันทึกไว้ได้ และปรับ theme, ฉากหลัก ได้ ขอหลายๆแบบ ok default mode is kid mode show only, AIS plas app , other app hide, in iphone app add feature change mode if enable kids mode show only AIS plan, when we adjust time is it reflection to tv ex. before sat ,sun quota 2 hour when we change to 1 hour is it effective to TV, ok it done , i have question if now i lock by app tomorrow after 07:00 is it unlock auto peach tv ios i want to add feature to play youtube playlist on tv is any idea to do that goal is don't want kid to playand clip on you tube without list from parent