Any Guidelines for AI-assisted (or "vibe") Coding in Bonsai
Not sure if this has been discussed elsewhere, but I was just watching OpenAI’s GPT-5 release on YouTube, and it got me thinking, does the community have any guidelines for integrating AI-assisted code into Bonsai?
I believe @theoryshaw has already been using AI to assist with some coding (correct me if I'm wrong).
I'm asking partly for myself. I know virtually nothing about coding, but I’ve wanted to learn for a long time, mainly so I can contribute meaningfully to the community.
I understand that not everyone is a fan of AI-assisted (or "vibe") coding, but I think that if we collaborate, this could lower the barrier for first-time contributors. With feedback and oversight from more experienced developers, we might even increase the number of people actively contributing to the project.
That’s why I’m wondering if we should consider putting together some community guidelines or best practices around this.
Comments
so that's how I learn that gpt 5 was finally released 😅
in all seriousness though llms are productivity cows, i amassed years worth of fulltime developer work while working for revit, i recommend anyone to just go ahead and try them (claude most likely) https://github.com/baleti/revit-scripts
I'm a viber. :)
I 'think' the answer's going to be somewhere in between. For me, i know enough about python to read and troubleshoot things.
Ultimately, vibe coding will help the evolve the code base, but more burden will be put on the maintainers--I can feel it already.
I think that will be the ultimate bottle neck, having enough maintainers to manage the influx of PR's.
Probably another reason to donate. :)
https://opencollective.com/opensourcebim
@Shegs
at work we started using AI-assisted (ChatGPT/Grok) short scripts in bonsai some months ago using ifcopenshell library
most depends on what you need to do, data or drawing or both? in my experience you need to know, as @theoryshaw put it
Careful, often times AI goes into hallucinating mode, makes stuff up, burps a lot of disorienting lines in the code for a beginner to understand and make use of it.
I would start with the python examples in the ifcopenshell webpage, as a total beginner I found the API a good teacher (Also to learn IFC schema), once you grasp the basic concepts your AI prompts will make it a useful tool.
Enjoy, and if you can, donate!
I think it is all about code quality, if you don't knowexactly what your code is doing then it shouldn't be added to Bonsai/IfcOpenShell.
On the other hand there is a whole range of useful tools that you can conjured up without even looking at the generated code. It is worth sharing these, but consider shaping them into generic tools, adding some documentation and putting them in a git repository.