I Made a CAM Program for My Lathe (AI Made It)*

More
11 Nov 2026 07:58 - 11 Nov 2026 08:48 #350603 by Dudelbert
Hi,

I've built a thing. Or, more accurately, I asked Claude to build a thing.

I wanted to see how good AI coding agents have actually become. I didn't expect to make this public, but I think what came out of it might be useful to some of you as well.

It's a conversational lathe CAM program that I've called WOP (Workshop Optimized Programming).

It runs directly on Linux, not as a plugin for any LinuxCNC GUI, but as a standalone application.

I don't think it can replace full-featured CAM software for complex parts. But at least for me, most of the parts I make on the lathe aren't particularly complicated. So I see it as something in between full CAM software and Andy Pugh's lathe macros.

It currently supports facing, simple turning, drilling with canned cycles, threading, grooving, and turning along a custom path. It also has some machine-control features, such as optional stops that can be inserted between operations.

I'm the only person who has really used and tested it so far, so there may be things that seem obvious to me but aren't particularly intuitive to anyone else. Hopefully, though, it's fairly easy to use. That's really the main goal: to have a quick and straightforward way to program an entire part in a single file and export the resulting G-code.

If you want to try it out, it's open source on GitHub:  github 

If you want to see how it works, I've also made a YouTube video:




I'd be interested to hear what you think, especially if you get a chance to try it out.
Attachments:
Last edit: 11 Nov 2026 08:48 by Dudelbert.
The following user(s) said Thank You: trilobyte, tommylight, COFHAL, Surmetall, JT

Please Log in or Create an account to join the conversation.

More
11 Nov 2026 10:11 #350608 by trilobyte
Replied by trilobyte on topic I Made a CAM Program for My Lathe (AI Made It)*
That's very nice! By the way: I've got exactly the same machine

Please Log in or Create an account to join the conversation.

More
12 Nov 2026 10:10 #350650 by Jokeri
Hello,
are you in some discord channel? i would like to talk to you.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
12 Nov 2026 10:19 #350651 by tommylight
Replied by tommylight on topic I Made a CAM Program for My Lathe (AI Made It)*

Hello,
are you in some discord channel? i would like to talk to you.

Don't do that, talk here.
The following user(s) said Thank You: trilobyte, paulmag, MusicCityMfg

Please Log in or Create an account to join the conversation.

More
12 Nov 2026 15:35 #350660 by Dudelbert
Replied by Dudelbert on topic I Made a CAM Program for My Lathe (AI Made It)*
I'm not, as Tommy said, we can talk here. What is it about?
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
13 Nov 2026 04:09 #350663 by anfänger
Replied by anfänger on topic I Made a CAM Program for My Lathe (AI Made It)*
Nice, thanks for sharing. I am definitevly going to check it out.

Please Log in or Create an account to join the conversation.

More
13 Nov 2026 06:35 #350669 by Dudelbert
Replied by Dudelbert on topic I Made a CAM Program for My Lathe (AI Made It)*
I just hope it will be useful. Let me know what you think after you've tried it.

Please Log in or Create an account to join the conversation.

More
13 Nov 2026 10:34 #350674 by Jokeri
- What is your experience in coding?
- How long did it take you to get the app to release stage?
- What made you choose python as the coding language?
- What were the first steps that you took when you started developing your app?
- Do you manage claude.md , or do you have the AI to manage it?
- What claude model did you use? what tools did you use?
- What were the difficulties getting the TNRC to work? ( so its calculated to the actual g-code)
- What is your typical claude session? plan ahead then one orchestrator + subagents to implement , plan have the ai to implement plan again repeat , big tasks , small tasks, etc..
-

Please Log in or Create an account to join the conversation.

More
14 Nov 2026 03:09 #350686 by Dudelbert
Replied by Dudelbert on topic I Made a CAM Program for My Lathe (AI Made It)*
I have decent knowledge of C/C++, mostly from working with embedded systems.

It took me about two full-time weeks of development to get most of the way there, spread over a period of roughly four weeks.

I chose Python because I had heard that AI is particularly good at writing it. After working with it for a while, though, I realised that if I were to start the project again, I would probably choose C++ instead.

The project started as an experiment, so initially I essentially gave Claude a two-sentence explanation of what I wanted and told it to go ham. Needless to say, the results weren't particularly good, although I didn't expect them to be.
What worked much better was giving it a relatively detailed explanation of the idea, letting it explain back how it understood the requirements, and then refining and expanding on that through a few iterations. Once we had a shared understanding of the project, I asked it to write a specification. That approach worked quite well for me.
I created the initial CLAUDE.md file myself, but gave Claude permission to adapt and update it as the project evolved. Sometimes it makes changes that aren't quite right, so I occasionally go in and correct things manually.

Most of the development was done using a single Claude Sonnet 5.5 agent in VS Code.

Radius compensation wasn't particularly difficult. The main challenge was describing the analytical solver for the general toolpath in enough detail. Once that was properly implemented, radius compensation essentially fell out of the solution for free.

I generally use a single agent. I discuss and plan a feature with Claude, let it implement the solution, and then I go into the GUI and test it myself, checking both functionality and usability.
Based on what I find, I give Claude feedback and we iterate on the implementation. I haven't really experimented with more complex multi-agent workflows or orchestration setups yet.
The following user(s) said Thank You: besriworld

Please Log in or Create an account to join the conversation.

More
16 Nov 2026 13:08 #350756 by laurentl38
Replied by laurentl38 on topic I Made a CAM Program for My Lathe (AI Made It)*
I’ve just tested your software, and it’s brilliant—it’s exactly what I need to use right next to the machine in the workshop, so I don’t have to keep going back and forth between the office and the shop floor.

Personally, I don’t have the technical skills to implement this myself, but if you have the time and the inclination, it would be fantastic to add a feature for creating threads with custom profiles—something along the lines of this software, RopeCAM (www.cenic.fi/english/ropecam/).

In any case, thanks again for such great work!

Please Log in or Create an account to join the conversation.

Time to create page: 0.277 seconds
Powered by Kunena Forum