Repository navigation
Agent Prompt
austin edited this page Nov 12, 2026
·
1 revision
Your server is running. Now it needs channels. You can make them by hand (Making Channels), or you can hand the job to an AI coding agent like Claude Code. This page has a prompt you paste into the agent. It tells the agent how the server works and how you want the job done.
- Look at your videos and the channels you already have.
- Show you a plan: which channels, what plays when.
- Wait for you to say yes. Nothing changes before that.
- Build the channels through the dashboard, the same way you would on the Stations and Lists & files pages.
- Check each channel and tell you what it made.
Your videos are never touched. Everything the agent makes is links and settings.
- The server is set up and the dashboard opens (Server Setup).
- You have set the dashboard password. The agent needs it to make channels. Don't paste it into the chat: the prompt tells the agent to ask for it a safer way.
- Back up the
datafolder (Backups). If you don't like what the agent built, you can put the old one back.
Fill in the three lines under My setup, then paste the whole thing into the agent.
You're helping me build TV channels on my Station Wrapper 43 server (a Docker
container that runs FieldStation42 and adds a web dashboard and an IPTV tuner).
It is already installed and running. I want a lineup of channels that feel like
real TV, made from the videos I already have.
My setup:
- Dashboard address: http://<HOST>:5004
- How you can reach it: <e.g. "you're running on the server itself" / "over SSH as user@host" / "only over HTTP">
- What I'd like: <e.g. "a cartoon channel, a sitcom channel, a movie channel and a sci-fi channel", or "you suggest">
How I want you to work, in this order:
1. Look before you plan. Read the project's docs first: QUICKSTART.md and
docs/REFERENCE.md at https://github.com/austincnunn/station-wrapper-43
(the sections on the Stations page, the Files page and breaks matter most).
Then find out what I actually have: GET /lineup.json for the channels that
exist, GET /api/system/status for the server's health, and the Files page
API (under /api/files/) to browse my media folders. Count shows, seasons and
movies per folder so the plan fits the library.
2. Propose a lineup and stop. Show me a table: channel number, name, what plays
and when (blocks by time of day), where the videos come from, breaks or no
breaks. Say what you left out and why (a show with three episodes makes a
poor channel). Wait for my yes before you create or change anything.
3. Build it through the dashboard's API, the same calls its pages make:
/api/files/* makes lists (a list is a folder of links to my videos; adding a
show with "follow" on means new episodes join by themselves),
/api/stations/save creates or edits a station, /api/stations/build builds
its catalog and schedule. You don't know the request bodies in advance, so
learn them rather than guess: read the page scripts the dashboard serves
(station.js, stations.js, files.js under the site root) and GET an existing
station to see the shape. Build one channel fully and check it before doing
the rest, so a wrong assumption costs one channel and not ten.
4. Check your work. For each channel: it appears in /lineup.json, its schedule
for today and tomorrow (/api/schedule) has no long gaps or missing files,
and /api/system/status reports nothing new. Refresh the guide with
GET /xmltv.xml?refresh. Then tell me plainly what was made, what you could
not verify, and what I need to do in Jellyfin/Emby/Plex (they usually need a
guide refresh and sometimes a channel re-map after new channels appear).
Rules that matter here:
- My media is read-only and must stay untouched. Never rename, move, re-encode
or delete a video. Everything you make is links and settings.
- The management API needs my dashboard login. Don't ask me to paste the
password into this chat. Ask me to put it in an environment variable (or tell
me another way you'd prefer), log in with /api/auth/login, keep the session
cookie in memory only, and log out with /api/auth/logout when you finish.
- Before your first change, ask me to back up the server's data folder (or do
it yourself if you have shell access: copy data/config somewhere safe). Tell
me where the copy is.
- Don't delete or renumber channels that already exist unless I ask. The
Channel Guide and Test Pattern that came with the install can stay.
- Prefer the dashboard's own station form over hand-written FieldStation42
config files. Only write a config directly for something the form cannot
express, and tell me when you do, because the Stations page will then show
that station read-only.
- If something fails twice the same way, stop and show me the error instead of
trying variations.
Things that are easy to get wrong:
- A "loop" station plays only the videos at the top level of its folder, not
subfolders. For a channel built from show folders, use a standard station.
- One list per show keeps episodes in order and lets the same show appear on
more than one channel.
- A list only reaches the air after its station's catalog is built, and a new
station plays nothing until it has a schedule. Build after you save.
- The server keeps schedules topped up by itself (the schedule keeper), so you
only need to build the first few days.
- Commercial breaks need a list of short clips to draw from. If I have no such
folder, make the channels with no breaks and say so, rather than inventing one.
- A music channel (songs over a card) needs the station's media filter set to
mixed; the "music channel" template does this.
- Channel numbers: keep them in one tidy range and leave gaps for later.
If any part of my setup makes this impossible (you can't reach the dashboard,
the media folder is empty, the login fails), say so right away instead of
working around it.
- Read the plan before you say yes. An agent can misjudge a library, just like a person can. A show with three episodes makes a poor channel.
- Start small. Ask for two or three channels first. Ask for more once those look right.
- Tell it what you like. "A cartoon channel for the morning and a movie channel at night" gets a better plan than "you suggest".
- After new channels show up, Emby or Jellyfin needs a guide refresh. See Server Setup.
- Want just one channel, right now? The Make me a channel now button on the dashboard does that in one click, with no agent.
The same prompt is in the repo: docs/AGENT-PROMPT.md.
Guides
- Server Setup
- Making Channels (or let an AI agent do it)
- Client Mode Player (the easy way to a TV)
The manual way to a TV
Extras