r/bevy • • Feb 27 '26

Anyone using codex, Claude code or anything similar? Which one works best for bevy?

And please don't take the question the wrong way, I don't mean for vibe coding, but as a tool it's definitely often easier than manual typing

0 Upvotes

22 comments sorted by

3

u/bahwi Feb 27 '26

Codex, but download and checkout the latest release, and point it to that folder for examples and docs.

1

u/ElonsBreedingFetish Feb 27 '26

That's not a bad idea. I included the tldr from taintedcoders.com as markdown file and added some of my own recent migration changes that it always seems to miss

8

u/ActuallyAdasi Feb 27 '26

I find that at the level that it’s most effective is bevy agnostic. So it won’t author you a great bevy game, it’ll likely give you a garbled combination of the bevy examples and sample code, rather than a real application that makes sense. BUT it’s great working in rust and with gRPC, Tokio, etc., so it can be great to help you implement logic that is well scoped and well defined.

1

u/Effective_Lead8867 Feb 28 '26

I use Claude and it’s so undertrained for the rust - writes such shitty systems level code that I had to establish some strict rules

It completely failed to follow any software best practices

It tends to reimplement code inline instead of seeing the big picture

However, it’s possible to enforce refactoring with proper specs

Much harder task than complex typescript platform backend that it works much better at

I also constantly go out of Max 20x limits with it

1

u/ElonsBreedingFetish Feb 28 '26

Try codex with 5.2 instead of 5.3, it's slower but seems to understand the big picture better

1

u/Effective_Lead8867 Feb 28 '26

5.2 over 5.3? Interesting. I’ll give it a try, thanks!

2

u/ElonsBreedingFetish Feb 28 '26

5.2 high seems best, needs more specific wording though compared to Claude

1

u/Effective_Lead8867 Feb 28 '26

Although its much better than implementing systems than in Unity -

Integration tests with screenshots, analytical compute shaders, tracing with perf - allows it to run tight agentic loops which works really nice, compared to Unity in batchmode or with mcp

1

u/General_Wolf_6134 Apr 25 '26

Bevy newbie here. Based on your experience, is it a good idea to let Claude Code do its magic in the learning phase? I am working on a very simple prototype (a ball falling on the ground) and I am having issues understanding which strategy I should follow to structure the code. But I would like to (try to) learn Bevy&Rust in the best way possible! Thanks

2

u/ElonsBreedingFetish Apr 25 '26

Claude didnt work well for me with bevy, codex was better, but it still needs lots of guidance, especially for the architecture.

For structuring the code or learning best practices, I also wouldn't trust an AI. Bevy was actually surprisingly simple to learn the basics, https://taintedcoders.com is the best starting point and links a minimal example repo.

3

u/toby_hede Mar 02 '26

I have been using Claude Code:
https://tobyhede.com/blog/hard-mode/

It has taken quite a lot of effort to get good results, but the models have improved dramatically.

bevy changes rapidly, and I had many issues with agents using obsolete or totally hallucinated syntax.

Things that have helped:

- captured current best practices (https://github.com/tbillington/bevy_best_practices)
- summarise version release notes and use to ensure latest context (see https://gist.github.com/tobyhede/f03ab33c3ccdf1ac2ccfbfe76d6af912)
- well-documented architecture and patterns
- all planned work goes through dedicated review to ensure idiomatic bevy and ecs
- types types types
- defined a set of domain types that have removed entire classes of error (conversions between render and simulation-space for example)
- use `bevy_lint`
- created custom project lints using `dylint_linting`

Once I established patterns in the project things have also become much easier.
Pay very close attention to the architecture.
I ended up throwing away a lot of the first version because the ECS architecture was total spaghetti.

I've found that the low-level code within system boundaries can be a hot mess (relatively speaking) if the higher-level structure is solid. (Like, the code to reticulate the splines may be ugly and inefficient AF, but if the structure is correct, the boundaries will be well-defined, and the mess can be iterated.

1

u/Soft-Abrocoma904 May 11 '26

About types, which strategies did you use?

1

u/devloper27 Feb 27 '26

Codex ia way better imho but slower and less chatty

1

u/ElonsBreedingFetish Feb 27 '26

Yeah that's what I use too, it seems to better with rust. I only used antigravity and Claude code briefly which were definitely worse, but I'm getting too tired trying different tools

1

u/phant0md Feb 27 '26 edited Feb 27 '26

Yes I’ve been working in cursor and Claude with a variety of models.

It’s actually very good when directed properly. It’s important to have a good foundation for the project though, clear ideas, potential dependencies, a good test framework, etc.

So far I have found gpt codex to be the best for more complex work, and most cheaper models work fine for small jobs.

I’ve been avoiding the Claude models lately though, especially Opus has taken too long and still not produced.

That said it’s still a bit like herding cats. Unless you have a solid idea, clear focus and communication it’s going to be a mess.

You can use screenshots too in cursor to help with it, screenshot the game if it’s difficult to describe, and add some context.

I even use them to help me find my way around Blender, just take screenshots and ask it for help.

A proper AGENTS.md with some bevy and rust specifics help as well. Get the agent to write that for you, tell it to validate the file as well to check for accuracy.

1

u/LadyPopsickle Feb 27 '26

Using Antigravity with Gemini and sometimes Claud Opus. I have special bevy.md file where I let agent store bevy specific issues and how to handle them as well as updated API the agents struggle with.

1

u/Clean-Blacksmith-514 Mar 09 '26

Claude Code with rust-docs-mcp server can do anything I need it to.

0

u/[deleted] Feb 27 '26

[deleted]

3

u/ElonsBreedingFetish Feb 27 '26

Really? It's been a while but Claude had worse limits and was more "sloppy", didn't follow my instructions and had more issues with the game math.

It was better for UI/design though and for shaders I found that they both were equally bad lol

2

u/Winter_Educator_2496 Mar 01 '26

Yes Claude does not understand math for some reason. I asked it to implement an equation for procedural animation I threw together and even gave it advice on where which parts of the equations should go. What it made did work but had weird bugs, kind of bugs that the equation should not produce unless I am stupid. Looking under the hood revealed a complete disaster. And that was opus 4.6.

You're better off programming it by hand. LLM's are not great at ECS and especially bevy, since the interfaces keep changing every 3 months. And there aren't many open source bevy games to train on.

If you're going to use it, use it only to implement single functions. Do not ask it to make decisions or implement some kind of architectural change unless you want to waste money and have to maniacally laugh at how bad the code is.

0

u/[deleted] Feb 27 '26

[deleted]

2

u/ElonsBreedingFetish Feb 27 '26

Thx! How are the limits now? I cancelled it a whole ago because i exceeded my weekly limit after a few requests which is ridiculous

0

u/[deleted] Feb 27 '26

[deleted]

11

u/ElonsBreedingFetish Feb 27 '26 edited Feb 27 '26

Holy bot answer.. I get why everyone fucking hates AI coding

1

u/bevy-ModTeam Mar 01 '26

r/bevy follows platform-wide Reddit Rules. No inauthentic activity please.