A company has up to $1 million to invest in Level 2 or DC fast charging. How many Level 2 and DC fast charging ports should you install in each Michigan ZIP code? You can recommend a build, a pilot, or waiting for better evidence.
Two students share a coding agent for one hour. The pair reads Michigan’s EV records and chooses a quantity to forecast by ZIP area before deciding where to add ports. They review the forecast assumptions and write a model for the investment decision. Before the agent tests the plan, the students predict what will happen if one of their assumptions changes. They finish with a 90-second recommendation to the investment committee.
-
Paste this into Codex or Claude Code in a workspace where the agent can clone repositories and run terminal commands.
Let's do this lesson: https://github.com/Gurobi/optai-101-ev-charger-lesson
The agent should open or clone the repository, read
AGENTS.md, and start the lesson viewer. If it stops at a summary, ask it to do those three things and give you the viewer URL. -
Open the URL the agent gives you, usually
http://127.0.0.1:8765/. Put the browser on one side of your screen and the agent's chat on the other. Read the course overview, then choose Start. One student drives the chat and the other checks the evidence. Switch roles before running your chosen stress test. -
Follow the blue button through the six tables. Ask questions as you go by starting a table note with
@agent. Read your notes and replies on Notes and replies, then choose Start forecasting. If the agent doesn’t reply automatically, tell it which prompt you saved. It reads your saved answers from the workspace. At Recommend → Submit, download onestudent-responses.mdper pair.
Before class, install uv where the agent runs. Live statewide solves require a Gurobi license that supports the model size. The lesson includes saved plans for Test. Get a free academic Gurobi license.
The student guide has the checkpoints and hand-in details.
The agent starts the watcher when the lesson begins. With the Codex App Server running, it attaches to the current conversation whether it started in the lesson folder or a parent folder. Run the command from the lesson folder. The watcher sets the conversation’s working directory to the lesson folder when it forwards a saved response.
uv run --locked python lesson.py watch --thread "$CODEX_THREAD_ID"If the thread ID is unavailable, identify the lesson conversation and supply its ID. Saving a lesson prompt starts a turn in Codex. Table notes start a turn only when the student begins the note with @agent and includes a request. The viewer shows a spinner while the connected Codex thread is working. Existing answers stay in the submission.
To use Claude Code, ask it to run uv run --locked python lesson.py watch --events with its Monitor tool, where available, and treat each JSON
event's message as the student’s next lesson turn. Choose one watcher
per workspace and stop it at the end of the lesson.
Open the chat-only worksheet and paste the starter prompt into your chatbot. The prompt includes the data and works in a text-only chat, with no repo access, code execution, or Gurobi license required. Keep the saved results on the worksheet until Test and hand in one Markdown file per pair.
- Instructor guide for classroom and live session preparation.
- Data sources for provenance and terms.
classroom/ contains the lesson and templates, ui/ the browser viewer,
and model/ the forecast pipeline and reference work. lesson.py is the
command line. Student files are created locally in work/.
Original code and teaching materials are MIT licensed. The datasets keep their individual terms.
The course graphic uses a public-domain charging station photo by Michael Quinn of the National Park Service and a Michigan outline derived from the U.S. Census Bureau’s 2024 cartographic boundaries. Photo · Boundaries