ManufacturingOpinion
An Engineer Used Claude Code to Catch What CAM Software Missed
Douglas Spence spent about 100 hours building a verifier with Claude Code that uses data from 10 Okuma mills and flagged the program behind an earlier crash.

The brief
- An engineer at CVF Racing developed an in-house G-code verification system after a software update caused a $30,000 machine repair due to a faulty cutting move.
- The new verification system connects to the machines' actual tool data and checks machining programs against this information, improving accuracy over the CAM software's assumptions.
- The verification service operates on an office workstation, allowing setup technicians to access it from the shop floor, while lightweight applications on the machines report tool data.
This is the kind of AI story that can go unnoticed: a $30,000-plus machine repair prompted an engineer at a Minnesota automotive-parts maker to build his own software for checking machining programs.
The brief
- An engineer at CVF Racing developed an in-house G-code verification system after a software update caused a $30,000 machine repair due to a faulty cutting move.
- The new verification system connects to the machines' actual tool data and checks machining programs against this information, improving accuracy over the CAM software's assumptions.
- The verification service operates on an office workstation, allowing setup technicians to access it from the shop floor, while lightweight applications on the machines report tool data.
At CVF Racing, a horizontal machining center crashed after a software update generated a faulty cutting move, according to Douglas Spence, the company’s Manufacturing and Automation Engineer. The cutting portion of a tool drove through material at high feed, and the computer-aided manufacturing (CAM) software’s own verification failed to flag it.
“When the dust settled, we had a $30K+ spindle repair,” Spence wrote.
The following weekend, over coffee, he asked Claude Code about G-code simulation software. About 100 hours of development later, Spence said, CVF had an in-house verification system connected to its machines’ actual tool data.
“We ran the exact program that crashed. It caught it,” he wrote.
Checking the Code Against the Machine
G-code contains the instructions that direct a computer numerical control (CNC) machine’s movements. Spence’s system checks the program using information collected from the equipment that will run it.
A verification service runs on an office workstation. Its React front end gives setup technicians access from the shop floor, while a lightweight C# application on each of CVF’s 10 Okuma mills uses the machine’s application programming interface (API) to report loaded tools, descriptions and offsets.
Those offsets contain the compensation values the machine uses for its tools. Pulling them into the simulation lets the verifier work with the values on the mill, rather than relying solely on the CAM system’s assumptions.
The same software now serves as CVF’s tool-management library. In a follow-up comment, Spence said its machine displays show library offsets alongside actual offsets, giving operators values to use when setting up new or replacement tools.
Okuma’s open control platform provides an established route for this kind of customization. The manufacturer has described customer-built applications that interact with tool offsets and other control data.
Claude Code helped Spence build the verification software. The implementation he described uses a workstation service and machine-side applications to bring machining programs and tool information together.
Programmers Verify, Setup Teams Review
Spence clarified in the replies that programmers perform the first verification. Setup teams then use the shop-floor interface to see what a program will do, inspect measurements and review tool lists.
“Our programmers run the first verification,” he wrote. “The shop floor uses it as a viewer to see what program is going to do.”
That workflow sits inside an operation already accustomed to automation. CVF makes automotive components in New Prague, Minnesota, including pulley systems and brackets. A 2025 case study from machine-tool supplier Morris described its use of Okuma machines and automated pallet systems for unattended production.
“Morris wasn’t the cheapest option, but their service and support were what we needed to implement a fully automated, lights-out shop,” Joe Pint, CVF’s Production Manager, said in that account.
Spence’s new system adds a program-review tool to that environment. He also shared an image of three-turret lathe-code simulation, which he described as still in development.
A Known Failure Becomes a Test
The crash replay gives the project a specific result: the verifier flagged a program that had already damaged a machine. When asked whether the actual-tool-length simulation had caught additional problems, Spence said he was not its daily user and could not confirm that.
He declined to identify the CAM supplier. He also clarified that he did not know whether AI had been used to write the faulty update, noting that he had encountered production software bugs throughout more than 25 years using CAD/CAM tools.
The repair bill explains why he built the checker; the approximately 100 development hours represent the engineering effort he reported putting into it. His conclusion centered on checking software before it reaches equipment.
“I’m not saying AI-written code is bug-free. It isn’t. Neither is anyone’s,” Spence wrote. “It’s verify everything before it touches the machine.”
Join the discussion
0 answers
People who run these systems answer here. Your verified role is shown, never your employer unless you choose.
Sign in with LinkedIn to answer
Read next
Chaos Predictions — every Monday
Where enterprise AI is heading next, read from the week’s deployments across banking, pharma, manufacturing and retail.
Free. One email every Monday. Unsubscribe in one click.












