AI Exoplanet Discovery, Decoded as a Build Spec
An AI exoplanet discovery by two amateur astronomers, decoded as a replicable agentic pipeline over NASA's public data, vetting layer included.

In this article
- 1.The Story Behind the AI Exoplanet Discovery
- 2.The Public Light Curves Everything Ran On
- 3.The Pipeline, Stage by Stage
- 4.The Vetting Layer That Separates Candidates From Planets
- 5.The Domain Knowledge the Humans Supplied
- 6.Why Agents Win Here and Lose on Kaggle
- 7.The Build Spec You Can Reuse on Any Public Dataset
The headline version of this story is that AI found planets. The useful version is narrower and repeatable: two amateur astronomers used OpenAI's Codex and Astra to surface candidate exoplanets in NASA's public Kepler and TESS data, and what carried the work was pipeline assembly rather than model intelligence. That distinction is the whole article. Read the reported AI exoplanet discovery as a build spec and you get a stage-by-stage recipe over a public archive, a bright line where the agent's output stops being trustworthy, and a division of labor you can port to your own projects. It also explains, by inversion, why the same agents lose to a two-line baseline on Kaggle.
Stay in the loop.
Get the latest posts and exclusive content delivered to your inbox.
Join 18 readers. No spam. Unsubscribe in one click, anytime.
The Story Behind the AI Exoplanet Discovery
OpenAI's writeup describes two amateur astronomers pointing Codex and Astra at public data from NASA's Kepler and TESS space telescopes and surfacing what the piece calls "potential exoplanets." That phrasing is doing quiet work. In this field, potential means candidate, and a candidate sits a full category below a confirmed planet. These are signals that survived detection; nothing in the reporting establishes that any of them have survived false-positive vetting or independent follow-up. Take the finds at exactly that value, because the workflow is the story either way.
Machine-assisted detection in this data is old news. NASA's pipelines have automatically flagged and vetted transit signals for over a decade, and machine learning entered the vetting layer back in 2018. What is new here is who ran the stack and with what. Two people with no survey pipeline of their own had agents do the assembly end to end, then supplied human judgment at the one place where machine output stops being reliable.
So three questions, each with its own section. What actually sits between a public archive and a candidate transit? Which stages did the agents genuinely own, and where did the humans have to step in? And why does the AI exoplanet discovery pipeline win here when the same pattern loses to a two-line baseline on a clean, private benchmark?
The Public Light Curves Everything Ran On
A light curve is brightness measured over time. When a planet crosses the face of its star, the star dims for a few hours, once per orbit, by a fraction fixed by geometry. An Earth-size planet crossing a Sun-like star blocks on the order of a hundred parts per million. A Jupiter-size planet blocks about one percent. The transit method is this arithmetic applied relentlessly across years of measurements, which is why the raw material is long, boring, and extremely public.
Kepler stared at one patch of sky between Cygnus and Lyra for about four years, monitoring more than 150,000 stars with high precision. TESS has been scanning nearly the whole sky since 2018, one roughly month-long sector at a time, favoring bright nearby stars. Both missions deliver their photometry to the Mikulski Archive for Space Telescopes, where every light curve is free to anyone who asks.
That openness is the precondition for everything that follows, and it deserves more credit than any model does. NASA MAST light curves are retrievable through documented interfaces, and the MAST documentation lays out the scriptable access. A NASA MAST light curve API call is all it takes to pull a target's photometry, and the Python layer on top, most visibly the lightkurve package, turns retrieval, detrending, and transit search into a few calls. An amateur with a laptop can fetch the same measurements a NASA pipeline ingests. If the archive demanded proposals or manual clicking, no agentic AI pipeline gets built, because the agent has nothing reliable to call. The open archive came first, and the agent is only the newest layer on a stack that was already public and programmable.
The Pipeline, Stage by Stage
The writeup reads as narrative rather than methods paper, but any transit search over these archives resolves to the same stages, so the spec below doubles as a reconstruction of what the agents plausibly owned. Each stage has a different delegation profile.
| Stage | What happens | Agent ownership | Checkable artifact |
|---|---|---|---|
| Target selection | Choose stars worth searching | Partial, needs priors | Target list with reasons |
| Retrieval | Download light curves from MAST | Full | The files themselves |
| Detrending | Remove variability and systematics | Full, with review | Before and after plots |
| Transit search | Scan trial periods for boxy dips | Full | Periodogram and folds |
| Cross-matching | Compare hits to known catalogs | Full | Match table |
| Vetting | Signal or false positive | None | Reasoned disposition |
Retrieval. lightkurve wraps MAST queries, so the agent writes and runs code, and failures announce themselves: a missing file, a failed query, an empty result. Nobody has to take the agent's word that the data arrived. MAST also publishes a tutorial on identifying transiting planet signals that walks this exact flow, which doubles as a convergence test. If the agent's notebook reproduces the tutorial's result on the same target, retrieval and setup are sound.
Detrending. Real light curves carry stellar rotation, spots, and instrumental drift, all of which can bury or fake a transit. The standard move is to flatten the curve with a filter window wide enough to preserve a transit-shaped dip. The check is cheap: plot before and after, then run injection tests (add synthetic transits, confirm the pipeline recovers them). This is the first stage where an agent can quietly destroy real signal, and also the first where a human catches it in seconds by looking.
Transit search. The detection engine is box-fitting least squares, published in 2002, not a learned model. BLS grids over trial periods, epochs, and durations, fits a box to each folded light curve, and scores the fit, so a strong candidate is a dip that repeats at a fixed period with consistent depth. That age is the feature. The agent is orchestrating deterministic, decades-old math, which is exactly why its output is independently checkable: anyone can re-run the same grid and get the same peaks.
import lightkurve as lk
import numpy as np
lc = lk.search_lightcurve("Kepler-10", author="Kepler").download()
lc = lc.remove_nans().normalize().flatten(401)
bls = lc.to_periodogram("bls", period=np.arange(1, 50, 0.01))
bls.plot() # fold on the best period, then inspect the dip by eye
Cross-matching. Every detection gets checked against the Kepler KOI cumulative table and the TESS TOI catalog, whose columns carry NASA's own dispositions. Hits on known false positives get dropped, and recovered known planets prove the pipeline works. This is the practical core of how to find exoplanets in Kepler data with Python: the lightkurve box least squares transit search is a single method call, and the catalogs tell you what humanity already knows about your star.
The Vetting Layer That Separates Candidates From Planets

A large share of transit-like signals in these archives turn out to be false positives, which is why exoplanet candidate vetting is a discipline of its own inside NASA. Everything in the previous section was safe to delegate because its outputs are objectively checkable. Vetting is where that stops, and it is the reason the amateurs' results end at candidate.
Transit method false positives come in three main families:
- Grazing eclipsing binaries. A binary pair grazing its eclipse produces a V-shaped dip that can pass for a shallow planet at low resolution. Comparing odd and even transits usually gives it away, since binaries tend to show depth differences between the two.
- Contamination from nearby stars. A background eclipsing binary inside the aperture is a real, periodic signal that belongs to the wrong star. Centroid tests locate the actual source of the dimming.
- Instrumental systematics. Focus drift, thermal transients, and rolling noise can align into periodic dips that vanish in other quarters or sectors.
NASA treats this layer as seriously as detection. The final Kepler data release pushed its signals through the Kepler Robovetter, an automated classifier that dispositioned thousands of them and published a false-positive catalog alongside the candidate list. On TESS, the SPOC pipeline runs TESS Data Validation, which fits every detected signal and produces the diagnostics behind TESS false-positive eclipsing binary vetting and the TOI dispositions. Machine learning has been in this layer since 2018, when Shallue and Vanderburg trained a network on Kepler light curves and found Kepler-90i, the eighth planet discovered around that star. The amateurs' novelty is orchestration and access, not detection science.
That leaves the difference between an exoplanet candidate and a confirmed planet, which the Exoplanet Archive FAQ draws plainly. A candidate becomes a planet when its false-positive probability is driven down and, typically, when independent evidence arrives: a radial-velocity mass, high-resolution imaging that excludes a blended companion, or a validation argument that stacks the odds. For TESS candidates, the TESS Follow-up Observing Program coordinates exactly this through working groups for photometry, spectroscopy, and imaging.
The trust boundary sits where the cost of an undetected error jumps from re-running a notebook to months of follow-up effort and telescope time, and no amount of model capability moves it.
The Domain Knowledge the Humans Supplied
The agent knew how to call functions, not what a real transit looks like. The humans supplied the priors and the eyes, and itemizing them makes the division of labor explicit rather than implied:
- Transit shape priors. Planetary transits are boxy and symmetric with a flat bottom. Grazing binaries are V-shaped. It is a glance-level call on the folded light curve, but only for someone who has seen a lot of both.
- Astrophysical consistency. Depth, duration, and period have to make sense for a planet orbiting that particular star. A dip too deep or too long for the period points at a star, not a planet.
- Noise judgment. Knowing which signal-to-noise values mean anything for this star, this cadence, and this detrending window, and which are noise dressed up as signal.
- Artifact recognition. Rolling bands, thermal glitches, and sector-boundary quirks mimic periodic dips. Recognizing them is experience, not inference.
- Claim discipline. Deciding what counts as a candidate, what gets discarded, and what wording the result deserves.
Every item on that list is a judgment whose error is expensive to detect. Nothing downstream can cheaply verify that a shape call was correct. That is the profile of work you keep human, and it is the complement of the stages above, where a mistake costs seconds to spot.
Why Agents Win Here and Lose on Kaggle
We have pointed AI agents for data analysis at Kaggle competitions before, and the result was uncomfortable: on the tasks we tried, agentic pipelines lost to a two-line baseline. The Codex and Astra exoplanet discovery story is the constructive inversion of that result, and the deciding variable is the one threaded through every section above.
A Kaggle competition is clean, private, and single-metric. The agent gets a training set, a leaderboard score, and a target number. Every intermediate artifact it produces (feature tables, model weights, ensemble code) is unverifiable against ground truth, because the ground truth is held out and hidden. The only feedback arrives as one scalar, after the work is done. When the agent overfits, the failure stays silent until the private leaderboard disagrees, and by then there is nothing to audit. Under those conditions, elaborate autonomous machinery is unverifiable risk, and the two-line baseline wins on parsimony.
The public-archive pipeline is the opposite on every axis. The data is messy but fully visible. The methods are established and re-runnable. Every stage emits an artifact a human checks in seconds: the file downloaded, the fold shows a repeatable dip, the periodogram peak survives a re-run, the injection test recovers the synthetic transit. Errors are loud and early, and ground truth exists outside the model. That is the environment where an agentic AI pipeline earns its keep, doing the glue work of retrieval, cleaning, and logging that humans do badly and reluctantly.
There is a deeper lineage, too. The pattern that let two amateur astronomers turn up AI exoplanet candidates in public data predates language models entirely. Planet Hunters, in its first results paper, showed that volunteers eyeballing the same public Kepler light curves found candidates the automated pipeline had missed, and the project later found PH1b, a planet orbiting a pair of stars. Public data plus human judgment is the durable formula. Agents compress the toil and skill barrier between having an idea and having a running pipeline, and they do not replace the judgment at the end of it.
The Build Spec You Can Reuse on Any Public Dataset
Strip out the astronomy and what remains is an agentic AI pipeline for public datasets, built around a delegation contract.
Point an agent at a stage only when all three hold:
- The data is public and served through a documented API.
- The method is established, with published code and known failure modes.
- The stage emits a cheap, objective artifact (a file, a plot, a table, a log line).
Keep humans on everything else, above all vetting, interpretation, and the strength of any claim you make in public. Delegate where errors are cheap to detect, keep the stages where they are expensive.
A concrete starting point. Pick another archive with the same shape: LIGO's open gravitational-wave data, the Zwicky Transient Facility's public alert stream, or Gaia's catalog releases all have documented interfaces and canonical tooling. Then run the same sequence. The agent retrieves, cleans, executes the canonical algorithm, and logs every artifact. A human inspects the outputs and owns the verdict.
The finds in this AI exoplanet discovery story may or may not survive follow-up, and that uncertainty was priced in from the first paragraph. The candidates sit exactly where the system says they should sit, below the vetting line, pending the human and telescope work that turns a signal into a planet. What transfers is the boundary itself: the agent owns assembly, the human owns the verdict, and any dataset where you can draw that line cleanly is a dataset an agent can help you build on.
Stay in the loop.
Get the latest posts and exclusive content delivered to your inbox.
Join 18 readers. No spam. Unsubscribe in one click, anytime.
About the author
Rachel Brennan
AI Research Editor
Rachel tracks AI research so the rest of us don't have to. With a background in NLP and a habit of reproducing papers, she turns new models and methods into ideas you can actually use.
Related Posts
Meta Ranking Engineer Agent Is a Supply Chain, Not a Genius
The Meta Ranking Engineer Agent proves ads ranking wins, then ships them fleet-wide. Build spec, eval gates, and a rubric for five-model teams.
Natera SWARM Amazon Bedrock AgentCore Decoded
The Natera SWARM Amazon Bedrock AgentCore build, decoded as a reusable spec for running agentic AI diagnostics inside a regulated clinical lab.
Airbnb's AI Customer Support Agents Decoded for Builders
Airbnb's AI customer support agents decoded into a build spec, covering multi-party conversations, moving-target evals, and the latency accuracy tradeoff.


