Building an Autonomous Racing Agent in TORCS A developer is building an autonomous racing agent for the TORCS (The Open Racing Car Simulator) simulator, aiming to complete a clean lap around the Corkscrew track without crashing. The project will use a local LLM, IBM Granite 3.2 8B, to architect control logic and debug Python code. The agent will evolve through a structured pipeline, starting with baseline steering and look-ahead braking logic. A while ago I received an email from my university inviting us to join the ibm global ai racing competition. Now that I'm finished with my exams I am going to give it a try. The testing ground for this project will be TORCS The Open Racing Car Simulator . The primary objective is to build an autonomous agent capable of completing a clean lap around the Corkscrew track without crashing, and eventually, optimizing it for competitive lap times. The plan is to evolve the agent through a structured pipeline: This project combines classic simulator architecture with modern local AI tools: snakeoil3 library to parse sensor data and output telemetry . ibm-granite-3.2-8b-instruct . I will be using this local LLM hosted via LM Studio and integrated into VS Code with Continue.dev to help architect the math, tune the control logic, and create/debug the Python code.I will be documenting the entire process in this series. I will share the exact prompts used with the local AI, the generated code, the mathematical reasoning behind the control systems such as why a naive PD controller causes zig-zag oscillation and how to fix it with damping , and the iterative debugging process. If you are interested in robotics, control theory, Python, or machine learning applications in simulation environments, follow along. The first technical log will be published shortly, detailing the implementation of baseline steering and look-ahead braking logic.