Roadmap
What Couchdogs is for, then the milestones in rough order. Each milestone ends with something the owner can use on the TV.
Goals
- TV-box experience on HDMI. Turn on the TV, pick up the controller, you are on the home screen. Nothing on screen should ever require a keyboard.
- Same session everywhere. Any Moonlight client sees the same home screen and can join or resume the running session.
- Your apps, not every app. The home screen shows only what you installed. A store lists what is available (Plex, Jellyfin, YouTube, Steam, ES-DE, ...); pick once to install, then it lives on the home screen.
- Controller-first. A pairing screen for Bluetooth controllers; controllers that connect mid-session just work.
- Unbreakable session. No button on the TV leaves the box in a dead state (in the prototype, quitting Wolf UI on the TV left HDMI dead).
- Console defaults. One app full screen at a time; memory limits so one runaway app cannot freeze the host.
- Direct HDMI output. When the GPU has the TV attached, show frames directly instead of encode then decode on the same machine (better picture, less GPU load, a path to HDR and audio passthrough).
Non-goals
- Writing our own video encoder or the apps' own code; we use libavcodec and upstream apps, installed the way the Wildlife images do.
- Multi-host or Kubernetes deployments (Games on Whales' Fenrir covers that).
- A general desktop. Couchdogs is a console.
Anti-goals (a failure even if it technically works)
- A pile of host hacks only the author can maintain. Everything must be reproducible from this repo.
- Code copied without credit or against its licence.
- A rewrite that never reaches the TV: each replacement is checked on the TV before it ships (rollback is the host's backup, not a second path kept in the stack).
- Needing SSH to recover from a normal TV action (quitting an app, a controller disconnecting).
- Freezing the host's other services because a game misbehaved.
M0: The prototype as a stack
Turn the hand-made prototype (inventory in AGENTS.local.md) into a compose stack in this repo (ADR 0004): Wolf with a memory cap, the TV client image, app overlays, a .env.example. Recommended host setup (OOM killer, VM startup) is documented, not applied. Done when the owner's TV runs from docker compose up with the existing pairing and saves.
Status: done 2026-11-13. The owner's TV runs from the stack with its old pairing and saves; checked on the TV: picture, sound, a controller reconnecting mid-stream, a GameCube game with the pad, Back+Start back to ES-DE, the handheld joining the same session.
M1: Console compositor
Switch console apps (ES-DE first) from sway to Gamescope (ADR 0003). Done when emulators always open full screen with no window rules and no Dolphin special case. Also look at GameCube games running below full speed (seen on the owner's box since the prototype; game speed, not stream stutter).
Status: done 2026-11-13. Checked on the TV: GameCube games full screen, smooth, save state from the pad. Open: short breaks now and then (cause not yet known: emulation or stream), and the load-state hotkey is not yet checked. ES-DE runs under Gamescope with our own launch script (ADR 0005). GameCube speed came from Dolphin settings: the overlay now sets dual core, Vulkan, background shader compile and 2x resolution, plus per-game files for games that need single core (FIFA Street 2). Save and load state are on the pad (Back+RT, Back+LT).
M2: Unbreakable TV session
Session supervisor: autostart the TV client, recover from any app quitting, clean session quit before restart. Home Assistant button to restart the TV session. Done when no TV action needs SSH.
Status: built 2026-11-13 (ADR 0006) and checked on the host (Wolf restart, an outside quit, a TV restart each ended with a new stream). Removed 2026-11-14 with the rest of the Wolf-driven TV path (owner: Wolf is being replaced, not kept as a fallback); in M5 restart policies and the runner keep the TV up, and the runner serves the Home Assistant button.
M3: Shell v1
Controller-driven home screen with installed apps only, store backed by the Wildlife catalogue, pairing screen for Bluetooth pads. Replaces Wolf UI for the TV and every Moonlight client. A web page shown by our own Servo kiosk (ADR 0010), in three steps:
- Home screen: the apps of profile
user, start or rejoin one, stop it. - Store: add apps from the Wildlife catalogue through
wolf-config(Wolf's own add-app API loses video until a restart). - Pairing: Bluetooth pads and remotes through the host's BlueZ, with remotes, keyboards, volume and typing (ADR 0038; built: the LAN page's Type box, host keyboards, mice and remotes into the front app, a remote's volume keys with the volume pill, the Settings Bluetooth card with auto-pair when nothing is connected, a remote's number pad typing multi-tap letters, the header input indicator with batteries (and the dim pad with auto-pair words on the TV), the wizard's controller page, and the LAN page's Bluetooth list).
Status: steps 1 and 2 are done as M5 and M7 (the shell runs on the TV's Gamescope in our Servo kiosk and asks our runner for apps; the Store replaced the Wildlife-catalogue plan; the Wolf app and the Firefox fallback left the stack, owner, 2026-11-14). Remote devices get a shell of their own with our own server (M6). Step 3 is built (ADR 0038, all five parts, 2026-11-21) and on the owner's host; not yet checked on the TV with a real remote.
M4: Direct HDMI output
Show the TV's game straight on HDMI instead of encoding and decoding it on the same machine. Measure picture quality, latency and GPU load against the current path. Then HDR.
Status: on the owner's TV since 2026-11-14 (TV_MODE=direct); owner: same feel as Moonlight, much crisper. Superseded by Gamescope on the TV (ADR 0009, M5) and removed from the stack 2026-11-14 (owner: no fallback to Wolf); the code is in git history. History: approach chosen 2026-11-13: the TV container takes frames from Wolf over a socket and draws them itself; no Wolf code change. Upstream draft for gst-wayland-display ready, not posted. A test session on the host carried 1080p60 frames to another process with no drops (TV untouched). Built 2026-11-13: TV_MODE=direct in the TV container (session, receiver, pad bridge), off by default. On the host without the TV: Wolf's API created a virtual pad from bridge packets, and a direct-mode container with test sinks received Wolf UI at 60 fps. Next: the TV itself, which needs the owner. Audio passthrough is out of reach (apps output PCM).
M5: One compositor on the TV
Gamescope drives HDMI and hosts the shell and apps (ADR 0009); our runner starts apps from recipes and one pad daemon owns the pads (ADR 0013). ES-DE and one media app first; the Home button always returns to the shell. Wolf served remote devices until M6 replaced it. Design: own-core design.
Status: done 2026-11-15, on the owner's TV since 2026-11-14. Checked on the TV: picture, sound, pads, ES-DE and Plex launch and stop, Guide to Home (every logged press). Still to watch on the TV: the full button layout in ES-DE, the pad after a padd restart, the new look. The old Wolf-driven TV path left the stack 2026-11-14 (owner: "we are replacing wolf (by building with parts of it but not its entirety), not leaving it as a fallback"). Plex keeps its sandbox with seccomp, AppArmor and system paths unconfined (owner: no gain in removing it). Carried open: why the page sees one press twice (the page drops a repeat within 150 ms), a CPU spin in Gamescope's first 15 to 20 s, stale pad nodes after a padd crash (a clean stop removes them).
M6: Own Moonlight server
Our server from Wolf's parts (ADR 0012): pairing PIN typed with the pad on the TV, its own screen per device, joining any screen with a second player (the TV can join a game the handheld started). Wolf's pairings are imported. Wolf leaves the stack.
Status: M6a is built and verified on the owner's host (2026-11-15): encode selftest at 1080p60 (HEVC 60 fps, H.264 59), a throwaway device streamed at 60 fps with audio, and with Wolf stopped a real handheld connected without a PIN (Wolf's pairings imported), got its own screen in HEVC at 1080p60, and leaving without Quit released the screen. Wolf left the stack 2026-11-15: the server is a plain service, wolf and wolf-config are gone, and up -d --remove-orphans removes their containers on an update (rollback is the host backup). Rolled out on the owner's host the same day. M6b (pairing from the TV) is built: a device waiting to pair shows on the TV's home screen and its PIN is typed with the pad; two devices waiting at once each get their own PIN, and a device is named by its reverse DNS name. Not yet checked on the TV. Pairing never needs a TV (owner, 2026-11-16: the TV is the goal, but a host without one must still work): ./couchdogs pair lists the waiting devices and sends a PIN from a shell on the host. M6c step 1 (a device joins the TV) is built, not yet rolled out: the device's shell has a "Join the TV" tile, its stream switches to the TV's picture and sound within a second, its pad becomes the next free player on the TV, and Home on that pad brings only that device back. M6c step 2 (the TV joins a device) is built, not yet rolled out: the TV's home lists each device screen that has a picture by its paired name, A shows it on the TV with its sound through a viewer app (ADR 0018, no encode), the TV's pads play there as the next free players, and Home on a TV pad brings the TV back. M6c step 3 (shared screens) was cut down by ADR 0027 (2026-11-17): each app runs once in the household and its card offers only "Join
Found 2026-11-17: no device was ever offered "Join the TV" on the owner's host. The runner's check that the TV has a picture ran pw-cli in the TV screen's container without XDG_RUNTIME_DIR (the container has none; only its entry process exports it), so PipeWire answered "Host is down" and the TV always looked off. Fixed in the runner.
The last M6c item (a screen can stop a watcher) is built, not yet checked on the TV: a screen's own Join page now lists who watches it ("Watching your screen", below the screens), and A on an entry offers "Stop sharing", so the watched screen ends a watch without anyone walking to the other screen (the stopped watcher goes back to its own screen and is told "
Also built in M6, with tests: touch, mouse and keyboard from a device into its screen, Steam's nested display included (ADR 0028); device names picked at pairing, with a Settings page to rename and forget (ADR 0029); the handheld's Home as Back held alone for 1 s, one shared pad for Chromium apps (pads: one, ADR 0026) and a pad's "add" sent again 3 s later so a shell sees it; the TV's "On
M7: Store and first-run wizard
Catalogue of tested recipes (ES-DE, Steam Big Picture, Plex HTPC, Jellyfin Desktop, YouTube through VacuumTube), install with progress and memory caps, a wizard on first start that asks what the household uses. Replaces M3 steps 2 and 3.
Pairing from a phone or laptop browser on the LAN, behind a sign-in code a screen shows: the second way to pair without a TV, for households that never open a shell.
Status: M7a (the store) is rolled out and used on the owner's host since 2026-11-16: the TV home and every device's home end with a Store tile; the Store lists the catalogue in Watch and Play rows, A installs or updates an app with progress on its card, Options removes one (its settings and saves stay), and Home lists only installed apps. The runner builds each image on the host with the host's default buildx builder, one at a time, and refuses when the disk is nearly full (ADR 0020, amended). Installs, updates and removal ran on the host through the Store.
M7b (new apps) is built: YouTube (VacuumTube), Jellyfin Desktop and Steam Big Picture have images on our base and Store recipes. Steam's Guide passes through as a tap; a 1 s hold goes Home. Steam runs in its own nested Gamescope (ADR 0021). Tried on the host in a throwaway headless screen: YouTube's TV interface, Jellyfin's server address page and Steam's sign-in page, each full screen. Not yet checked: pads, sound, sign-in, a game.
M7c (wizard and LAN page) is rolled out with the install-folder move (2026-11-16), but the wizard has never been seen: it only opens on a host with no Store app installed, and the owner's host has apps: a fresh install opens a first-run wizard on the first home, the TV's or a paired device's (pick what the household watches and plays, install), and a phone or laptop on the LAN can open a page on port 8970 behind a six-digit sign-in code to pair a Moonlight device, use the store and sign out every browser. Every home's Settings shows the code and a QR of the page's address while its card is open (a scan signs the phone in at once; a sign-in spends the code it used, so every card showing it closes), and ./couchdogs code prints one from a host shell for a household with no screen; the code changes every minute and is dead once nothing shows it (ADR 0031, which replaced ADR 0022's household password). Not checked on a TV or a phone.
M7d (NVIDIA GPUs) is built, not run on an NVIDIA GPU (ADR 0023): ./couchdogs setup detects the vendor, the compose override and the runner ask the NVIDIA Container Toolkit for the GPU, and the server encodes with NVENC. Tests cover the settings, the compose override, the runner's container bodies and setup's output only, and the NVENC options were only applied against a conda-forge FFmpeg, not the Debian one the server image ships (stack/server/test.sh on a Docker host settles that).
M7e (store from a companion repo) is rolled out (ADR 0030, plan): the apps' recipes, icons and image folders have moved to the private couchdogs-store repo, whose CI builds, pushes and signs each image and one signed index. The runner reads recipes only from that index's verified cache, pulls an app's image by digest after checking its signature and its couchdogs.source label, and builds on the host only the apps that may not be published (Plex, Steam), from the folder the index carried. The Store says which of the three household lines applies when it cannot fetch (no token, unreachable, signature refused) and keeps the last good list; ./couchdogs store-token saves the read-only token from stdin. The host e2e (throwaway registry, cosign 3.1.4, oras) passed, and on the host the runner verified the store repo's first signed index against the shipped key and lists its apps.
Install folder and data folders
Anyone can install from a folder with prebuilt images, and all state is plain folders under one data root (ADR 0024, design).
Status: merged and used (the runner and server read DATA_DIR and LIBRARY_DIR): install.sh, ./couchdogs setup asking a data and a library folder, per-folder overrides, images named by prefix and tag, a CI workflow that publishes them on v* tags, and ./couchdogs import-wolf. Left: the first release tag, which publishes the images (the repository and packages must be public before install.sh and the pulls work). Store apps are pulled from the registry now (M7e).
An install with no TV (ADR 0032): setup detects that nothing is connected, asks, writes TV=off and still picks the GPU by its render node; compose.no-tv.yml leaves screen-tv and the TV's shell out, the runner skips the blank-home watchdog, the TV picture check and every join to the TV (its own home answers 404), and padd ignores a pad plugged into the host. The household (store, wizard, devices, sign-in code, settings) works from a device's home; with a TV nothing changes (TV defaults to on). Built with tests on both paths; not yet run on a real host without a TV. A first run's wizard and the household's pages open from any device's home.
M8: Moonlight that opens into Couchdogs
Built. The server announces itself over mDNS and its serverinfo marks it with a <Couchdogs> element before pairing, so a Moonlight client can tell a Couchdogs host from a plain Sunshine or Wolf one without pairing (ADR 0039's server parts, which stand). The M8 launcher that drove stock Moonlight's command line left the stack in M8b (ADR 0039 is superseded in part by 0040); launcher-v0.1.0 stays an old release.
M8b: the Couchdogs client on every platform
Built (ADR 0040, design). The client in client/ is moonlight-qt and moonlight-android plus a small patch series: it lists Couchdogs servers first, pairs with the PIN the TV shows, and opens the server's "Couchdogs" app on every later start (cancellable while it connects). One install per platform, beside stock Moonlight, which still reaches the server and other hosts. CI (.github/workflows/client.yml) builds Couchdogs-windows-x64.zip, Couchdogs-macos.dmg, Couchdogs-linux-x86_64.AppImage, Couchdogs-android.apk and Couchdogs-client-source.tar.gz (the exact build's source, attached so the GPLv3 offer travels with the binaries), and a client-v* tag publishes them; the LAN page links one release for all four. client-v0.1.0 is the first signed release (2026-11-22). Left to the owner: the device checks from the design's "Checks that need the owner": Android phone, Android TV, macOS laptop, ARM Android handheld.
Before going public
- couchdogs.com registered (2026-11-24). Still to do: check the name in USPTO and EUIPO (ADR 0002).
- ~~Pick a license~~: GPL-3.0-or-later here, MIT for the store (ADR 0043).
- ~~Go public~~ (2026-11-28): both repos and every GHCR package are public; the website is live at couchdogs.com (ADR 0044; GitHub Pages, DNS only records at Cloudflare, HTTPS enforced).
- ~~Set up the GitHub Sponsors profile~~ (live 2026-11-28) that
.github/FUNDING.ymlnames; still to do: tick Settings > Features > Sponsorships in both repos so the Sponsor button shows. - Upload the social previews (GitHub has no API for it):
brand/couchdogs-social.pnghere,.github/social-preview.pngin the store, under Settings > General > Social preview. - Grep tracked files and history for host details (see AGENTS.md rule 5).
Needs a tester (not blocking)
- ADR 0023, NVIDIA: built, never run on an NVIDIA card. Run
stack/server/test.shand a stream on an NVIDIA host. - ADR 0032, install without a TV: built, never installed on a host without a TV.
- ADR 0038, remotes: built, untested with a real remote until the owner has one.
- Windows server through WSL2 (streams to devices only): parked on branch
wsl2(ADR 0042 draft; encode works, Gamescope on dozen crashes at capture).
Open questions
- Does wolf-den already do part of the store (adding apps to Wolf's config)? Reuse before building.
- ~~Gamescope with ES-DE launching emulators as child processes~~: yes, verified in M1.
- How does Plex HTPC look through the current encode/decode path vs a Shield (HDR, audio passthrough)?
- ~~Shell tech~~: our Servo kiosk (ADR 0010).
- ~~License for Couchdogs itself~~: GPL-3.0-or-later (ADR 0043).
- Emulator settings with a controller only. ES-DE starts emulators without their settings window (Dolphin with
-b), so settings such as Dolphin's dual core cannot be changed from the couch; today they need SSH and a config edit while the emulator is closed. Options: ship good defaults per emulator in the overlays, a controller hotkey that opens the emulator's own settings, or a settings page in the shell (M3).