F1 Race Strategy Agent — AI skill for Claude Code
CSE 598 Agentic AI capstone baseline — an agentic F1 race-strategy engineer: a Claude tool-use loop that recommends pit/tyre strategy over real FastF1 telemetry, tested against a deterministic optimum.
How to install F1 Race Strategy Agent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open DoomDust7/f1-race-strategy-agent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What F1 Race Strategy Agent does
CSE 598 Agentic AI capstone baseline — an agentic F1 race-strategy engineer: a Claude tool-use loop that recommends pit/tyre strategy over real FastF1 telemetry, tested against a deterministic optimum.
Alternatives in AI
- Startup Canvas — Generate Startup Canvas combining Product Strategy and Business Model 7.8k ★
- Karpathy — An agentic Machine Learning Engineer 1.4k ★
- Gtm Engineer Skills — Claude Code skill for improving website AEO (AI Engine Optimization) and GEO (Generative Engine Optimization) 761 ★
README
F1 Race Strategy Engineer Agent — CSE 598 Capstone Baseline
An **agentic** baseline: Claude acts as a Formula 1 race strategist. Given a driver and their starting tyre, the agent reasons over **real 2021 Spanish GP telemetry** to recommend a pit/tyre strategy. It runs a genuine *plan → call tools → observe → refine* loop — it inspects tyre degradation, proposes candidate one- and two-stop strategies, simulates each with a deterministic race-time model, compares them, and submits a final recommendation.
The recommendation is **objectively checkable**: it is compared against the optimum of the same deterministic simulator (see `data/ground_truth.json`).
What the baseline does (step by step)
- Model — Anthropic
claude-opus-5(configurable) via the officialanthropicSDK, driven by a hand-written tool-use loop in `src/agent.py` (the loop is explicit on purpose, so the agentic cycle is visible). - Tools the agent can call (`src/tools.py`):
get_race_info— race length, compounds, pit-loss, min stint length.get_driver_stints— a driver's actual stints + starting compound (from data).estimate_tyre_degradation— fits a linear pace-vs-tyre-age model per compound from that race's green-flag laps.simulate_strategy— deterministic estimate of total race time for any proposed stint plan (validates: laps sum to race length, ≥2 compounds, min stint length).
- Data — real timing data from FastF1, pre-downloaded
into
cache/and read in offline mode → no network needed for race data.
Setup
git clone https://github.com/DoomDust7/f1-race-strategy-agent.git
cd f1-race-strategy-agent
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
API key (required)
The agent calls the Anthropic API, so you need an API key with credits.
cp .env.example .
Related Skills
Vibe Racer
Your AI race engineer. Five laps from objective to shipped code — you call the pit stops.
AI Engineering Claude C1 Harness Engineering Project
Four Claude Code systems from the Harness Engineering capstone: a stop_reason-driven agentic loop with tool de
CodeJoust
Pit AI coding agents against the same bug. Score them on tests, diff, cost, and time — pick the winning patch.
AI Gate
AI verification for G4 — eval suite against baseline, red-team status, guardrail verification, drift check
Habitusx
The AI Code Outcomes Index. What happens to AI-written code after it lands: revert rate, PR acceptance and sur
ROI
Stage 08. Invoke the engagement-manager in roi mode to populate the engagement ROI model with actuals against
Related Agents
Agentic Systems Architect
Use proactively for any new or changed agent definition or agentic loop/pipeline design, plus monthly runtime
Xp Reviewer
Extreme Programming lens for the review-loop system. Reviews a scoped diff against Kent Beck's four rules of s
Kit Map Steward
Use proactively when three or more map misses are unstewarded — the stop-gate names it (map M-21). Reads misse