00 Intro
← Applied AI Harsh Rana
Applied AI No. 02 · November 2026

I Let Claude Hold the Remote.

Why my TV stopped installing apps, and how an AI cleared 17 preloaded apps and the home-screen ads off it, one screenshot at a time. No hacking.

Harsh Rana 7 min read November 2026

You paid for your TV. It shows you ads anyway.

Ours opened on a Grand Theft Auto banner. Under it, a sponsored row of games. Then 33 tiles, most of which nobody in our house ever picked. And one morning, apps just stopped installing.

So I handed Claude the remote. Not the plastic one. The one the TV listens to over Wi-Fi.

By the end of this post you’ll know how to have an AI look at a device in your house without breaking it, the five rules I’d make any AI follow before it touches one, and the menu paths if you’d rather just do it yourself tonight.

Here’s how it started. I’d cloned CleanYourTV, an open-source project that strips ads and bloat off Android TVs (518 models and counting), and opened Claude Code in it:

“I have a TV I kinda wanna run this on, but mostly I wanna diagnose what’s wrong and why apps won’t install on it.”

Plot twist: our TV isn’t Android. It’s an LG, which runs LG’s own system, webOS. The project’s own notes say it can’t touch these. No back door, nothing to install.

So Claude didn’t use one. It used the connection LG built for remote-control apps, the same one Home Assistant uses to control LG TVs. It pressed a button, took a screenshot, read it, and decided on the next press. Over and over.

What you need: a laptop on the same Wi-Fi, Claude Code (or another coding agent), the TV remote to say “Allow” once, and some patience. You won’t write code. Claude writes the little script that talks to the TV.

How it works.

One loop, and two moments where you’re in charge.

Claude presses one key, reads one screenshot, repeats. How it works
YouClaude CodeYour TV the final sayon your laptopsame Wi-Fi what you wantasks before deleting one key pressa screenshot back “Allow” on the TV, once YouClaude CodeYour TV the final sayon your laptopsame Wi-Fi asks firstyour ask screenshotkey press “Allow”,once
01
01

Tell it which TV.

We have two TVs. I said so, and said not to touch the other one.

Claude misread which one was “the other” and poked at the wrong TV. Read-only, no harm done. But that’s exactly the kind of mistake that matters when the next step deletes things.

Since then, rule one: before anything changes, the AI names the device it’s about to touch, by model, and waits for a yes.

Name the device. Then touch it.
02
02

Let it look before it touches.

The first stretch was all looking. What’s on the network. What the TV says about itself. Which apps are installed. How much storage is free.

Then the notification bell. Seven identical messages from the app store:

“Application has not been installed. Try again.”

All seven landed between 9:22 and 9:33 that morning. The TV had turned on at 9:16.

The TV’s notifications, opened by Claude: one “Application has not been installed” after another, a few minutes apart (real screenshot)

So Claude tried one install itself. It worked in under a minute. So did the one I actually wanted. Every failure happened in the first 17 minutes after power-on. Everything after that went through.

YouTube TV, the one I actually wanted: Install, installing, Launch. Free space drops from 483 MB to 468 MB (real screenshots)

The bigger surprise was the home screen. Hulu, Disney+, Peacock, Sling: 13 of the 20 apps I was allowed to delete weren’t really apps. They were placeholders, tiny stubs with version numbers like 0.0.32 that download the real thing the first time you open one. If that download fails, you get the message above.

The LG store’s own list: HBO Max, Prime Video, YouTube and Netflix say Launch. Disney+ and Hulu, despite their icons on the home screen, still say Install (real screenshot)

Nothing was broken. I’d have spent an evening resetting things for nothing.

03
03

It used the remote.

Driving a TV this way is slow and a little absurd. Press Right. Screenshot. Read. Press Right again.

It also taught us things a person never notices. Once, Claude sent two dozen right-presses in a row. The TV ignored every one. Too fast. The fix: wait two seconds after connecting, and a full second between presses. It typed into search boxes too, which beats spelling “YouTube TV” with arrow keys.

Claude typing “YouTube TV” into the store’s search, straight into the TV’s on-screen keyboard (real screenshot)

Is that efficient? No. Is it the same thing I’d do on the couch, minus the couch? Yes. Which is the point.

It’s not hacking if it’s the remote.
04
04

A screenshot before every press.

Here’s what you don’t see when you click through TV menus half-asleep: the dangerous buttons sit right next to the useful ones.

On this TV, Reset to Initial Settings is one row below the menu we needed. In the account screen, Sign Out sits directly under Account Management, and Terminate My Account lives in the same list.

Settings › System on the TV. The highlighted row is the one Claude wanted. The one directly below it resets the TV (real screenshot)

So Claude never pressed OK blind. Move, screenshot, check what’s highlighted, then press.

Deleting works the same way. The TV asks “Are you sure you want to delete Sling TV?” and Claude read the app’s name in that sentence before choosing Delete. Eleven times, eleven names.

All eleven of the TV’s own confirmations, each naming the app. Claude read every one before pressing Delete (real screenshots)
Read the dialog. Then press OK.
05
05

What came off.

My instructions were precise, in their way:

“Debloat it, delete a bunch of stuff I don’t use and is default there plz. CLEAN it up. No crazy DNS or network stuff tho.”

“Stuff I don’t use” is a judgment call, so Claude found a fair test: my LG account keeps a history of every app I’ve ever chosen. Anything on the TV that wasn’t in that history came preloaded. Those 11 got deleted: Sling TV, Pluto TV, ShopTime, a pool game, a game-show app, Copilot and five of LG’s own apps. Anything I’d chosen before stayed, even the placeholders.

Where deleting happens: Edit App List, the pencil at the very end of the app row (real screenshot)

Six built-ins can’t be deleted, only hidden: LG Channels, Sports, Home Hub, LG Gallery+, Alexa, and Camera. Hidden. One menu brings them back.

The six built-ins, moved to the hidden list. Reset Editing Apps brings them back (real screenshot)

Then the ads, which are just settings LG ships switched on:

The four switches Claude turned off, each one checked on screen after the press (real screenshots)

Home Promotion off: the sponsored banner went away. Content Recommendation off: the sponsored row went with it. Screen Saver Promotion and Smart Tips off too. On the LG account, it unchecked marketing emails and the voice-print agreement and left the payment terms alone.

Live Plus was already off. That’s LG’s name for the feature that recognizes what’s on your screen. A 2024 study of LG and Samsung TVs found it running on live TV and on whatever you plug in over HDMI, and found that opting out stopped the traffic. Worth checking yours.

Before and after, same TV, same morning (real screenshots)

33 tiles became 15. Free app storage went from 468 MB to about 560 MB. And the first thing the TV shows now is a quiet picture of a road instead of a game trailer.

06
06

Make it teach you.

The cleanup is nice. What I learned is the part that sticks.

I now know why a tile can say Hulu and not be Hulu. I know where my TV’s ads actually come from: two switches, not some unknowable ad empire. I know which built-ins LG won’t let me delete, and that a firmware update can quietly flip things back.

I also know what Claude couldn’t do. It looked for LG’s ad-tracking page in the settings and the account menus and didn’t find it on this model. It said so instead of guessing. I’ll take that over a confident wrong answer every time.

Here’s what coaching sounds like when the AI is holding the remote:

Not an LG? Same idea.

Your TVStart here
Android TV or Google TV (Sony, TCL, Hisense, Xiaomi, most streaming boxes)CleanYourTV: paste its prompt into Claude Code. It can switch off far more than the menus can, and every change has a one-line undo.
Samsung, Roku, Vizio, Hisense VIDAAcleanyour.tv/not-android: the privacy switches, step by step, with the remote.
LGThis post. The box at the bottom does the setup.

Start small. Seriously.

Level 1 · Tonight, about 15 minutes, no AI. Grab the remote and follow the “Rather do it yourself?” box above. The two Home Settings switches alone take the ads off your home screen.

Level 2 · When something’s off. Open Claude Code on a laptop on the same Wi-Fi and say: “Find my TV on the network and tell me what’s wrong with it. Don’t change anything. Ask me before you connect to anything.” Diagnosis only. That’s where my mystery was solved.

Level 3 · When you want it clean. Paste the box at the bottom of this post into Claude Code. It brings the rules with it: name the device, screenshot every press, ask before deleting, and keep a list of how to undo everything.

Your move

Start a conversation →

Coming next in Applied AI: what it takes to send this back to the open-source project that started it.

Until next time,
Harsh

Sources: CleanYourTV · cleanyour.tv/not-android · Anselmi et al., “Watching TV with the Second-Party”, IMC 2024 · Home Assistant’s LG webOS integration

For your AI: clean up my LG TV

You don’t need to read this part. It’s written for Claude Code (or whatever coding agent you use).

Open Claude Code on a computer on the same Wi-Fi as your TV, and paste everything in the box below. It will find the TV, ask before every step that matters, and keep a list of how to undo everything.

ai-holds-the-remote-setup.md Open as a file
# Clean up my LG TV, safely (from harshrana.com, Applied AI No. 02)

You are a coding agent on a computer on the same Wi-Fi as the person's LG TV
(webOS). You will diagnose it and, only with their OK, clean it up: delete
preloaded apps they never chose, hide built-ins that can't be deleted, and turn
off the home-screen ads. You do this through LG's own remote-control connection,
exactly as if you were pressing buttons on the remote. No root, no Developer
Mode, no exploits, no network or DNS changes. Go slowly and explain in plain words.

If the TV turns out to be Android TV or Google TV, stop and use
https://github.com/Gathin23/cleanyourtv (its PROMPT.md) instead. For Samsung,
Roku, Vizio or Hisense VIDAA, send them to https://cleanyour.tv/not-android.

## Step 1: Interview (ask, then wait)
1. What's wrong, in their words? (ads, apps won't install, slow, cluttered)
2. How many TVs are in the house? Which one is this, by room and brand?
3. Which apps does the household actually use? Which must never be touched?
4. Do they use the TV's voice assistant, Live TV / antenna, or casting?
5. Anything off-limits? (default: no network, DNS, or account changes beyond
   optional marketing consents)

## Step 2: Find the TV, and name it before touching it
Look for it read-only: the ARP table, and mDNS (`_googlecast._tcp` gives the
model and a friendly name). If there is more than one TV, list each with its
model and name, and ask which one. Never send anything to a TV they didn't
pick. Say the model back to them before you pair.

## Step 3: Pair once, with their consent
Use LG's SSAP websocket on port 3001 (TLS; port 3000 may reset). A maintained
client like the Python `aiowebostv` package works. Tell them a prompt is about
to appear on the TV and wait for them to accept it. Store the pairing key in a
local file and tell them where it is and how to remove it later.
Practical notes from a 2025 set (webOS 25):
- Screenshots: `ssap://tv/executeOneShot` with
  `{"path": "/tmp/capture.png", "method": "DISPLAY", "format": "PNG"}` returns
  an `imageUri` you can download (TLS, self-signed).
- Keys: request `com.webos.service.networkinput/getPointerInputSocket`, open the
  returned `wss://` path, and send `type:button\nname:RIGHT\n\n` (UP, DOWN,
  LEFT, RIGHT, ENTER, BACK, HOME, EXIT).
- Text: `com.webos.service.ime/insertText` with `{"text": "...", "replace": 0}`.
- Apps: `com.webos.applicationManager/listApps` (look at `version`,
  `removable`, `visible`, `installTime`).
- Wait about 2 seconds after connecting before the first key, and about 1
  second between keys. Fast bursts get dropped silently.
- Some reads return "401 insufficient permissions". That's expected. Say so
  and move on.

## Step 4: Look before you touch (read-only diagnosis)
Report back before changing anything:
- Model, region, webOS version (Settings > Support > TV Information).
- Free app storage (shown on any app's page in the Apps store).
- The notification bell: install failures and their times.
- The app list: which apps are real and which are placeholder stubs (version
  0.0.x; the Apps store shows "Install" for them under ⋮ > Manage App).
Explain what you found in plain words, with your confidence, and what you'd
suggest. Wait for their OK.

## Step 5: Drive with a screenshot before every OK
- Move, screenshot, check what's highlighted, then press OK. Never press OK
  on a screen you haven't just looked at.
- Never select: Reset to Initial Settings, Sign Out, Terminate My Account,
  Delete Viewing Information, Home/Store Mode, Software Update, anything under
  Network. If one is highlighted, move away.
- When a confirmation dialog appears, read the item's name in it before
  choosing Delete. If it names the wrong thing, choose Cancel.

## Step 6: Decide what goes, with them
- Before: save the app list (titles, ids, versions) to a local file.
- A fair test for "preloaded": the LG account's app history (Apps store > ⋮ >
  Manage App) lists what the household has chosen before. Propose deleting
  only removable apps that are not in that history and not on their keep list.
  Show the list and wait for a yes.
- Built-ins that can't be deleted can be hidden (eye icon). Propose, then hide.
- Delete and hide from Home > end of the app row > Edit App List.
- After: save the app list again and show the before/after difference.

## Step 7: Turn off the ads (settings they can see)
On webOS 25 these were under Settings > General > System > Additional Settings:
Home Settings > Home Promotion and Content Recommendation; Screen Saver
Settings > Screen Saver Promotion; Live Plus. Also General > AI Service >
AI Recommendation > Smart Tips. Menus move between years: find each by
reading the screen, not by counting key presses. Optional LG account consents
(marketing, biometric) are their call. Ask first. Leave payment terms on.
If you can't find a setting, say so. Don't guess.

## Step 8: Leave a way back, and hand back the keys
Give them a plain list of every change and how to undo it: reinstall from
the Apps store, Edit App List > Reset Editing Apps to unhide, flip the
switches back. Mention that firmware updates can turn things back on.
Return the TV to its Home screen. Tell them where the pairing key is, and that
deleting it (and removing the computer from the TV's connected devices) ends
the pairing.

## Teach as you go
- Before pressing OK, say what's highlighted and what's one row above and below.
- Flag anything that can't be undone before doing it.
- Point out what surprised you, e.g. placeholder apps, settings that were
  already off.
- Offer a simple picture of how you're talking to the TV if they ask.

## Always
- Keep screenshots local. Settings screens show the account email, serial
  number and MAC address; never paste or upload those.
- One TV, one change at a time, a screenshot after each.
- Plain language. Ask before anything the household might use.