Skip to main content
A person on a couch points a remote at a large TV whose home screen shows one calm lake picture above a single row of seven plain app tiles, with contact sheets and a long paper log on the coffee table.

AI10 min read

My TV Had Ads. I Rebuilt Its Home Screen with AI in a Day.

A 2019 Sony TV, a home screen full of ads, and one day with Claude Code: an inventory before any change, a 4K picture launcher with tests, a log with a way back, and every AI mistake shown on the screen.

This is what our living room TV showed every time someone pressed Home: a sponsored banner for a show labeled "Free with ads", a Shop tab, and rows of Free Live TV, Top Selling Movies, and Trending. The apps we actually use sat in one strip between them. It is a 2019 Sony Bravia, 75 inches, running Android TV 10.

Google's home screen on the Sony TV, with a sponsored banner, a Shop tab and promoted rows.

This is what it shows now. Seven apps in the order we use them, a 4K photograph behind them, a small clock in the corner. Everything else is one press down. After 9 PM the pictures switch to city lights and northern lights, and when the TV sits idle the same pictures run as the screensaver.

The new home screen: a frosted rosebud behind seven app tiles and a small clock.

Photo: "Englische Rose The Reeve Raureif" by Ermell, CC BY-SA 4.0, via Wikimedia Commons.

If that looks familiar, you may have seen the tweet. On October 17, a developer posted a before and after of their parents' TV, cleaned up by Claude Code over Wi-Fi. The post reached 7.4 million views, by its author's count, and the open-source project that grew out of it, cleanyourtv, had passed 31,000 stars on GitHub by October 24. It takes the same basic route we did: the TV's debugging bridge over Wi-Fi, Google's home screen switched off, and a new launcher in its place. Its prompt, the author says, does the job in about fifteen minutes, and it already has a tested list for the same Sony Bravia family as ours. We didn't use it; I looked at it properly the day after our build was done.

Ours took a day. Claude Code, Anthropic's coding agent, worked on the TV from my Mac over the home network from the morning of October 23 until 8:40 that night, with plenty of breaks while it waited on me. I didn't write the code. I made the calls on what the TV should look like and what was worth doing, and I did the hands-on parts: switching on debugging at the TV, approving my Mac, running the cleanup script and the commands that changed the home screen, and ordering the apps with the remote.

The extra hours went into:

  • putting the pictures on the TV's 4K video layer instead of its 1080p interface
  • a home screen app with a written plan and tests
  • pictures I chose by looking at every one
  • a lag we timed and removed
  • two ideas we turned down

Every number below comes from the project's own log, which the AI kept as it went. The app's code is in a private repository, so the timings are the project's own measurements; nobody outside can rerun them.

Before Changing Anything, It Took Inventory

The first thing it did was read the TV, changing nothing: 206 packages, 28 visible apps, and storage 84% full with 1 GB free. The idle setting was "never," so the screen would never switch itself off; the screensaver just ran for as long as the TV was on.

The first change came a few minutes later: one script that removed 16 apps and components, among them Plex, ExpressVPN, Play Games, and Sony's promotion apps. I approved it, ExpressVPN included. Ten of the sixteen were built-in apps, removed for the TV's user and back with one command if we ever want them. The other six were apps someone had installed, and those were deleted outright; the only undo is reinstalling them.

Everything after that went into a running log with the time, the result, and the way back, plus the numbers wherever they mattered. That log is the reason I was comfortable letting it keep going.

The First Fix Was Someone Else's App

By late morning a free home screen from the Play Store had replaced Google's, which is switched off rather than deleted, so one command brings it back. The ads were gone. Showing our own pictures on it needed a $7 upgrade, and we never bought it, because of what the AI found next.

When it started planning a home screen of our own, it read the TV's display settings and found the limit every ordinary launcher lives with: Android draws the home screen at 1920x1080 on this TV, even though the panel is 4K. The same readout showed the TV's video decoders handle 4K, with HDR. So the design became: encode each photograph as a 3840x2160 video frame on the video layer, and draw only the app tiles and the clock on the interface above it. The pictures are shown the way a movie is, at the panel's full resolution.

That is when this stopped being a settings job and became a small software project, with its own repository, a written plan before any code, tests, and checks that run on every change. Ten merged pull requests later it was version 0.7.0.

In the afternoon, two privacy and power fixes went in. Samba TV, a service that identifies what is on screen for ad targeting, was installed and had been launched; I don't know whether this TV had ever opted in, and it's switched off now. And the TV now turns itself off after an hour idle.

Choosing the Pictures, One Contact Sheet at a Time

The pictures come from Wikimedia Commons' featured pictures. The AI's first night set was all astronomy. Nobody asked for space; its own plan had offered a night sky as an example, and it took that as the answer. I don't want space on my TV at all. I want nature, cities, and towns.

This is where the contact sheets earned their place. Instead of describing the pictures, it laid every candidate out on one image so I could see all of them at once and veto by number. The sheets caught things its filters missed: a planet size chart that passed because its title had no banned word, two copies of the same nebula, and a mosaic with an empty black corner. Each one became a rule with a test.

Twenty-four of the day pictures on one contact sheet.

Twenty-four of the day pictures, all Wikimedia Commons featured pictures.

The sheets also exposed two mistakes of the AI's own. Every veto reshuffled the whole set, so each rebuild brought in pictures nobody had seen, and getting to a set I liked took five rebuilds. It changed the order so that removing one picture leaves the other 59 where they were. And in one round it miscounted the grid and vetoed two pictures I liked, a waterfall in Iceland and the cliffs at Étretat. It caught that by reading the titles back to me before rebuilding, and the veto step now prints the titles every time.

The result is 60 day pictures and 40 night pictures, stored on the TV itself, with no computer or internet needed to show them.

Then I Sat on the Couch and Complained

The first version on the TV, with tiles so large only four of seven apps fit.

Photo: Ouirgane, Morocco, by Timothy A, CC BY-SA 4.0, via Wikimedia Commons.

The first version on the real TV showed only four of the seven apps. The tiles were enormous. The AI had sized everything for a screen 1920 units wide, but at this TV's pixel density the interface is 960 units wide. It had the 1080p number in hand and never checked the density. Now it reads both before sizing anything.

Then I told it there was a lag of a second or two before the picture appeared when I pressed Home. It didn't guess. A timed log put the wait at about 2.5 seconds and found four causes: reloading a picture that was already loaded, a full second spent fading to black over a screen that was already black, the video decoder starting, and the fade in. None of it was the choice of picture. After the fix, the picture is on screen 0.4 seconds after Home.

Last, the clock was hard to read against bright skies. The fix is a soft shade behind that corner, about as dark as a subtitle box, and it was checked by measuring the same picture with the shade on and off.

A few smaller things went in that evening. The Google Play button on the remote, which I never use, now opens YouTube. Subtitles are smaller and sit on a see-through box in the apps that follow the TV's caption setting; Max does, Netflix keeps its own. And 1.3 GB of junk came off the TV, mostly Sony's in-store demo video, which left 2.9 GB free.

The screensaver: a High Atlas village in Morocco under a blue sky, with a small clock.

Photo: Arhbalou, High Atlas, Morocco, by Timothy A, CC BY-SA 4.0, via Wikimedia Commons.

What We Reversed and Left Alone

Two ideas got researched and dropped. Faster menu animations would only have sped up the system menus, not the apps, so the gain was too small to bother with. For blocking ads at the network level, the two options we looked at were $99.99 a year for our router's paid tier or a free filter on the TV alone, which the AI judged likely to break some apps. Neither was worth it.

One change got reversed. The AI switched off a built-in web engine that looked unused, and Sony's AirPlay service crashed 154 times in about two minutes without it. It turned the engine back on and wrote down why it stays.

Some of what came off is worth knowing about if you try this: the voice assistant and Chromecast are both switched off on our TV. Your house may want them.

At the end of every session, the debugging bridge on the TV goes back off. An open debugging port on the home network is one more way in, and we only need it while we're working.

Three Things That Made It Work

Most of what I see people post about AI is generated content: images, posts, slide decks. This day was different. The AI changed a real device in my house and wrote software that runs on it, and every time it was wrong, the TV showed it.

The 960-unit mistake is the one I keep thinking about. The AI had the right number for the screen and never measured the other one that mattered, and the first look at the real TV showed it. The good calls that day, the 4K design and the lag fix, came from reading the TV first. The bad ones came from assumptions.

The five rebuilds of the picture set taught the second thing: a process you repeat has to be stable, or each round undoes the last. Once removing a picture stopped reshuffling the other 59, each veto changed only the picture I vetoed.

And the AirPlay crash loop taught the third. Nearly every change that day could be undone with one written-down command, so when switching off the web engine broke AirPlay, the fix was that one command. The six apps that were deleted outright were the only exception, and I approved each of them by name.

If you want to try this on a TV, the quickest start is cleanyourtv, which collects tested lists for about 280 models, by the project's count. To go further, pick one device you own that annoys you, switch on its developer options, and ask an AI agent to inventory it and change nothing until you have read what it found. Keep anything that belongs to your employer, or other devices you don't own, out of it unless you have permission.

Where It Stands Now

This is the TV at 3:34 on Saturday afternoon, the day after: Lac du Salagou in the south of France behind the same seven apps, Netflix in focus, the clock in the corner. Nothing on the screen is trying to sell anything.

One more change went in earlier that afternoon, and it came from the fifteen-minute project. cleanyourtv's list for our Sony family turned up 13 packages we had left on: three Sony usage-data services and four bug and log reporters, plus six remote-start, account, professional-mode, and assistant leftovers. None of them had been running. They're off now, each with its undo written down. After a restart, each of the seven apps opened and the log recorded no crashes. The memory difference was within noise; the gain is seven fewer usage-data and bug-report services on the TV.

The TV home screen the day after: a lake below a red hill under a cloudy sky, seven app tiles with Netflix in focus, and a small clock.

Photo: "Lac du Salagou" by Christian Ferrer, CC BY 4.0, via Wikimedia Commons.

I build with AI every day at Steel Motion: software, applications, and course content. One of my current projects is building a certification-training platform, which now has four courses (Security+, CySA+, CISSP, and AWS Solutions Architect), all made and checked with the same habits as this project.

Measure first, keep a way back, and keep the judgment calls human.

First published on steelmotionllc.com.

  1. Some teams now let AI write and review code no person reads. The research on models checking models, and the failures already on record, point to the same answer: the check that holds is one the model cannot rewrite.

    Topic
    AI
    Reading time
    26 min read
    Length
    5,400 words
    Structure
    12 sections
    Published
  2. AI tools like Claude Code and Codex are making coding conversational, turning plain language into working software and opening software creation to anyone with imagination.

    Topic
    AI
    Reading time
    22 min read
    Length
    4,400 words
    Structure
    8 sections
    Published
  3. Digital X.0, Morocco's announced digital bill, has no text on record. What applies to AI now: Laws 09-08 and 05-20 and, for EU-facing systems, the EU AI Act.

    Topic
    AI
    Reading time
    26 min read
    Length
    6,000 words
    Structure
    8 sections
    Published