r/Kos • u/ShadcnUI_Odi • 29d ago
Ops on vibe coding?
Ik Ik…
But seriously, do you think it’s wrong or right to generate programs for kos with ai? what about other use cases?
0
Upvotes
r/Kos • u/ShadcnUI_Odi • 29d ago
Ik Ik…
But seriously, do you think it’s wrong or right to generate programs for kos with ai? what about other use cases?
17
u/j-steve- 29d ago
Personally I never use AI to write my kOS scripts, it removes any challenge or learning for me. I use AI to help me learn about orbital mechanics though
8
u/ckow 29d ago
Nobody should tell you how you have fun in a single player game. If you enjoy using AI, go for it.
3
u/Polymath6301 29d ago
I tried it for fun about 5 months ago with Copilot. It finally figured out how to design .craft files that were vaguely flyable. It was absolutely rubbish at any Kos code that was novel. It managed to clean up a launch script of mine, after 145 tries.
It absolutely couldn’t plan a transfer to Mun from Kerbin orbit.
I imagine Codex would do better these days, but I won’t try it until I’ve finished some other projects.
12
u/Admiral_Eversor 29d ago
I don't get using AI for hobby stuff. If you're not actually gonna do it yourself, what's the point? This isn't work, this is real life. Why bother if you're just gonna take a shortcut?
It's like going on a hike and then driving to the top of the mountain. Kinda pointless honestly
2
u/JitteryJet 29d ago
I do not understand the question. Is the colour blue wrong?
7
u/KinderGameMichi 29d ago
If you are happy with using it, go ahead. If the tools is doing the job you want it to, then it is a right tool for the job. Maybe not the only one, but do what works for you.
4
u/nuggreat 29d ago edited 29d ago
I generally think if you are using an LLM to generate kOS code you have grabbed the wrong mod and should instead be using mechJeb or some other automation mod that more closely matches what you are actually trying to do.
The exception would be if the goal is to learn how to use the LLM and you are simply using KSP and kOS to provide a set of objectives to complete. But even in this case I feel it is a bad choice as most of the problems you would work on in kOS are not applicable to more generalized programing.
1
u/Thermodynamicist 29d ago
Most people use higher level languages because assembly isn't friendly or forgiving.
AI is simply another, higher, level of abstraction.
5
u/snakesign Programmer 29d ago
Just use mechjeb at that point.
2
u/Avocadoflesser 29d ago
nothing morally wrong about it but for most applications you can just use mechjeb, for most people the fun in kos is doing it yourself and learning the algorithms. If it's something that can't be done with mechjeb and you don't feel like programming it yourself feel free
2
u/Still-Ad-3083 29d ago
If you're gonna use LLM, try kRPC instead of kOS.
2
u/Dimencia 29d ago
It's not particularly good at it. I mean, it'll write code that compiles, but it doesn't generalize well or do UI well, and it's very fast to blame your rocket for not having the precise amount of deltaV and TWR that its script works with
So I still enjoy coming up with less terrible approaches and telling it to implement them - it's pretty good at writing the code, as long as you can accurately describe what you want it to write. Don't forget that you can enable your KOS telnet server, and let Codex (or other harness) access it to make sure its scripts can compile, troubleshoot, collect telemetry, do test flights and revert, or etc
1
u/Deranged_Roomba 29d ago
If I just can't figure out why something won't work or can't figure out how to do something I'll pass my code through one (I use perplexity) and see what it says. I feel like the paid AIs are better for code than just Gemini or something. It defeats the purpose to let it do all of it but if it helps me learn then I use it like any other tool. I also use it for stormworks to build controllers when I need help. I do try to learn on my own but sometimes I just want a simple single purpose controller.
1
u/lkn240 4d ago
Older post - but if you are interested in this kind of thing KRPC is probably a better choice.
I've built extremely advanced autopilots (like they can de-orbit, re-enter and land spaceplanes reliably) using AI Agents.
KRPC also has built in interfaces for a lot of popular mods KER, mechjeb) and it's pretty easy to build new plugins.
It supports a variety of standard programming languages (like I use python) which models are already very good at using
1
u/ckow 29d ago
I also think that kos, a fairly well documented but a language no ai system is fine tuned on, is a great example of a system that requires harness engineering to develop durable solutions. If you get good at this, you'll get good at other kinds of AI engineering important in the development world right now.