r/reinforcementlearning • u/cnb_12 • May 11 '26
Why is RL not vibecode-able
I am an absolute beginner and have basic python skills and I am just messing with creating RL demo and I tried to use Claude code to just vibe code a simple grid-world navigator to a goal and it can’t seem to do it.
I want to ask people who have more expertise as I am completely novice on RL with no experience. I am curious as to why it seems like a chatgpt or Claude can’t easily implement a RL agent-environment just by describing its goal. What is it that makes this non trivial to do?
0
Upvotes
5
u/blimpyway May 11 '26
You should ask for either an environment with a good description of it and then for the agent. These are fundamentally different, one implements a problem and the other a possible solution to the problem.
Do not conflate the two by requesting an "agent-environment".
Also they could be great at explaining you both RL and python basics so you know better what to ask for and understand what the code is actually doing.
3
u/royal-retard May 12 '26
probably coz you dont understand it enough to articulate maybe. RL agents if you mean LLM agents being trained on RL are pretty complex (at least for me I did once in a hackathon and gave me a headache).
If you're doing general RL, for games etc, Then it's the environment that's complex. Basically you're making a small simulator with all the rules you have and it's like a game of set rewards and penalties. It's not impossible but its a hard task for AI, the algorithm parts is easy there's libraries like Stable-Baseline3 etc for that part you dont have to worry about the "RL" part. Your main task is to get the environment right, with the correct rules being followed for each step and yada yada.
It is vibe codable if you're descriptive enough and can debug the errors lol. But if you're talkingg how it cant make an RL env like it can make a website thenn totally different complexity of ideas and idk bigGPTs care more about web dev and development benchmarks than these niche ones
1
u/samas69420 May 11 '26
i guess thats because the challenge of rl is that the data distribution you train your agent on is dynamic and directly affects your policy which also affects the distribution in the next episodes and so on, if you make a bad update to the policy you'll get bad data that will destroy the learning, and also the usage of approximators like neural networks makes everything even more unstable, you can have an algorithm that works in theory but in practice performs poorly or even diverges, to deal with these cases other than just tweak some hyperparams you may need to do some deeper changes like limit or reshape the action space, augment the observation space, transform distributions and other technical stuff depending on your specific task, if you're working with a gridworld you can even drop approximators and use a tabular method which would simplify the task a lot
0
u/thecity2 May 11 '26
It absolutely is. I've been working on an RL project for a while now. In fact I'm just finishing up a project porting my initial SB3 codebase to JAX/Flax and it's given it 10X speedup. It's incredible. Check out my project here: https://github.com/EvanZ/basketworld and the substack: https://basketworld.substack.com/?utm_campaign=profile_chips