Home / Work / Six Competitors, Watched Automatically, Every Monday

Six Competitors, Watched Automatically, Every Monday

Internal Tooling ยท 2026

A weekly pipeline that scrapes six competing lead platforms, has a Claude routine analyse the changes into a per-competitor world model in git, and publishes it to Confluence. 551 changes tracked in 8 weeks.

  • 6Competitors tracked
  • 551Changes tracked in 8 weeks
  • May 2026In production since
  • 1 dayIdea to production
  • Python
  • Playwright
  • OpenRouter
  • GitHub Actions
  • Confluence
  • Competitive Intelligence
  • Agentic Automation
Six Competitors, Watched Automatically, Every Monday

The problem

A Dutch home-services platform competes with six other lead platforms. Nobody was systematically watching what any of them changed: pricing, funnel copy, positioning, hiring. Competitive intelligence was whoever happened to notice something.

So I built the noticing.

Every Monday, GitHub Actions scrapes all six. A Claude routine interprets the diffs and maintains a per-competitor profile.yaml "world model" in git. A second routine publishes it to Confluence, and a short email alert goes out only in weeks that hold a real change.

The pipeline has changed shape twice since launch. In August I found the weekly digest had been silently empty for most of three months and moved the analysis off a paid model API. In November I dropped the Slack digest and made Confluence the single record.

How it's built

Stack: Python (Pydantic v2, Playwright, trafilatura, httpx, pytest). Storage is files on disk with git history as the changelog. No database. Any week's state, and exactly how it changed, is inspectable with git log.

Three subsystems worth calling out:

  • Sitemap-first discovery with relevance scoring, so the crawl targets what matters instead of everything.
  • A deterministic, PII-safe funnel walker that steps through competitors' multi-step quote wizards and diffs the copy week over week. Changes to a competitor's funnel questions are a leading indicator of a strategy change.
  • A vacancies walker with per-ATS parsers (Greenhouse, SmartRecruiters, Teamtailor, Ashby, Homerun), feeding hiring signals into strategic predictions per competitor. What a company is hiring for is what it is about to do.

The architecture split that made it work

The system is cut along credential model, not along function. Since August it runs in three stages:

  1. Scrape runs in GitHub Actions on Monday with no LLM and no model key. It writes one analyst prompt per competitor to a queue in the repo and commits.
  2. The analyst routine (a Claude Code cloud routine, Tuesday 06:00 UTC) reads each prompt, writes the analysis as JSON and hands it to the next step.
  3. Apply validates every result against a schema, updates profiles and reports, clears the queue and commits. Deterministic, no LLM.

Before August the analyst was an inline OpenRouter call inside CI. Moving it into a routine means the scheduled pipeline holds no model key at all. OpenRouter is now used only for local runs: debugging and new baselines.

Delivery runs as a second routine on Tuesday 08:00 UTC. It refreshes each competitor's Confluence page from its profile, adds a dated weekly child page, and rebuilds the competitors folder page as an index: an overview per competitor, themes across competitors and a table of weekly reports.

When a week holds a pricing, business-model, site, funnel or hiring change, or a pattern across weeks or competitors, the routine also sends a short Dutch email alert. Quiet weeks send nothing. The alert uses a fixed HTML template in the repo (competitor logos, evidence, the implication for us, a confidence bar). The routine writes only the content as JSON; a small renderer validates it and prints the exact send arguments, so the model never writes the email layout.

The routine prompts live in the repo, so every change to them is versioned. Both routines sit behind a central kill switch, and a weekday watchdog checks that the Monday scrape ran.

Outcomes

  • In production since 4 May 2026, covering six competitors.
  • 551 tracked changes in eight analysed weeks between 14 September and 9 November (85, 54, 96, 59, 69, 50, 59 and 79 per week). One week in October has no scrape.
  • Four missed weeks backfilled (31 August to 21 September) from the stored scrapes. The backfill also recovered a pricing detail from one competitor's older page that its current site no longer shows, which closed two open questions in its profile.
  • Confluence as the single record: one page per competitor, a dated child page per week, and an index rebuilt every week.
  • An alert email with a second reader: first sent to me only; after the test alert in November, a commercial director asked to receive it too.
  • Planned input for product discovery: the competitor profiles and weekly reports are a chosen evidence source for an automated product discovery loop. As of November that link is designed in but not yet connected.

What we learned

A failed run must not look like a quiet week. For most weeks from June to early August, the model call failed for every competitor (first an invalid-user error, then a spend-limit error). Each run still committed "6 competitors, 0 changes", which looked exactly like nothing happening. The pre-flight check only verified that the key could list models, which a spend-capped key still can. Fixes: error counts in the commit subject, a non-zero exit when every competitor fails, and a balance check before the run. Then the bigger fix: no paid key in the scheduled path at all.

Cap output tokens on pay-as-you-go APIs. The provider reserved credit for the model's full output limit up front on every uncapped request, so calls failed as soon as the balance dropped below that, even though the real answer was a few thousand tokens.

Unattended pipelines need health checks for silent failure, not just error alerts. Earlier, the Confluence delivery routine died quietly for about seven weeks. Nothing errored. It just stopped, and nothing was watching for absence. The first "no digest found" alarm after adding that check was itself a false alarm, caused by date coupling in the check.

A backfill can roll your world model backwards. The four backfilled weeks were analysed from the August profiles, so applying them reset every profile to August. The reports stayed; the profiles were restored to their latest state by hand.

Schedules drift. The scheduled scrape often starts hours late, which left Confluence a week behind, so the analyst moved from Monday to Tuesday morning. A backup scrape then conflicted with the first one's push; a guard now skips a run when that day's scrape is already on main.

Split reliability tiers by credential model. Schedulable CI has secrets but no connectors; Claude routines have connectors but no secret store. Designing around that produced a cleaner system than fighting it would have.

How it was built

Brainstorm, design spec, implementation plan, all committed to the repo before implementation, then built and operated with Claude Code. One design day took it from idea to production: the spec and the first weekly run landed on the same day, 4 May. After that, ops sessions whenever it drifted.

The August rework and the November delivery changes each went in as small, separate changes, with tests for the scrape and apply split and for the alert renderer. The full arc (design doc, implementation, silent failures, post-mortems, fixes) lives in the repo's git history.

Work with me

I speak, I consult, and I teach teams to ship with AI.

Send a request Book speaking Free training