﻿# Real\-world C\+\+ projects built with GenAI: do they exist?

To keep PVS\-Studio sharp against whatever new patterns of bugs vibe coding introduces, I've been hunting for real open\-source C\+\+ projects built this way\. Turns out finding them is the hard part\.

![1379_enhance_client/image1.png](https://import.viva64.com/docx/blog/1379_enhance_client/image1.png)

What I _do_ keep finding is things like [enhance\-client](https://github.com/gravecan/enhance-client/tree/main) generated for $15\. Not even worth looking at seriously\. You can tell from the `.obj`, `.iobj`, `.ipdb` files, and other junk sitting in the repo that whoever wrote this wasn't too familiar with the basics\. The project won't compile for various reasons, one being a broken [bytes\.hpp](https://github.com/gravecan/enhance-client/blob/642f90eafd954c076a34d60f811de77fdb9f705c/injector/bytes.hpp#L25744) that just cuts off in the middle of an array\.

Fix it up just enough to compile and you'll start finding gems like this:

```cpp
void enhance::modules::autototem::run()
{
  ....
  auto env = enhance::instance->get_env();
  if (!env)
  {
    env->DeleteLocalRef(player);
    return;
  }
  ....
}
```

The PVS\-Studio warning: [V522](https://pvs-studio.com/en/docs/warnings/v522/) \[CWE\-476, CERT\-EXP34\-C, SEC\-NULL\] Dereferencing of the null pointer 'env' might take place\. [autototem\.cpp 757](https://github.com/gravecan/enhance-client/blob/642f90eafd954c076a34d60f811de77fdb9f705c/enhance/modules/autototem/autototem.cpp#L757)

A clear null pointer dereference\.

Or meaningless comparisons of an `int` value with the literal `0.1f`:

```cpp
int sdk::minecraft_client::get_attack_cooldown() { .... }

void enhance::modules::shield_breaker::run()
{
  ....
  if (sdk::instance->get_attack_cooldown() > 0.1f)
  ....
}
```

The PVS\-Studio warning: [V674](https://pvs-studio.com/en/docs/warnings/v674/) \[CWE\-682, CERT\-FLP36\-C\] The '0\.1f' literal of the 'float' type is compared to a value of the 'int' type\. [shield\_breaker\.cpp 628](https://github.com/gravecan/enhance-client/blob/642f90eafd954c076a34d60f811de77fdb9f705c/enhance/modules/shield_breaker/shield_breaker.cpp#L628)

These blunders aren't really worth going through one by one\.

Sure, you could ask "what do you expect from a $15 project?" and you'd have a point\. But that's all I ever find\. What I'm looking for is a solid open\-source C\+\+ project where GenAI was a big part of the development process\. So far, nothing like that\. At this point, vibe coding feels like it exists mostly as a buzzword, while real vibe\-coded C\+\+ projects simply don't\. Or are they hiding somewhere, too ashamed to be seen? :\)

If you know of any C\+\+ projects built with GenAI that are worth looking at, I'd really appreciate a link in the comments\.

Earlier blog posts on some small vibe\-coded projects:

1. [Let's dig into some vibe code](https://pvs-studio.com/en/blog/posts/cpp/1354/)
1. [Let's check vibe code that acts like optimized C\+\+ but is actually a mess](https://pvs-studio.com/en/blog/posts/cpp/1366/)