It clears an inspection drone to fly, sets its limits, or grounds it, and every number it reports is checked against the flight log.
Track: Autonomous Agents. Solo entry. Repository: https://github.com/Adeniyikayodee/imperial_falcon_hack
Inspiration
Across the world, the grid breaks in the wind, and the people who inspect it fly into that same wind.
In 2012, 620 million people in India lost power in a single afternoon, the largest blackout in history. In 2018, one transmission line in California started the Camp Fire and 85 people died. In 2023, wind toppled power lines on Maui and 102 people died in Lahaina. Every one of those lines has to be inspected, and crews still do much of it from helicopters, a few metres from live wires.
What outages cost the world
- Almost $300 billion a year in developing economies. Across 137 low- and middle-income countries, blackouts cost firms $82 billion a year in lost sales and another $64 billion in backup generators; with water and transport disruptions the bill nears $300 billion (World Bank).
- $121 billion in one year in one country. Major US outages averaged $67 billion a year over the last seven years and reached $121 billion in 2024 (ORNL).
- Wind is the leading cause, and rising. In the best-documented record, weather caused 80% of major US outages from 2000 to 2023, high winds and storms led at 58%, and the last decade had twice as many as the first (Climate Central).
When the grid fails, 2000 to 2025
| Year | Where | Cause | Toll |
|---|---|---|---|
| 2003 | USA and Canada | A sagging Ohio line touched overgrown trees | 50 million people, about 11 deaths, $4–10 billion (NPR) |
| 2003 | Italy and Switzerland | Tree flashovers on Swiss 380 kV lines | 56 million people (UCTE) |
| 2009 | Victoria, Australia | An ageing power line sparked the Kilmore East fire on Black Saturday | 119 deaths from that fire, a A$494 million class action (SBS) |
| 2012 | India | Northern, eastern and north-eastern grids collapsed | 620 million people, the largest blackout in history (CS Monitor) |
| 2018 | California, USA | PG&E transmission line near Pulga | 85 deaths in the Camp Fire, PG&E bankruptcy over $30 billion in liabilities (Insurance Journal) |
| 2021 | Texas, USA | Grid failure in a winter storm | 246 deaths by the state's count, $80–130 billion (Dallas Fed) |
| 2021 | United Kingdom | Storm Arwen's winds brought trees down on lines | About 1 million homes, some dark for over a week (ITV) |
| 2023 | Pakistan | A voltage swing cascaded across the national grid | 220 million people (Daily Beast) |
| 2023 | Maui, USA | Winds toppled Hawaiian Electric lines | 102 deaths in Lahaina, $4.04 billion settlement (Claims Journal) |
| 2024 | Texas, USA | A decayed pole dropped live wires on dry grass | 1.06 million acres, the largest fire in Texas history (Texas Tribune) |
| 2025 | Spain and Portugal | Iberian grid collapse | About 50 million people, 8 deaths, €1.6–4.5 billion (Euronews) |
What inspection costs the people who do it
- Helicopter patrols fly crews metres from live wires. Wire and obstacle strikes cause about 16% of helicopter accidents, and about one in three wire strikes is fatal (Aviation Week). Australia alone logged 117 wire-strike accidents in general aviation from 1994 to 2004 (ATSB). Utility patrol crashes killed three in Colorado in 2014, two in New York in 2018 and a Duke Energy pilot in 2021 (Insurance Journal, HeliHub).
- Line work ranks among the deadliest jobs. In the US, power-line installers died at 13.8 per 100,000 workers in 2024, about 4× the all-worker rate (BLS data, charted by ReliaMag).
Drones take people out of that air. They bring a physics problem of their own.
The physics problem
Every number below comes from Falcon's flights of a 27 g Crazyflie 2.x, cited by run ID.
- A small drone pushes back only by tilting. It hovers on 0.26 N of thrust and carries 0.60 N at full power, a thrust-to-weight ratio of 2.3. Research on inspection drones recommends above 3 for high wind (FLAGRED). At its 0.6 rad tilt limit, the most sideways force it can make is 0.18 N.
- Drag outgrows the wind. Measured drag was 0.031 N at 2 m/s, 0.077 N at 4 m/s and 0.136 N at 6 m/s [r42767e, r312fde, r44a125]. Doubling the wind from 2 to 4 m/s multiplied the force by 2.5, and at 4 m/s drag already spends 42% of the tilt budget.
- The wind is stronger where the drone flies. Forecasts give wind at 10 m. On the log profile, the 20 m inspection height sees 12% more.
- Gusts break the budget. The recorded mission's forecast was a 4.7 m/s mean with 10.7 m/s gusts. The fitted drag law puts that gust at 0.33 N, 1.8× everything the drone can push back with.
- The margin is a metre or two. Inspection flies 1–2 m from the conductor. At 5 m/s in turbulence the drone swung up to 44 cm [r45017e], a quarter to half of the whole clearance.
- Steady-air maths overestimates the limit. The drag fit predicted the edge at 7.3 m/s. Turbulence put the real edge between 4 and 5 m/s, 31–45% lower. At 5 m/s the pass held 0.8 cm in steady air and 59.8 cm in turbulence [r0f7c06, rdf7133], 75× worse.
The true limit lives in turbulence, where only careful test flights reveal it. Finding it safely takes a flight-test engineer days. Falcon does it in under 8 minutes, step by step, and every number in its report is checked against the flight log.
What I built
You give Falcon a one-line brief and a Claude agent runs the whole flight-test campaign on its own, in under 8 minutes:
- Checks the forecast for the site through Linkup, and cites the source.
- Identifies the vehicle. It holds position at 20 m in steady wind and reads the aerodynamic force and torque from the vehicle's own sensors.
- Predicts the edge. It writes and runs code to fit a drag law, predicts where tilt runs out, and commits to that number.
- Expands the envelope. It flies the inspection pass with three controllers in turbulence and gust fronts, stepping up in wind.
- Reconciles prediction with test. It explains where the prediction missed using physics it measured, and names what remains open.
- Reports. It files GO, GO WITH LIMITS or NO-GO with operating limits, and every number cites the flight it came from.
- Shows the limit live in a 3D simulation of the corridor, gust front included.
A recorded mission
Clear the drone for tomorrow's power-line inspection pass at 20 m near South Kensington, London.
The forecast came back at 4.7 m/s with 10.7 m/s gusts. Falcon flew 35 test runs, fitted a drag law and predicted the envelope edge at 7.3 m/s. Testing in turbulence put the real edge between 4 and 5 m/s, and the agent traced the gap to turbulence and along-track airspeed. It filed:
Decision: NO-GO for tomorrow as forecast. GO WITH LIMITS only if on-site wind measures inside the limits below.
- Mean wind ≤ 2 m/s at 10 m, any direction.
- Controller ph only, learning rate 0.05.
Case rms max 2 m/s −x (worst), ph 0.9 cm [rf8524b.rmse_m] 4.3 cm [rf8524b.max_err_m] 5 m/s +y, ph 18.2 cm [r45017e.rmse_m] 43.8 cm [r45017e.max_err_m]
Each figure carries the ID of the run it came from, and ph is Falcon's learner. The whole mission replays in the demo.
Why you can trust it
The safety rules live in code, outside the prompt:
- Build-up rule. Each test step stays within 2 m/s of the last wind cleared and below any wind that crashed. The tools refuse anything else.
- Report checker. Every measured number cites a run, like
2.1 cm [r8b3739.rmse_m]. The checker reads the run log and returns misquoted, uncited or invented figures to the agent until they match. - One wind field for batch tests and the live demo, so a clearance means what it says.
- A learner that only removes energy. The drone's learned force is a bounded drag,
F = -D (v - ŵ)with0 < D < d_max. For any weights it removes energy and stays below the controller's own damping.
Results
Inspection pass at 20 m: wind given at 10 m, surface-layer turbulence and a 2 m/s gust front. Tracking error in cm over 10 seeds, lower is better. Baseline is the flight controller alone, Neural net adds an online MLP, and Learner adds Falcon's energy-safe model.
| Baseline | Neural net | Learner | |
|---|---|---|---|
| 3 m/s | 3.2 ± 0.2 | 2.8 ± 0.3 | 1.0 ± 0.1 |
| 4 m/s | 4.5 ± 1.1 | 3.8 ± 0.9 | 2.1 ± 1.1 |
| 4 m/s, stress test: learning 10× faster | 4.5 ± 1.1 | 30.5 ± 8.2 | 7.6 ± 2.7 |
The learner tracks 2 to 3× tighter than the baseline. Under the stress test the neural net diverges to 30 cm while the learner stays bounded, which is why the agent locks the learning rate at 0.05. A typical mission clears 3.5 m/s, below an edge between 4 and 5 m/s, and the live check at that limit holds.
How I built it
- Simulator: a Crazyflie 2.x rigid body in JAX at 500 Hz.
- Geometric SE(3) control with integral action and a tilt limit.
- Motor lag, and force estimated from the accelerometer.
- Hidden aerodynamics beyond the learner's reach: induced lift and rotor-plane torque.
- Wind: a surface-layer log profile with von Kármán turbulence and travelling gust fronts, shared by batch runs, the live demo and the browser.
- Agent: Claude Fable 5.2 through the Anthropic tool runner, with typed Python tools, server-side code execution and progress updates streamed to the page.
- Linkup for live forecasts.
- MLflow on Databricks: every flight is logged and tagged with the ID the report cites.
- Tests: 57, covering the physics, the energy bound, the build-up rule and the checker.
Challenges
An early mission cleared a limit in batch tests, then crashed at that same limit in the live check. The two were flying different wind models. I unified them into one wind field, and the build-up rule and checker now run against the same physics the demo shows.
What I'm proud of
- The agent grounds the drone when the evidence says so, and backs the call with cited runs.
- Every safety rule is enforced by the tools, so the guarantees hold whatever the model writes.
- The learner carries a stability guarantee for any weights.
What I learned
Trust in an agent comes from checks it has to pass: limits enforced by the tools, and every claim verified against data.
What's next
- Extend the energy bound from the learned model to the full closed loop.
- Add building wakes and channelling for urban sites.
- Fly the same campaign on a real Crazyflie with measured sensor noise and motor lag.
APIs, models and datasets
- Models:
- Claude Fable 5.2, with Claude Opus 5.5 optional.
- My own learned flight models, trained online from scratch in every flight.
- APIs: the Anthropic API (tool runner and code execution), the Linkup Search API, and Databricks MLflow.
- Data:
- Flight data comes from my simulator.
- Live wind forecasts come through Linkup; the recorded mission cites Windy.app.
- Libraries: JAX, NumPy, the anthropic SDK, MLflow, matplotlib, three.js (r128) with OrbitControls, and pytest.
- Tooling and assets: uv, hatchling, and IBM Plex fonts from Google Fonts.
Limits
- Simulation only, on an open site. The energy bound covers the learned model.
- Sensor noise and motor lag use assumed values.
Built With
- anthropic
- claude
- databricks
- jax
- linkup
- machine-learning
- matplotlib
- mlflow
- numpy
- physics
- pytest
- python
- three.js