vnmoorthy

Formula1simulation — AI skill for Claude Code

AI community

Live F1 race simulator with streaming anomaly detection and an AI pit-wall agent, on Confluent Cloud (Kafka + Flink) and Claude.

How to install Formula1simulation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open vnmoorthy/formula1simulation and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Formula1simulation does

Live F1 race simulator with streaming anomaly detection and an AI pit-wall agent, on Confluent Cloud (Kafka + Flink) and Claude.

Alternatives in AI

  • Botmux — Bridge Feishu/Lark to AI coding CLIs — Claude Code, Codex, Gemini, OpenCode… every DM, group or topic spawns i 1.2k ★
  • Claw Empire — Command Your AI Agent Empire from the CEO Desk — A local-first AI agent office simulator that orchestrates CLI 1.1k ★
  • My Free Code — Open-source multi-provider AI gateway for Claude Code and other coding agents, with model routing, streaming 633 ★

README

formula1simulation

[![CI](https://github.com/vnmoorthy/formula1simulation/actions/workflows/ci.yml/badge.svg)](https://github.com/vnmoorthy/formula1simulation/actions/workflows/ci.yml)

A live Formula 1 race, an anomaly detector, and an AI pit wall that calls every stop as it happens. Built on Confluent Cloud (Kafka and Flink) with Claude.

![Pit Wall dashboard at the lap-24 PIT NOW call](./docs/images/agentic-pit-decisions/pitwall-pit-now.png)

What it does

  • Race simulator: streams River Racing car #88's telemetry (every 2 seconds) and standings for all 22 cars at Silverstone into Kafka.
  • Flink: joins telemetry with standings over 20-second windows. ML_DETECT_ANOMALIES learns the front-left tire's normal temperature range and flags readings outside it.
  • Streaming agent: pit_strategy_agent runs on Claude, hosted in Confluent. On every lap it reads the car's state and calls STAY OUT, PIT SOON, or PIT NOW, with a tire compound, stint length, and its reasoning.
  • Pit Wall dashboard: a track map, leaderboard, tire and fuel gauges, anomaly status, and the agent's decision feed, at http://localhost:8001.
  • Real-Time Context Engine: Lightning Tables put the live race behind an MCP server, so any MCP-compatible agent, such as Claude Code, can query it in plain English.

![Architecture](./docs/images/agentic-pit-decisions/architecture.png)

A real run

The agent's calls from one 60-lap race:

Laps Position Agent's call What happened
1–18 P3 → P1 STAY OUT Tires nominal at about 95–101°C.
19–23 P1 → P8 PIT SOON (plan MEDIUM) The soft tires enter their pit window.
24 P8 PIT NOW → MEDIUM, 36 laps The front-left tire spikes to 145.3°C, and the detector flags it.
25+ P14 → STAY OUT Recovery stint on fresh mediums.

The agent's reasoning on lap 24:

The ML anomaly detector has flagged the front-left tire temperature as outside validated expected b