# Clean Up Your Smart TV Home Screen, with an AI Agent

Replace a cluttered, ad-filled TV home screen with a clean one made for you, and protect your privacy, together with an AI coding agent.

- **You** turn on developer mode, answer a few questions, and say what you like.
- **The agent** connects from your computer and does the rest.

Everything uses the TV's own developer settings. Nothing is permanently modified, and every change can be undone.

Works on smart TVs and streaming boxes that have **Developer options** in their settings.

---

## Part A — What you do (5 minutes)

1. On the TV, open **Settings** and find **About** (often under **Device Preferences** or **System**).
2. Scroll to **Build** and press **OK 7 times** until you see "You are now a developer".
3. Go back, open **Developer options** and turn on **USB debugging**, plus **Network** or **Wireless debugging** if you see it.
4. Make sure your computer and TV are on the **same Wi-Fi**.
5. Optional: for movie and TV rows, get a free **TMDB API key** at themoviedb.org (**Settings → API**).

## Part B — Start the agent

Open your agent in an empty folder, copy this file into it, and paste:

```text
Read TV-SETUP-GUIDE.md and follow it with me.
Developer mode is on and the TV is on the same Wi-Fi.
Start by interviewing me about what I want.
```

After that, look at the TV and give short feedback, like "move new films up", "no labels on the posters" or "smaller buttons". Small steps work best.

## Part C — When the agent needs you

| When | What you do |
|---|---|
| At the start | Answer the questions and OK the summary |
| First connection, and after a restart | On the TV, tick **Always allow** and press OK on "Allow USB debugging?" |
| Before anything is removed or changed | Approve it |
| While it tests | Leave the remote alone, or tell the agent you're using it |
| Adding photos | Open **Add photos** on the TV and scan the code with your phone |

To undo everything, ask the agent to "run the undo".

---

## For the agent

### 1. Interview the person first
Ask a few questions at a time, in plain language. Suggest examples and let them skip any.

1. What's your TV called in Settings, and which country do you live in?
2. Which streaming services do you pay for? Which stores do you rent or buy films from?
3. Which apps should be on the home screen, and in what order?
4. **What are your favourite genres?** For example horror, comedy, drama, sci-fi, documentaries, anime, kids. For each one: films, series or both? Any sub-genres you love, like slashers or found footage for horror, or space or time travel for sci-fi?
5. Which one is your top genre? It gets collections you can open and a "Surprise me" pick.
6. Any country or language you'd like a row for, for example films made in a specific country?
7. Do you want rows for new films, new series and new rentals? In what order should all the rows go?
8. A name to show above the clock, for example your family or home name?
9. Family photos as the background and screensaver? You'll add them from your phone.
10. A seasonal theme, for example for Halloween or the holidays?
11. Should I remove spyware and tracking, close microphone and camera access, and fix anything that weakens your privacy? Is there anything you use and want to keep, such as voice search?
12. Do you have a free TMDB API key for the movie rows? If not, how to get one is in Part A.

Write a short summary, show it, and wait for an OK. Save it as `preferences.md` and use it for every decision.

### 2. What to deliver
**A clean home screen**, either a ready-made ad-free launcher or one you build, depending on what the person prefers:
- A slim row of their apps, Continue watching, and content rows in their order, filtered to their services and country.
- Their top genre as collections: preview boxes that open a full page, plus "Surprise me".
- For the focused title: name, year, rating, synopsis, where to watch (included or rent), and its artwork in the background.
- A title page with small buttons named after each app, plus a trailer.
- Their home name above the clock, family photos behind it and as the screensaver, and a seasonal theme if wanted.
- No ads, no shop, no labels over posters.

**Family photos from a phone:** an "Add photos" screen with a QR code. It runs a small upload page only while the screen is open, protected by a long random code. Photos are resized on the phone before upload.

**Privacy:** find and turn off spyware and tracking (services that watch what's on screen for advertising, ad and promo apps, usage-log uploaders). Remove microphone, camera and other access that apps don't need. Check what the TV connects to before and after. Explain each finding simply.

**A full undo** that restores every app, setting and permission you changed.

### 3. Rules
1. Before changing anything, check the TV and save its original settings, so the undo can restore them exactly.
2. Make one change at a time and verify it on the TV with a screenshot.
3. Ask before restarting the TV, turning anything off, revoking access or changing the default home screen.
4. Investigate before turning anything off. Never decide from a package name alone, and never touch core system parts, network, updates, the keyboard or the remote.
5. Set the new home screen as default first. Only turn the old one off if the TV keeps going back to it, and test after a restart.
6. Stop and explain if something fails. Be honest about what can't work on this TV.
7. Test the undo before calling the job done.

### 4. Lessons that cost time
- **Continue watching:** the TV's own "Play Next" list can't be read by other launchers. Apps can share what's playing, but many report nothing or just their own name. A list of titles the person opened from the launcher works with every app. Say this early.
- **Where to watch:** search once per service, so every title knows which app has it and whether it's included or for rent.
- **Country rows:** filter by country of origin, not just language.
- **Internet permission:** include it from the first build. Adding it in an update can need a full reinstall.
- **Uninstalling deletes the photos.** Back them up first.
- **Remote navigation:** make Up and Down move exactly one row, and leave room so the focused item isn't cut off.
- **Black screenshots** inside streaming apps are normal. Their video is protected.
- **The person's remote presses** mix with yours during tests. Ask them, and don't send key presses while they're inside an app.

### 5. Done when
- [ ] Home opens the new screen after a restart, after standby and after leaving each app.
- [ ] Every row, page and button works with the remote.
- [ ] Photos upload from a phone.
- [ ] Privacy findings were explained and approved changes were made.
- [ ] The undo was tested.
- [ ] The person has seen it and is happy.

---

## Other TVs

If your smart TV has no **Developer options**, you can't replace the home screen. You can still open its privacy settings and turn off viewing data, ad personalization and voice features you don't use. Or add a streaming box that has developer options and follow this guide on that instead.
