AI BasicsClaude CodeSmart TVOpen source

People Are Using Claude Code to Strip the Ads Out of Their TVs. How It Works, and Where It Goes Wrong

CleanYourTV, a set of scripts plus one prompt for an AI coding agent, became GitHub's top trending project in late October. It turns off ad and tracking apps on Android and Google TVs and swaps in a plain home screen. We cover the projects, the steps, the risks, and why the way they are built is a good model for any AI agent you let near real equipment.

Written by

Jorge Rosal

Founder, JAR Business Systems

Last updated

October 30, 2026

Reading time

8 min read

Flat screen TV on a wooden shelf unit between a bookcase and a door

Short answer

Projects such as CleanYourTV, TV Detox and tv-home let an AI coding agent like Claude Code or Codex connect to an Android TV or Google TV over Wi-Fi using Android's debug bridge, turn off preinstalled ad, tracking and bloat apps, and install a simple home screen. They disable apps rather than uninstall them, back up first and include a restore script. They do not work on Samsung, LG, Roku or Vizio TVs. Risks include boot loops on Google TV, firmware updates undoing changes, and an unencrypted debug port if you leave debugging switched on.

Most of what we write about is business software. This one started in living rooms, but it is the clearest public example we have seen this year of an AI agent doing a risky job safely, and a few clients have already asked about the TVs in their offices and waiting rooms.

What happened

On October 17 a project called CleanYourTV launched on GitHub. It is a small set of scripts plus a prompt you paste into an AI coding agent such as Claude Code, Codex or Gemini CLI. The agent connects to an Android TV or Google TV on your Wi-Fi, turns off the preinstalled ad, tracking and promotional apps, and installs a plain home screen. It was the top trending repository on GitHub for the week of October 19 to 25 and passed 50,000 stars within two weeks. Its community lists now cover hundreds of TV models from more than a hundred brands.

Similar projects followed or ran alongside it:

  • TV Detox: an ad-free home screen using about 30 MB of memory, a protected list of essential apps the agent never touches, and an undo script. Tested on TCL, OnePlus and Google TV 14 sets.
  • tv-home: one prompt for Claude Code, with a manual route for macOS. On the author's 2 GB TCL Google TV it disabled 25 apps and cut the home screen's memory use from 192 MB to 83 MB.
Before and after: a Google TV home screen with a sponsored hero banner and a 192 MB launcher, next to a clean dock of five apps over a mountain lake wallpaper using 83 MB.
Before and after from TV Home, one of the projects.

How it works

Android TVs include the same debug bridge, called ADB, that Android phones use. Once you switch on developer options and network debugging, a computer on the same Wi-Fi can list the TV's apps and turn them off. The AI agent is not doing anything you could not type yourself. What it adds is finding the TV, reading its long list of package names, working out which ones are ads and telemetry, and asking you about the uncertain ones.

The steps, as the projects describe them:

  1. Check your TV. In Settings, About, confirm it runs Android TV or Google TV. Samsung, LG, Roku, Vizio and Hisense VIDAA sets are not supported. Fire TV can be debloated but will not accept a new home screen.
  2. Turn on developer options and debugging on the TV, following the project's README.
  3. On a computer on the same Wi-Fi, install the listed requirements, download the project, open your AI agent inside the folder and paste the prompt from the README.
  4. Approve the connection when the TV asks whether to allow debugging from your computer.
  5. Let it back up first. The scripts record every installed app and setting before changing anything.
  6. Review what it proposes to turn off. Good prompts make the agent ask before touching anything you might use.
  7. Install the new home screen before disabling the old one. CleanYourTV warns that doing it in the other order can leave the Home button pointing at a factory test app.
  8. Turn debugging off when finished. Network ADB is unencrypted, and while it is on, other devices on the network can control the TV.

Where it goes wrong

Pocket-Lint's October 23 article is worth reading before you start. It reports one user whose TV ended up stuck on an Android recovery screen after the agent removed far more than intended, and Reddit users who found the code did not work on some Vizio and Roku models. The projects themselves list the known traps:

  • Boot loops on Google TV. Turning off Google TV's setup or home app has caused restart loops that needed a factory reset. TV Detox now leaves it on unless you explicitly opt in.
  • Firmware updates. An update can switch the disabled apps back on or reset the home screen. CleanYourTV includes a check script for this.
  • Lost settings. CleanYourTV notes that disabling the Google TV setup wizard carelessly can also delete a saved Wi-Fi network.
  • Warranty and support. CleanYourTV says plainly that changing TV software may affect them.

The failures share a cause: an agent that deleted instead of disabled, or acted before it had a way back.

Why this matters beyond TVs

Look at the design choices these projects made, because they are the same ones we use when an AI agent touches a client's systems:

  • Back up before acting. Every change is recorded first.
  • Prefer reversible actions. Disable, never uninstall. CleanYourTV's README: "Nothing is uninstalled, so a restore script can undo every step."
  • A protected list. TV Detox names the essentials the agent may never touch, such as Settings, the keyboard and HDMI inputs. A business agent should have the same list for its systems.
  • Ask before uncertain changes. The agent proposes; the owner decides.
  • Close the door afterwards. Debugging gets switched off, the way an agent's access should be removed when its job is done.

If you manage screens in an office, a lobby or a clinic waiting room, the safest choice is usually a commercial display or a signage player built for the job. If you do use these projects on a business TV, try them on one set first, keep the restore files somewhere other than the laptop you ran them from, and write down which TVs were changed. The next person to update their firmware will want to know. The pattern these projects use (a protected list, a confirmation before each change, an undo file) is the same one we recommend for any agent; see human-in-the-loop AI.

Frequently asked questions

Which TVs can be debloated this way?

Android TV and Google TV sets, such as many Sony, TCL, Hisense, Xiaomi and Philips models, plus Chromecast with Google TV and Nvidia Shield. Fire TV is only partly supported. Samsung (Tizen), LG (webOS), Roku and Vizio are not, because they do not offer Android's debug bridge.

Does it root the TV or void the warranty?

None of the main projects roots the TV. They use developer options and turn apps off rather than deleting them. CleanYourTV's README still warns that changing TV software may affect warranty or support, and every project is offered without warranty.

Can I undo it?

Yes, if you follow the projects' process. Each one records what it changed and ships a restore or undo script that re-enables the apps and returns the original home screen. A factory reset is the last resort if a TV gets stuck.

Do I need Claude Code to do this?

No. The agent runs the same commands you could type yourself, and CleanYourTV, TV Detox and tv-home all document a manual route. The agent's value is in finding the TV, reading its app list and asking you about each change.

Related posts

More practical reading on AI, automation, and the systems behind a growing business.

November 9, 2026 · 6 min read

Claude Code's "Don't Ask Again" Left Secrets in 1,122 Public GitHub Files. What to Check This Week

On November 5, security firm Apiiro showed that approving a command in Claude Code with "Yes, and don't ask again" can save a password into a project file that later gets published to GitHub. It counted 2,539 real secrets across 1,994 public repositories. If anyone writes code for your business with an AI coding agent, this post covers what happened and what to check.

November 9, 2026 · 8 min read

Grok Bot Starts at $30 a Month. How It Compares With ChatGPT, Claude, Gemini and Copilot

Six AI products now promise to do tasks for you in a browser: Grok Bot, ChatGPT Work, Claude in Chrome, Gemini Tasks, Microsoft's Researcher with Computer Use and Perplexity's Comet. They differ most on whether they can spend money, who has to switch them on, and where your data goes. This guide compares them for a non-technical owner and lays out a first week with one.

Consultation

Need help applying these ideas to your business?

The right next step depends on your current setup, customer flow, and operational bottlenecks.