Sunshine is a Laravel and Filament app that finds local events for my family. Once a week, an agent built on the Laravel AI SDK searches the web and the event calendars we follow, and keeps what fits the days we're free. We mark each find Interested or Not for us and rate the ones we went to, and the next scan reads those marks.
Scheduled scans, marks, plans and history· Built Oct 30
A run per place, and an MCP server· Built Oct 30
Two-model scans and browser rendering· Built Nov 1
Taste profile· Built Nov 17
Started
Oct 27, 2026
Latest update
Nov 17
Runs on
My own server, on the Anthropic API
Stack
Laravel 13, Filament 5, Laravel AI SDK, Laravel MCP, Pest
Updates
Taste profile
Sunshine keeps a short profile of what my family says yes to and what we skip, by kind of event, day and time, cost and distance. The agent reads it before every scan.
How it's built: A separate agent, TasteProfiler, runs on Haiku before a scan when the last profile is at least six days old. It summarizes our recent marks, ratings and notes, and counts an event left unmarked for two weeks as a soft no. Events marked “Can't make it” or “Didn't go” are left out, since neither says anything about taste. If the call fails, the scan uses the previous profile.
JavaScript-rendered calendars
Some venue calendars render their events client-side, so a plain HTTP fetch returns a page with no events. A source can be set to render in a headless browser first.
How it's built: Playwright's headless Chromium, run from a Node script through Laravel's Process. The browser reaches the web only through a local proxy that allows only public addresses and pins each connection to the address it checked, which closes off SSRF and DNS rebinding.
Two-model scans
Sunshine fetches the calendars and event pages we follow (HTML, RSS, iCal or JSON), and Haiku extracts the dated events from each. The agent, on Sonnet, gets those events in its prompt and does the web search and the picks. A scan costs about 80 cents.
SourcesScreenshot
How it's built:PageRead fetches each source and reduces it to text, and the PageReader agent returns its events as structured output. Sources are read in parallel with Laravel's Concurrency. The scan agent, EventScout, then searches and picks, and every run records its tokens, searches, fetches and estimated cost.
One run per place
PageReaderHaiku, extracts events
→
EventScoutSonnet, searches and picks
→
RunSearchValidates, removes duplicates
→
UpcomingWe mark each one
Screenshots show demo data.
Duplicate detection
A later scan often returns an event it already found, under a reworded title, and Sunshine drops the repeat. The same thing on a new date is added to its activity (the farmers market is one activity, each Saturday an event), which keeps every date with our notes, photos and checklist.
Activities / Fairview Farmers MarketScreenshot
How it's built: Repeats are caught by a deterministic check in PHP after the agent responds. On the same date in the same city, an event is a repeat when every token of one normalized title appears in the other, with a two-token minimum. Normalization drops punctuation, years and stop words. An event on a new date joins the activity the agent flagged as seen before, or the one with the same title and city.
Availability filter
Preferences list the days we're free all day and the days we're free only in the evening, and a scan saves only the events that fit.
How it's built: The agent returns each event's start and end in 24-hour time, and the filter runs in PHP after the response. An event with a missing or unparseable time is kept. Tests fake the agent with EventScout::fake().
Sunshine has an MCP server for coding agent sessions. Its tools read preferences, manage sources, start a search, and read a scan run by run, with each run's usage and the events it kept.
How it's built: Laravel MCP at /mcp, authenticated with a Sanctum token created in the app. Each tool acts as the token's user.
Scheduled scans
On the day of the week we choose, the agent searches the web for events in the next 21 days: near home first, then in a separate run for each other place we'd travel to. New finds go to Upcoming, the home page, with the reason each was picked. We mark each one Interested or Not for us, then Went with a rating, and later scans read those marks.
UpcomingScreenshot
How it's built:events:discover runs hourly on the scheduler and starts a user's scan once their chosen day begins in their time zone. Each place is a queued RunSearch job that runs EventScout, an agent on the Laravel AI SDK with Anthropic's web search and web fetch tools and structured output. The whole UI is Filament 5.
Decisions
Decision 01Oct 30
Preferences describe the household
Context: Preferences can describe each person or the household as a whole.
Decision: One description covers the household, and so does every mark.
Why: A mark belongs to the household. Per-person preferences raise questions the app has no use for, such as whose interest an Interested mark records.
Decision 02Oct 30
Constraints are enforced in code
Context: The agent's prompt carries the date range, the free times and the events already found.
Decision: Dates, availability, duplicates, avoided activities and non-web addresses are validated in PHP after the response.
Why: These have to hold on every run, and a prompt can't guarantee that.
Decision 03Oct 31
Haiku reads, Sonnet searches
Context: Page reading runs on Haiku. Web search could move there too.
Decision: Search and the picks stay on Sonnet.
Why: Web search is billed per search at the same rate on any model, and Sonnet is more careful confirming dates and times.
Decision 04Nov 1
Crawler rules
Context: Sunshine fetches third-party pages from its own server, some of them in a browser.
Decision: It connects only to public addresses and re-checks on every redirect, follows robots.txt, sends an identifying user agent, and treats page text as data, never as instructions.
Why: It runs unattended against third-party sites.
What's next
Later
A simpler event card
Idea
Listing a long-running exhibit once, not on every date a scan finds it
Idea
Scans through the Batch API, at half the price
Idea
Events that only live on Facebook or Meetup
Follow along
Updates are posted here as features are built. The repo is private.