agentleFS
academysimacademysim/claude-code-skills/telemetry/SKILL.md

telemetry

Skill0 starsChanged 3 months agoMITView on GitHub

Some questions cannot be answered from a picture. A screenshot cannot tell you a brake trace, a slip angle, or how hard you actually braked — a number can. Records live sim driving data as CSV from BeamNG.drive, Assetto Corsa, Live for Speed and rFactor (OutGauge UDP) or from iRacing (SDK shared memory), then analyses it. Use for "how hard was I braking", "compare those two laps", "what speed was I carrying there", "did I ever hit full throttle", "why does the car feel wrong" — any question about what the vehicle actually did.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If nothing arrives, the listener says so after a few seconds rather than sitting silent.

    line 32

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Telemetry

The problem: you can show Claude a screenshot of a sim, and it can read the speedo. It cannot tell you how hard you braked into turn 3, how long you were at full throttle, or whether you overlapped throttle and brake. Those are traces, not pictures, and no amount of image analysis recovers them.

This records the numbers directly, at 50+ Hz, for no token cost at all.

python telemetry/telemetry.py selftest              # verify without a sim running
python telemetry/telemetry.py listen --seconds 120  # OutGauge sims
python telemetry/telemetry.py iracing --hz 30       # iRacing
python telemetry/telemetry.py summary <file.csv>

Both recorders write the same CSV — t, speed_mph, throttle, brake, gear, rpm, steer_deg, clutch — so summary reads either. Files land in ~/.claude/telemetry/.

OutGauge sims (BeamNG.drive, Assetto Corsa, Live for Speed, rFactor)

OutGauge must be enabled in the sim first. In BeamNG, search the Options for OutGauge — it has moved between versions, so search rather than following a fixed menu path. Enable it, set the target to 127.0.0.1 and the port to 4444, then start the listener before driving.

If nothing arrives, the listener says so after a few seconds rather than sitting silent.

Verified live against BeamNG.drive 0.39.4 on 2026-08-27, a steady ~52 Hz. The setting lives in settings/cloud/settings.json as protocols_outgauge_enabled — not game-settings.json, where looking for it finds nothing — and it takes effect immediately with no relaunch. Only enabled is stored; the target defaults to 127.0.0.1:4444.

A gap in the stream means the physics froze

OutGauge is emitted from inside the simulation loop, so it stops when the sim stops. When the stream goes dark, compare the speed either side of the gap: identical speed across a multi-second gap means the simulation was frozen, not that packets were dropped, because a moving car would have travelled. BeamNG pauses on focus loss, so alt-tabbing out produces exactly this signature.

That also makes the stream a ~50 Hz heartbeat from inside the physics loop, which resolves a freeze far more precisely than any external poll — a 20s freeze is visible to about 20ms.

The OutGauge protocol carries no steering channel, so steer_deg is blank for these recordings. That is the protocol, not a bug. Speed, throttle, brake, clutch, gear and RPM are all present.

iRacing

Requires the sim itself running — the background iRacingService is not enough, and the reader says so rather than failing obscurely. --list dumps every available channel with its units.

Stated plainly: the reader is unit-tested against a synthetic shared-memory block matching the published layout, but has not been verified against a live iRacing session. Treat your first live run as a test — check --list returns sensible channel names before trusting a recording.

Reading summary

Two details matter, because both were bugs first:

  • peak decel is measured over --min-dt windows (default 0.25s). A single 50 Hz step divides by a dt small enough that timing jitter alone reads as tens of g. An early version of this tool confidently reported 24 g on a clean synthetic trace for exactly that reason.
  • hard brakes groups consecutive over-threshold samples into one event, reporting its peak and the speed it scrubbed. Counting per sample turned a single braking zone into 61 "events". Tune with --brake-g, default 0.5 g.

Gaps over 1s in the samples are reported explicitly, because they silently understate both distance and event counts.

Pairing with screen capture

Telemetry says what the car did; a screen recording shows what it looked like. A hard brake at t=41s in the CSV is a timestamp you can take straight to clipwatch zoom --at 41.

Verifying without a sim

selftest checks the OutGauge decoder over real loopback UDP — building a packet, sending it, decoding it back — and the iRacing parser against a synthetic shared-memory block. It needs no sim running and no network. Run it first if anything looks wrong.

Requirements

Python 3.8+. No third-party packages, no compiled extensions. The iRacing reader is Windows-only (shared memory); OutGauge works anywhere.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.