Casting is a Laravel and Filament app that scores podcasts and episodes against my preferences. For a show I've added, an agent built on the Laravel AI SDK writes a guide: what the show is, a fit score out of 100, and the episodes to start with. An episode check reads one episode's transcript and returns its highlights, the stretches worth hearing. The episodes I plan to hear wait in the feed, which can play just the highlights.
Claude for guides and checks, ElevenLabs for speech-to-text
Stack
Laravel 13, Filament 5, Livewire 4, Laravel AI SDK, Pest
Updates
Guide picks in the feed
A show's guide picks three to five episodes to start with. Each pick has its own Add to feed button, and Add all to feed queues every pick I haven't heard.
Shows / Crumb Structure / Start hereScreenshot
How it's built:AddPicksToFeed holds one query: the guide's picks that are unheard and not already in the feed. The Add all to feed action queues its results, and the button shows only while the query returns any. Each pick's button is ToggleFeedAction, the Filament action the episode tables use.
Screenshots show demo data.
Suggested shows
Casting suggests up to ten podcasts that fit my preferences and aren't in my library, each with the reason it was picked. I can give it a focus in plain words, such as “disc golf interviews”. Any suggestion or search result can be researched before I add it: a second agent searches the web for the show and gives it a fit score.
How it's built:ShowSuggester is an agent with structured output and two tools: Anthropic's web search, capped at four searches, and SearchApplePodcasts, a local tool over the iTunes Search API that returns each show's Apple ID, episode count and latest episode date. Its prompt carries my preferences, my library and the titles suggested before. WriteSuggestions then looks up every returned ID with Apple and drops any that don't resolve, have no RSS feed or are already in the library.
Every score is measured against my preferences: a description in my own words, topics weighted on a slider from “ignore” to “most”, and a list of things to avoid. The form's Write with Claude action rewrites all three from notes I type or dictate, and keeps anything the notes don't mention. A thumbs up or down on a show, an episode or a highlight, with an optional reason, goes into every later score.
How it's built:PreferencesWriter, an agent with structured output, gets my notes and the form's current state, saved or not. The Filament action sets the form's state and saves nothing, so I review the result and press Save. The agent's instructions keep the avoid list to hard dislikes, because the scoring agents treat every entry there as a strong negative. ListenerProfile adds my subscribed and dropped shows and my recent thumbs to the preferences in every scoring prompt.
Subscriptions and the feed
A show I add starts as Trying, and from there I subscribe to it or drop it. A subscribed show's new episodes land in the feed, whole or as just the highlights. For a highlights show, each new episode gets an episode check as it arrives, and the feed lists its highlights with one button that plays them back to back.
FeedScreenshot
How it's built:shows:refresh runs hourly on the scheduler and makes a conditional request for each show's RSS feed, with its stored ETag and Last-Modified. SyncShow upserts episodes on show and GUID without touching listening state, and DeliverEpisodes adds a subscribed show's new episodes to the feed and, for a highlights show, requests their episode checks. The feed is a Filament table with a custom row view. Its Alpine player saves the position every 15 seconds and stops each highlight at its end, and playing every highlight of a highlights show marks the episode heard.
Episode checks
An episode check reads one episode's transcript and scores the episode out of 100 against my preferences, with advice: all of it, the highlights, or skip. It returns a summary, the highlights, and the stretches to skip, such as ad reads and long intros. On the episode page, clicking a timecode plays from there.
How it's built:TranscribeEpisode uses the publisher's transcript when the RSS feed links one with timestamps (WebVTT, SRT or Podcasting 2.0 JSON). Otherwise the audio goes to ElevenLabs Scribe for diarized speech-to-text through the AI SDK's Transcription, after a confirmation that shows the estimated cost. The transcript is stored as timed paragraphs, and EpisodeReviewer answers in timecodes copied from them. PHP converts those to seconds, drops a stretch whose start it can't parse or that starts past the end of the episode, and clamps the rest to the episode's length.
Show guides
I add a show by searching Apple Podcasts or pasting its RSS feed address, and Casting imports its episodes. Write guide, on the show's page, returns what the show is, who it's for and how to listen to it, with a fit score out of 100 against my preferences. The guide picks three to five episodes to start with and lists the ones that are safe to skip, such as trailers, reruns and announcements.
Shows / Crumb StructureScreenshot
How it's built:ShowGuideWriter is an agent on the Laravel AI SDK with structured output, run from a queued job. It reads metadata, not audio: the show's description and each episode's date, length, type, title and description. For a catalog of more than 400 episodes it gets the newest 350 and the first 50. It answers with episode IDs, and WriteShowGuide keeps only the IDs that were in the prompt.
Decisions
Decision 01Oct 27
Structured output is validated in PHP
Context: The agents return episode IDs, timecodes and Apple IDs.
Decision: PHP checks each one against data it already holds: the episode list sent in the prompt, the episode's length, Apple's lookup. Anything that doesn't match is dropped before it's stored.
Why: One invented episode on the page would make the rest of the guide hard to trust.
Decision 02Oct 28
One listener profile for every score
Context: Guides, episode checks, research and suggestions all score against my taste.
Decision: One class, ListenerProfile, writes the profile. Every scoring agent gets the same text, with reactions to the show being judged listed first.
Why: What I subscribe to, drop and react to says more about my taste than what I wrote down.
Decision 03Oct 28
API costs are quoted and capped
Context: Model calls, web searches and speech-to-text are billed per use.
Decision: Speech-to-text asks first, with the estimated cost for that episode. Subscribing for highlights quotes the cost for that show. A show's new episodes queue at most five episode checks at a time, and every call is logged with its estimated cost.
Why: The hourly refresh runs unattended, and a show with a backlog of new episodes can't run up a bill in one pass.
Decision 04Oct 28
A new show starts as Trying
Context: I add a show to evaluate it, before I know whether I want its new episodes.
Decision: A show starts as Trying. Its new episodes are imported but stay out of the feed until I subscribe. A dropped show is left out of later suggestions and counts in later scores.
Why: Evaluating a show shouldn't fill the feed with it.
What's next
Next
Several feeds, for a place or an occasion
Later
Feeds an agent fills for an occasion or a trip
Later
Guides that read the episode checks already run
Later
Research that transcribes a few minutes of a show before I add it
Follow along
Updates are posted here as features are built. The repo is private.