Kintel: Keeping Up With a Kaggle Competition

A pipeline that collects a Kaggle competition's forum, notebooks and leaderboard into SQLite every six hours, verifies notebook scores, groups submissions by content to measure leaderboard noise, and hands Claude a rule-based report to start each catch-up from.

Outcome

It runs unattended on every competition I track, and a catch-up became one report and one briefing to read instead of the whole forum.

Technical highlights

Project Overview

A Kaggle competition runs for weeks, and most of what happens in it is written down in public. Competitors post results and tricks in the forum, hosts answer questions about the rules, and public notebooks show working code with a leaderboard score attached. Reading all of it every day takes longer than competing, and most of it is noise.

Kintel collects that material into one SQLite database and keeps it current. A scheduled job runs every six hours and ends by writing a short report, built from fixed rules, that marks each new item as worth acting on or safe to ignore. When I start a working session I type /catchup <competition> in Claude Code. Claude reads the latest report, has Haiku pull the claims out of new forum posts, and gives me a briefing weighted by who is saying what.

The design splits the work by what each part is good at. Code does the collecting, matching and arithmetic, because those need to be exact and repeatable. A language model only reads forum prose, which rules cannot do, and its output is stored so no message is read twice.

Problem

Keeping up with a competition fails in three ways.

  • Volume. A popular competition produces hundreds of forum topics and over a thousand public notebooks, and many notebooks are near-copies of a few originals.
  • Unverified scores. A notebook’s public score arrives a day or more after it runs, and Kaggle’s documented API never returns it. Guessing scores from leaderboard timing once labelled a 0.22 notebook “unscored” for three days.
  • Noise posing as signal. A single leaderboard submission is one random draw. A notebook that scores higher once may only have been lucky, and a forum post that reports one good score says little on its own.

How It Works

1. Collect

  • Each run pulls new forum topics and threads, notebooks and the leaderboard through the Kaggle API, incrementally from the last fetch.
  • Every raw response is archived to disk before it is parsed, so the database can be rebuilt or re-modelled without fetching again.
  • Kaggle rate-limits the whole account, so the collector makes one call at a time and runs as a single process.

2. Join to Meta Kaggle

  • Meta Kaggle is Kaggle’s public dump of its own data. DuckDB filters it to one competition and loads it alongside the live tables.
  • For finished competitions this gives exact user ids, every submission with its source notebook, and a leaderboard rebuilt for each day.
  • For running competitions Meta Kaggle holds nothing, so kintel matches forum display names to leaderboard usernames through notebook authors, solo team names and a weekly copy of Kaggle’s user list.
  • A check command reports how well the live data and Meta Kaggle agree, so a bad join shows up as a number rather than a wrong briefing.

3. Verify notebook scores

  • The scores come from the two undocumented endpoints behind Kaggle’s notebook pages, which work without signing in once a home-page request sets a cookie.
  • Each notebook run is asked for its score once, and again while it is under four days old and still unscored. That catches late scores without polling old runs forever.

4. Trace notebook lineage

  • Each notebook’s source is split into blocks of consecutive non-blank lines, and each block is stored once by hash.
  • Short blocks and blocks found in more than a fifth of notebooks are ignored, because imports and boilerplate say nothing about ancestry.
  • A notebook’s parent is the earliest notebook that shares at least half of its remaining code. Families form from these links, so a hundred forks collapse onto the one original worth reading.

5. Pool submissions by content

  • For every submitted run, kintel downloads its submission.zip and hashes the file paths and contents. The zip is never unpacked to disk or run.
  • The same files submitted from different notebooks get the same hash, so their scores pool into repeat draws of one bundle.
  • The spread of repeat draws gives the leaderboard’s noise level, and bundles are ranked by their mean draw, never their best one.
  • Each bundle links to its most similar earlier bundle, so a new score comes with the diff that produced it.

6. Write the report

  • The six-hourly report covers the time since the previous one and uses fixed rules, with no language model. It is cheap to run, gives the same answer twice and cannot invent anything.
  • It marks new scores, host posts, changes to watched datasets and scored forum claims as ACT or ignore. A new bundle is ACT only if its first draw beats the best repeated mean, and a forum claim is ACT only if its score reaches the best bundle’s mean.
  • A macOS launch agent runs the whole snapshot, and a weekly step refreshes the user list.

7. Catch up with Claude

  • /catchup is a Claude Code skill. It collects, writes a briefing of everything since the last finished session, and queues unread forum messages.
  • Haiku subagents extract claims from the queue in batches of 40, four at a time. Each claim has a kind, a technique, any scores the author states for their own work, and a supporting quote of at most 20 words. A validator rejects malformed results before they are stored.
  • Claude then writes the synthesis, starting from the report’s ACT list. Host rulings come first. Competitors’ claims are weighted by leaderboard position, and people whose score matches a public notebook are discounted.
  • The claims table builds up across sessions, so it acts as the project’s memory of what competitors have said.

8. Backtest

  • A replay mode runs the digest on a finished competition and only ever sees the standings that existed at the time. That let me test the ranking and matching rules against a competition whose outcome I already knew.

Limitations

  • The rate limit makes a full collect of a busy competition take minutes, and it slows any other job using the same Kaggle account.
  • The score endpoints are undocumented and could change without notice. Kintel fails soft when they do, but the report then loses its verified scores.
  • kernels list stops at 1,100 results, so a complete notebook history needs Meta Kaggle, which only covers finished competitions.
  • Claim extraction records what people say, not whether it is true. Leaderboard position is a proxy for trust, not a check.
  • Haiku rarely fills the structured score fields, so most stated scores have to be read back out of the claim summaries.
  • Name matching is weak while a competition runs, so “what did the top teams say” can only be answered in part.
  • Bundle pooling depends on a run producing a submission.zip. Competitions that score some other way get no noise level.
  • It doesn’t collect notebook comments or hackathon writeups.
  • Nothing yet measures whether the report’s ACT lines were right.

Next Steps

  • Measure claim extraction against a hand-labelled sample of forum messages, and fix the empty score fields.
  • Narrow extraction to the messages that matter without missing the few that do.
  • Score the report’s ACT lines against what turned out to matter once a competition’s final results are out.

Technical Notes

  • About 2,650 lines of Python with 21 unit tests, installed as an editable uv tool so kintel runs from any folder.
  • One SQLite file holds the store, and the archived raw responses beside it are the source of truth.
  • The weekly user list is about 34 million rows, kept as Parquet and read through DuckDB.